diff --git a/apis/repo/v1alpha1/zz_generated.conversion_hubs.go b/apis/repo/v1alpha1/zz_generated.conversion_hubs.go index d99c903..203d104 100755 --- a/apis/repo/v1alpha1/zz_generated.conversion_hubs.go +++ b/apis/repo/v1alpha1/zz_generated.conversion_hubs.go @@ -36,5 +36,8 @@ func (tr *RepositoryCollaborator) Hub() {} // Hub marks this type as a conversion hub. func (tr *RepositoryFile) Hub() {} +// Hub marks this type as a conversion hub. +func (tr *RepositoryRuleset) Hub() {} + // Hub marks this type as a conversion hub. func (tr *RepositoryWebhook) Hub() {} diff --git a/apis/repo/v1alpha1/zz_generated.deepcopy.go b/apis/repo/v1alpha1/zz_generated.deepcopy.go index 91f563b..1bd0832 100644 --- a/apis/repo/v1alpha1/zz_generated.deepcopy.go +++ b/apis/repo/v1alpha1/zz_generated.deepcopy.go @@ -177,6 +177,111 @@ func (in *BranchList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchNamePatternInitParameters) DeepCopyInto(out *BranchNamePatternInitParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchNamePatternInitParameters. +func (in *BranchNamePatternInitParameters) DeepCopy() *BranchNamePatternInitParameters { + if in == nil { + return nil + } + out := new(BranchNamePatternInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchNamePatternObservation) DeepCopyInto(out *BranchNamePatternObservation) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchNamePatternObservation. +func (in *BranchNamePatternObservation) DeepCopy() *BranchNamePatternObservation { + if in == nil { + return nil + } + out := new(BranchNamePatternObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BranchNamePatternParameters) DeepCopyInto(out *BranchNamePatternParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchNamePatternParameters. +func (in *BranchNamePatternParameters) DeepCopy() *BranchNamePatternParameters { + if in == nil { + return nil + } + out := new(BranchNamePatternParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BranchObservation) DeepCopyInto(out *BranchObservation) { *out = *in @@ -708,584 +813,565 @@ func (in *BranchStatus) DeepCopy() *BranchStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigurationInitParameters) DeepCopyInto(out *ConfigurationInitParameters) { +func (in *BypassActorsInitParameters) DeepCopyInto(out *BypassActorsInitParameters) { *out = *in - if in.ContentType != nil { - in, out := &in.ContentType, &out.ContentType - *out = new(string) + if in.ActorID != nil { + in, out := &in.ActorID, &out.ActorID + *out = new(int64) **out = **in } - if in.InsecureSSL != nil { - in, out := &in.InsecureSSL, &out.InsecureSSL - *out = new(bool) + if in.ActorType != nil { + in, out := &in.ActorType, &out.ActorType + *out = new(string) **out = **in } - if in.SecretSecretRef != nil { - in, out := &in.SecretSecretRef, &out.SecretSecretRef - *out = new(v1.SecretKeySelector) + if in.BypassMode != nil { + in, out := &in.BypassMode, &out.BypassMode + *out = new(string) **out = **in } - out.URLSecretRef = in.URLSecretRef } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationInitParameters. -func (in *ConfigurationInitParameters) DeepCopy() *ConfigurationInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BypassActorsInitParameters. +func (in *BypassActorsInitParameters) DeepCopy() *BypassActorsInitParameters { if in == nil { return nil } - out := new(ConfigurationInitParameters) + out := new(BypassActorsInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigurationObservation) DeepCopyInto(out *ConfigurationObservation) { +func (in *BypassActorsObservation) DeepCopyInto(out *BypassActorsObservation) { *out = *in - if in.ContentType != nil { - in, out := &in.ContentType, &out.ContentType + if in.ActorID != nil { + in, out := &in.ActorID, &out.ActorID + *out = new(int64) + **out = **in + } + if in.ActorType != nil { + in, out := &in.ActorType, &out.ActorType *out = new(string) **out = **in } - if in.InsecureSSL != nil { - in, out := &in.InsecureSSL, &out.InsecureSSL - *out = new(bool) + if in.BypassMode != nil { + in, out := &in.BypassMode, &out.BypassMode + *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationObservation. -func (in *ConfigurationObservation) DeepCopy() *ConfigurationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BypassActorsObservation. +func (in *BypassActorsObservation) DeepCopy() *BypassActorsObservation { if in == nil { return nil } - out := new(ConfigurationObservation) + out := new(BypassActorsObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigurationParameters) DeepCopyInto(out *ConfigurationParameters) { +func (in *BypassActorsParameters) DeepCopyInto(out *BypassActorsParameters) { *out = *in - if in.ContentType != nil { - in, out := &in.ContentType, &out.ContentType - *out = new(string) + if in.ActorID != nil { + in, out := &in.ActorID, &out.ActorID + *out = new(int64) **out = **in } - if in.InsecureSSL != nil { - in, out := &in.InsecureSSL, &out.InsecureSSL - *out = new(bool) + if in.ActorType != nil { + in, out := &in.ActorType, &out.ActorType + *out = new(string) **out = **in } - if in.SecretSecretRef != nil { - in, out := &in.SecretSecretRef, &out.SecretSecretRef - *out = new(v1.SecretKeySelector) + if in.BypassMode != nil { + in, out := &in.BypassMode, &out.BypassMode + *out = new(string) **out = **in } - out.URLSecretRef = in.URLSecretRef } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationParameters. -func (in *ConfigurationParameters) DeepCopy() *ConfigurationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BypassActorsParameters. +func (in *BypassActorsParameters) DeepCopy() *BypassActorsParameters { if in == nil { return nil } - out := new(ConfigurationParameters) + out := new(BypassActorsParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DefaultBranch) DeepCopyInto(out *DefaultBranch) { +func (in *CommitAuthorEmailPatternInitParameters) DeepCopyInto(out *CommitAuthorEmailPatternInitParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranch. -func (in *DefaultBranch) DeepCopy() *DefaultBranch { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitAuthorEmailPatternInitParameters. +func (in *CommitAuthorEmailPatternInitParameters) DeepCopy() *CommitAuthorEmailPatternInitParameters { if in == nil { return nil } - out := new(DefaultBranch) + out := new(CommitAuthorEmailPatternInitParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DefaultBranch) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DefaultBranchInitParameters) DeepCopyInto(out *DefaultBranchInitParameters) { +func (in *CommitAuthorEmailPatternObservation) DeepCopyInto(out *CommitAuthorEmailPatternObservation) { *out = *in - if in.Branch != nil { - in, out := &in.Branch, &out.Branch + if in.Name != nil { + in, out := &in.Name, &out.Name *out = new(string) **out = **in } - if in.BranchRef != nil { - in, out := &in.BranchRef, &out.BranchRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in } - if in.BranchSelector != nil { - in, out := &in.BranchSelector, &out.BranchSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in } - if in.Rename != nil { - in, out := &in.Rename, &out.Rename - *out = new(bool) + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchInitParameters. -func (in *DefaultBranchInitParameters) DeepCopy() *DefaultBranchInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitAuthorEmailPatternObservation. +func (in *CommitAuthorEmailPatternObservation) DeepCopy() *CommitAuthorEmailPatternObservation { if in == nil { return nil } - out := new(DefaultBranchInitParameters) + out := new(CommitAuthorEmailPatternObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DefaultBranchList) DeepCopyInto(out *DefaultBranchList) { +func (in *CommitAuthorEmailPatternParameters) DeepCopyInto(out *CommitAuthorEmailPatternParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DefaultBranch, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchList. -func (in *DefaultBranchList) DeepCopy() *DefaultBranchList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitAuthorEmailPatternParameters. +func (in *CommitAuthorEmailPatternParameters) DeepCopy() *CommitAuthorEmailPatternParameters { if in == nil { return nil } - out := new(DefaultBranchList) + out := new(CommitAuthorEmailPatternParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DefaultBranchList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DefaultBranchObservation) DeepCopyInto(out *DefaultBranchObservation) { +func (in *CommitMessagePatternInitParameters) DeepCopyInto(out *CommitMessagePatternInitParameters) { *out = *in - if in.Branch != nil { - in, out := &in.Branch, &out.Branch + if in.Name != nil { + in, out := &in.Name, &out.Name *out = new(string) **out = **in } - if in.Etag != nil { - in, out := &in.Etag, &out.Etag - *out = new(string) + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) **out = **in } - if in.ID != nil { - in, out := &in.ID, &out.ID + if in.Operator != nil { + in, out := &in.Operator, &out.Operator *out = new(string) **out = **in } - if in.Rename != nil { - in, out := &in.Rename, &out.Rename - *out = new(bool) + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchObservation. -func (in *DefaultBranchObservation) DeepCopy() *DefaultBranchObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitMessagePatternInitParameters. +func (in *CommitMessagePatternInitParameters) DeepCopy() *CommitMessagePatternInitParameters { if in == nil { return nil } - out := new(DefaultBranchObservation) + out := new(CommitMessagePatternInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DefaultBranchParameters) DeepCopyInto(out *DefaultBranchParameters) { +func (in *CommitMessagePatternObservation) DeepCopyInto(out *CommitMessagePatternObservation) { *out = *in - if in.Branch != nil { - in, out := &in.Branch, &out.Branch + if in.Name != nil { + in, out := &in.Name, &out.Name *out = new(string) **out = **in } - if in.BranchRef != nil { - in, out := &in.BranchRef, &out.BranchRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in } - if in.BranchSelector != nil { - in, out := &in.BranchSelector, &out.BranchSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in } - if in.Rename != nil { - in, out := &in.Rename, &out.Rename - *out = new(bool) + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchParameters. -func (in *DefaultBranchParameters) DeepCopy() *DefaultBranchParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitMessagePatternObservation. +func (in *CommitMessagePatternObservation) DeepCopy() *CommitMessagePatternObservation { if in == nil { return nil } - out := new(DefaultBranchParameters) + out := new(CommitMessagePatternObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DefaultBranchSpec) DeepCopyInto(out *DefaultBranchSpec) { +func (in *CommitMessagePatternParameters) DeepCopyInto(out *CommitMessagePatternParameters) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchSpec. -func (in *DefaultBranchSpec) DeepCopy() *DefaultBranchSpec { - if in == nil { - return nil + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in } - out := new(DefaultBranchSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DefaultBranchStatus) DeepCopyInto(out *DefaultBranchStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchStatus. -func (in *DefaultBranchStatus) DeepCopy() *DefaultBranchStatus { - if in == nil { - return nil + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in } - out := new(DefaultBranchStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeployKey) DeepCopyInto(out *DeployKey) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKey. -func (in *DeployKey) DeepCopy() *DeployKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitMessagePatternParameters. +func (in *CommitMessagePatternParameters) DeepCopy() *CommitMessagePatternParameters { if in == nil { return nil } - out := new(DeployKey) + out := new(CommitMessagePatternParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeployKey) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeployKeyInitParameters) DeepCopyInto(out *DeployKeyInitParameters) { +func (in *CommitterEmailPatternInitParameters) DeepCopyInto(out *CommitterEmailPatternInitParameters) { *out = *in - out.KeySecretRef = in.KeySecretRef - if in.ReadOnly != nil { - in, out := &in.ReadOnly, &out.ReadOnly + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate *out = new(bool) **out = **in } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.Operator != nil { + in, out := &in.Operator, &out.Operator *out = new(string) **out = **in } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Title != nil { - in, out := &in.Title, &out.Title + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyInitParameters. -func (in *DeployKeyInitParameters) DeepCopy() *DeployKeyInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitterEmailPatternInitParameters. +func (in *CommitterEmailPatternInitParameters) DeepCopy() *CommitterEmailPatternInitParameters { if in == nil { return nil } - out := new(DeployKeyInitParameters) + out := new(CommitterEmailPatternInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeployKeyList) DeepCopyInto(out *DeployKeyList) { +func (in *CommitterEmailPatternObservation) DeepCopyInto(out *CommitterEmailPatternObservation) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DeployKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyList. -func (in *DeployKeyList) DeepCopy() *DeployKeyList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitterEmailPatternObservation. +func (in *CommitterEmailPatternObservation) DeepCopy() *CommitterEmailPatternObservation { if in == nil { return nil } - out := new(DeployKeyList) + out := new(CommitterEmailPatternObservation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeployKeyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeployKeyObservation) DeepCopyInto(out *DeployKeyObservation) { +func (in *CommitterEmailPatternParameters) DeepCopyInto(out *CommitterEmailPatternParameters) { *out = *in - if in.Etag != nil { - in, out := &in.Etag, &out.Etag - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID + if in.Name != nil { + in, out := &in.Name, &out.Name *out = new(string) **out = **in } - if in.ReadOnly != nil { - in, out := &in.ReadOnly, &out.ReadOnly + if in.Negate != nil { + in, out := &in.Negate, &out.Negate *out = new(bool) **out = **in } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.Operator != nil { + in, out := &in.Operator, &out.Operator *out = new(string) **out = **in } - if in.Title != nil { - in, out := &in.Title, &out.Title + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyObservation. -func (in *DeployKeyObservation) DeepCopy() *DeployKeyObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitterEmailPatternParameters. +func (in *CommitterEmailPatternParameters) DeepCopy() *CommitterEmailPatternParameters { if in == nil { return nil } - out := new(DeployKeyObservation) + out := new(CommitterEmailPatternParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeployKeyParameters) DeepCopyInto(out *DeployKeyParameters) { +func (in *ConditionsInitParameters) DeepCopyInto(out *ConditionsInitParameters) { *out = *in - out.KeySecretRef = in.KeySecretRef - if in.ReadOnly != nil { - in, out := &in.ReadOnly, &out.ReadOnly - *out = new(bool) - **out = **in - } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository - *out = new(string) - **out = **in - } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Title != nil { - in, out := &in.Title, &out.Title - *out = new(string) - **out = **in + if in.RefName != nil { + in, out := &in.RefName, &out.RefName + *out = make([]RefNameInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyParameters. -func (in *DeployKeyParameters) DeepCopy() *DeployKeyParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionsInitParameters. +func (in *ConditionsInitParameters) DeepCopy() *ConditionsInitParameters { if in == nil { return nil } - out := new(DeployKeyParameters) + out := new(ConditionsInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeployKeySpec) DeepCopyInto(out *DeployKeySpec) { +func (in *ConditionsObservation) DeepCopyInto(out *ConditionsObservation) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) + if in.RefName != nil { + in, out := &in.RefName, &out.RefName + *out = make([]RefNameObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeySpec. -func (in *DeployKeySpec) DeepCopy() *DeployKeySpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionsObservation. +func (in *ConditionsObservation) DeepCopy() *ConditionsObservation { if in == nil { return nil } - out := new(DeployKeySpec) + out := new(ConditionsObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeployKeyStatus) DeepCopyInto(out *DeployKeyStatus) { +func (in *ConditionsParameters) DeepCopyInto(out *ConditionsParameters) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + if in.RefName != nil { + in, out := &in.RefName, &out.RefName + *out = make([]RefNameParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyStatus. -func (in *DeployKeyStatus) DeepCopy() *DeployKeyStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionsParameters. +func (in *ConditionsParameters) DeepCopy() *ConditionsParameters { if in == nil { return nil } - out := new(DeployKeyStatus) + out := new(ConditionsParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentBranchPolicyInitParameters) DeepCopyInto(out *DeploymentBranchPolicyInitParameters) { +func (in *ConfigurationInitParameters) DeepCopyInto(out *ConfigurationInitParameters) { *out = *in - if in.CustomBranchPolicies != nil { - in, out := &in.CustomBranchPolicies, &out.CustomBranchPolicies - *out = new(bool) + if in.ContentType != nil { + in, out := &in.ContentType, &out.ContentType + *out = new(string) **out = **in } - if in.ProtectedBranches != nil { - in, out := &in.ProtectedBranches, &out.ProtectedBranches + if in.InsecureSSL != nil { + in, out := &in.InsecureSSL, &out.InsecureSSL *out = new(bool) **out = **in } + if in.SecretSecretRef != nil { + in, out := &in.SecretSecretRef, &out.SecretSecretRef + *out = new(v1.SecretKeySelector) + **out = **in + } + out.URLSecretRef = in.URLSecretRef } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentBranchPolicyInitParameters. -func (in *DeploymentBranchPolicyInitParameters) DeepCopy() *DeploymentBranchPolicyInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationInitParameters. +func (in *ConfigurationInitParameters) DeepCopy() *ConfigurationInitParameters { if in == nil { return nil } - out := new(DeploymentBranchPolicyInitParameters) + out := new(ConfigurationInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentBranchPolicyObservation) DeepCopyInto(out *DeploymentBranchPolicyObservation) { +func (in *ConfigurationObservation) DeepCopyInto(out *ConfigurationObservation) { *out = *in - if in.CustomBranchPolicies != nil { - in, out := &in.CustomBranchPolicies, &out.CustomBranchPolicies - *out = new(bool) + if in.ContentType != nil { + in, out := &in.ContentType, &out.ContentType + *out = new(string) **out = **in } - if in.ProtectedBranches != nil { - in, out := &in.ProtectedBranches, &out.ProtectedBranches + if in.InsecureSSL != nil { + in, out := &in.InsecureSSL, &out.InsecureSSL *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentBranchPolicyObservation. -func (in *DeploymentBranchPolicyObservation) DeepCopy() *DeploymentBranchPolicyObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationObservation. +func (in *ConfigurationObservation) DeepCopy() *ConfigurationObservation { if in == nil { return nil } - out := new(DeploymentBranchPolicyObservation) + out := new(ConfigurationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentBranchPolicyParameters) DeepCopyInto(out *DeploymentBranchPolicyParameters) { +func (in *ConfigurationParameters) DeepCopyInto(out *ConfigurationParameters) { *out = *in - if in.CustomBranchPolicies != nil { - in, out := &in.CustomBranchPolicies, &out.CustomBranchPolicies - *out = new(bool) + if in.ContentType != nil { + in, out := &in.ContentType, &out.ContentType + *out = new(string) **out = **in } - if in.ProtectedBranches != nil { - in, out := &in.ProtectedBranches, &out.ProtectedBranches + if in.InsecureSSL != nil { + in, out := &in.InsecureSSL, &out.InsecureSSL *out = new(bool) **out = **in } + if in.SecretSecretRef != nil { + in, out := &in.SecretSecretRef, &out.SecretSecretRef + *out = new(v1.SecretKeySelector) + **out = **in + } + out.URLSecretRef = in.URLSecretRef } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentBranchPolicyParameters. -func (in *DeploymentBranchPolicyParameters) DeepCopy() *DeploymentBranchPolicyParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationParameters. +func (in *ConfigurationParameters) DeepCopy() *ConfigurationParameters { if in == nil { return nil } - out := new(DeploymentBranchPolicyParameters) + out := new(ConfigurationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Environment) DeepCopyInto(out *Environment) { +func (in *DefaultBranch) DeepCopyInto(out *DefaultBranch) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1293,18 +1379,18 @@ func (in *Environment) DeepCopyInto(out *Environment) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Environment. -func (in *Environment) DeepCopy() *Environment { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranch. +func (in *DefaultBranch) DeepCopy() *DefaultBranch { if in == nil { return nil } - out := new(Environment) + out := new(DefaultBranch) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Environment) DeepCopyObject() runtime.Object { +func (in *DefaultBranch) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1312,95 +1398,66 @@ func (in *Environment) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentInitParameters) DeepCopyInto(out *EnvironmentInitParameters) { +func (in *DefaultBranchInitParameters) DeepCopyInto(out *DefaultBranchInitParameters) { *out = *in - if in.CanAdminsBypass != nil { - in, out := &in.CanAdminsBypass, &out.CanAdminsBypass - *out = new(bool) - **out = **in - } - if in.DeploymentBranchPolicy != nil { - in, out := &in.DeploymentBranchPolicy, &out.DeploymentBranchPolicy - *out = make([]DeploymentBranchPolicyInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment - *out = new(string) - **out = **in - } - if in.PreventSelfReview != nil { - in, out := &in.PreventSelfReview, &out.PreventSelfReview - *out = new(bool) - **out = **in - } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.Branch != nil { + in, out := &in.Branch, &out.Branch *out = new(string) **out = **in } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef + if in.BranchRef != nil { + in, out := &in.BranchRef, &out.BranchRef *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector + if in.BranchSelector != nil { + in, out := &in.BranchSelector, &out.BranchSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Reviewers != nil { - in, out := &in.Reviewers, &out.Reviewers - *out = make([]ReviewersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.WaitTimer != nil { - in, out := &in.WaitTimer, &out.WaitTimer - *out = new(int64) + if in.Rename != nil { + in, out := &in.Rename, &out.Rename + *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentInitParameters. -func (in *EnvironmentInitParameters) DeepCopy() *EnvironmentInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchInitParameters. +func (in *DefaultBranchInitParameters) DeepCopy() *DefaultBranchInitParameters { if in == nil { return nil } - out := new(EnvironmentInitParameters) + out := new(DefaultBranchInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList) { +func (in *DefaultBranchList) DeepCopyInto(out *DefaultBranchList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Environment, len(*in)) + *out = make([]DefaultBranch, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentList. -func (in *EnvironmentList) DeepCopy() *EnvironmentList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchList. +func (in *DefaultBranchList) DeepCopy() *DefaultBranchList { if in == nil { return nil } - out := new(EnvironmentList) + out := new(DefaultBranchList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EnvironmentList) DeepCopyObject() runtime.Object { +func (in *DefaultBranchList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1408,22 +1465,15 @@ func (in *EnvironmentList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { +func (in *DefaultBranchObservation) DeepCopyInto(out *DefaultBranchObservation) { *out = *in - if in.CanAdminsBypass != nil { - in, out := &in.CanAdminsBypass, &out.CanAdminsBypass - *out = new(bool) + if in.Branch != nil { + in, out := &in.Branch, &out.Branch + *out = new(string) **out = **in } - if in.DeploymentBranchPolicy != nil { - in, out := &in.DeploymentBranchPolicy, &out.DeploymentBranchPolicy - *out = make([]DeploymentBranchPolicyObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment + if in.Etag != nil { + in, out := &in.Etag, &out.Etag *out = new(string) **out = **in } @@ -1432,276 +1482,187 @@ func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { *out = new(string) **out = **in } - if in.PreventSelfReview != nil { - in, out := &in.PreventSelfReview, &out.PreventSelfReview + if in.Rename != nil { + in, out := &in.Rename, &out.Rename *out = new(bool) **out = **in } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository - *out = new(string) - **out = **in - } - if in.Reviewers != nil { - in, out := &in.Reviewers, &out.Reviewers - *out = make([]ReviewersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.WaitTimer != nil { - in, out := &in.WaitTimer, &out.WaitTimer - *out = new(int64) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation. -func (in *EnvironmentObservation) DeepCopy() *EnvironmentObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchObservation. +func (in *DefaultBranchObservation) DeepCopy() *DefaultBranchObservation { if in == nil { return nil } - out := new(EnvironmentObservation) + out := new(DefaultBranchObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { +func (in *DefaultBranchParameters) DeepCopyInto(out *DefaultBranchParameters) { *out = *in - if in.CanAdminsBypass != nil { - in, out := &in.CanAdminsBypass, &out.CanAdminsBypass - *out = new(bool) - **out = **in - } - if in.DeploymentBranchPolicy != nil { - in, out := &in.DeploymentBranchPolicy, &out.DeploymentBranchPolicy - *out = make([]DeploymentBranchPolicyParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment - *out = new(string) - **out = **in - } - if in.PreventSelfReview != nil { - in, out := &in.PreventSelfReview, &out.PreventSelfReview - *out = new(bool) - **out = **in - } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.Branch != nil { + in, out := &in.Branch, &out.Branch *out = new(string) **out = **in } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef + if in.BranchRef != nil { + in, out := &in.BranchRef, &out.BranchRef *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector + if in.BranchSelector != nil { + in, out := &in.BranchSelector, &out.BranchSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Reviewers != nil { - in, out := &in.Reviewers, &out.Reviewers - *out = make([]ReviewersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.WaitTimer != nil { - in, out := &in.WaitTimer, &out.WaitTimer - *out = new(int64) + if in.Rename != nil { + in, out := &in.Rename, &out.Rename + *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters. -func (in *EnvironmentParameters) DeepCopy() *EnvironmentParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchParameters. +func (in *DefaultBranchParameters) DeepCopy() *DefaultBranchParameters { if in == nil { return nil } - out := new(EnvironmentParameters) + out := new(DefaultBranchParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec) { +func (in *DefaultBranchSpec) DeepCopyInto(out *DefaultBranchSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentSpec. -func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchSpec. +func (in *DefaultBranchSpec) DeepCopy() *DefaultBranchSpec { if in == nil { return nil } - out := new(EnvironmentSpec) + out := new(DefaultBranchSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus) { +func (in *DefaultBranchStatus) DeepCopyInto(out *DefaultBranchStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStatus. -func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultBranchStatus. +func (in *DefaultBranchStatus) DeepCopy() *DefaultBranchStatus { if in == nil { return nil } - out := new(EnvironmentStatus) + out := new(DefaultBranchStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PagesInitParameters) DeepCopyInto(out *PagesInitParameters) { +func (in *DeployKey) DeepCopyInto(out *DeployKey) { *out = *in - if in.BuildType != nil { - in, out := &in.BuildType, &out.BuildType - *out = new(string) - **out = **in - } - if in.Cname != nil { - in, out := &in.Cname, &out.Cname - *out = new(string) - **out = **in - } - if in.Source != nil { - in, out := &in.Source, &out.Source - *out = make([]SourceInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PagesInitParameters. -func (in *PagesInitParameters) DeepCopy() *PagesInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKey. +func (in *DeployKey) DeepCopy() *DeployKey { if in == nil { return nil } - out := new(PagesInitParameters) + out := new(DeployKey) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DeployKey) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PagesObservation) DeepCopyInto(out *PagesObservation) { +func (in *DeployKeyInitParameters) DeepCopyInto(out *DeployKeyInitParameters) { *out = *in - if in.BuildType != nil { - in, out := &in.BuildType, &out.BuildType - *out = new(string) - **out = **in - } - if in.Cname != nil { - in, out := &in.Cname, &out.Cname - *out = new(string) - **out = **in - } - if in.Custom404 != nil { - in, out := &in.Custom404, &out.Custom404 + out.KeySecretRef = in.KeySecretRef + if in.ReadOnly != nil { + in, out := &in.ReadOnly, &out.ReadOnly *out = new(bool) **out = **in } - if in.HTMLURL != nil { - in, out := &in.HTMLURL, &out.HTMLURL + if in.Repository != nil { + in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } - if in.Source != nil { - in, out := &in.Source, &out.Source - *out = make([]SourceObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(string) - **out = **in + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.URL != nil { - in, out := &in.URL, &out.URL + if in.Title != nil { + in, out := &in.Title, &out.Title *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PagesObservation. -func (in *PagesObservation) DeepCopy() *PagesObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyInitParameters. +func (in *DeployKeyInitParameters) DeepCopy() *DeployKeyInitParameters { if in == nil { return nil } - out := new(PagesObservation) + out := new(DeployKeyInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PagesParameters) DeepCopyInto(out *PagesParameters) { +func (in *DeployKeyList) DeepCopyInto(out *DeployKeyList) { *out = *in - if in.BuildType != nil { - in, out := &in.BuildType, &out.BuildType - *out = new(string) - **out = **in - } - if in.Cname != nil { - in, out := &in.Cname, &out.Cname - *out = new(string) - **out = **in - } - if in.Source != nil { - in, out := &in.Source, &out.Source - *out = make([]SourceParameters, len(*in)) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DeployKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PagesParameters. -func (in *PagesParameters) DeepCopy() *PagesParameters { - if in == nil { - return nil - } - out := new(PagesParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PullRequest) DeepCopyInto(out *PullRequest) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequest. -func (in *PullRequest) DeepCopy() *PullRequest { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyList. +func (in *DeployKeyList) DeepCopy() *DeployKeyList { if in == nil { return nil } - out := new(PullRequest) + out := new(DeployKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PullRequest) DeepCopyObject() runtime.Object { +func (in *DeployKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1709,58 +1670,69 @@ func (in *PullRequest) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PullRequestInitParameters) DeepCopyInto(out *PullRequestInitParameters) { +func (in *DeployKeyObservation) DeepCopyInto(out *DeployKeyObservation) { *out = *in - if in.BaseRef != nil { - in, out := &in.BaseRef, &out.BaseRef + if in.Etag != nil { + in, out := &in.Etag, &out.Etag *out = new(string) **out = **in } - if in.BaseRepository != nil { - in, out := &in.BaseRepository, &out.BaseRepository + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.BaseRepositoryRef != nil { - in, out := &in.BaseRepositoryRef, &out.BaseRepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.BaseRepositorySelector != nil { - in, out := &in.BaseRepositorySelector, &out.BaseRepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.ReadOnly != nil { + in, out := &in.ReadOnly, &out.ReadOnly + *out = new(bool) + **out = **in } - if in.Body != nil { - in, out := &in.Body, &out.Body + if in.Repository != nil { + in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } - if in.HeadRef != nil { - in, out := &in.HeadRef, &out.HeadRef + if in.Title != nil { + in, out := &in.Title, &out.Title *out = new(string) **out = **in } - if in.HeadRefRef != nil { - in, out := &in.HeadRefRef, &out.HeadRefRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.HeadRefSelector != nil { - in, out := &in.HeadRefSelector, &out.HeadRefSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyObservation. +func (in *DeployKeyObservation) DeepCopy() *DeployKeyObservation { + if in == nil { + return nil } - if in.MaintainerCanModify != nil { - in, out := &in.MaintainerCanModify, &out.MaintainerCanModify + out := new(DeployKeyObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DeployKeyParameters) DeepCopyInto(out *DeployKeyParameters) { + *out = *in + out.KeySecretRef = in.KeySecretRef + if in.ReadOnly != nil { + in, out := &in.ReadOnly, &out.ReadOnly *out = new(bool) **out = **in } - if in.Owner != nil { - in, out := &in.Owner, &out.Owner + if in.Repository != nil { + in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Title != nil { in, out := &in.Title, &out.Title *out = new(string) @@ -1768,288 +1740,128 @@ func (in *PullRequestInitParameters) DeepCopyInto(out *PullRequestInitParameters } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestInitParameters. -func (in *PullRequestInitParameters) DeepCopy() *PullRequestInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyParameters. +func (in *DeployKeyParameters) DeepCopy() *DeployKeyParameters { if in == nil { return nil } - out := new(PullRequestInitParameters) + out := new(DeployKeyParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PullRequestList) DeepCopyInto(out *PullRequestList) { +func (in *DeployKeySpec) DeepCopyInto(out *DeployKeySpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PullRequest, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestList. -func (in *PullRequestList) DeepCopy() *PullRequestList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeySpec. +func (in *DeployKeySpec) DeepCopy() *DeployKeySpec { if in == nil { return nil } - out := new(PullRequestList) + out := new(DeployKeySpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PullRequestList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DeployKeyStatus) DeepCopyInto(out *DeployKeyStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployKeyStatus. +func (in *DeployKeyStatus) DeepCopy() *DeployKeyStatus { + if in == nil { + return nil } - return nil + out := new(DeployKeyStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PullRequestObservation) DeepCopyInto(out *PullRequestObservation) { +func (in *DeploymentBranchPolicyInitParameters) DeepCopyInto(out *DeploymentBranchPolicyInitParameters) { *out = *in - if in.BaseRef != nil { - in, out := &in.BaseRef, &out.BaseRef - *out = new(string) + if in.CustomBranchPolicies != nil { + in, out := &in.CustomBranchPolicies, &out.CustomBranchPolicies + *out = new(bool) **out = **in } - if in.BaseRepository != nil { - in, out := &in.BaseRepository, &out.BaseRepository - *out = new(string) + if in.ProtectedBranches != nil { + in, out := &in.ProtectedBranches, &out.ProtectedBranches + *out = new(bool) **out = **in } - if in.BaseSha != nil { - in, out := &in.BaseSha, &out.BaseSha - *out = new(string) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentBranchPolicyInitParameters. +func (in *DeploymentBranchPolicyInitParameters) DeepCopy() *DeploymentBranchPolicyInitParameters { + if in == nil { + return nil } - if in.Body != nil { - in, out := &in.Body, &out.Body - *out = new(string) + out := new(DeploymentBranchPolicyInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DeploymentBranchPolicyObservation) DeepCopyInto(out *DeploymentBranchPolicyObservation) { + *out = *in + if in.CustomBranchPolicies != nil { + in, out := &in.CustomBranchPolicies, &out.CustomBranchPolicies + *out = new(bool) **out = **in } - if in.Draft != nil { - in, out := &in.Draft, &out.Draft + if in.ProtectedBranches != nil { + in, out := &in.ProtectedBranches, &out.ProtectedBranches *out = new(bool) **out = **in } - if in.HeadRef != nil { - in, out := &in.HeadRef, &out.HeadRef - *out = new(string) - **out = **in - } - if in.HeadSha != nil { - in, out := &in.HeadSha, &out.HeadSha - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.MaintainerCanModify != nil { - in, out := &in.MaintainerCanModify, &out.MaintainerCanModify - *out = new(bool) - **out = **in - } - if in.Number != nil { - in, out := &in.Number, &out.Number - *out = new(int64) - **out = **in - } - if in.OpenedAt != nil { - in, out := &in.OpenedAt, &out.OpenedAt - *out = new(int64) - **out = **in - } - if in.OpenedBy != nil { - in, out := &in.OpenedBy, &out.OpenedBy - *out = new(string) - **out = **in - } - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(string) - **out = **in - } - if in.State != nil { - in, out := &in.State, &out.State - *out = new(string) - **out = **in - } - if in.Title != nil { - in, out := &in.Title, &out.Title - *out = new(string) - **out = **in - } - if in.UpdatedAt != nil { - in, out := &in.UpdatedAt, &out.UpdatedAt - *out = new(int64) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestObservation. -func (in *PullRequestObservation) DeepCopy() *PullRequestObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentBranchPolicyObservation. +func (in *DeploymentBranchPolicyObservation) DeepCopy() *DeploymentBranchPolicyObservation { if in == nil { return nil } - out := new(PullRequestObservation) + out := new(DeploymentBranchPolicyObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PullRequestParameters) DeepCopyInto(out *PullRequestParameters) { +func (in *DeploymentBranchPolicyParameters) DeepCopyInto(out *DeploymentBranchPolicyParameters) { *out = *in - if in.BaseRef != nil { - in, out := &in.BaseRef, &out.BaseRef - *out = new(string) - **out = **in - } - if in.BaseRepository != nil { - in, out := &in.BaseRepository, &out.BaseRepository - *out = new(string) - **out = **in - } - if in.BaseRepositoryRef != nil { - in, out := &in.BaseRepositoryRef, &out.BaseRepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.BaseRepositorySelector != nil { - in, out := &in.BaseRepositorySelector, &out.BaseRepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Body != nil { - in, out := &in.Body, &out.Body - *out = new(string) - **out = **in - } - if in.HeadRef != nil { - in, out := &in.HeadRef, &out.HeadRef - *out = new(string) - **out = **in - } - if in.HeadRefRef != nil { - in, out := &in.HeadRefRef, &out.HeadRefRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.HeadRefSelector != nil { - in, out := &in.HeadRefSelector, &out.HeadRefSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.MaintainerCanModify != nil { - in, out := &in.MaintainerCanModify, &out.MaintainerCanModify + if in.CustomBranchPolicies != nil { + in, out := &in.CustomBranchPolicies, &out.CustomBranchPolicies *out = new(bool) **out = **in } - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(string) - **out = **in - } - if in.Title != nil { - in, out := &in.Title, &out.Title - *out = new(string) + if in.ProtectedBranches != nil { + in, out := &in.ProtectedBranches, &out.ProtectedBranches + *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestParameters. -func (in *PullRequestParameters) DeepCopy() *PullRequestParameters { - if in == nil { - return nil - } - out := new(PullRequestParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PullRequestSpec) DeepCopyInto(out *PullRequestSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestSpec. -func (in *PullRequestSpec) DeepCopy() *PullRequestSpec { - if in == nil { - return nil - } - out := new(PullRequestSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PullRequestStatus) DeepCopyInto(out *PullRequestStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestStatus. -func (in *PullRequestStatus) DeepCopy() *PullRequestStatus { - if in == nil { - return nil - } - out := new(PullRequestStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Repository) DeepCopyInto(out *Repository) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository. -func (in *Repository) DeepCopy() *Repository { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentBranchPolicyParameters. +func (in *DeploymentBranchPolicyParameters) DeepCopy() *DeploymentBranchPolicyParameters { if in == nil { return nil } - out := new(Repository) + out := new(DeploymentBranchPolicyParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Repository) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryAutolinkReference) DeepCopyInto(out *RepositoryAutolinkReference) { +func (in *Environment) DeepCopyInto(out *Environment) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2057,18 +1869,18 @@ func (in *RepositoryAutolinkReference) DeepCopyInto(out *RepositoryAutolinkRefer in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReference. -func (in *RepositoryAutolinkReference) DeepCopy() *RepositoryAutolinkReference { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Environment. +func (in *Environment) DeepCopy() *Environment { if in == nil { return nil } - out := new(RepositoryAutolinkReference) + out := new(Environment) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryAutolinkReference) DeepCopyObject() runtime.Object { +func (in *Environment) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2076,18 +1888,30 @@ func (in *RepositoryAutolinkReference) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryAutolinkReferenceInitParameters) DeepCopyInto(out *RepositoryAutolinkReferenceInitParameters) { +func (in *EnvironmentInitParameters) DeepCopyInto(out *EnvironmentInitParameters) { *out = *in - if in.IsAlphanumeric != nil { - in, out := &in.IsAlphanumeric, &out.IsAlphanumeric + if in.CanAdminsBypass != nil { + in, out := &in.CanAdminsBypass, &out.CanAdminsBypass *out = new(bool) **out = **in } - if in.KeyPrefix != nil { - in, out := &in.KeyPrefix, &out.KeyPrefix + if in.DeploymentBranchPolicy != nil { + in, out := &in.DeploymentBranchPolicy, &out.DeploymentBranchPolicy + *out = make([]DeploymentBranchPolicyInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Environment != nil { + in, out := &in.Environment, &out.Environment *out = new(string) **out = **in } + if in.PreventSelfReview != nil { + in, out := &in.PreventSelfReview, &out.PreventSelfReview + *out = new(bool) + **out = **in + } if in.Repository != nil { in, out := &in.Repository, &out.Repository *out = new(string) @@ -2103,49 +1927,56 @@ func (in *RepositoryAutolinkReferenceInitParameters) DeepCopyInto(out *Repositor *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.TargetURLTemplate != nil { - in, out := &in.TargetURLTemplate, &out.TargetURLTemplate - *out = new(string) + if in.Reviewers != nil { + in, out := &in.Reviewers, &out.Reviewers + *out = make([]ReviewersInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.WaitTimer != nil { + in, out := &in.WaitTimer, &out.WaitTimer + *out = new(int64) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceInitParameters. -func (in *RepositoryAutolinkReferenceInitParameters) DeepCopy() *RepositoryAutolinkReferenceInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentInitParameters. +func (in *EnvironmentInitParameters) DeepCopy() *EnvironmentInitParameters { if in == nil { return nil } - out := new(RepositoryAutolinkReferenceInitParameters) + out := new(EnvironmentInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryAutolinkReferenceList) DeepCopyInto(out *RepositoryAutolinkReferenceList) { +func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]RepositoryAutolinkReference, len(*in)) + *out = make([]Environment, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceList. -func (in *RepositoryAutolinkReferenceList) DeepCopy() *RepositoryAutolinkReferenceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentList. +func (in *EnvironmentList) DeepCopy() *EnvironmentList { if in == nil { return nil } - out := new(RepositoryAutolinkReferenceList) + out := new(EnvironmentList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryAutolinkReferenceList) DeepCopyObject() runtime.Object { +func (in *EnvironmentList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2153,10 +1984,22 @@ func (in *RepositoryAutolinkReferenceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryAutolinkReferenceObservation) DeepCopyInto(out *RepositoryAutolinkReferenceObservation) { +func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { *out = *in - if in.Etag != nil { - in, out := &in.Etag, &out.Etag + if in.CanAdminsBypass != nil { + in, out := &in.CanAdminsBypass, &out.CanAdminsBypass + *out = new(bool) + **out = **in + } + if in.DeploymentBranchPolicy != nil { + in, out := &in.DeploymentBranchPolicy, &out.DeploymentBranchPolicy + *out = make([]DeploymentBranchPolicyObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Environment != nil { + in, out := &in.Environment, &out.Environment *out = new(string) **out = **in } @@ -2165,51 +2008,65 @@ func (in *RepositoryAutolinkReferenceObservation) DeepCopyInto(out *RepositoryAu *out = new(string) **out = **in } - if in.IsAlphanumeric != nil { - in, out := &in.IsAlphanumeric, &out.IsAlphanumeric + if in.PreventSelfReview != nil { + in, out := &in.PreventSelfReview, &out.PreventSelfReview *out = new(bool) **out = **in } - if in.KeyPrefix != nil { - in, out := &in.KeyPrefix, &out.KeyPrefix - *out = new(string) - **out = **in - } if in.Repository != nil { in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } - if in.TargetURLTemplate != nil { - in, out := &in.TargetURLTemplate, &out.TargetURLTemplate - *out = new(string) + if in.Reviewers != nil { + in, out := &in.Reviewers, &out.Reviewers + *out = make([]ReviewersObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.WaitTimer != nil { + in, out := &in.WaitTimer, &out.WaitTimer + *out = new(int64) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceObservation. -func (in *RepositoryAutolinkReferenceObservation) DeepCopy() *RepositoryAutolinkReferenceObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation. +func (in *EnvironmentObservation) DeepCopy() *EnvironmentObservation { if in == nil { return nil } - out := new(RepositoryAutolinkReferenceObservation) + out := new(EnvironmentObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryAutolinkReferenceParameters) DeepCopyInto(out *RepositoryAutolinkReferenceParameters) { +func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { *out = *in - if in.IsAlphanumeric != nil { - in, out := &in.IsAlphanumeric, &out.IsAlphanumeric + if in.CanAdminsBypass != nil { + in, out := &in.CanAdminsBypass, &out.CanAdminsBypass *out = new(bool) **out = **in } - if in.KeyPrefix != nil { - in, out := &in.KeyPrefix, &out.KeyPrefix + if in.DeploymentBranchPolicy != nil { + in, out := &in.DeploymentBranchPolicy, &out.DeploymentBranchPolicy + *out = make([]DeploymentBranchPolicyParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Environment != nil { + in, out := &in.Environment, &out.Environment *out = new(string) **out = **in } + if in.PreventSelfReview != nil { + in, out := &in.PreventSelfReview, &out.PreventSelfReview + *out = new(bool) + **out = **in + } if in.Repository != nil { in, out := &in.Repository, &out.Repository *out = new(string) @@ -2225,156 +2082,202 @@ func (in *RepositoryAutolinkReferenceParameters) DeepCopyInto(out *RepositoryAut *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.TargetURLTemplate != nil { - in, out := &in.TargetURLTemplate, &out.TargetURLTemplate - *out = new(string) + if in.Reviewers != nil { + in, out := &in.Reviewers, &out.Reviewers + *out = make([]ReviewersParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.WaitTimer != nil { + in, out := &in.WaitTimer, &out.WaitTimer + *out = new(int64) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceParameters. -func (in *RepositoryAutolinkReferenceParameters) DeepCopy() *RepositoryAutolinkReferenceParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters. +func (in *EnvironmentParameters) DeepCopy() *EnvironmentParameters { if in == nil { return nil } - out := new(RepositoryAutolinkReferenceParameters) + out := new(EnvironmentParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryAutolinkReferenceSpec) DeepCopyInto(out *RepositoryAutolinkReferenceSpec) { +func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceSpec. -func (in *RepositoryAutolinkReferenceSpec) DeepCopy() *RepositoryAutolinkReferenceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentSpec. +func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec { if in == nil { return nil } - out := new(RepositoryAutolinkReferenceSpec) + out := new(EnvironmentSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryAutolinkReferenceStatus) DeepCopyInto(out *RepositoryAutolinkReferenceStatus) { +func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceStatus. -func (in *RepositoryAutolinkReferenceStatus) DeepCopy() *RepositoryAutolinkReferenceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStatus. +func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus { if in == nil { return nil } - out := new(RepositoryAutolinkReferenceStatus) + out := new(EnvironmentStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryCollaborator) DeepCopyInto(out *RepositoryCollaborator) { +func (in *PagesInitParameters) DeepCopyInto(out *PagesInitParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.BuildType != nil { + in, out := &in.BuildType, &out.BuildType + *out = new(string) + **out = **in + } + if in.Cname != nil { + in, out := &in.Cname, &out.Cname + *out = new(string) + **out = **in + } + if in.Source != nil { + in, out := &in.Source, &out.Source + *out = make([]SourceInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaborator. -func (in *RepositoryCollaborator) DeepCopy() *RepositoryCollaborator { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PagesInitParameters. +func (in *PagesInitParameters) DeepCopy() *PagesInitParameters { if in == nil { return nil } - out := new(RepositoryCollaborator) + out := new(PagesInitParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryCollaborator) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryCollaboratorInitParameters) DeepCopyInto(out *RepositoryCollaboratorInitParameters) { +func (in *PagesObservation) DeepCopyInto(out *PagesObservation) { *out = *in - if in.Permission != nil { - in, out := &in.Permission, &out.Permission + if in.BuildType != nil { + in, out := &in.BuildType, &out.BuildType *out = new(string) **out = **in } - if in.PermissionDiffSuppression != nil { - in, out := &in.PermissionDiffSuppression, &out.PermissionDiffSuppression + if in.Cname != nil { + in, out := &in.Cname, &out.Cname + *out = new(string) + **out = **in + } + if in.Custom404 != nil { + in, out := &in.Custom404, &out.Custom404 *out = new(bool) **out = **in } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.HTMLURL != nil { + in, out := &in.HTMLURL, &out.HTMLURL *out = new(string) **out = **in } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) + if in.Source != nil { + in, out := &in.Source, &out.Source + *out = make([]SourceObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.Status != nil { + in, out := &in.Status, &out.Status + *out = new(string) + **out = **in } - if in.Username != nil { - in, out := &in.Username, &out.Username + if in.URL != nil { + in, out := &in.URL, &out.URL *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorInitParameters. -func (in *RepositoryCollaboratorInitParameters) DeepCopy() *RepositoryCollaboratorInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PagesObservation. +func (in *PagesObservation) DeepCopy() *PagesObservation { if in == nil { return nil } - out := new(RepositoryCollaboratorInitParameters) + out := new(PagesObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryCollaboratorList) DeepCopyInto(out *RepositoryCollaboratorList) { +func (in *PagesParameters) DeepCopyInto(out *PagesParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RepositoryCollaborator, len(*in)) + if in.BuildType != nil { + in, out := &in.BuildType, &out.BuildType + *out = new(string) + **out = **in + } + if in.Cname != nil { + in, out := &in.Cname, &out.Cname + *out = new(string) + **out = **in + } + if in.Source != nil { + in, out := &in.Source, &out.Source + *out = make([]SourceParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorList. -func (in *RepositoryCollaboratorList) DeepCopy() *RepositoryCollaboratorList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PagesParameters. +func (in *PagesParameters) DeepCopy() *PagesParameters { if in == nil { return nil } - out := new(RepositoryCollaboratorList) + out := new(PagesParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PullRequest) DeepCopyInto(out *PullRequest) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequest. +func (in *PullRequest) DeepCopy() *PullRequest { + if in == nil { + return nil + } + out := new(PullRequest) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryCollaboratorList) DeepCopyObject() runtime.Object { +func (in *PullRequest) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2382,151 +2285,101 @@ func (in *RepositoryCollaboratorList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryCollaboratorObservation) DeepCopyInto(out *RepositoryCollaboratorObservation) { +func (in *PullRequestInitParameters) DeepCopyInto(out *PullRequestInitParameters) { *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID + if in.BaseRef != nil { + in, out := &in.BaseRef, &out.BaseRef *out = new(string) **out = **in } - if in.InvitationID != nil { - in, out := &in.InvitationID, &out.InvitationID + if in.BaseRepository != nil { + in, out := &in.BaseRepository, &out.BaseRepository *out = new(string) **out = **in } - if in.Permission != nil { - in, out := &in.Permission, &out.Permission - *out = new(string) - **out = **in + if in.BaseRepositoryRef != nil { + in, out := &in.BaseRepositoryRef, &out.BaseRepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.PermissionDiffSuppression != nil { - in, out := &in.PermissionDiffSuppression, &out.PermissionDiffSuppression - *out = new(bool) - **out = **in + if in.BaseRepositorySelector != nil { + in, out := &in.BaseRepositorySelector, &out.BaseRepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.Body != nil { + in, out := &in.Body, &out.Body *out = new(string) **out = **in } - if in.Username != nil { - in, out := &in.Username, &out.Username + if in.HeadRef != nil { + in, out := &in.HeadRef, &out.HeadRef *out = new(string) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorObservation. -func (in *RepositoryCollaboratorObservation) DeepCopy() *RepositoryCollaboratorObservation { - if in == nil { - return nil + if in.HeadRefRef != nil { + in, out := &in.HeadRefRef, &out.HeadRefRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - out := new(RepositoryCollaboratorObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryCollaboratorParameters) DeepCopyInto(out *RepositoryCollaboratorParameters) { - *out = *in - if in.Permission != nil { - in, out := &in.Permission, &out.Permission - *out = new(string) - **out = **in + if in.HeadRefSelector != nil { + in, out := &in.HeadRefSelector, &out.HeadRefSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.PermissionDiffSuppression != nil { - in, out := &in.PermissionDiffSuppression, &out.PermissionDiffSuppression + if in.MaintainerCanModify != nil { + in, out := &in.MaintainerCanModify, &out.MaintainerCanModify *out = new(bool) **out = **in } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.Owner != nil { + in, out := &in.Owner, &out.Owner *out = new(string) **out = **in } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Username != nil { - in, out := &in.Username, &out.Username + if in.Title != nil { + in, out := &in.Title, &out.Title *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorParameters. -func (in *RepositoryCollaboratorParameters) DeepCopy() *RepositoryCollaboratorParameters { - if in == nil { - return nil - } - out := new(RepositoryCollaboratorParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryCollaboratorSpec) DeepCopyInto(out *RepositoryCollaboratorSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorSpec. -func (in *RepositoryCollaboratorSpec) DeepCopy() *RepositoryCollaboratorSpec { - if in == nil { - return nil - } - out := new(RepositoryCollaboratorSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryCollaboratorStatus) DeepCopyInto(out *RepositoryCollaboratorStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorStatus. -func (in *RepositoryCollaboratorStatus) DeepCopy() *RepositoryCollaboratorStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestInitParameters. +func (in *PullRequestInitParameters) DeepCopy() *PullRequestInitParameters { if in == nil { return nil } - out := new(RepositoryCollaboratorStatus) + out := new(PullRequestInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryFile) DeepCopyInto(out *RepositoryFile) { +func (in *PullRequestList) DeepCopyInto(out *PullRequestList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PullRequest, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFile. -func (in *RepositoryFile) DeepCopy() *RepositoryFile { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestList. +func (in *PullRequestList) DeepCopy() *PullRequestList { if in == nil { return nil } - out := new(RepositoryFile) + out := new(PullRequestList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryFile) DeepCopyObject() runtime.Object { +func (in *PullRequestList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2534,361 +2387,1676 @@ func (in *RepositoryFile) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryFileInitParameters) DeepCopyInto(out *RepositoryFileInitParameters) { +func (in *PullRequestObservation) DeepCopyInto(out *PullRequestObservation) { *out = *in - if in.AutocreateBranch != nil { - in, out := &in.AutocreateBranch, &out.AutocreateBranch - *out = new(bool) + if in.BaseRef != nil { + in, out := &in.BaseRef, &out.BaseRef + *out = new(string) **out = **in } - if in.AutocreateBranchSourceBranch != nil { - in, out := &in.AutocreateBranchSourceBranch, &out.AutocreateBranchSourceBranch + if in.BaseRepository != nil { + in, out := &in.BaseRepository, &out.BaseRepository *out = new(string) **out = **in } - if in.AutocreateBranchSourceSha != nil { - in, out := &in.AutocreateBranchSourceSha, &out.AutocreateBranchSourceSha + if in.BaseSha != nil { + in, out := &in.BaseSha, &out.BaseSha *out = new(string) **out = **in } - if in.Branch != nil { - in, out := &in.Branch, &out.Branch + if in.Body != nil { + in, out := &in.Body, &out.Body *out = new(string) **out = **in } - if in.BranchRef != nil { - in, out := &in.BranchRef, &out.BranchRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.BranchSelector != nil { - in, out := &in.BranchSelector, &out.BranchSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.Draft != nil { + in, out := &in.Draft, &out.Draft + *out = new(bool) + **out = **in } - if in.CommitAuthor != nil { - in, out := &in.CommitAuthor, &out.CommitAuthor + if in.HeadRef != nil { + in, out := &in.HeadRef, &out.HeadRef *out = new(string) **out = **in } - if in.CommitEmail != nil { - in, out := &in.CommitEmail, &out.CommitEmail + if in.HeadSha != nil { + in, out := &in.HeadSha, &out.HeadSha *out = new(string) **out = **in } - if in.CommitMessage != nil { - in, out := &in.CommitMessage, &out.CommitMessage + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.Content != nil { - in, out := &in.Content, &out.Content - *out = new(string) + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.MaintainerCanModify != nil { + in, out := &in.MaintainerCanModify, &out.MaintainerCanModify + *out = new(bool) **out = **in } - if in.File != nil { - in, out := &in.File, &out.File + if in.Number != nil { + in, out := &in.Number, &out.Number + *out = new(int64) + **out = **in + } + if in.OpenedAt != nil { + in, out := &in.OpenedAt, &out.OpenedAt + *out = new(int64) + **out = **in + } + if in.OpenedBy != nil { + in, out := &in.OpenedBy, &out.OpenedBy *out = new(string) **out = **in } - if in.OverwriteOnCreate != nil { - in, out := &in.OverwriteOnCreate, &out.OverwriteOnCreate - *out = new(bool) + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(string) **out = **in } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.State != nil { + in, out := &in.State, &out.State *out = new(string) **out = **in } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) + if in.Title != nil { + in, out := &in.Title, &out.Title + *out = new(string) + **out = **in } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.UpdatedAt != nil { + in, out := &in.UpdatedAt, &out.UpdatedAt + *out = new(int64) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileInitParameters. -func (in *RepositoryFileInitParameters) DeepCopy() *RepositoryFileInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestObservation. +func (in *PullRequestObservation) DeepCopy() *PullRequestObservation { if in == nil { return nil } - out := new(RepositoryFileInitParameters) + out := new(PullRequestObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryFileList) DeepCopyInto(out *RepositoryFileList) { +func (in *PullRequestParameters) DeepCopyInto(out *PullRequestParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RepositoryFile, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.BaseRef != nil { + in, out := &in.BaseRef, &out.BaseRef + *out = new(string) + **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileList. -func (in *RepositoryFileList) DeepCopy() *RepositoryFileList { - if in == nil { - return nil + if in.BaseRepository != nil { + in, out := &in.BaseRepository, &out.BaseRepository + *out = new(string) + **out = **in } - out := new(RepositoryFileList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryFileList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryFileObservation) DeepCopyInto(out *RepositoryFileObservation) { - *out = *in - if in.AutocreateBranch != nil { - in, out := &in.AutocreateBranch, &out.AutocreateBranch - *out = new(bool) - **out = **in - } - if in.AutocreateBranchSourceBranch != nil { - in, out := &in.AutocreateBranchSourceBranch, &out.AutocreateBranchSourceBranch - *out = new(string) - **out = **in - } - if in.AutocreateBranchSourceSha != nil { - in, out := &in.AutocreateBranchSourceSha, &out.AutocreateBranchSourceSha - *out = new(string) - **out = **in - } - if in.Branch != nil { - in, out := &in.Branch, &out.Branch - *out = new(string) - **out = **in - } - if in.CommitAuthor != nil { - in, out := &in.CommitAuthor, &out.CommitAuthor - *out = new(string) - **out = **in - } - if in.CommitEmail != nil { - in, out := &in.CommitEmail, &out.CommitEmail - *out = new(string) - **out = **in + if in.BaseRepositoryRef != nil { + in, out := &in.BaseRepositoryRef, &out.BaseRepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.CommitMessage != nil { - in, out := &in.CommitMessage, &out.CommitMessage - *out = new(string) - **out = **in + if in.BaseRepositorySelector != nil { + in, out := &in.BaseRepositorySelector, &out.BaseRepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.CommitSha != nil { - in, out := &in.CommitSha, &out.CommitSha + if in.Body != nil { + in, out := &in.Body, &out.Body *out = new(string) **out = **in } - if in.Content != nil { - in, out := &in.Content, &out.Content + if in.HeadRef != nil { + in, out := &in.HeadRef, &out.HeadRef *out = new(string) **out = **in } - if in.File != nil { - in, out := &in.File, &out.File - *out = new(string) - **out = **in + if in.HeadRefRef != nil { + in, out := &in.HeadRefRef, &out.HeadRefRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in + if in.HeadRefSelector != nil { + in, out := &in.HeadRefSelector, &out.HeadRefSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.OverwriteOnCreate != nil { - in, out := &in.OverwriteOnCreate, &out.OverwriteOnCreate + if in.MaintainerCanModify != nil { + in, out := &in.MaintainerCanModify, &out.MaintainerCanModify *out = new(bool) **out = **in } - if in.Ref != nil { - in, out := &in.Ref, &out.Ref - *out = new(string) - **out = **in - } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository + if in.Owner != nil { + in, out := &in.Owner, &out.Owner *out = new(string) **out = **in } - if in.Sha != nil { - in, out := &in.Sha, &out.Sha + if in.Title != nil { + in, out := &in.Title, &out.Title *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileObservation. -func (in *RepositoryFileObservation) DeepCopy() *RepositoryFileObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestParameters. +func (in *PullRequestParameters) DeepCopy() *PullRequestParameters { if in == nil { return nil } - out := new(RepositoryFileObservation) + out := new(PullRequestParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryFileParameters) DeepCopyInto(out *RepositoryFileParameters) { +func (in *PullRequestSpec) DeepCopyInto(out *PullRequestSpec) { *out = *in - if in.AutocreateBranch != nil { - in, out := &in.AutocreateBranch, &out.AutocreateBranch - *out = new(bool) - **out = **in - } - if in.AutocreateBranchSourceBranch != nil { - in, out := &in.AutocreateBranchSourceBranch, &out.AutocreateBranchSourceBranch - *out = new(string) - **out = **in - } - if in.AutocreateBranchSourceSha != nil { - in, out := &in.AutocreateBranchSourceSha, &out.AutocreateBranchSourceSha - *out = new(string) - **out = **in - } - if in.Branch != nil { - in, out := &in.Branch, &out.Branch - *out = new(string) - **out = **in - } - if in.BranchRef != nil { - in, out := &in.BranchRef, &out.BranchRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.BranchSelector != nil { - in, out := &in.BranchSelector, &out.BranchSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.CommitAuthor != nil { - in, out := &in.CommitAuthor, &out.CommitAuthor - *out = new(string) - **out = **in - } - if in.CommitEmail != nil { - in, out := &in.CommitEmail, &out.CommitEmail - *out = new(string) - **out = **in - } - if in.CommitMessage != nil { - in, out := &in.CommitMessage, &out.CommitMessage - *out = new(string) - **out = **in - } - if in.Content != nil { - in, out := &in.Content, &out.Content - *out = new(string) - **out = **in - } - if in.File != nil { - in, out := &in.File, &out.File - *out = new(string) - **out = **in - } - if in.OverwriteOnCreate != nil { - in, out := &in.OverwriteOnCreate, &out.OverwriteOnCreate - *out = new(bool) - **out = **in - } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository - *out = new(string) - **out = **in - } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileParameters. -func (in *RepositoryFileParameters) DeepCopy() *RepositoryFileParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestSpec. +func (in *PullRequestSpec) DeepCopy() *PullRequestSpec { if in == nil { return nil } - out := new(RepositoryFileParameters) + out := new(PullRequestSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryFileSpec) DeepCopyInto(out *RepositoryFileSpec) { +func (in *PullRequestStatus) DeepCopyInto(out *PullRequestStatus) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileSpec. -func (in *RepositoryFileSpec) DeepCopy() *RepositoryFileSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestStatus. +func (in *PullRequestStatus) DeepCopy() *PullRequestStatus { if in == nil { return nil } - out := new(RepositoryFileSpec) + out := new(PullRequestStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryFileStatus) DeepCopyInto(out *RepositoryFileStatus) { +func (in *RefNameInitParameters) DeepCopyInto(out *RefNameInitParameters) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + if in.Exclude != nil { + in, out := &in.Exclude, &out.Exclude + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Include != nil { + in, out := &in.Include, &out.Include + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileStatus. -func (in *RepositoryFileStatus) DeepCopy() *RepositoryFileStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RefNameInitParameters. +func (in *RefNameInitParameters) DeepCopy() *RefNameInitParameters { if in == nil { return nil } - out := new(RepositoryFileStatus) + out := new(RefNameInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryInitParameters) DeepCopyInto(out *RepositoryInitParameters) { +func (in *RefNameObservation) DeepCopyInto(out *RefNameObservation) { *out = *in - if in.AllowAutoMerge != nil { - in, out := &in.AllowAutoMerge, &out.AllowAutoMerge - *out = new(bool) - **out = **in - } - if in.AllowMergeCommit != nil { - in, out := &in.AllowMergeCommit, &out.AllowMergeCommit - *out = new(bool) - **out = **in + if in.Exclude != nil { + in, out := &in.Exclude, &out.Exclude + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.AllowRebaseMerge != nil { - in, out := &in.AllowRebaseMerge, &out.AllowRebaseMerge - *out = new(bool) - **out = **in + if in.Include != nil { + in, out := &in.Include, &out.Include + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.AllowSquashMerge != nil { +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RefNameObservation. +func (in *RefNameObservation) DeepCopy() *RefNameObservation { + if in == nil { + return nil + } + out := new(RefNameObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RefNameParameters) DeepCopyInto(out *RefNameParameters) { + *out = *in + if in.Exclude != nil { + in, out := &in.Exclude, &out.Exclude + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Include != nil { + in, out := &in.Include, &out.Include + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RefNameParameters. +func (in *RefNameParameters) DeepCopy() *RefNameParameters { + if in == nil { + return nil + } + out := new(RefNameParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Repository) DeepCopyInto(out *Repository) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository. +func (in *Repository) DeepCopy() *Repository { + if in == nil { + return nil + } + out := new(Repository) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Repository) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryAutolinkReference) DeepCopyInto(out *RepositoryAutolinkReference) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReference. +func (in *RepositoryAutolinkReference) DeepCopy() *RepositoryAutolinkReference { + if in == nil { + return nil + } + out := new(RepositoryAutolinkReference) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryAutolinkReference) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryAutolinkReferenceInitParameters) DeepCopyInto(out *RepositoryAutolinkReferenceInitParameters) { + *out = *in + if in.IsAlphanumeric != nil { + in, out := &in.IsAlphanumeric, &out.IsAlphanumeric + *out = new(bool) + **out = **in + } + if in.KeyPrefix != nil { + in, out := &in.KeyPrefix, &out.KeyPrefix + *out = new(string) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.TargetURLTemplate != nil { + in, out := &in.TargetURLTemplate, &out.TargetURLTemplate + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceInitParameters. +func (in *RepositoryAutolinkReferenceInitParameters) DeepCopy() *RepositoryAutolinkReferenceInitParameters { + if in == nil { + return nil + } + out := new(RepositoryAutolinkReferenceInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryAutolinkReferenceList) DeepCopyInto(out *RepositoryAutolinkReferenceList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RepositoryAutolinkReference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceList. +func (in *RepositoryAutolinkReferenceList) DeepCopy() *RepositoryAutolinkReferenceList { + if in == nil { + return nil + } + out := new(RepositoryAutolinkReferenceList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryAutolinkReferenceList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryAutolinkReferenceObservation) DeepCopyInto(out *RepositoryAutolinkReferenceObservation) { + *out = *in + if in.Etag != nil { + in, out := &in.Etag, &out.Etag + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.IsAlphanumeric != nil { + in, out := &in.IsAlphanumeric, &out.IsAlphanumeric + *out = new(bool) + **out = **in + } + if in.KeyPrefix != nil { + in, out := &in.KeyPrefix, &out.KeyPrefix + *out = new(string) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.TargetURLTemplate != nil { + in, out := &in.TargetURLTemplate, &out.TargetURLTemplate + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceObservation. +func (in *RepositoryAutolinkReferenceObservation) DeepCopy() *RepositoryAutolinkReferenceObservation { + if in == nil { + return nil + } + out := new(RepositoryAutolinkReferenceObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryAutolinkReferenceParameters) DeepCopyInto(out *RepositoryAutolinkReferenceParameters) { + *out = *in + if in.IsAlphanumeric != nil { + in, out := &in.IsAlphanumeric, &out.IsAlphanumeric + *out = new(bool) + **out = **in + } + if in.KeyPrefix != nil { + in, out := &in.KeyPrefix, &out.KeyPrefix + *out = new(string) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.TargetURLTemplate != nil { + in, out := &in.TargetURLTemplate, &out.TargetURLTemplate + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceParameters. +func (in *RepositoryAutolinkReferenceParameters) DeepCopy() *RepositoryAutolinkReferenceParameters { + if in == nil { + return nil + } + out := new(RepositoryAutolinkReferenceParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryAutolinkReferenceSpec) DeepCopyInto(out *RepositoryAutolinkReferenceSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceSpec. +func (in *RepositoryAutolinkReferenceSpec) DeepCopy() *RepositoryAutolinkReferenceSpec { + if in == nil { + return nil + } + out := new(RepositoryAutolinkReferenceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryAutolinkReferenceStatus) DeepCopyInto(out *RepositoryAutolinkReferenceStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryAutolinkReferenceStatus. +func (in *RepositoryAutolinkReferenceStatus) DeepCopy() *RepositoryAutolinkReferenceStatus { + if in == nil { + return nil + } + out := new(RepositoryAutolinkReferenceStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryCollaborator) DeepCopyInto(out *RepositoryCollaborator) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaborator. +func (in *RepositoryCollaborator) DeepCopy() *RepositoryCollaborator { + if in == nil { + return nil + } + out := new(RepositoryCollaborator) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryCollaborator) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryCollaboratorInitParameters) DeepCopyInto(out *RepositoryCollaboratorInitParameters) { + *out = *in + if in.Permission != nil { + in, out := &in.Permission, &out.Permission + *out = new(string) + **out = **in + } + if in.PermissionDiffSuppression != nil { + in, out := &in.PermissionDiffSuppression, &out.PermissionDiffSuppression + *out = new(bool) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Username != nil { + in, out := &in.Username, &out.Username + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorInitParameters. +func (in *RepositoryCollaboratorInitParameters) DeepCopy() *RepositoryCollaboratorInitParameters { + if in == nil { + return nil + } + out := new(RepositoryCollaboratorInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryCollaboratorList) DeepCopyInto(out *RepositoryCollaboratorList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RepositoryCollaborator, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorList. +func (in *RepositoryCollaboratorList) DeepCopy() *RepositoryCollaboratorList { + if in == nil { + return nil + } + out := new(RepositoryCollaboratorList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryCollaboratorList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryCollaboratorObservation) DeepCopyInto(out *RepositoryCollaboratorObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.InvitationID != nil { + in, out := &in.InvitationID, &out.InvitationID + *out = new(string) + **out = **in + } + if in.Permission != nil { + in, out := &in.Permission, &out.Permission + *out = new(string) + **out = **in + } + if in.PermissionDiffSuppression != nil { + in, out := &in.PermissionDiffSuppression, &out.PermissionDiffSuppression + *out = new(bool) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.Username != nil { + in, out := &in.Username, &out.Username + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorObservation. +func (in *RepositoryCollaboratorObservation) DeepCopy() *RepositoryCollaboratorObservation { + if in == nil { + return nil + } + out := new(RepositoryCollaboratorObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryCollaboratorParameters) DeepCopyInto(out *RepositoryCollaboratorParameters) { + *out = *in + if in.Permission != nil { + in, out := &in.Permission, &out.Permission + *out = new(string) + **out = **in + } + if in.PermissionDiffSuppression != nil { + in, out := &in.PermissionDiffSuppression, &out.PermissionDiffSuppression + *out = new(bool) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Username != nil { + in, out := &in.Username, &out.Username + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorParameters. +func (in *RepositoryCollaboratorParameters) DeepCopy() *RepositoryCollaboratorParameters { + if in == nil { + return nil + } + out := new(RepositoryCollaboratorParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryCollaboratorSpec) DeepCopyInto(out *RepositoryCollaboratorSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorSpec. +func (in *RepositoryCollaboratorSpec) DeepCopy() *RepositoryCollaboratorSpec { + if in == nil { + return nil + } + out := new(RepositoryCollaboratorSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryCollaboratorStatus) DeepCopyInto(out *RepositoryCollaboratorStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryCollaboratorStatus. +func (in *RepositoryCollaboratorStatus) DeepCopy() *RepositoryCollaboratorStatus { + if in == nil { + return nil + } + out := new(RepositoryCollaboratorStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryFile) DeepCopyInto(out *RepositoryFile) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFile. +func (in *RepositoryFile) DeepCopy() *RepositoryFile { + if in == nil { + return nil + } + out := new(RepositoryFile) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryFile) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryFileInitParameters) DeepCopyInto(out *RepositoryFileInitParameters) { + *out = *in + if in.AutocreateBranch != nil { + in, out := &in.AutocreateBranch, &out.AutocreateBranch + *out = new(bool) + **out = **in + } + if in.AutocreateBranchSourceBranch != nil { + in, out := &in.AutocreateBranchSourceBranch, &out.AutocreateBranchSourceBranch + *out = new(string) + **out = **in + } + if in.AutocreateBranchSourceSha != nil { + in, out := &in.AutocreateBranchSourceSha, &out.AutocreateBranchSourceSha + *out = new(string) + **out = **in + } + if in.Branch != nil { + in, out := &in.Branch, &out.Branch + *out = new(string) + **out = **in + } + if in.BranchRef != nil { + in, out := &in.BranchRef, &out.BranchRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.BranchSelector != nil { + in, out := &in.BranchSelector, &out.BranchSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.CommitAuthor != nil { + in, out := &in.CommitAuthor, &out.CommitAuthor + *out = new(string) + **out = **in + } + if in.CommitEmail != nil { + in, out := &in.CommitEmail, &out.CommitEmail + *out = new(string) + **out = **in + } + if in.CommitMessage != nil { + in, out := &in.CommitMessage, &out.CommitMessage + *out = new(string) + **out = **in + } + if in.Content != nil { + in, out := &in.Content, &out.Content + *out = new(string) + **out = **in + } + if in.File != nil { + in, out := &in.File, &out.File + *out = new(string) + **out = **in + } + if in.OverwriteOnCreate != nil { + in, out := &in.OverwriteOnCreate, &out.OverwriteOnCreate + *out = new(bool) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileInitParameters. +func (in *RepositoryFileInitParameters) DeepCopy() *RepositoryFileInitParameters { + if in == nil { + return nil + } + out := new(RepositoryFileInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryFileList) DeepCopyInto(out *RepositoryFileList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RepositoryFile, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileList. +func (in *RepositoryFileList) DeepCopy() *RepositoryFileList { + if in == nil { + return nil + } + out := new(RepositoryFileList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryFileList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryFileObservation) DeepCopyInto(out *RepositoryFileObservation) { + *out = *in + if in.AutocreateBranch != nil { + in, out := &in.AutocreateBranch, &out.AutocreateBranch + *out = new(bool) + **out = **in + } + if in.AutocreateBranchSourceBranch != nil { + in, out := &in.AutocreateBranchSourceBranch, &out.AutocreateBranchSourceBranch + *out = new(string) + **out = **in + } + if in.AutocreateBranchSourceSha != nil { + in, out := &in.AutocreateBranchSourceSha, &out.AutocreateBranchSourceSha + *out = new(string) + **out = **in + } + if in.Branch != nil { + in, out := &in.Branch, &out.Branch + *out = new(string) + **out = **in + } + if in.CommitAuthor != nil { + in, out := &in.CommitAuthor, &out.CommitAuthor + *out = new(string) + **out = **in + } + if in.CommitEmail != nil { + in, out := &in.CommitEmail, &out.CommitEmail + *out = new(string) + **out = **in + } + if in.CommitMessage != nil { + in, out := &in.CommitMessage, &out.CommitMessage + *out = new(string) + **out = **in + } + if in.CommitSha != nil { + in, out := &in.CommitSha, &out.CommitSha + *out = new(string) + **out = **in + } + if in.Content != nil { + in, out := &in.Content, &out.Content + *out = new(string) + **out = **in + } + if in.File != nil { + in, out := &in.File, &out.File + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OverwriteOnCreate != nil { + in, out := &in.OverwriteOnCreate, &out.OverwriteOnCreate + *out = new(bool) + **out = **in + } + if in.Ref != nil { + in, out := &in.Ref, &out.Ref + *out = new(string) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.Sha != nil { + in, out := &in.Sha, &out.Sha + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileObservation. +func (in *RepositoryFileObservation) DeepCopy() *RepositoryFileObservation { + if in == nil { + return nil + } + out := new(RepositoryFileObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryFileParameters) DeepCopyInto(out *RepositoryFileParameters) { + *out = *in + if in.AutocreateBranch != nil { + in, out := &in.AutocreateBranch, &out.AutocreateBranch + *out = new(bool) + **out = **in + } + if in.AutocreateBranchSourceBranch != nil { + in, out := &in.AutocreateBranchSourceBranch, &out.AutocreateBranchSourceBranch + *out = new(string) + **out = **in + } + if in.AutocreateBranchSourceSha != nil { + in, out := &in.AutocreateBranchSourceSha, &out.AutocreateBranchSourceSha + *out = new(string) + **out = **in + } + if in.Branch != nil { + in, out := &in.Branch, &out.Branch + *out = new(string) + **out = **in + } + if in.BranchRef != nil { + in, out := &in.BranchRef, &out.BranchRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.BranchSelector != nil { + in, out := &in.BranchSelector, &out.BranchSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.CommitAuthor != nil { + in, out := &in.CommitAuthor, &out.CommitAuthor + *out = new(string) + **out = **in + } + if in.CommitEmail != nil { + in, out := &in.CommitEmail, &out.CommitEmail + *out = new(string) + **out = **in + } + if in.CommitMessage != nil { + in, out := &in.CommitMessage, &out.CommitMessage + *out = new(string) + **out = **in + } + if in.Content != nil { + in, out := &in.Content, &out.Content + *out = new(string) + **out = **in + } + if in.File != nil { + in, out := &in.File, &out.File + *out = new(string) + **out = **in + } + if in.OverwriteOnCreate != nil { + in, out := &in.OverwriteOnCreate, &out.OverwriteOnCreate + *out = new(bool) + **out = **in + } + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileParameters. +func (in *RepositoryFileParameters) DeepCopy() *RepositoryFileParameters { + if in == nil { + return nil + } + out := new(RepositoryFileParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryFileSpec) DeepCopyInto(out *RepositoryFileSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileSpec. +func (in *RepositoryFileSpec) DeepCopy() *RepositoryFileSpec { + if in == nil { + return nil + } + out := new(RepositoryFileSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryFileStatus) DeepCopyInto(out *RepositoryFileStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryFileStatus. +func (in *RepositoryFileStatus) DeepCopy() *RepositoryFileStatus { + if in == nil { + return nil + } + out := new(RepositoryFileStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryInitParameters) DeepCopyInto(out *RepositoryInitParameters) { + *out = *in + if in.AllowAutoMerge != nil { + in, out := &in.AllowAutoMerge, &out.AllowAutoMerge + *out = new(bool) + **out = **in + } + if in.AllowMergeCommit != nil { + in, out := &in.AllowMergeCommit, &out.AllowMergeCommit + *out = new(bool) + **out = **in + } + if in.AllowRebaseMerge != nil { + in, out := &in.AllowRebaseMerge, &out.AllowRebaseMerge + *out = new(bool) + **out = **in + } + if in.AllowSquashMerge != nil { + in, out := &in.AllowSquashMerge, &out.AllowSquashMerge + *out = new(bool) + **out = **in + } + if in.AllowUpdateBranch != nil { + in, out := &in.AllowUpdateBranch, &out.AllowUpdateBranch + *out = new(bool) + **out = **in + } + if in.ArchiveOnDestroy != nil { + in, out := &in.ArchiveOnDestroy, &out.ArchiveOnDestroy + *out = new(bool) + **out = **in + } + if in.Archived != nil { + in, out := &in.Archived, &out.Archived + *out = new(bool) + **out = **in + } + if in.AutoInit != nil { + in, out := &in.AutoInit, &out.AutoInit + *out = new(bool) + **out = **in + } + if in.DefaultBranch != nil { + in, out := &in.DefaultBranch, &out.DefaultBranch + *out = new(string) + **out = **in + } + if in.DeleteBranchOnMerge != nil { + in, out := &in.DeleteBranchOnMerge, &out.DeleteBranchOnMerge + *out = new(bool) + **out = **in + } + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } + if in.GitignoreTemplate != nil { + in, out := &in.GitignoreTemplate, &out.GitignoreTemplate + *out = new(string) + **out = **in + } + if in.HasDiscussions != nil { + in, out := &in.HasDiscussions, &out.HasDiscussions + *out = new(bool) + **out = **in + } + if in.HasDownloads != nil { + in, out := &in.HasDownloads, &out.HasDownloads + *out = new(bool) + **out = **in + } + if in.HasIssues != nil { + in, out := &in.HasIssues, &out.HasIssues + *out = new(bool) + **out = **in + } + if in.HasProjects != nil { + in, out := &in.HasProjects, &out.HasProjects + *out = new(bool) + **out = **in + } + if in.HasWiki != nil { + in, out := &in.HasWiki, &out.HasWiki + *out = new(bool) + **out = **in + } + if in.HomepageURL != nil { + in, out := &in.HomepageURL, &out.HomepageURL + *out = new(string) + **out = **in + } + if in.IgnoreVulnerabilityAlertsDuringRead != nil { + in, out := &in.IgnoreVulnerabilityAlertsDuringRead, &out.IgnoreVulnerabilityAlertsDuringRead + *out = new(bool) + **out = **in + } + if in.IsTemplate != nil { + in, out := &in.IsTemplate, &out.IsTemplate + *out = new(bool) + **out = **in + } + if in.LicenseTemplate != nil { + in, out := &in.LicenseTemplate, &out.LicenseTemplate + *out = new(string) + **out = **in + } + if in.MergeCommitMessage != nil { + in, out := &in.MergeCommitMessage, &out.MergeCommitMessage + *out = new(string) + **out = **in + } + if in.MergeCommitTitle != nil { + in, out := &in.MergeCommitTitle, &out.MergeCommitTitle + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Pages != nil { + in, out := &in.Pages, &out.Pages + *out = make([]PagesInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Private != nil { + in, out := &in.Private, &out.Private + *out = new(bool) + **out = **in + } + if in.SecurityAndAnalysis != nil { + in, out := &in.SecurityAndAnalysis, &out.SecurityAndAnalysis + *out = make([]SecurityAndAnalysisInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.SquashMergeCommitMessage != nil { + in, out := &in.SquashMergeCommitMessage, &out.SquashMergeCommitMessage + *out = new(string) + **out = **in + } + if in.SquashMergeCommitTitle != nil { + in, out := &in.SquashMergeCommitTitle, &out.SquashMergeCommitTitle + *out = new(string) + **out = **in + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = make([]TemplateInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Topics != nil { + in, out := &in.Topics, &out.Topics + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Visibility != nil { + in, out := &in.Visibility, &out.Visibility + *out = new(string) + **out = **in + } + if in.VulnerabilityAlerts != nil { + in, out := &in.VulnerabilityAlerts, &out.VulnerabilityAlerts + *out = new(bool) + **out = **in + } + if in.WebCommitSignoffRequired != nil { + in, out := &in.WebCommitSignoffRequired, &out.WebCommitSignoffRequired + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryInitParameters. +func (in *RepositoryInitParameters) DeepCopy() *RepositoryInitParameters { + if in == nil { + return nil + } + out := new(RepositoryInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryList) DeepCopyInto(out *RepositoryList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Repository, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryList. +func (in *RepositoryList) DeepCopy() *RepositoryList { + if in == nil { + return nil + } + out := new(RepositoryList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryObservation) DeepCopyInto(out *RepositoryObservation) { + *out = *in + if in.AllowAutoMerge != nil { + in, out := &in.AllowAutoMerge, &out.AllowAutoMerge + *out = new(bool) + **out = **in + } + if in.AllowMergeCommit != nil { + in, out := &in.AllowMergeCommit, &out.AllowMergeCommit + *out = new(bool) + **out = **in + } + if in.AllowRebaseMerge != nil { + in, out := &in.AllowRebaseMerge, &out.AllowRebaseMerge + *out = new(bool) + **out = **in + } + if in.AllowSquashMerge != nil { + in, out := &in.AllowSquashMerge, &out.AllowSquashMerge + *out = new(bool) + **out = **in + } + if in.AllowUpdateBranch != nil { + in, out := &in.AllowUpdateBranch, &out.AllowUpdateBranch + *out = new(bool) + **out = **in + } + if in.ArchiveOnDestroy != nil { + in, out := &in.ArchiveOnDestroy, &out.ArchiveOnDestroy + *out = new(bool) + **out = **in + } + if in.Archived != nil { + in, out := &in.Archived, &out.Archived + *out = new(bool) + **out = **in + } + if in.AutoInit != nil { + in, out := &in.AutoInit, &out.AutoInit + *out = new(bool) + **out = **in + } + if in.DefaultBranch != nil { + in, out := &in.DefaultBranch, &out.DefaultBranch + *out = new(string) + **out = **in + } + if in.DeleteBranchOnMerge != nil { + in, out := &in.DeleteBranchOnMerge, &out.DeleteBranchOnMerge + *out = new(bool) + **out = **in + } + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } + if in.Etag != nil { + in, out := &in.Etag, &out.Etag + *out = new(string) + **out = **in + } + if in.FullName != nil { + in, out := &in.FullName, &out.FullName + *out = new(string) + **out = **in + } + if in.GitCloneURL != nil { + in, out := &in.GitCloneURL, &out.GitCloneURL + *out = new(string) + **out = **in + } + if in.GitignoreTemplate != nil { + in, out := &in.GitignoreTemplate, &out.GitignoreTemplate + *out = new(string) + **out = **in + } + if in.HTMLURL != nil { + in, out := &in.HTMLURL, &out.HTMLURL + *out = new(string) + **out = **in + } + if in.HTTPCloneURL != nil { + in, out := &in.HTTPCloneURL, &out.HTTPCloneURL + *out = new(string) + **out = **in + } + if in.HasDiscussions != nil { + in, out := &in.HasDiscussions, &out.HasDiscussions + *out = new(bool) + **out = **in + } + if in.HasDownloads != nil { + in, out := &in.HasDownloads, &out.HasDownloads + *out = new(bool) + **out = **in + } + if in.HasIssues != nil { + in, out := &in.HasIssues, &out.HasIssues + *out = new(bool) + **out = **in + } + if in.HasProjects != nil { + in, out := &in.HasProjects, &out.HasProjects + *out = new(bool) + **out = **in + } + if in.HasWiki != nil { + in, out := &in.HasWiki, &out.HasWiki + *out = new(bool) + **out = **in + } + if in.HomepageURL != nil { + in, out := &in.HomepageURL, &out.HomepageURL + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.IgnoreVulnerabilityAlertsDuringRead != nil { + in, out := &in.IgnoreVulnerabilityAlertsDuringRead, &out.IgnoreVulnerabilityAlertsDuringRead + *out = new(bool) + **out = **in + } + if in.IsTemplate != nil { + in, out := &in.IsTemplate, &out.IsTemplate + *out = new(bool) + **out = **in + } + if in.LicenseTemplate != nil { + in, out := &in.LicenseTemplate, &out.LicenseTemplate + *out = new(string) + **out = **in + } + if in.MergeCommitMessage != nil { + in, out := &in.MergeCommitMessage, &out.MergeCommitMessage + *out = new(string) + **out = **in + } + if in.MergeCommitTitle != nil { + in, out := &in.MergeCommitTitle, &out.MergeCommitTitle + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.NodeID != nil { + in, out := &in.NodeID, &out.NodeID + *out = new(string) + **out = **in + } + if in.Pages != nil { + in, out := &in.Pages, &out.Pages + *out = make([]PagesObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.PrimaryLanguage != nil { + in, out := &in.PrimaryLanguage, &out.PrimaryLanguage + *out = new(string) + **out = **in + } + if in.Private != nil { + in, out := &in.Private, &out.Private + *out = new(bool) + **out = **in + } + if in.RepoID != nil { + in, out := &in.RepoID, &out.RepoID + *out = new(int64) + **out = **in + } + if in.SSHCloneURL != nil { + in, out := &in.SSHCloneURL, &out.SSHCloneURL + *out = new(string) + **out = **in + } + if in.SecurityAndAnalysis != nil { + in, out := &in.SecurityAndAnalysis, &out.SecurityAndAnalysis + *out = make([]SecurityAndAnalysisObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.SquashMergeCommitMessage != nil { + in, out := &in.SquashMergeCommitMessage, &out.SquashMergeCommitMessage + *out = new(string) + **out = **in + } + if in.SquashMergeCommitTitle != nil { + in, out := &in.SquashMergeCommitTitle, &out.SquashMergeCommitTitle + *out = new(string) + **out = **in + } + if in.SvnURL != nil { + in, out := &in.SvnURL, &out.SvnURL + *out = new(string) + **out = **in + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = make([]TemplateObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Topics != nil { + in, out := &in.Topics, &out.Topics + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Visibility != nil { + in, out := &in.Visibility, &out.Visibility + *out = new(string) + **out = **in + } + if in.VulnerabilityAlerts != nil { + in, out := &in.VulnerabilityAlerts, &out.VulnerabilityAlerts + *out = new(bool) + **out = **in + } + if in.WebCommitSignoffRequired != nil { + in, out := &in.WebCommitSignoffRequired, &out.WebCommitSignoffRequired + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryObservation. +func (in *RepositoryObservation) DeepCopy() *RepositoryObservation { + if in == nil { + return nil + } + out := new(RepositoryObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryParameters) DeepCopyInto(out *RepositoryParameters) { + *out = *in + if in.AllowAutoMerge != nil { + in, out := &in.AllowAutoMerge, &out.AllowAutoMerge + *out = new(bool) + **out = **in + } + if in.AllowMergeCommit != nil { + in, out := &in.AllowMergeCommit, &out.AllowMergeCommit + *out = new(bool) + **out = **in + } + if in.AllowRebaseMerge != nil { + in, out := &in.AllowRebaseMerge, &out.AllowRebaseMerge + *out = new(bool) + **out = **in + } + if in.AllowSquashMerge != nil { in, out := &in.AllowSquashMerge, &out.AllowSquashMerge *out = new(bool) **out = **in @@ -2913,78 +4081,380 @@ func (in *RepositoryInitParameters) DeepCopyInto(out *RepositoryInitParameters) *out = new(bool) **out = **in } - if in.DefaultBranch != nil { - in, out := &in.DefaultBranch, &out.DefaultBranch + if in.DefaultBranch != nil { + in, out := &in.DefaultBranch, &out.DefaultBranch + *out = new(string) + **out = **in + } + if in.DeleteBranchOnMerge != nil { + in, out := &in.DeleteBranchOnMerge, &out.DeleteBranchOnMerge + *out = new(bool) + **out = **in + } + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } + if in.GitignoreTemplate != nil { + in, out := &in.GitignoreTemplate, &out.GitignoreTemplate + *out = new(string) + **out = **in + } + if in.HasDiscussions != nil { + in, out := &in.HasDiscussions, &out.HasDiscussions + *out = new(bool) + **out = **in + } + if in.HasDownloads != nil { + in, out := &in.HasDownloads, &out.HasDownloads + *out = new(bool) + **out = **in + } + if in.HasIssues != nil { + in, out := &in.HasIssues, &out.HasIssues + *out = new(bool) + **out = **in + } + if in.HasProjects != nil { + in, out := &in.HasProjects, &out.HasProjects + *out = new(bool) + **out = **in + } + if in.HasWiki != nil { + in, out := &in.HasWiki, &out.HasWiki + *out = new(bool) + **out = **in + } + if in.HomepageURL != nil { + in, out := &in.HomepageURL, &out.HomepageURL + *out = new(string) + **out = **in + } + if in.IgnoreVulnerabilityAlertsDuringRead != nil { + in, out := &in.IgnoreVulnerabilityAlertsDuringRead, &out.IgnoreVulnerabilityAlertsDuringRead + *out = new(bool) + **out = **in + } + if in.IsTemplate != nil { + in, out := &in.IsTemplate, &out.IsTemplate + *out = new(bool) + **out = **in + } + if in.LicenseTemplate != nil { + in, out := &in.LicenseTemplate, &out.LicenseTemplate + *out = new(string) + **out = **in + } + if in.MergeCommitMessage != nil { + in, out := &in.MergeCommitMessage, &out.MergeCommitMessage + *out = new(string) + **out = **in + } + if in.MergeCommitTitle != nil { + in, out := &in.MergeCommitTitle, &out.MergeCommitTitle + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Pages != nil { + in, out := &in.Pages, &out.Pages + *out = make([]PagesParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Private != nil { + in, out := &in.Private, &out.Private + *out = new(bool) + **out = **in + } + if in.SecurityAndAnalysis != nil { + in, out := &in.SecurityAndAnalysis, &out.SecurityAndAnalysis + *out = make([]SecurityAndAnalysisParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.SquashMergeCommitMessage != nil { + in, out := &in.SquashMergeCommitMessage, &out.SquashMergeCommitMessage + *out = new(string) + **out = **in + } + if in.SquashMergeCommitTitle != nil { + in, out := &in.SquashMergeCommitTitle, &out.SquashMergeCommitTitle + *out = new(string) + **out = **in + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = make([]TemplateParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Topics != nil { + in, out := &in.Topics, &out.Topics + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Visibility != nil { + in, out := &in.Visibility, &out.Visibility + *out = new(string) + **out = **in + } + if in.VulnerabilityAlerts != nil { + in, out := &in.VulnerabilityAlerts, &out.VulnerabilityAlerts + *out = new(bool) + **out = **in + } + if in.WebCommitSignoffRequired != nil { + in, out := &in.WebCommitSignoffRequired, &out.WebCommitSignoffRequired + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryParameters. +func (in *RepositoryParameters) DeepCopy() *RepositoryParameters { + if in == nil { + return nil + } + out := new(RepositoryParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryRuleset) DeepCopyInto(out *RepositoryRuleset) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryRuleset. +func (in *RepositoryRuleset) DeepCopy() *RepositoryRuleset { + if in == nil { + return nil + } + out := new(RepositoryRuleset) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryRuleset) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryRulesetInitParameters) DeepCopyInto(out *RepositoryRulesetInitParameters) { + *out = *in + if in.BypassActors != nil { + in, out := &in.BypassActors, &out.BypassActors + *out = make([]BypassActorsInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ConditionsInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Enforcement != nil { + in, out := &in.Enforcement, &out.Enforcement *out = new(string) **out = **in } - if in.DeleteBranchOnMerge != nil { - in, out := &in.DeleteBranchOnMerge, &out.DeleteBranchOnMerge - *out = new(bool) + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) **out = **in } - if in.Description != nil { - in, out := &in.Description, &out.Description + if in.Repository != nil { + in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } - if in.GitignoreTemplate != nil { - in, out := &in.GitignoreTemplate, &out.GitignoreTemplate + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]RulesInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Target != nil { + in, out := &in.Target, &out.Target *out = new(string) **out = **in } - if in.HasDiscussions != nil { - in, out := &in.HasDiscussions, &out.HasDiscussions - *out = new(bool) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryRulesetInitParameters. +func (in *RepositoryRulesetInitParameters) DeepCopy() *RepositoryRulesetInitParameters { + if in == nil { + return nil } - if in.HasDownloads != nil { - in, out := &in.HasDownloads, &out.HasDownloads - *out = new(bool) - **out = **in + out := new(RepositoryRulesetInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryRulesetList) DeepCopyInto(out *RepositoryRulesetList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RepositoryRuleset, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.HasIssues != nil { - in, out := &in.HasIssues, &out.HasIssues - *out = new(bool) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryRulesetList. +func (in *RepositoryRulesetList) DeepCopy() *RepositoryRulesetList { + if in == nil { + return nil } - if in.HasProjects != nil { - in, out := &in.HasProjects, &out.HasProjects - *out = new(bool) + out := new(RepositoryRulesetList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryRulesetList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryRulesetObservation) DeepCopyInto(out *RepositoryRulesetObservation) { + *out = *in + if in.BypassActors != nil { + in, out := &in.BypassActors, &out.BypassActors + *out = make([]BypassActorsObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ConditionsObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Enforcement != nil { + in, out := &in.Enforcement, &out.Enforcement + *out = new(string) **out = **in } - if in.HasWiki != nil { - in, out := &in.HasWiki, &out.HasWiki - *out = new(bool) + if in.Etag != nil { + in, out := &in.Etag, &out.Etag + *out = new(string) **out = **in } - if in.HomepageURL != nil { - in, out := &in.HomepageURL, &out.HomepageURL + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.IgnoreVulnerabilityAlertsDuringRead != nil { - in, out := &in.IgnoreVulnerabilityAlertsDuringRead, &out.IgnoreVulnerabilityAlertsDuringRead - *out = new(bool) + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) **out = **in } - if in.IsTemplate != nil { - in, out := &in.IsTemplate, &out.IsTemplate - *out = new(bool) + if in.NodeID != nil { + in, out := &in.NodeID, &out.NodeID + *out = new(string) **out = **in } - if in.LicenseTemplate != nil { - in, out := &in.LicenseTemplate, &out.LicenseTemplate + if in.Repository != nil { + in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } - if in.MergeCommitMessage != nil { - in, out := &in.MergeCommitMessage, &out.MergeCommitMessage + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]RulesObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.RulesetID != nil { + in, out := &in.RulesetID, &out.RulesetID + *out = new(int64) + **out = **in + } + if in.Target != nil { + in, out := &in.Target, &out.Target *out = new(string) **out = **in } - if in.MergeCommitTitle != nil { - in, out := &in.MergeCommitTitle, &out.MergeCommitTitle +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryRulesetObservation. +func (in *RepositoryRulesetObservation) DeepCopy() *RepositoryRulesetObservation { + if in == nil { + return nil + } + out := new(RepositoryRulesetObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryRulesetParameters) DeepCopyInto(out *RepositoryRulesetParameters) { + *out = *in + if in.BypassActors != nil { + in, out := &in.BypassActors, &out.BypassActors + *out = make([]BypassActorsParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ConditionsParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Enforcement != nil { + in, out := &in.Enforcement, &out.Enforcement *out = new(string) **out = **in } @@ -2993,44 +4463,159 @@ func (in *RepositoryInitParameters) DeepCopyInto(out *RepositoryInitParameters) *out = new(string) **out = **in } - if in.Pages != nil { - in, out := &in.Pages, &out.Pages - *out = make([]PagesInitParameters, len(*in)) + if in.Repository != nil { + in, out := &in.Repository, &out.Repository + *out = new(string) + **out = **in + } + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]RulesParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Private != nil { - in, out := &in.Private, &out.Private - *out = new(bool) + if in.Target != nil { + in, out := &in.Target, &out.Target + *out = new(string) **out = **in } - if in.SecurityAndAnalysis != nil { - in, out := &in.SecurityAndAnalysis, &out.SecurityAndAnalysis - *out = make([]SecurityAndAnalysisInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryRulesetParameters. +func (in *RepositoryRulesetParameters) DeepCopy() *RepositoryRulesetParameters { + if in == nil { + return nil + } + out := new(RepositoryRulesetParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryRulesetSpec) DeepCopyInto(out *RepositoryRulesetSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryRulesetSpec. +func (in *RepositoryRulesetSpec) DeepCopy() *RepositoryRulesetSpec { + if in == nil { + return nil + } + out := new(RepositoryRulesetSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryRulesetStatus) DeepCopyInto(out *RepositoryRulesetStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryRulesetStatus. +func (in *RepositoryRulesetStatus) DeepCopy() *RepositoryRulesetStatus { + if in == nil { + return nil + } + out := new(RepositoryRulesetStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySpec. +func (in *RepositorySpec) DeepCopy() *RepositorySpec { + if in == nil { + return nil + } + out := new(RepositorySpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryStatus. +func (in *RepositoryStatus) DeepCopy() *RepositoryStatus { + if in == nil { + return nil + } + out := new(RepositoryStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryWebhook) DeepCopyInto(out *RepositoryWebhook) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhook. +func (in *RepositoryWebhook) DeepCopy() *RepositoryWebhook { + if in == nil { + return nil } - if in.SquashMergeCommitMessage != nil { - in, out := &in.SquashMergeCommitMessage, &out.SquashMergeCommitMessage - *out = new(string) - **out = **in + out := new(RepositoryWebhook) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RepositoryWebhook) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - if in.SquashMergeCommitTitle != nil { - in, out := &in.SquashMergeCommitTitle, &out.SquashMergeCommitTitle - *out = new(string) + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryWebhookInitParameters) DeepCopyInto(out *RepositoryWebhookInitParameters) { + *out = *in + if in.Active != nil { + in, out := &in.Active, &out.Active + *out = new(bool) **out = **in } - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = make([]TemplateInitParameters, len(*in)) + if in.Configuration != nil { + in, out := &in.Configuration, &out.Configuration + *out = make([]ConfigurationInitParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Topics != nil { - in, out := &in.Topics, &out.Topics + if in.Events != nil { + in, out := &in.Events, &out.Events *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -3040,59 +4625,59 @@ func (in *RepositoryInitParameters) DeepCopyInto(out *RepositoryInitParameters) } } } - if in.Visibility != nil { - in, out := &in.Visibility, &out.Visibility + if in.Repository != nil { + in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } - if in.VulnerabilityAlerts != nil { - in, out := &in.VulnerabilityAlerts, &out.VulnerabilityAlerts - *out = new(bool) - **out = **in + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.WebCommitSignoffRequired != nil { - in, out := &in.WebCommitSignoffRequired, &out.WebCommitSignoffRequired - *out = new(bool) - **out = **in + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryInitParameters. -func (in *RepositoryInitParameters) DeepCopy() *RepositoryInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookInitParameters. +func (in *RepositoryWebhookInitParameters) DeepCopy() *RepositoryWebhookInitParameters { if in == nil { return nil } - out := new(RepositoryInitParameters) + out := new(RepositoryWebhookInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryList) DeepCopyInto(out *RepositoryList) { +func (in *RepositoryWebhookList) DeepCopyInto(out *RepositoryWebhookList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Repository, len(*in)) + *out = make([]RepositoryWebhook, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryList. -func (in *RepositoryList) DeepCopy() *RepositoryList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookList. +func (in *RepositoryWebhookList) DeepCopy() *RepositoryWebhookList { if in == nil { return nil } - out := new(RepositoryList) + out := new(RepositoryWebhookList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryList) DeepCopyObject() runtime.Object { +func (in *RepositoryWebhookList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3100,221 +4685,80 @@ func (in *RepositoryList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryObservation) DeepCopyInto(out *RepositoryObservation) { +func (in *RepositoryWebhookObservation) DeepCopyInto(out *RepositoryWebhookObservation) { *out = *in - if in.AllowAutoMerge != nil { - in, out := &in.AllowAutoMerge, &out.AllowAutoMerge - *out = new(bool) - **out = **in - } - if in.AllowMergeCommit != nil { - in, out := &in.AllowMergeCommit, &out.AllowMergeCommit - *out = new(bool) - **out = **in - } - if in.AllowRebaseMerge != nil { - in, out := &in.AllowRebaseMerge, &out.AllowRebaseMerge - *out = new(bool) - **out = **in - } - if in.AllowSquashMerge != nil { - in, out := &in.AllowSquashMerge, &out.AllowSquashMerge - *out = new(bool) - **out = **in - } - if in.AllowUpdateBranch != nil { - in, out := &in.AllowUpdateBranch, &out.AllowUpdateBranch - *out = new(bool) - **out = **in - } - if in.ArchiveOnDestroy != nil { - in, out := &in.ArchiveOnDestroy, &out.ArchiveOnDestroy - *out = new(bool) - **out = **in - } - if in.Archived != nil { - in, out := &in.Archived, &out.Archived - *out = new(bool) - **out = **in - } - if in.AutoInit != nil { - in, out := &in.AutoInit, &out.AutoInit - *out = new(bool) - **out = **in - } - if in.DefaultBranch != nil { - in, out := &in.DefaultBranch, &out.DefaultBranch - *out = new(string) - **out = **in - } - if in.DeleteBranchOnMerge != nil { - in, out := &in.DeleteBranchOnMerge, &out.DeleteBranchOnMerge - *out = new(bool) - **out = **in - } - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.Etag != nil { - in, out := &in.Etag, &out.Etag - *out = new(string) - **out = **in - } - if in.FullName != nil { - in, out := &in.FullName, &out.FullName - *out = new(string) - **out = **in - } - if in.GitCloneURL != nil { - in, out := &in.GitCloneURL, &out.GitCloneURL - *out = new(string) - **out = **in - } - if in.GitignoreTemplate != nil { - in, out := &in.GitignoreTemplate, &out.GitignoreTemplate - *out = new(string) - **out = **in - } - if in.HTMLURL != nil { - in, out := &in.HTMLURL, &out.HTMLURL - *out = new(string) - **out = **in - } - if in.HTTPCloneURL != nil { - in, out := &in.HTTPCloneURL, &out.HTTPCloneURL - *out = new(string) - **out = **in - } - if in.HasDiscussions != nil { - in, out := &in.HasDiscussions, &out.HasDiscussions - *out = new(bool) - **out = **in - } - if in.HasDownloads != nil { - in, out := &in.HasDownloads, &out.HasDownloads - *out = new(bool) - **out = **in - } - if in.HasIssues != nil { - in, out := &in.HasIssues, &out.HasIssues - *out = new(bool) - **out = **in - } - if in.HasProjects != nil { - in, out := &in.HasProjects, &out.HasProjects - *out = new(bool) - **out = **in - } - if in.HasWiki != nil { - in, out := &in.HasWiki, &out.HasWiki - *out = new(bool) - **out = **in - } - if in.HomepageURL != nil { - in, out := &in.HomepageURL, &out.HomepageURL - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.IgnoreVulnerabilityAlertsDuringRead != nil { - in, out := &in.IgnoreVulnerabilityAlertsDuringRead, &out.IgnoreVulnerabilityAlertsDuringRead - *out = new(bool) - **out = **in - } - if in.IsTemplate != nil { - in, out := &in.IsTemplate, &out.IsTemplate + if in.Active != nil { + in, out := &in.Active, &out.Active *out = new(bool) **out = **in } - if in.LicenseTemplate != nil { - in, out := &in.LicenseTemplate, &out.LicenseTemplate - *out = new(string) - **out = **in - } - if in.MergeCommitMessage != nil { - in, out := &in.MergeCommitMessage, &out.MergeCommitMessage - *out = new(string) - **out = **in - } - if in.MergeCommitTitle != nil { - in, out := &in.MergeCommitTitle, &out.MergeCommitTitle - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.NodeID != nil { - in, out := &in.NodeID, &out.NodeID - *out = new(string) - **out = **in - } - if in.Pages != nil { - in, out := &in.Pages, &out.Pages - *out = make([]PagesObservation, len(*in)) + if in.Configuration != nil { + in, out := &in.Configuration, &out.Configuration + *out = make([]ConfigurationObservation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } - } - if in.PrimaryLanguage != nil { - in, out := &in.PrimaryLanguage, &out.PrimaryLanguage - *out = new(string) - **out = **in - } - if in.Private != nil { - in, out := &in.Private, &out.Private - *out = new(bool) - **out = **in - } - if in.RepoID != nil { - in, out := &in.RepoID, &out.RepoID - *out = new(int64) - **out = **in - } - if in.SSHCloneURL != nil { - in, out := &in.SSHCloneURL, &out.SSHCloneURL + } + if in.Etag != nil { + in, out := &in.Etag, &out.Etag *out = new(string) **out = **in } - if in.SecurityAndAnalysis != nil { - in, out := &in.SecurityAndAnalysis, &out.SecurityAndAnalysis - *out = make([]SecurityAndAnalysisObservation, len(*in)) + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } } } - if in.SquashMergeCommitMessage != nil { - in, out := &in.SquashMergeCommitMessage, &out.SquashMergeCommitMessage + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.SquashMergeCommitTitle != nil { - in, out := &in.SquashMergeCommitTitle, &out.SquashMergeCommitTitle + if in.Repository != nil { + in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } - if in.SvnURL != nil { - in, out := &in.SvnURL, &out.SvnURL + if in.URL != nil { + in, out := &in.URL, &out.URL *out = new(string) **out = **in } - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = make([]TemplateObservation, len(*in)) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookObservation. +func (in *RepositoryWebhookObservation) DeepCopy() *RepositoryWebhookObservation { + if in == nil { + return nil + } + out := new(RepositoryWebhookObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryWebhookParameters) DeepCopyInto(out *RepositoryWebhookParameters) { + *out = *in + if in.Active != nil { + in, out := &in.Active, &out.Active + *out = new(bool) + **out = **in + } + if in.Configuration != nil { + in, out := &in.Configuration, &out.Configuration + *out = make([]ConfigurationParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Topics != nil { - in, out := &in.Topics, &out.Topics + if in.Events != nil { + in, out := &in.Events, &out.Events *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -3324,194 +4768,366 @@ func (in *RepositoryObservation) DeepCopyInto(out *RepositoryObservation) { } } } - if in.Visibility != nil { - in, out := &in.Visibility, &out.Visibility + if in.Repository != nil { + in, out := &in.Repository, &out.Repository *out = new(string) **out = **in } - if in.VulnerabilityAlerts != nil { - in, out := &in.VulnerabilityAlerts, &out.VulnerabilityAlerts - *out = new(bool) - **out = **in + if in.RepositoryRef != nil { + in, out := &in.RepositoryRef, &out.RepositoryRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.WebCommitSignoffRequired != nil { - in, out := &in.WebCommitSignoffRequired, &out.WebCommitSignoffRequired - *out = new(bool) - **out = **in + if in.RepositorySelector != nil { + in, out := &in.RepositorySelector, &out.RepositorySelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryObservation. -func (in *RepositoryObservation) DeepCopy() *RepositoryObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookParameters. +func (in *RepositoryWebhookParameters) DeepCopy() *RepositoryWebhookParameters { if in == nil { return nil } - out := new(RepositoryObservation) + out := new(RepositoryWebhookParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryParameters) DeepCopyInto(out *RepositoryParameters) { +func (in *RepositoryWebhookSpec) DeepCopyInto(out *RepositoryWebhookSpec) { *out = *in - if in.AllowAutoMerge != nil { - in, out := &in.AllowAutoMerge, &out.AllowAutoMerge - *out = new(bool) - **out = **in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookSpec. +func (in *RepositoryWebhookSpec) DeepCopy() *RepositoryWebhookSpec { + if in == nil { + return nil } - if in.AllowMergeCommit != nil { - in, out := &in.AllowMergeCommit, &out.AllowMergeCommit - *out = new(bool) - **out = **in + out := new(RepositoryWebhookSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositoryWebhookStatus) DeepCopyInto(out *RepositoryWebhookStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookStatus. +func (in *RepositoryWebhookStatus) DeepCopy() *RepositoryWebhookStatus { + if in == nil { + return nil } - if in.AllowRebaseMerge != nil { - in, out := &in.AllowRebaseMerge, &out.AllowRebaseMerge - *out = new(bool) + out := new(RepositoryWebhookStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredCheckInitParameters) DeepCopyInto(out *RequiredCheckInitParameters) { + *out = *in + if in.Context != nil { + in, out := &in.Context, &out.Context + *out = new(string) **out = **in } - if in.AllowSquashMerge != nil { - in, out := &in.AllowSquashMerge, &out.AllowSquashMerge - *out = new(bool) + if in.IntegrationID != nil { + in, out := &in.IntegrationID, &out.IntegrationID + *out = new(int64) **out = **in } - if in.AllowUpdateBranch != nil { - in, out := &in.AllowUpdateBranch, &out.AllowUpdateBranch - *out = new(bool) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredCheckInitParameters. +func (in *RequiredCheckInitParameters) DeepCopy() *RequiredCheckInitParameters { + if in == nil { + return nil } - if in.ArchiveOnDestroy != nil { - in, out := &in.ArchiveOnDestroy, &out.ArchiveOnDestroy - *out = new(bool) + out := new(RequiredCheckInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredCheckObservation) DeepCopyInto(out *RequiredCheckObservation) { + *out = *in + if in.Context != nil { + in, out := &in.Context, &out.Context + *out = new(string) **out = **in } - if in.Archived != nil { - in, out := &in.Archived, &out.Archived - *out = new(bool) + if in.IntegrationID != nil { + in, out := &in.IntegrationID, &out.IntegrationID + *out = new(int64) **out = **in } - if in.AutoInit != nil { - in, out := &in.AutoInit, &out.AutoInit - *out = new(bool) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredCheckObservation. +func (in *RequiredCheckObservation) DeepCopy() *RequiredCheckObservation { + if in == nil { + return nil } - if in.DefaultBranch != nil { - in, out := &in.DefaultBranch, &out.DefaultBranch + out := new(RequiredCheckObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredCheckParameters) DeepCopyInto(out *RequiredCheckParameters) { + *out = *in + if in.Context != nil { + in, out := &in.Context, &out.Context *out = new(string) **out = **in } - if in.DeleteBranchOnMerge != nil { - in, out := &in.DeleteBranchOnMerge, &out.DeleteBranchOnMerge - *out = new(bool) + if in.IntegrationID != nil { + in, out := &in.IntegrationID, &out.IntegrationID + *out = new(int64) **out = **in } - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredCheckParameters. +func (in *RequiredCheckParameters) DeepCopy() *RequiredCheckParameters { + if in == nil { + return nil } - if in.GitignoreTemplate != nil { - in, out := &in.GitignoreTemplate, &out.GitignoreTemplate - *out = new(string) - **out = **in + out := new(RequiredCheckParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredDeploymentsInitParameters) DeepCopyInto(out *RequiredDeploymentsInitParameters) { + *out = *in + if in.RequiredDeploymentEnvironments != nil { + in, out := &in.RequiredDeploymentEnvironments, &out.RequiredDeploymentEnvironments + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.HasDiscussions != nil { - in, out := &in.HasDiscussions, &out.HasDiscussions +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredDeploymentsInitParameters. +func (in *RequiredDeploymentsInitParameters) DeepCopy() *RequiredDeploymentsInitParameters { + if in == nil { + return nil + } + out := new(RequiredDeploymentsInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredDeploymentsObservation) DeepCopyInto(out *RequiredDeploymentsObservation) { + *out = *in + if in.RequiredDeploymentEnvironments != nil { + in, out := &in.RequiredDeploymentEnvironments, &out.RequiredDeploymentEnvironments + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredDeploymentsObservation. +func (in *RequiredDeploymentsObservation) DeepCopy() *RequiredDeploymentsObservation { + if in == nil { + return nil + } + out := new(RequiredDeploymentsObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredDeploymentsParameters) DeepCopyInto(out *RequiredDeploymentsParameters) { + *out = *in + if in.RequiredDeploymentEnvironments != nil { + in, out := &in.RequiredDeploymentEnvironments, &out.RequiredDeploymentEnvironments + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredDeploymentsParameters. +func (in *RequiredDeploymentsParameters) DeepCopy() *RequiredDeploymentsParameters { + if in == nil { + return nil + } + out := new(RequiredDeploymentsParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredPullRequestReviewsInitParameters) DeepCopyInto(out *RequiredPullRequestReviewsInitParameters) { + *out = *in + if in.DismissStaleReviews != nil { + in, out := &in.DismissStaleReviews, &out.DismissStaleReviews *out = new(bool) **out = **in } - if in.HasDownloads != nil { - in, out := &in.HasDownloads, &out.HasDownloads - *out = new(bool) - **out = **in + if in.DismissalRestrictions != nil { + in, out := &in.DismissalRestrictions, &out.DismissalRestrictions + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.HasIssues != nil { - in, out := &in.HasIssues, &out.HasIssues - *out = new(bool) - **out = **in + if in.PullRequestBypassers != nil { + in, out := &in.PullRequestBypassers, &out.PullRequestBypassers + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.HasProjects != nil { - in, out := &in.HasProjects, &out.HasProjects + if in.RequireCodeOwnerReviews != nil { + in, out := &in.RequireCodeOwnerReviews, &out.RequireCodeOwnerReviews *out = new(bool) **out = **in } - if in.HasWiki != nil { - in, out := &in.HasWiki, &out.HasWiki + if in.RequireLastPushApproval != nil { + in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval *out = new(bool) **out = **in } - if in.HomepageURL != nil { - in, out := &in.HomepageURL, &out.HomepageURL - *out = new(string) + if in.RequiredApprovingReviewCount != nil { + in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount + *out = new(int64) **out = **in } - if in.IgnoreVulnerabilityAlertsDuringRead != nil { - in, out := &in.IgnoreVulnerabilityAlertsDuringRead, &out.IgnoreVulnerabilityAlertsDuringRead + if in.RestrictDismissals != nil { + in, out := &in.RestrictDismissals, &out.RestrictDismissals *out = new(bool) **out = **in } - if in.IsTemplate != nil { - in, out := &in.IsTemplate, &out.IsTemplate +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredPullRequestReviewsInitParameters. +func (in *RequiredPullRequestReviewsInitParameters) DeepCopy() *RequiredPullRequestReviewsInitParameters { + if in == nil { + return nil + } + out := new(RequiredPullRequestReviewsInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredPullRequestReviewsObservation) DeepCopyInto(out *RequiredPullRequestReviewsObservation) { + *out = *in + if in.DismissStaleReviews != nil { + in, out := &in.DismissStaleReviews, &out.DismissStaleReviews *out = new(bool) **out = **in } - if in.LicenseTemplate != nil { - in, out := &in.LicenseTemplate, &out.LicenseTemplate - *out = new(string) - **out = **in + if in.DismissalRestrictions != nil { + in, out := &in.DismissalRestrictions, &out.DismissalRestrictions + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.MergeCommitMessage != nil { - in, out := &in.MergeCommitMessage, &out.MergeCommitMessage - *out = new(string) - **out = **in + if in.PullRequestBypassers != nil { + in, out := &in.PullRequestBypassers, &out.PullRequestBypassers + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.MergeCommitTitle != nil { - in, out := &in.MergeCommitTitle, &out.MergeCommitTitle - *out = new(string) + if in.RequireCodeOwnerReviews != nil { + in, out := &in.RequireCodeOwnerReviews, &out.RequireCodeOwnerReviews + *out = new(bool) **out = **in } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) + if in.RequireLastPushApproval != nil { + in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval + *out = new(bool) **out = **in } - if in.Pages != nil { - in, out := &in.Pages, &out.Pages - *out = make([]PagesParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.RequiredApprovingReviewCount != nil { + in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount + *out = new(int64) + **out = **in } - if in.Private != nil { - in, out := &in.Private, &out.Private + if in.RestrictDismissals != nil { + in, out := &in.RestrictDismissals, &out.RestrictDismissals *out = new(bool) **out = **in } - if in.SecurityAndAnalysis != nil { - in, out := &in.SecurityAndAnalysis, &out.SecurityAndAnalysis - *out = make([]SecurityAndAnalysisParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.SquashMergeCommitMessage != nil { - in, out := &in.SquashMergeCommitMessage, &out.SquashMergeCommitMessage - *out = new(string) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredPullRequestReviewsObservation. +func (in *RequiredPullRequestReviewsObservation) DeepCopy() *RequiredPullRequestReviewsObservation { + if in == nil { + return nil } - if in.SquashMergeCommitTitle != nil { - in, out := &in.SquashMergeCommitTitle, &out.SquashMergeCommitTitle - *out = new(string) + out := new(RequiredPullRequestReviewsObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequiredPullRequestReviewsParameters) DeepCopyInto(out *RequiredPullRequestReviewsParameters) { + *out = *in + if in.DismissStaleReviews != nil { + in, out := &in.DismissStaleReviews, &out.DismissStaleReviews + *out = new(bool) **out = **in } - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = make([]TemplateParameters, len(*in)) + if in.DismissalRestrictions != nil { + in, out := &in.DismissalRestrictions, &out.DismissalRestrictions + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } } } - if in.Topics != nil { - in, out := &in.Topics, &out.Topics + if in.PullRequestBypassers != nil { + in, out := &in.PullRequestBypassers, &out.PullRequestBypassers *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -3521,112 +5137,105 @@ func (in *RepositoryParameters) DeepCopyInto(out *RepositoryParameters) { } } } - if in.Visibility != nil { - in, out := &in.Visibility, &out.Visibility - *out = new(string) + if in.RequireCodeOwnerReviews != nil { + in, out := &in.RequireCodeOwnerReviews, &out.RequireCodeOwnerReviews + *out = new(bool) **out = **in } - if in.VulnerabilityAlerts != nil { - in, out := &in.VulnerabilityAlerts, &out.VulnerabilityAlerts + if in.RequireLastPushApproval != nil { + in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval *out = new(bool) **out = **in } - if in.WebCommitSignoffRequired != nil { - in, out := &in.WebCommitSignoffRequired, &out.WebCommitSignoffRequired + if in.RequiredApprovingReviewCount != nil { + in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount + *out = new(int64) + **out = **in + } + if in.RestrictDismissals != nil { + in, out := &in.RestrictDismissals, &out.RestrictDismissals *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryParameters. -func (in *RepositoryParameters) DeepCopy() *RepositoryParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredPullRequestReviewsParameters. +func (in *RequiredPullRequestReviewsParameters) DeepCopy() *RequiredPullRequestReviewsParameters { if in == nil { return nil } - out := new(RepositoryParameters) + out := new(RequiredPullRequestReviewsParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec) { +func (in *RequiredStatusChecksInitParameters) DeepCopyInto(out *RequiredStatusChecksInitParameters) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySpec. -func (in *RepositorySpec) DeepCopy() *RepositorySpec { - if in == nil { - return nil + if in.Contexts != nil { + in, out := &in.Contexts, &out.Contexts + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Strict != nil { + in, out := &in.Strict, &out.Strict + *out = new(bool) + **out = **in } - out := new(RepositorySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryStatus. -func (in *RepositoryStatus) DeepCopy() *RepositoryStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredStatusChecksInitParameters. +func (in *RequiredStatusChecksInitParameters) DeepCopy() *RequiredStatusChecksInitParameters { if in == nil { return nil } - out := new(RepositoryStatus) + out := new(RequiredStatusChecksInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryWebhook) DeepCopyInto(out *RepositoryWebhook) { +func (in *RequiredStatusChecksObservation) DeepCopyInto(out *RequiredStatusChecksObservation) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.Contexts != nil { + in, out := &in.Contexts, &out.Contexts + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Strict != nil { + in, out := &in.Strict, &out.Strict + *out = new(bool) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhook. -func (in *RepositoryWebhook) DeepCopy() *RepositoryWebhook { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredStatusChecksObservation. +func (in *RequiredStatusChecksObservation) DeepCopy() *RequiredStatusChecksObservation { if in == nil { return nil } - out := new(RepositoryWebhook) + out := new(RequiredStatusChecksObservation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryWebhook) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryWebhookInitParameters) DeepCopyInto(out *RepositoryWebhookInitParameters) { +func (in *RequiredStatusChecksParameters) DeepCopyInto(out *RequiredStatusChecksParameters) { *out = *in - if in.Active != nil { - in, out := &in.Active, &out.Active - *out = new(bool) - **out = **in - } - if in.Configuration != nil { - in, out := &in.Configuration, &out.Configuration - *out = make([]ConfigurationInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Events != nil { - in, out := &in.Events, &out.Events + if in.Contexts != nil { + in, out := &in.Contexts, &out.Contexts *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -3636,87 +5245,64 @@ func (in *RepositoryWebhookInitParameters) DeepCopyInto(out *RepositoryWebhookIn } } } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository - *out = new(string) + if in.Strict != nil { + in, out := &in.Strict, &out.Strict + *out = new(bool) **out = **in } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookInitParameters. -func (in *RepositoryWebhookInitParameters) DeepCopy() *RepositoryWebhookInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredStatusChecksParameters. +func (in *RequiredStatusChecksParameters) DeepCopy() *RequiredStatusChecksParameters { if in == nil { return nil } - out := new(RepositoryWebhookInitParameters) + out := new(RequiredStatusChecksParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryWebhookList) DeepCopyInto(out *RepositoryWebhookList) { +func (in *RestrictPushesInitParameters) DeepCopyInto(out *RestrictPushesInitParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RepositoryWebhook, len(*in)) + if in.BlocksCreations != nil { + in, out := &in.BlocksCreations, &out.BlocksCreations + *out = new(bool) + **out = **in + } + if in.PushAllowances != nil { + in, out := &in.PushAllowances, &out.PushAllowances + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookList. -func (in *RepositoryWebhookList) DeepCopy() *RepositoryWebhookList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestrictPushesInitParameters. +func (in *RestrictPushesInitParameters) DeepCopy() *RestrictPushesInitParameters { if in == nil { return nil } - out := new(RepositoryWebhookList) + out := new(RestrictPushesInitParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RepositoryWebhookList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryWebhookObservation) DeepCopyInto(out *RepositoryWebhookObservation) { +func (in *RestrictPushesObservation) DeepCopyInto(out *RestrictPushesObservation) { *out = *in - if in.Active != nil { - in, out := &in.Active, &out.Active + if in.BlocksCreations != nil { + in, out := &in.BlocksCreations, &out.BlocksCreations *out = new(bool) **out = **in } - if in.Configuration != nil { - in, out := &in.Configuration, &out.Configuration - *out = make([]ConfigurationObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Etag != nil { - in, out := &in.Etag, &out.Etag - *out = new(string) - **out = **in - } - if in.Events != nil { - in, out := &in.Events, &out.Events + if in.PushAllowances != nil { + in, out := &in.PushAllowances, &out.PushAllowances *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -3726,50 +5312,28 @@ func (in *RepositoryWebhookObservation) DeepCopyInto(out *RepositoryWebhookObser } } } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository - *out = new(string) - **out = **in - } - if in.URL != nil { - in, out := &in.URL, &out.URL - *out = new(string) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookObservation. -func (in *RepositoryWebhookObservation) DeepCopy() *RepositoryWebhookObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestrictPushesObservation. +func (in *RestrictPushesObservation) DeepCopy() *RestrictPushesObservation { if in == nil { return nil } - out := new(RepositoryWebhookObservation) + out := new(RestrictPushesObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryWebhookParameters) DeepCopyInto(out *RepositoryWebhookParameters) { +func (in *RestrictPushesParameters) DeepCopyInto(out *RestrictPushesParameters) { *out = *in - if in.Active != nil { - in, out := &in.Active, &out.Active + if in.BlocksCreations != nil { + in, out := &in.BlocksCreations, &out.BlocksCreations *out = new(bool) **out = **in } - if in.Configuration != nil { - in, out := &in.Configuration, &out.Configuration - *out = make([]ConfigurationParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Events != nil { - in, out := &in.Events, &out.Events + if in.PushAllowances != nil { + in, out := &in.PushAllowances, &out.PushAllowances *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -3779,547 +5343,644 @@ func (in *RepositoryWebhookParameters) DeepCopyInto(out *RepositoryWebhookParame } } } - if in.Repository != nil { - in, out := &in.Repository, &out.Repository - *out = new(string) - **out = **in - } - if in.RepositoryRef != nil { - in, out := &in.RepositoryRef, &out.RepositoryRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.RepositorySelector != nil { - in, out := &in.RepositorySelector, &out.RepositorySelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookParameters. -func (in *RepositoryWebhookParameters) DeepCopy() *RepositoryWebhookParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestrictPushesParameters. +func (in *RestrictPushesParameters) DeepCopy() *RestrictPushesParameters { if in == nil { return nil } - out := new(RepositoryWebhookParameters) + out := new(RestrictPushesParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryWebhookSpec) DeepCopyInto(out *RepositoryWebhookSpec) { +func (in *ReviewersInitParameters) DeepCopyInto(out *ReviewersInitParameters) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]*int64, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(int64) + **out = **in + } + } + } + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]*int64, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(int64) + **out = **in + } + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookSpec. -func (in *RepositoryWebhookSpec) DeepCopy() *RepositoryWebhookSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewersInitParameters. +func (in *ReviewersInitParameters) DeepCopy() *ReviewersInitParameters { if in == nil { return nil } - out := new(RepositoryWebhookSpec) + out := new(ReviewersInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositoryWebhookStatus) DeepCopyInto(out *RepositoryWebhookStatus) { +func (in *ReviewersObservation) DeepCopyInto(out *ReviewersObservation) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]*int64, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(int64) + **out = **in + } + } + } + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]*int64, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(int64) + **out = **in + } + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryWebhookStatus. -func (in *RepositoryWebhookStatus) DeepCopy() *RepositoryWebhookStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewersObservation. +func (in *ReviewersObservation) DeepCopy() *ReviewersObservation { if in == nil { return nil } - out := new(RepositoryWebhookStatus) + out := new(ReviewersObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequiredPullRequestReviewsInitParameters) DeepCopyInto(out *RequiredPullRequestReviewsInitParameters) { +func (in *ReviewersParameters) DeepCopyInto(out *ReviewersParameters) { *out = *in - if in.DismissStaleReviews != nil { - in, out := &in.DismissStaleReviews, &out.DismissStaleReviews - *out = new(bool) - **out = **in - } - if in.DismissalRestrictions != nil { - in, out := &in.DismissalRestrictions, &out.DismissalRestrictions - *out = make([]*string, len(*in)) + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]*int64, len(*in)) for i := range *in { if (*in)[i] != nil { in, out := &(*in)[i], &(*out)[i] - *out = new(string) + *out = new(int64) **out = **in } } } - if in.PullRequestBypassers != nil { - in, out := &in.PullRequestBypassers, &out.PullRequestBypassers - *out = make([]*string, len(*in)) + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]*int64, len(*in)) for i := range *in { if (*in)[i] != nil { in, out := &(*in)[i], &(*out)[i] - *out = new(string) + *out = new(int64) **out = **in } } } - if in.RequireCodeOwnerReviews != nil { - in, out := &in.RequireCodeOwnerReviews, &out.RequireCodeOwnerReviews - *out = new(bool) - **out = **in - } - if in.RequireLastPushApproval != nil { - in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval - *out = new(bool) - **out = **in - } - if in.RequiredApprovingReviewCount != nil { - in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount - *out = new(int64) - **out = **in - } - if in.RestrictDismissals != nil { - in, out := &in.RestrictDismissals, &out.RestrictDismissals - *out = new(bool) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredPullRequestReviewsInitParameters. -func (in *RequiredPullRequestReviewsInitParameters) DeepCopy() *RequiredPullRequestReviewsInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewersParameters. +func (in *ReviewersParameters) DeepCopy() *ReviewersParameters { if in == nil { return nil } - out := new(RequiredPullRequestReviewsInitParameters) + out := new(ReviewersParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequiredPullRequestReviewsObservation) DeepCopyInto(out *RequiredPullRequestReviewsObservation) { +func (in *RulesInitParameters) DeepCopyInto(out *RulesInitParameters) { *out = *in - if in.DismissStaleReviews != nil { - in, out := &in.DismissStaleReviews, &out.DismissStaleReviews + if in.BranchNamePattern != nil { + in, out := &in.BranchNamePattern, &out.BranchNamePattern + *out = make([]BranchNamePatternInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CommitAuthorEmailPattern != nil { + in, out := &in.CommitAuthorEmailPattern, &out.CommitAuthorEmailPattern + *out = make([]CommitAuthorEmailPatternInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CommitMessagePattern != nil { + in, out := &in.CommitMessagePattern, &out.CommitMessagePattern + *out = make([]CommitMessagePatternInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CommitterEmailPattern != nil { + in, out := &in.CommitterEmailPattern, &out.CommitterEmailPattern + *out = make([]CommitterEmailPatternInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Creation != nil { + in, out := &in.Creation, &out.Creation *out = new(bool) **out = **in } - if in.DismissalRestrictions != nil { - in, out := &in.DismissalRestrictions, &out.DismissalRestrictions - *out = make([]*string, len(*in)) + if in.Deletion != nil { + in, out := &in.Deletion, &out.Deletion + *out = new(bool) + **out = **in + } + if in.NonFastForward != nil { + in, out := &in.NonFastForward, &out.NonFastForward + *out = new(bool) + **out = **in + } + if in.PullRequest != nil { + in, out := &in.PullRequest, &out.PullRequest + *out = make([]RulesPullRequestInitParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.PullRequestBypassers != nil { - in, out := &in.PullRequestBypassers, &out.PullRequestBypassers - *out = make([]*string, len(*in)) + if in.RequiredDeployments != nil { + in, out := &in.RequiredDeployments, &out.RequiredDeployments + *out = make([]RequiredDeploymentsInitParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.RequireCodeOwnerReviews != nil { - in, out := &in.RequireCodeOwnerReviews, &out.RequireCodeOwnerReviews + if in.RequiredLinearHistory != nil { + in, out := &in.RequiredLinearHistory, &out.RequiredLinearHistory *out = new(bool) **out = **in } - if in.RequireLastPushApproval != nil { - in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval + if in.RequiredSignatures != nil { + in, out := &in.RequiredSignatures, &out.RequiredSignatures *out = new(bool) **out = **in } - if in.RequiredApprovingReviewCount != nil { - in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount - *out = new(int64) + if in.RequiredStatusChecks != nil { + in, out := &in.RequiredStatusChecks, &out.RequiredStatusChecks + *out = make([]RulesRequiredStatusChecksInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.TagNamePattern != nil { + in, out := &in.TagNamePattern, &out.TagNamePattern + *out = make([]TagNamePatternInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Update != nil { + in, out := &in.Update, &out.Update + *out = new(bool) **out = **in } - if in.RestrictDismissals != nil { - in, out := &in.RestrictDismissals, &out.RestrictDismissals + if in.UpdateAllowsFetchAndMerge != nil { + in, out := &in.UpdateAllowsFetchAndMerge, &out.UpdateAllowsFetchAndMerge *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredPullRequestReviewsObservation. -func (in *RequiredPullRequestReviewsObservation) DeepCopy() *RequiredPullRequestReviewsObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesInitParameters. +func (in *RulesInitParameters) DeepCopy() *RulesInitParameters { if in == nil { return nil } - out := new(RequiredPullRequestReviewsObservation) + out := new(RulesInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequiredPullRequestReviewsParameters) DeepCopyInto(out *RequiredPullRequestReviewsParameters) { +func (in *RulesObservation) DeepCopyInto(out *RulesObservation) { *out = *in - if in.DismissStaleReviews != nil { - in, out := &in.DismissStaleReviews, &out.DismissStaleReviews + if in.BranchNamePattern != nil { + in, out := &in.BranchNamePattern, &out.BranchNamePattern + *out = make([]BranchNamePatternObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CommitAuthorEmailPattern != nil { + in, out := &in.CommitAuthorEmailPattern, &out.CommitAuthorEmailPattern + *out = make([]CommitAuthorEmailPatternObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CommitMessagePattern != nil { + in, out := &in.CommitMessagePattern, &out.CommitMessagePattern + *out = make([]CommitMessagePatternObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CommitterEmailPattern != nil { + in, out := &in.CommitterEmailPattern, &out.CommitterEmailPattern + *out = make([]CommitterEmailPatternObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Creation != nil { + in, out := &in.Creation, &out.Creation *out = new(bool) **out = **in } - if in.DismissalRestrictions != nil { - in, out := &in.DismissalRestrictions, &out.DismissalRestrictions - *out = make([]*string, len(*in)) + if in.Deletion != nil { + in, out := &in.Deletion, &out.Deletion + *out = new(bool) + **out = **in + } + if in.NonFastForward != nil { + in, out := &in.NonFastForward, &out.NonFastForward + *out = new(bool) + **out = **in + } + if in.PullRequest != nil { + in, out := &in.PullRequest, &out.PullRequest + *out = make([]RulesPullRequestObservation, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.PullRequestBypassers != nil { - in, out := &in.PullRequestBypassers, &out.PullRequestBypassers - *out = make([]*string, len(*in)) + if in.RequiredDeployments != nil { + in, out := &in.RequiredDeployments, &out.RequiredDeployments + *out = make([]RequiredDeploymentsObservation, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.RequireCodeOwnerReviews != nil { - in, out := &in.RequireCodeOwnerReviews, &out.RequireCodeOwnerReviews + if in.RequiredLinearHistory != nil { + in, out := &in.RequiredLinearHistory, &out.RequiredLinearHistory *out = new(bool) **out = **in } - if in.RequireLastPushApproval != nil { - in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval + if in.RequiredSignatures != nil { + in, out := &in.RequiredSignatures, &out.RequiredSignatures *out = new(bool) **out = **in } - if in.RequiredApprovingReviewCount != nil { - in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount - *out = new(int64) + if in.RequiredStatusChecks != nil { + in, out := &in.RequiredStatusChecks, &out.RequiredStatusChecks + *out = make([]RulesRequiredStatusChecksObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.TagNamePattern != nil { + in, out := &in.TagNamePattern, &out.TagNamePattern + *out = make([]TagNamePatternObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Update != nil { + in, out := &in.Update, &out.Update + *out = new(bool) **out = **in } - if in.RestrictDismissals != nil { - in, out := &in.RestrictDismissals, &out.RestrictDismissals + if in.UpdateAllowsFetchAndMerge != nil { + in, out := &in.UpdateAllowsFetchAndMerge, &out.UpdateAllowsFetchAndMerge *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredPullRequestReviewsParameters. -func (in *RequiredPullRequestReviewsParameters) DeepCopy() *RequiredPullRequestReviewsParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesObservation. +func (in *RulesObservation) DeepCopy() *RulesObservation { if in == nil { return nil } - out := new(RequiredPullRequestReviewsParameters) + out := new(RulesObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequiredStatusChecksInitParameters) DeepCopyInto(out *RequiredStatusChecksInitParameters) { +func (in *RulesParameters) DeepCopyInto(out *RulesParameters) { *out = *in - if in.Contexts != nil { - in, out := &in.Contexts, &out.Contexts - *out = make([]*string, len(*in)) + if in.BranchNamePattern != nil { + in, out := &in.BranchNamePattern, &out.BranchNamePattern + *out = make([]BranchNamePatternParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Strict != nil { - in, out := &in.Strict, &out.Strict + if in.CommitAuthorEmailPattern != nil { + in, out := &in.CommitAuthorEmailPattern, &out.CommitAuthorEmailPattern + *out = make([]CommitAuthorEmailPatternParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CommitMessagePattern != nil { + in, out := &in.CommitMessagePattern, &out.CommitMessagePattern + *out = make([]CommitMessagePatternParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CommitterEmailPattern != nil { + in, out := &in.CommitterEmailPattern, &out.CommitterEmailPattern + *out = make([]CommitterEmailPatternParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Creation != nil { + in, out := &in.Creation, &out.Creation *out = new(bool) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredStatusChecksInitParameters. -func (in *RequiredStatusChecksInitParameters) DeepCopy() *RequiredStatusChecksInitParameters { - if in == nil { - return nil + if in.Deletion != nil { + in, out := &in.Deletion, &out.Deletion + *out = new(bool) + **out = **in } - out := new(RequiredStatusChecksInitParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequiredStatusChecksObservation) DeepCopyInto(out *RequiredStatusChecksObservation) { - *out = *in - if in.Contexts != nil { - in, out := &in.Contexts, &out.Contexts - *out = make([]*string, len(*in)) + if in.NonFastForward != nil { + in, out := &in.NonFastForward, &out.NonFastForward + *out = new(bool) + **out = **in + } + if in.PullRequest != nil { + in, out := &in.PullRequest, &out.PullRequest + *out = make([]RulesPullRequestParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Strict != nil { - in, out := &in.Strict, &out.Strict + if in.RequiredDeployments != nil { + in, out := &in.RequiredDeployments, &out.RequiredDeployments + *out = make([]RequiredDeploymentsParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.RequiredLinearHistory != nil { + in, out := &in.RequiredLinearHistory, &out.RequiredLinearHistory *out = new(bool) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredStatusChecksObservation. -func (in *RequiredStatusChecksObservation) DeepCopy() *RequiredStatusChecksObservation { - if in == nil { - return nil + if in.RequiredSignatures != nil { + in, out := &in.RequiredSignatures, &out.RequiredSignatures + *out = new(bool) + **out = **in } - out := new(RequiredStatusChecksObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequiredStatusChecksParameters) DeepCopyInto(out *RequiredStatusChecksParameters) { - *out = *in - if in.Contexts != nil { - in, out := &in.Contexts, &out.Contexts - *out = make([]*string, len(*in)) + if in.RequiredStatusChecks != nil { + in, out := &in.RequiredStatusChecks, &out.RequiredStatusChecks + *out = make([]RulesRequiredStatusChecksParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.TagNamePattern != nil { + in, out := &in.TagNamePattern, &out.TagNamePattern + *out = make([]TagNamePatternParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Strict != nil { - in, out := &in.Strict, &out.Strict + if in.Update != nil { + in, out := &in.Update, &out.Update + *out = new(bool) + **out = **in + } + if in.UpdateAllowsFetchAndMerge != nil { + in, out := &in.UpdateAllowsFetchAndMerge, &out.UpdateAllowsFetchAndMerge *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredStatusChecksParameters. -func (in *RequiredStatusChecksParameters) DeepCopy() *RequiredStatusChecksParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesParameters. +func (in *RulesParameters) DeepCopy() *RulesParameters { if in == nil { return nil } - out := new(RequiredStatusChecksParameters) + out := new(RulesParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RestrictPushesInitParameters) DeepCopyInto(out *RestrictPushesInitParameters) { +func (in *RulesPullRequestInitParameters) DeepCopyInto(out *RulesPullRequestInitParameters) { *out = *in - if in.BlocksCreations != nil { - in, out := &in.BlocksCreations, &out.BlocksCreations + if in.DismissStaleReviewsOnPush != nil { + in, out := &in.DismissStaleReviewsOnPush, &out.DismissStaleReviewsOnPush *out = new(bool) **out = **in } - if in.PushAllowances != nil { - in, out := &in.PushAllowances, &out.PushAllowances - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } + if in.RequireCodeOwnerReview != nil { + in, out := &in.RequireCodeOwnerReview, &out.RequireCodeOwnerReview + *out = new(bool) + **out = **in + } + if in.RequireLastPushApproval != nil { + in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval + *out = new(bool) + **out = **in + } + if in.RequiredApprovingReviewCount != nil { + in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount + *out = new(int64) + **out = **in + } + if in.RequiredReviewThreadResolution != nil { + in, out := &in.RequiredReviewThreadResolution, &out.RequiredReviewThreadResolution + *out = new(bool) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestrictPushesInitParameters. -func (in *RestrictPushesInitParameters) DeepCopy() *RestrictPushesInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesPullRequestInitParameters. +func (in *RulesPullRequestInitParameters) DeepCopy() *RulesPullRequestInitParameters { if in == nil { return nil } - out := new(RestrictPushesInitParameters) + out := new(RulesPullRequestInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RestrictPushesObservation) DeepCopyInto(out *RestrictPushesObservation) { +func (in *RulesPullRequestObservation) DeepCopyInto(out *RulesPullRequestObservation) { *out = *in - if in.BlocksCreations != nil { - in, out := &in.BlocksCreations, &out.BlocksCreations + if in.DismissStaleReviewsOnPush != nil { + in, out := &in.DismissStaleReviewsOnPush, &out.DismissStaleReviewsOnPush *out = new(bool) **out = **in } - if in.PushAllowances != nil { - in, out := &in.PushAllowances, &out.PushAllowances - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } + if in.RequireCodeOwnerReview != nil { + in, out := &in.RequireCodeOwnerReview, &out.RequireCodeOwnerReview + *out = new(bool) + **out = **in + } + if in.RequireLastPushApproval != nil { + in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval + *out = new(bool) + **out = **in + } + if in.RequiredApprovingReviewCount != nil { + in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount + *out = new(int64) + **out = **in + } + if in.RequiredReviewThreadResolution != nil { + in, out := &in.RequiredReviewThreadResolution, &out.RequiredReviewThreadResolution + *out = new(bool) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestrictPushesObservation. -func (in *RestrictPushesObservation) DeepCopy() *RestrictPushesObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesPullRequestObservation. +func (in *RulesPullRequestObservation) DeepCopy() *RulesPullRequestObservation { if in == nil { return nil } - out := new(RestrictPushesObservation) + out := new(RulesPullRequestObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RestrictPushesParameters) DeepCopyInto(out *RestrictPushesParameters) { +func (in *RulesPullRequestParameters) DeepCopyInto(out *RulesPullRequestParameters) { *out = *in - if in.BlocksCreations != nil { - in, out := &in.BlocksCreations, &out.BlocksCreations + if in.DismissStaleReviewsOnPush != nil { + in, out := &in.DismissStaleReviewsOnPush, &out.DismissStaleReviewsOnPush *out = new(bool) **out = **in } - if in.PushAllowances != nil { - in, out := &in.PushAllowances, &out.PushAllowances - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } + if in.RequireCodeOwnerReview != nil { + in, out := &in.RequireCodeOwnerReview, &out.RequireCodeOwnerReview + *out = new(bool) + **out = **in + } + if in.RequireLastPushApproval != nil { + in, out := &in.RequireLastPushApproval, &out.RequireLastPushApproval + *out = new(bool) + **out = **in + } + if in.RequiredApprovingReviewCount != nil { + in, out := &in.RequiredApprovingReviewCount, &out.RequiredApprovingReviewCount + *out = new(int64) + **out = **in + } + if in.RequiredReviewThreadResolution != nil { + in, out := &in.RequiredReviewThreadResolution, &out.RequiredReviewThreadResolution + *out = new(bool) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestrictPushesParameters. -func (in *RestrictPushesParameters) DeepCopy() *RestrictPushesParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesPullRequestParameters. +func (in *RulesPullRequestParameters) DeepCopy() *RulesPullRequestParameters { if in == nil { return nil } - out := new(RestrictPushesParameters) + out := new(RulesPullRequestParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReviewersInitParameters) DeepCopyInto(out *ReviewersInitParameters) { +func (in *RulesRequiredStatusChecksInitParameters) DeepCopyInto(out *RulesRequiredStatusChecksInitParameters) { *out = *in - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]*int64, len(*in)) + if in.RequiredCheck != nil { + in, out := &in.RequiredCheck, &out.RequiredCheck + *out = make([]RequiredCheckInitParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(int64) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]*int64, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(int64) - **out = **in - } - } + if in.StrictRequiredStatusChecksPolicy != nil { + in, out := &in.StrictRequiredStatusChecksPolicy, &out.StrictRequiredStatusChecksPolicy + *out = new(bool) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewersInitParameters. -func (in *ReviewersInitParameters) DeepCopy() *ReviewersInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesRequiredStatusChecksInitParameters. +func (in *RulesRequiredStatusChecksInitParameters) DeepCopy() *RulesRequiredStatusChecksInitParameters { if in == nil { return nil } - out := new(ReviewersInitParameters) + out := new(RulesRequiredStatusChecksInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReviewersObservation) DeepCopyInto(out *ReviewersObservation) { +func (in *RulesRequiredStatusChecksObservation) DeepCopyInto(out *RulesRequiredStatusChecksObservation) { *out = *in - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]*int64, len(*in)) + if in.RequiredCheck != nil { + in, out := &in.RequiredCheck, &out.RequiredCheck + *out = make([]RequiredCheckObservation, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(int64) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]*int64, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(int64) - **out = **in - } - } + if in.StrictRequiredStatusChecksPolicy != nil { + in, out := &in.StrictRequiredStatusChecksPolicy, &out.StrictRequiredStatusChecksPolicy + *out = new(bool) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewersObservation. -func (in *ReviewersObservation) DeepCopy() *ReviewersObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesRequiredStatusChecksObservation. +func (in *RulesRequiredStatusChecksObservation) DeepCopy() *RulesRequiredStatusChecksObservation { if in == nil { return nil } - out := new(ReviewersObservation) + out := new(RulesRequiredStatusChecksObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReviewersParameters) DeepCopyInto(out *ReviewersParameters) { +func (in *RulesRequiredStatusChecksParameters) DeepCopyInto(out *RulesRequiredStatusChecksParameters) { *out = *in - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]*int64, len(*in)) + if in.RequiredCheck != nil { + in, out := &in.RequiredCheck, &out.RequiredCheck + *out = make([]RequiredCheckParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(int64) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]*int64, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(int64) - **out = **in - } - } + if in.StrictRequiredStatusChecksPolicy != nil { + in, out := &in.StrictRequiredStatusChecksPolicy, &out.StrictRequiredStatusChecksPolicy + *out = new(bool) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewersParameters. -func (in *ReviewersParameters) DeepCopy() *ReviewersParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesRequiredStatusChecksParameters. +func (in *RulesRequiredStatusChecksParameters) DeepCopy() *RulesRequiredStatusChecksParameters { if in == nil { return nil } - out := new(ReviewersParameters) + out := new(RulesRequiredStatusChecksParameters) in.DeepCopyInto(out) return out } @@ -4627,6 +6288,111 @@ func (in *SourceParameters) DeepCopy() *SourceParameters { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TagNamePatternInitParameters) DeepCopyInto(out *TagNamePatternInitParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagNamePatternInitParameters. +func (in *TagNamePatternInitParameters) DeepCopy() *TagNamePatternInitParameters { + if in == nil { + return nil + } + out := new(TagNamePatternInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TagNamePatternObservation) DeepCopyInto(out *TagNamePatternObservation) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagNamePatternObservation. +func (in *TagNamePatternObservation) DeepCopy() *TagNamePatternObservation { + if in == nil { + return nil + } + out := new(TagNamePatternObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TagNamePatternParameters) DeepCopyInto(out *TagNamePatternParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Negate != nil { + in, out := &in.Negate, &out.Negate + *out = new(bool) + **out = **in + } + if in.Operator != nil { + in, out := &in.Operator, &out.Operator + *out = new(string) + **out = **in + } + if in.Pattern != nil { + in, out := &in.Pattern, &out.Pattern + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagNamePatternParameters. +func (in *TagNamePatternParameters) DeepCopy() *TagNamePatternParameters { + if in == nil { + return nil + } + out := new(TagNamePatternParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TemplateInitParameters) DeepCopyInto(out *TemplateInitParameters) { *out = *in diff --git a/apis/repo/v1alpha1/zz_generated.managed.go b/apis/repo/v1alpha1/zz_generated.managed.go index 997f8c6..ceb9d1f 100644 --- a/apis/repo/v1alpha1/zz_generated.managed.go +++ b/apis/repo/v1alpha1/zz_generated.managed.go @@ -607,6 +607,66 @@ func (mg *RepositoryFile) SetWriteConnectionSecretToReference(r *xpv1.SecretRefe mg.Spec.WriteConnectionSecretToReference = r } +// GetCondition of this RepositoryRuleset. +func (mg *RepositoryRuleset) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this RepositoryRuleset. +func (mg *RepositoryRuleset) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this RepositoryRuleset. +func (mg *RepositoryRuleset) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this RepositoryRuleset. +func (mg *RepositoryRuleset) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this RepositoryRuleset. +func (mg *RepositoryRuleset) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this RepositoryRuleset. +func (mg *RepositoryRuleset) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this RepositoryRuleset. +func (mg *RepositoryRuleset) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this RepositoryRuleset. +func (mg *RepositoryRuleset) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this RepositoryRuleset. +func (mg *RepositoryRuleset) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this RepositoryRuleset. +func (mg *RepositoryRuleset) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this RepositoryRuleset. +func (mg *RepositoryRuleset) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this RepositoryRuleset. +func (mg *RepositoryRuleset) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this RepositoryWebhook. func (mg *RepositoryWebhook) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/repo/v1alpha1/zz_generated.managedlist.go b/apis/repo/v1alpha1/zz_generated.managedlist.go index 4e5c0f2..a0fb21e 100644 --- a/apis/repo/v1alpha1/zz_generated.managedlist.go +++ b/apis/repo/v1alpha1/zz_generated.managedlist.go @@ -97,6 +97,15 @@ func (l *RepositoryList) GetItems() []resource.Managed { return items } +// GetItems of this RepositoryRulesetList. +func (l *RepositoryRulesetList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + // GetItems of this RepositoryWebhookList. func (l *RepositoryWebhookList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/repo/v1alpha1/zz_generated.resolvers.go b/apis/repo/v1alpha1/zz_generated.resolvers.go index cbfae1b..e0322a1 100644 --- a/apis/repo/v1alpha1/zz_generated.resolvers.go +++ b/apis/repo/v1alpha1/zz_generated.resolvers.go @@ -455,6 +455,48 @@ func (mg *RepositoryFile) ResolveReferences(ctx context.Context, c client.Reader return nil } +// ResolveReferences of this RepositoryRuleset. +func (mg *RepositoryRuleset) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Repository), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.RepositoryRef, + Selector: mg.Spec.ForProvider.RepositorySelector, + To: reference.To{ + List: &RepositoryList{}, + Managed: &Repository{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Repository") + } + mg.Spec.ForProvider.Repository = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.RepositoryRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.Repository), + Extract: reference.ExternalName(), + Reference: mg.Spec.InitProvider.RepositoryRef, + Selector: mg.Spec.InitProvider.RepositorySelector, + To: reference.To{ + List: &RepositoryList{}, + Managed: &Repository{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Repository") + } + mg.Spec.InitProvider.Repository = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.RepositoryRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this RepositoryWebhook. func (mg *RepositoryWebhook) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) diff --git a/apis/repo/v1alpha1/zz_repositoryruleset_terraformed.go b/apis/repo/v1alpha1/zz_repositoryruleset_terraformed.go new file mode 100755 index 0000000..96c58ea --- /dev/null +++ b/apis/repo/v1alpha1/zz_repositoryruleset_terraformed.go @@ -0,0 +1,129 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1alpha1 + +import ( + "dario.cat/mergo" + "github.com/pkg/errors" + + "github.com/crossplane/upjet/pkg/resource" + "github.com/crossplane/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this RepositoryRuleset +func (mg *RepositoryRuleset) GetTerraformResourceType() string { + return "github_repository_ruleset" +} + +// GetConnectionDetailsMapping for this RepositoryRuleset +func (tr *RepositoryRuleset) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this RepositoryRuleset +func (tr *RepositoryRuleset) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this RepositoryRuleset +func (tr *RepositoryRuleset) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this RepositoryRuleset +func (tr *RepositoryRuleset) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this RepositoryRuleset +func (tr *RepositoryRuleset) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this RepositoryRuleset +func (tr *RepositoryRuleset) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// GetInitParameters of this RepositoryRuleset +func (tr *RepositoryRuleset) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// GetInitParameters of this RepositoryRuleset +func (tr *RepositoryRuleset) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { + params, err := tr.GetParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) + } + if !shouldMergeInitProvider { + return params, nil + } + + initParams, err := tr.GetInitParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get init parameters for resource '%q'", tr.GetName()) + } + + // Note(lsviben): mergo.WithSliceDeepCopy is needed to merge the + // slices from the initProvider to forProvider. As it also sets + // overwrite to true, we need to set it back to false, we don't + // want to overwrite the forProvider fields with the initProvider + // fields. + err = mergo.Merge(¶ms, initParams, mergo.WithSliceDeepCopy, func(c *mergo.Config) { + c.Overwrite = false + }) + if err != nil { + return nil, errors.Wrapf(err, "cannot merge spec.initProvider and spec.forProvider parameters for resource '%q'", tr.GetName()) + } + + return params, nil +} + +// LateInitialize this RepositoryRuleset using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *RepositoryRuleset) LateInitialize(attrs []byte) (bool, error) { + params := &RepositoryRulesetParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *RepositoryRuleset) GetTerraformSchemaVersion() int { + return 1 +} diff --git a/apis/repo/v1alpha1/zz_repositoryruleset_types.go b/apis/repo/v1alpha1/zz_repositoryruleset_types.go new file mode 100755 index 0000000..b704bab --- /dev/null +++ b/apis/repo/v1alpha1/zz_repositoryruleset_types.go @@ -0,0 +1,987 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type BranchNamePatternInitParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type BranchNamePatternObservation struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type BranchNamePatternParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + // +kubebuilder:validation:Optional + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + // +kubebuilder:validation:Optional + Operator *string `json:"operator" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + // +kubebuilder:validation:Optional + Pattern *string `json:"pattern" tf:"pattern,omitempty"` +} + +type BypassActorsInitParameters struct { + + // (Number) The ID of the actor that can bypass a ruleset. + // The ID of the actor that can bypass a ruleset. When `actor_type` is `OrganizationAdmin`, this should be set to `1`. + ActorID *int64 `json:"actorId,omitempty" tf:"actor_id,omitempty"` + + // (String) The type of actor that can bypass a ruleset. Can be one of: RepositoryRole, Team, Integration, OrganizationAdmin. + // The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`. + ActorType *string `json:"actorType,omitempty" tf:"actor_type,omitempty"` + + // (String) When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: always, pull_request. + // When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pull_request`. + BypassMode *string `json:"bypassMode,omitempty" tf:"bypass_mode,omitempty"` +} + +type BypassActorsObservation struct { + + // (Number) The ID of the actor that can bypass a ruleset. + // The ID of the actor that can bypass a ruleset. When `actor_type` is `OrganizationAdmin`, this should be set to `1`. + ActorID *int64 `json:"actorId,omitempty" tf:"actor_id,omitempty"` + + // (String) The type of actor that can bypass a ruleset. Can be one of: RepositoryRole, Team, Integration, OrganizationAdmin. + // The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`. + ActorType *string `json:"actorType,omitempty" tf:"actor_type,omitempty"` + + // (String) When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: always, pull_request. + // When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pull_request`. + BypassMode *string `json:"bypassMode,omitempty" tf:"bypass_mode,omitempty"` +} + +type BypassActorsParameters struct { + + // (Number) The ID of the actor that can bypass a ruleset. + // The ID of the actor that can bypass a ruleset. When `actor_type` is `OrganizationAdmin`, this should be set to `1`. + // +kubebuilder:validation:Optional + ActorID *int64 `json:"actorId" tf:"actor_id,omitempty"` + + // (String) The type of actor that can bypass a ruleset. Can be one of: RepositoryRole, Team, Integration, OrganizationAdmin. + // The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`. + // +kubebuilder:validation:Optional + ActorType *string `json:"actorType" tf:"actor_type,omitempty"` + + // (String) When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: always, pull_request. + // When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pull_request`. + // +kubebuilder:validation:Optional + BypassMode *string `json:"bypassMode" tf:"bypass_mode,omitempty"` +} + +type CommitAuthorEmailPatternInitParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type CommitAuthorEmailPatternObservation struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type CommitAuthorEmailPatternParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + // +kubebuilder:validation:Optional + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + // +kubebuilder:validation:Optional + Operator *string `json:"operator" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + // +kubebuilder:validation:Optional + Pattern *string `json:"pattern" tf:"pattern,omitempty"` +} + +type CommitMessagePatternInitParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type CommitMessagePatternObservation struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type CommitMessagePatternParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + // +kubebuilder:validation:Optional + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + // +kubebuilder:validation:Optional + Operator *string `json:"operator" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + // +kubebuilder:validation:Optional + Pattern *string `json:"pattern" tf:"pattern,omitempty"` +} + +type CommitterEmailPatternInitParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type CommitterEmailPatternObservation struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type CommitterEmailPatternParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + // +kubebuilder:validation:Optional + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + // +kubebuilder:validation:Optional + Operator *string `json:"operator" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + // +kubebuilder:validation:Optional + Pattern *string `json:"pattern" tf:"pattern,omitempty"` +} + +type ConditionsInitParameters struct { + + // (Block List, Min: 1, Max: 1) (see below for nested schema) + RefName []RefNameInitParameters `json:"refName,omitempty" tf:"ref_name,omitempty"` +} + +type ConditionsObservation struct { + + // (Block List, Min: 1, Max: 1) (see below for nested schema) + RefName []RefNameObservation `json:"refName,omitempty" tf:"ref_name,omitempty"` +} + +type ConditionsParameters struct { + + // (Block List, Min: 1, Max: 1) (see below for nested schema) + // +kubebuilder:validation:Optional + RefName []RefNameParameters `json:"refName" tf:"ref_name,omitempty"` +} + +type RefNameInitParameters struct { + + // (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + // Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + Exclude []*string `json:"exclude,omitempty" tf:"exclude,omitempty"` + + // (List of String) Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches. + // Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. + Include []*string `json:"include,omitempty" tf:"include,omitempty"` +} + +type RefNameObservation struct { + + // (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + // Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + Exclude []*string `json:"exclude,omitempty" tf:"exclude,omitempty"` + + // (List of String) Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches. + // Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. + Include []*string `json:"include,omitempty" tf:"include,omitempty"` +} + +type RefNameParameters struct { + + // (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + // Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + // +kubebuilder:validation:Optional + Exclude []*string `json:"exclude" tf:"exclude,omitempty"` + + // (List of String) Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches. + // Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. + // +kubebuilder:validation:Optional + Include []*string `json:"include" tf:"include,omitempty"` +} + +type RepositoryRulesetInitParameters struct { + + // (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + // The actors that can bypass the rules in this ruleset. + BypassActors []BypassActorsInitParameters `json:"bypassActors,omitempty" tf:"bypass_actors,omitempty"` + + // (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) + // Parameters for a repository ruleset ref name condition. + Conditions []ConditionsInitParameters `json:"conditions,omitempty" tf:"conditions,omitempty"` + + // (String) Possible values for Enforcement are disabled, active, evaluate. Note: evaluate is currently only supported for owners of type organization. + // Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. + Enforcement *string `json:"enforcement,omitempty" tf:"enforcement,omitempty"` + + // (String) The name of the ruleset. + // The name of the ruleset. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (String) Name of the repository to apply rulset to. + // Name of the repository to apply rulset to. + // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-upjet-github/apis/repo/v1alpha1.Repository + Repository *string `json:"repository,omitempty" tf:"repository,omitempty"` + + // Reference to a Repository in repo to populate repository. + // +kubebuilder:validation:Optional + RepositoryRef *v1.Reference `json:"repositoryRef,omitempty" tf:"-"` + + // Selector for a Repository in repo to populate repository. + // +kubebuilder:validation:Optional + RepositorySelector *v1.Selector `json:"repositorySelector,omitempty" tf:"-"` + + // (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + // Rules within the ruleset. + Rules []RulesInitParameters `json:"rules,omitempty" tf:"rules,omitempty"` + + // (String) Possible values are branch and tag. + // Possible values are `branch` and `tag`. + Target *string `json:"target,omitempty" tf:"target,omitempty"` +} + +type RepositoryRulesetObservation struct { + + // (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + // The actors that can bypass the rules in this ruleset. + BypassActors []BypassActorsObservation `json:"bypassActors,omitempty" tf:"bypass_actors,omitempty"` + + // (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) + // Parameters for a repository ruleset ref name condition. + Conditions []ConditionsObservation `json:"conditions,omitempty" tf:"conditions,omitempty"` + + // (String) Possible values for Enforcement are disabled, active, evaluate. Note: evaluate is currently only supported for owners of type organization. + // Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. + Enforcement *string `json:"enforcement,omitempty" tf:"enforcement,omitempty"` + + // (String) + Etag *string `json:"etag,omitempty" tf:"etag,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // (String) The name of the ruleset. + // The name of the ruleset. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (String) GraphQL global node id for use with v4 API. + // GraphQL global node id for use with v4 API. + NodeID *string `json:"nodeId,omitempty" tf:"node_id,omitempty"` + + // (String) Name of the repository to apply rulset to. + // Name of the repository to apply rulset to. + Repository *string `json:"repository,omitempty" tf:"repository,omitempty"` + + // (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + // Rules within the ruleset. + Rules []RulesObservation `json:"rules,omitempty" tf:"rules,omitempty"` + + // (Number) GitHub ID for the ruleset. + // GitHub ID for the ruleset. + RulesetID *int64 `json:"rulesetId,omitempty" tf:"ruleset_id,omitempty"` + + // (String) Possible values are branch and tag. + // Possible values are `branch` and `tag`. + Target *string `json:"target,omitempty" tf:"target,omitempty"` +} + +type RepositoryRulesetParameters struct { + + // (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + // The actors that can bypass the rules in this ruleset. + // +kubebuilder:validation:Optional + BypassActors []BypassActorsParameters `json:"bypassActors,omitempty" tf:"bypass_actors,omitempty"` + + // (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) + // Parameters for a repository ruleset ref name condition. + // +kubebuilder:validation:Optional + Conditions []ConditionsParameters `json:"conditions,omitempty" tf:"conditions,omitempty"` + + // (String) Possible values for Enforcement are disabled, active, evaluate. Note: evaluate is currently only supported for owners of type organization. + // Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. + // +kubebuilder:validation:Optional + Enforcement *string `json:"enforcement,omitempty" tf:"enforcement,omitempty"` + + // (String) The name of the ruleset. + // The name of the ruleset. + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (String) Name of the repository to apply rulset to. + // Name of the repository to apply rulset to. + // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-upjet-github/apis/repo/v1alpha1.Repository + // +kubebuilder:validation:Optional + Repository *string `json:"repository,omitempty" tf:"repository,omitempty"` + + // Reference to a Repository in repo to populate repository. + // +kubebuilder:validation:Optional + RepositoryRef *v1.Reference `json:"repositoryRef,omitempty" tf:"-"` + + // Selector for a Repository in repo to populate repository. + // +kubebuilder:validation:Optional + RepositorySelector *v1.Selector `json:"repositorySelector,omitempty" tf:"-"` + + // (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + // Rules within the ruleset. + // +kubebuilder:validation:Optional + Rules []RulesParameters `json:"rules,omitempty" tf:"rules,omitempty"` + + // (String) Possible values are branch and tag. + // Possible values are `branch` and `tag`. + // +kubebuilder:validation:Optional + Target *string `json:"target,omitempty" tf:"target,omitempty"` +} + +type RequiredCheckInitParameters struct { + + // (String) The status check context name that must be present on the commit. + // The status check context name that must be present on the commit. + Context *string `json:"context,omitempty" tf:"context,omitempty"` + + // (Number) The optional integration ID that this status check must originate from. + // The optional integration ID that this status check must originate from. + IntegrationID *int64 `json:"integrationId,omitempty" tf:"integration_id,omitempty"` +} + +type RequiredCheckObservation struct { + + // (String) The status check context name that must be present on the commit. + // The status check context name that must be present on the commit. + Context *string `json:"context,omitempty" tf:"context,omitempty"` + + // (Number) The optional integration ID that this status check must originate from. + // The optional integration ID that this status check must originate from. + IntegrationID *int64 `json:"integrationId,omitempty" tf:"integration_id,omitempty"` +} + +type RequiredCheckParameters struct { + + // (String) The status check context name that must be present on the commit. + // The status check context name that must be present on the commit. + // +kubebuilder:validation:Optional + Context *string `json:"context" tf:"context,omitempty"` + + // (Number) The optional integration ID that this status check must originate from. + // The optional integration ID that this status check must originate from. + // +kubebuilder:validation:Optional + IntegrationID *int64 `json:"integrationId,omitempty" tf:"integration_id,omitempty"` +} + +type RequiredDeploymentsInitParameters struct { + + // (List of String) The environments that must be successfully deployed to before branches can be merged. + // The environments that must be successfully deployed to before branches can be merged. + RequiredDeploymentEnvironments []*string `json:"requiredDeploymentEnvironments,omitempty" tf:"required_deployment_environments,omitempty"` +} + +type RequiredDeploymentsObservation struct { + + // (List of String) The environments that must be successfully deployed to before branches can be merged. + // The environments that must be successfully deployed to before branches can be merged. + RequiredDeploymentEnvironments []*string `json:"requiredDeploymentEnvironments,omitempty" tf:"required_deployment_environments,omitempty"` +} + +type RequiredDeploymentsParameters struct { + + // (List of String) The environments that must be successfully deployed to before branches can be merged. + // The environments that must be successfully deployed to before branches can be merged. + // +kubebuilder:validation:Optional + RequiredDeploymentEnvironments []*string `json:"requiredDeploymentEnvironments" tf:"required_deployment_environments,omitempty"` +} + +type RulesInitParameters struct { + + // (Block List, Max: 1) Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with tag_name_pattern as it only applied to rulesets with target branch. (see below for nested schema) + // Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tag_name_pattern` as it only applies to rulesets with target `branch`. + BranchNamePattern []BranchNamePatternInitParameters `json:"branchNamePattern,omitempty" tf:"branch_name_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + CommitAuthorEmailPattern []CommitAuthorEmailPatternInitParameters `json:"commitAuthorEmailPattern,omitempty" tf:"commit_author_email_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + CommitMessagePattern []CommitMessagePatternInitParameters `json:"commitMessagePattern,omitempty" tf:"commit_message_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + CommitterEmailPattern []CommitterEmailPatternInitParameters `json:"committerEmailPattern,omitempty" tf:"committer_email_pattern,omitempty"` + + // (Boolean) Only allow users with bypass permission to create matching refs. + // Only allow users with bypass permission to create matching refs. + Creation *bool `json:"creation,omitempty" tf:"creation,omitempty"` + + // (Boolean) Only allow users with bypass permissions to delete matching refs. + // Only allow users with bypass permissions to delete matching refs. + Deletion *bool `json:"deletion,omitempty" tf:"deletion,omitempty"` + + // (Boolean) Prevent users with push access from force pushing to branches. + // Prevent users with push access from force pushing to branches. + NonFastForward *bool `json:"nonFastForward,omitempty" tf:"non_fast_forward,omitempty"` + + // (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema) + // Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. + PullRequest []RulesPullRequestInitParameters `json:"pullRequest,omitempty" tf:"pull_request,omitempty"` + + // (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see below for nested schema) + // Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. + RequiredDeployments []RequiredDeploymentsInitParameters `json:"requiredDeployments,omitempty" tf:"required_deployments,omitempty"` + + // (Boolean) Prevent merge commits from being pushed to matching branches. + // Prevent merge commits from being pushed to matching branches. + RequiredLinearHistory *bool `json:"requiredLinearHistory,omitempty" tf:"required_linear_history,omitempty"` + + // (Boolean) Commits pushed to matching branches must have verified signatures. + // Commits pushed to matching branches must have verified signatures. + RequiredSignatures *bool `json:"requiredSignatures,omitempty" tf:"required_signatures,omitempty"` + + // (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema) + // Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. + RequiredStatusChecks []RulesRequiredStatusChecksInitParameters `json:"requiredStatusChecks,omitempty" tf:"required_status_checks,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with branch_name_pattern as it only applied to rulesets with target tag. (see below for nested schema) + // Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branch_name_pattern` as it only applies to rulesets with target `tag`. + TagNamePattern []TagNamePatternInitParameters `json:"tagNamePattern,omitempty" tf:"tag_name_pattern,omitempty"` + + // (Boolean) Only allow users with bypass permission to update matching refs. + // Only allow users with bypass permission to update matching refs. + Update *bool `json:"update,omitempty" tf:"update,omitempty"` + + // (Boolean) Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires update to be set to true. Note: behaviour is affected by a known bug on the GitHub side which may cause issues when using this parameter. + // Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires `update` to be set to `true`. + UpdateAllowsFetchAndMerge *bool `json:"updateAllowsFetchAndMerge,omitempty" tf:"update_allows_fetch_and_merge,omitempty"` +} + +type RulesObservation struct { + + // (Block List, Max: 1) Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with tag_name_pattern as it only applied to rulesets with target branch. (see below for nested schema) + // Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tag_name_pattern` as it only applies to rulesets with target `branch`. + BranchNamePattern []BranchNamePatternObservation `json:"branchNamePattern,omitempty" tf:"branch_name_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + CommitAuthorEmailPattern []CommitAuthorEmailPatternObservation `json:"commitAuthorEmailPattern,omitempty" tf:"commit_author_email_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + CommitMessagePattern []CommitMessagePatternObservation `json:"commitMessagePattern,omitempty" tf:"commit_message_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + CommitterEmailPattern []CommitterEmailPatternObservation `json:"committerEmailPattern,omitempty" tf:"committer_email_pattern,omitempty"` + + // (Boolean) Only allow users with bypass permission to create matching refs. + // Only allow users with bypass permission to create matching refs. + Creation *bool `json:"creation,omitempty" tf:"creation,omitempty"` + + // (Boolean) Only allow users with bypass permissions to delete matching refs. + // Only allow users with bypass permissions to delete matching refs. + Deletion *bool `json:"deletion,omitempty" tf:"deletion,omitempty"` + + // (Boolean) Prevent users with push access from force pushing to branches. + // Prevent users with push access from force pushing to branches. + NonFastForward *bool `json:"nonFastForward,omitempty" tf:"non_fast_forward,omitempty"` + + // (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema) + // Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. + PullRequest []RulesPullRequestObservation `json:"pullRequest,omitempty" tf:"pull_request,omitempty"` + + // (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see below for nested schema) + // Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. + RequiredDeployments []RequiredDeploymentsObservation `json:"requiredDeployments,omitempty" tf:"required_deployments,omitempty"` + + // (Boolean) Prevent merge commits from being pushed to matching branches. + // Prevent merge commits from being pushed to matching branches. + RequiredLinearHistory *bool `json:"requiredLinearHistory,omitempty" tf:"required_linear_history,omitempty"` + + // (Boolean) Commits pushed to matching branches must have verified signatures. + // Commits pushed to matching branches must have verified signatures. + RequiredSignatures *bool `json:"requiredSignatures,omitempty" tf:"required_signatures,omitempty"` + + // (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema) + // Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. + RequiredStatusChecks []RulesRequiredStatusChecksObservation `json:"requiredStatusChecks,omitempty" tf:"required_status_checks,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with branch_name_pattern as it only applied to rulesets with target tag. (see below for nested schema) + // Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branch_name_pattern` as it only applies to rulesets with target `tag`. + TagNamePattern []TagNamePatternObservation `json:"tagNamePattern,omitempty" tf:"tag_name_pattern,omitempty"` + + // (Boolean) Only allow users with bypass permission to update matching refs. + // Only allow users with bypass permission to update matching refs. + Update *bool `json:"update,omitempty" tf:"update,omitempty"` + + // (Boolean) Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires update to be set to true. Note: behaviour is affected by a known bug on the GitHub side which may cause issues when using this parameter. + // Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires `update` to be set to `true`. + UpdateAllowsFetchAndMerge *bool `json:"updateAllowsFetchAndMerge,omitempty" tf:"update_allows_fetch_and_merge,omitempty"` +} + +type RulesParameters struct { + + // (Block List, Max: 1) Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with tag_name_pattern as it only applied to rulesets with target branch. (see below for nested schema) + // Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tag_name_pattern` as it only applies to rulesets with target `branch`. + // +kubebuilder:validation:Optional + BranchNamePattern []BranchNamePatternParameters `json:"branchNamePattern,omitempty" tf:"branch_name_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + // +kubebuilder:validation:Optional + CommitAuthorEmailPattern []CommitAuthorEmailPatternParameters `json:"commitAuthorEmailPattern,omitempty" tf:"commit_author_email_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + // +kubebuilder:validation:Optional + CommitMessagePattern []CommitMessagePatternParameters `json:"commitMessagePattern,omitempty" tf:"commit_message_pattern,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + // Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + // +kubebuilder:validation:Optional + CommitterEmailPattern []CommitterEmailPatternParameters `json:"committerEmailPattern,omitempty" tf:"committer_email_pattern,omitempty"` + + // (Boolean) Only allow users with bypass permission to create matching refs. + // Only allow users with bypass permission to create matching refs. + // +kubebuilder:validation:Optional + Creation *bool `json:"creation,omitempty" tf:"creation,omitempty"` + + // (Boolean) Only allow users with bypass permissions to delete matching refs. + // Only allow users with bypass permissions to delete matching refs. + // +kubebuilder:validation:Optional + Deletion *bool `json:"deletion,omitempty" tf:"deletion,omitempty"` + + // (Boolean) Prevent users with push access from force pushing to branches. + // Prevent users with push access from force pushing to branches. + // +kubebuilder:validation:Optional + NonFastForward *bool `json:"nonFastForward,omitempty" tf:"non_fast_forward,omitempty"` + + // (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema) + // Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. + // +kubebuilder:validation:Optional + PullRequest []RulesPullRequestParameters `json:"pullRequest,omitempty" tf:"pull_request,omitempty"` + + // (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see below for nested schema) + // Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. + // +kubebuilder:validation:Optional + RequiredDeployments []RequiredDeploymentsParameters `json:"requiredDeployments,omitempty" tf:"required_deployments,omitempty"` + + // (Boolean) Prevent merge commits from being pushed to matching branches. + // Prevent merge commits from being pushed to matching branches. + // +kubebuilder:validation:Optional + RequiredLinearHistory *bool `json:"requiredLinearHistory,omitempty" tf:"required_linear_history,omitempty"` + + // (Boolean) Commits pushed to matching branches must have verified signatures. + // Commits pushed to matching branches must have verified signatures. + // +kubebuilder:validation:Optional + RequiredSignatures *bool `json:"requiredSignatures,omitempty" tf:"required_signatures,omitempty"` + + // (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema) + // Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. + // +kubebuilder:validation:Optional + RequiredStatusChecks []RulesRequiredStatusChecksParameters `json:"requiredStatusChecks,omitempty" tf:"required_status_checks,omitempty"` + + // (Block List, Max: 1) Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with branch_name_pattern as it only applied to rulesets with target tag. (see below for nested schema) + // Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branch_name_pattern` as it only applies to rulesets with target `tag`. + // +kubebuilder:validation:Optional + TagNamePattern []TagNamePatternParameters `json:"tagNamePattern,omitempty" tf:"tag_name_pattern,omitempty"` + + // (Boolean) Only allow users with bypass permission to update matching refs. + // Only allow users with bypass permission to update matching refs. + // +kubebuilder:validation:Optional + Update *bool `json:"update,omitempty" tf:"update,omitempty"` + + // (Boolean) Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires update to be set to true. Note: behaviour is affected by a known bug on the GitHub side which may cause issues when using this parameter. + // Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires `update` to be set to `true`. + // +kubebuilder:validation:Optional + UpdateAllowsFetchAndMerge *bool `json:"updateAllowsFetchAndMerge,omitempty" tf:"update_allows_fetch_and_merge,omitempty"` +} + +type RulesPullRequestInitParameters struct { + + // (Boolean) New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to false. + // New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`. + DismissStaleReviewsOnPush *bool `json:"dismissStaleReviewsOnPush,omitempty" tf:"dismiss_stale_reviews_on_push,omitempty"` + + // (Boolean) Require an approving review in pull requests that modify files that have a designated code owner. Defaults to false. + // Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`. + RequireCodeOwnerReview *bool `json:"requireCodeOwnerReview,omitempty" tf:"require_code_owner_review,omitempty"` + + // (Boolean) Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to false. + // Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`. + RequireLastPushApproval *bool `json:"requireLastPushApproval,omitempty" tf:"require_last_push_approval,omitempty"` + + // (Number) The number of approving reviews that are required before a pull request can be merged. Defaults to 0. + // The number of approving reviews that are required before a pull request can be merged. Defaults to `0`. + RequiredApprovingReviewCount *int64 `json:"requiredApprovingReviewCount,omitempty" tf:"required_approving_review_count,omitempty"` + + // (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to false. + // All conversations on code must be resolved before a pull request can be merged. Defaults to `false`. + RequiredReviewThreadResolution *bool `json:"requiredReviewThreadResolution,omitempty" tf:"required_review_thread_resolution,omitempty"` +} + +type RulesPullRequestObservation struct { + + // (Boolean) New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to false. + // New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`. + DismissStaleReviewsOnPush *bool `json:"dismissStaleReviewsOnPush,omitempty" tf:"dismiss_stale_reviews_on_push,omitempty"` + + // (Boolean) Require an approving review in pull requests that modify files that have a designated code owner. Defaults to false. + // Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`. + RequireCodeOwnerReview *bool `json:"requireCodeOwnerReview,omitempty" tf:"require_code_owner_review,omitempty"` + + // (Boolean) Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to false. + // Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`. + RequireLastPushApproval *bool `json:"requireLastPushApproval,omitempty" tf:"require_last_push_approval,omitempty"` + + // (Number) The number of approving reviews that are required before a pull request can be merged. Defaults to 0. + // The number of approving reviews that are required before a pull request can be merged. Defaults to `0`. + RequiredApprovingReviewCount *int64 `json:"requiredApprovingReviewCount,omitempty" tf:"required_approving_review_count,omitempty"` + + // (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to false. + // All conversations on code must be resolved before a pull request can be merged. Defaults to `false`. + RequiredReviewThreadResolution *bool `json:"requiredReviewThreadResolution,omitempty" tf:"required_review_thread_resolution,omitempty"` +} + +type RulesPullRequestParameters struct { + + // (Boolean) New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to false. + // New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`. + // +kubebuilder:validation:Optional + DismissStaleReviewsOnPush *bool `json:"dismissStaleReviewsOnPush,omitempty" tf:"dismiss_stale_reviews_on_push,omitempty"` + + // (Boolean) Require an approving review in pull requests that modify files that have a designated code owner. Defaults to false. + // Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`. + // +kubebuilder:validation:Optional + RequireCodeOwnerReview *bool `json:"requireCodeOwnerReview,omitempty" tf:"require_code_owner_review,omitempty"` + + // (Boolean) Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to false. + // Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`. + // +kubebuilder:validation:Optional + RequireLastPushApproval *bool `json:"requireLastPushApproval,omitempty" tf:"require_last_push_approval,omitempty"` + + // (Number) The number of approving reviews that are required before a pull request can be merged. Defaults to 0. + // The number of approving reviews that are required before a pull request can be merged. Defaults to `0`. + // +kubebuilder:validation:Optional + RequiredApprovingReviewCount *int64 `json:"requiredApprovingReviewCount,omitempty" tf:"required_approving_review_count,omitempty"` + + // (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to false. + // All conversations on code must be resolved before a pull request can be merged. Defaults to `false`. + // +kubebuilder:validation:Optional + RequiredReviewThreadResolution *bool `json:"requiredReviewThreadResolution,omitempty" tf:"required_review_thread_resolution,omitempty"` +} + +type RulesRequiredStatusChecksInitParameters struct { + + // (Block Set, Min: 1) Status checks that are required. Several can be defined. (see below for nested schema) + // Status checks that are required. Several can be defined. + RequiredCheck []RequiredCheckInitParameters `json:"requiredCheck,omitempty" tf:"required_check,omitempty"` + + // (Boolean) Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to false. + // Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`. + StrictRequiredStatusChecksPolicy *bool `json:"strictRequiredStatusChecksPolicy,omitempty" tf:"strict_required_status_checks_policy,omitempty"` +} + +type RulesRequiredStatusChecksObservation struct { + + // (Block Set, Min: 1) Status checks that are required. Several can be defined. (see below for nested schema) + // Status checks that are required. Several can be defined. + RequiredCheck []RequiredCheckObservation `json:"requiredCheck,omitempty" tf:"required_check,omitempty"` + + // (Boolean) Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to false. + // Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`. + StrictRequiredStatusChecksPolicy *bool `json:"strictRequiredStatusChecksPolicy,omitempty" tf:"strict_required_status_checks_policy,omitempty"` +} + +type RulesRequiredStatusChecksParameters struct { + + // (Block Set, Min: 1) Status checks that are required. Several can be defined. (see below for nested schema) + // Status checks that are required. Several can be defined. + // +kubebuilder:validation:Optional + RequiredCheck []RequiredCheckParameters `json:"requiredCheck" tf:"required_check,omitempty"` + + // (Boolean) Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to false. + // Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`. + // +kubebuilder:validation:Optional + StrictRequiredStatusChecksPolicy *bool `json:"strictRequiredStatusChecksPolicy,omitempty" tf:"strict_required_status_checks_policy,omitempty"` +} + +type TagNamePatternInitParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type TagNamePatternObservation struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + Pattern *string `json:"pattern,omitempty" tf:"pattern,omitempty"` +} + +type TagNamePatternParameters struct { + + // (String) How this rule will appear to users. + // How this rule will appear to users. + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // (Boolean) If true, the rule will fail if the pattern matches. + // If true, the rule will fail if the pattern matches. + // +kubebuilder:validation:Optional + Negate *bool `json:"negate,omitempty" tf:"negate,omitempty"` + + // (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + // The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + // +kubebuilder:validation:Optional + Operator *string `json:"operator" tf:"operator,omitempty"` + + // (String) The pattern to match with. + // The pattern to match with. + // +kubebuilder:validation:Optional + Pattern *string `json:"pattern" tf:"pattern,omitempty"` +} + +// RepositoryRulesetSpec defines the desired state of RepositoryRuleset +type RepositoryRulesetSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider RepositoryRulesetParameters `json:"forProvider"` + // THIS IS A BETA FIELD. It will be honored + // unless the Management Policies feature flag is disabled. + // InitProvider holds the same fields as ForProvider, with the exception + // of Identifier and other resource reference fields. The fields that are + // in InitProvider are merged into ForProvider when the resource is created. + // The same fields are also added to the terraform ignore_changes hook, to + // avoid updating them after creation. This is useful for fields that are + // required on creation, but we do not desire to update them after creation, + // for example because of an external controller is managing them, like an + // autoscaler. + InitProvider RepositoryRulesetInitParameters `json:"initProvider,omitempty"` +} + +// RepositoryRulesetStatus defines the observed state of RepositoryRuleset. +type RepositoryRulesetStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider RepositoryRulesetObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:storageversion + +// RepositoryRuleset is the Schema for the RepositoryRulesets API. Creates a GitHub repository ruleset. +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,github} +type RepositoryRuleset struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.enforcement) || (has(self.initProvider) && has(self.initProvider.enforcement))",message="spec.forProvider.enforcement is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rules) || (has(self.initProvider) && has(self.initProvider.rules))",message="spec.forProvider.rules is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.target) || (has(self.initProvider) && has(self.initProvider.target))",message="spec.forProvider.target is a required parameter" + Spec RepositoryRulesetSpec `json:"spec"` + Status RepositoryRulesetStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// RepositoryRulesetList contains a list of RepositoryRulesets +type RepositoryRulesetList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []RepositoryRuleset `json:"items"` +} + +// Repository type metadata. +var ( + RepositoryRuleset_Kind = "RepositoryRuleset" + RepositoryRuleset_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: RepositoryRuleset_Kind}.String() + RepositoryRuleset_KindAPIVersion = RepositoryRuleset_Kind + "." + CRDGroupVersion.String() + RepositoryRuleset_GroupVersionKind = CRDGroupVersion.WithKind(RepositoryRuleset_Kind) +) + +func init() { + SchemeBuilder.Register(&RepositoryRuleset{}, &RepositoryRulesetList{}) +} diff --git a/examples-generated/repo/v1alpha1/repositoryruleset.yaml b/examples-generated/repo/v1alpha1/repositoryruleset.yaml new file mode 100644 index 0000000..d99e294 --- /dev/null +++ b/examples-generated/repo/v1alpha1/repositoryruleset.yaml @@ -0,0 +1,49 @@ +apiVersion: repo.github.upbound.io/v1alpha1 +kind: RepositoryRuleset +metadata: + annotations: + meta.upbound.io/example-id: repo/v1alpha1/repositoryruleset + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + bypassActors: + - actorId: 13473 + actorType: Integration + bypassMode: always + conditions: + - refName: + - exclude: [] + include: + - ~ALL + enforcement: active + name: example + repositorySelector: + matchLabels: + testing.upbound.io/example-name: example + rules: + - creation: true + deletion: true + requiredDeployments: + - requiredDeploymentEnvironments: + - test + requiredLinearHistory: true + requiredSignatures: true + update: true + target: branch + +--- + +apiVersion: repo.github.upbound.io/v1alpha1 +kind: Repository +metadata: + annotations: + meta.upbound.io/example-id: repo/v1alpha1/repositoryruleset + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + description: Example repository + name: example diff --git a/internal/controller/repo/repositoryruleset/zz_controller.go b/internal/controller/repo/repositoryruleset/zz_controller.go new file mode 100755 index 0000000..304935d --- /dev/null +++ b/internal/controller/repo/repositoryruleset/zz_controller.go @@ -0,0 +1,91 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package repositoryruleset + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + "github.com/crossplane/crossplane-runtime/pkg/statemetrics" + tjcontroller "github.com/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/metrics" + "github.com/pkg/errors" + ctrl "sigs.k8s.io/controller-runtime" + + v1alpha1 "github.com/crossplane-contrib/provider-upjet-github/apis/repo/v1alpha1" + features "github.com/crossplane-contrib/provider-upjet-github/internal/features" +) + +// Setup adds a controller that reconciles RepositoryRuleset managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1alpha1.RepositoryRuleset_GroupVersionKind.String()) + var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.RepositoryRuleset_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.RepositoryRuleset_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler), tjcontroller.WithStatusUpdates(false)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter( + tjcontroller.NewTerraformPluginSDKAsyncConnector(mgr.GetClient(), o.OperationTrackerStore, o.SetupFn, o.Provider.Resources["github_repository_ruleset"], + tjcontroller.WithTerraformPluginSDKAsyncLogger(o.Logger), + tjcontroller.WithTerraformPluginSDKAsyncConnectorEventHandler(eventHandler), + tjcontroller.WithTerraformPluginSDKAsyncCallbackProvider(ac), + tjcontroller.WithTerraformPluginSDKAsyncMetricRecorder(metrics.NewMetricRecorder(v1alpha1.RepositoryRuleset_GroupVersionKind, mgr, o.PollInterval)), + tjcontroller.WithTerraformPluginSDKAsyncManagementPolicies(o.Features.Enabled(features.EnableBetaManagementPolicies)))), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(tjcontroller.NewOperationTrackerFinalizer(o.OperationTrackerStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3 * time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + if o.MetricOptions != nil { + opts = append(opts, managed.WithMetricRecorder(o.MetricOptions.MRMetrics)) + } + + // register webhooks for the kind v1alpha1.RepositoryRuleset + // if they're enabled. + if o.StartWebhooks { + if err := ctrl.NewWebhookManagedBy(mgr). + For(&v1alpha1.RepositoryRuleset{}). + Complete(); err != nil { + return errors.Wrap(err, "cannot register webhook for the kind v1alpha1.RepositoryRuleset") + } + } + + if o.MetricOptions != nil && o.MetricOptions.MRStateMetrics != nil { + stateMetricsRecorder := statemetrics.NewMRStateRecorder( + mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1alpha1.RepositoryRulesetList{}, o.MetricOptions.PollStateMetricInterval, + ) + if err := mgr.Add(stateMetricsRecorder); err != nil { + return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1alpha1.RepositoryRulesetList") + } + } + + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.RepositoryRuleset_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1alpha1.RepositoryRuleset{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index bc52995..3441051 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -25,6 +25,7 @@ import ( repositoryautolinkreference "github.com/crossplane-contrib/provider-upjet-github/internal/controller/repo/repositoryautolinkreference" repositorycollaborator "github.com/crossplane-contrib/provider-upjet-github/internal/controller/repo/repositorycollaborator" repositoryfile "github.com/crossplane-contrib/provider-upjet-github/internal/controller/repo/repositoryfile" + repositoryruleset "github.com/crossplane-contrib/provider-upjet-github/internal/controller/repo/repositoryruleset" repositorywebhook "github.com/crossplane-contrib/provider-upjet-github/internal/controller/repo/repositorywebhook" emugroupmapping "github.com/crossplane-contrib/provider-upjet-github/internal/controller/team/emugroupmapping" team "github.com/crossplane-contrib/provider-upjet-github/internal/controller/team/team" @@ -55,6 +56,7 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { repositoryautolinkreference.Setup, repositorycollaborator.Setup, repositoryfile.Setup, + repositoryruleset.Setup, repositorywebhook.Setup, emugroupmapping.Setup, team.Setup, diff --git a/package/crds/repo.github.upbound.io_repositoryrulesets.yaml b/package/crds/repo.github.upbound.io_repositoryrulesets.yaml new file mode 100644 index 0000000..73a699f --- /dev/null +++ b/package/crds/repo.github.upbound.io_repositoryrulesets.yaml @@ -0,0 +1,1516 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + name: repositoryrulesets.repo.github.upbound.io +spec: + group: repo.github.upbound.io + names: + categories: + - crossplane + - managed + - github + kind: RepositoryRuleset + listKind: RepositoryRulesetList + plural: repositoryrulesets + singular: repositoryruleset + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + description: RepositoryRuleset is the Schema for the RepositoryRulesets API. + Creates a GitHub repository ruleset. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: RepositoryRulesetSpec defines the desired state of RepositoryRuleset + properties: + deletionPolicy: + default: Delete + description: |- + DeletionPolicy specifies what will happen to the underlying external + when this managed resource is deleted - either "Delete" or "Orphan" the + external resource. + This field is planned to be deprecated in favor of the ManagementPolicies + field in a future release. Currently, both could be set independently and + non-default values would be honored if the feature flag is enabled. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + bypassActors: + description: |- + (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + The actors that can bypass the rules in this ruleset. + items: + properties: + actorId: + description: |- + (Number) The ID of the actor that can bypass a ruleset. + The ID of the actor that can bypass a ruleset. When `actor_type` is `OrganizationAdmin`, this should be set to `1`. + format: int64 + type: integer + actorType: + description: |- + (String) The type of actor that can bypass a ruleset. Can be one of: RepositoryRole, Team, Integration, OrganizationAdmin. + The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`. + type: string + bypassMode: + description: |- + (String) When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: always, pull_request. + When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pull_request`. + type: string + type: object + type: array + conditions: + description: |- + (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) + Parameters for a repository ruleset ref name condition. + items: + properties: + refName: + description: '(Block List, Min: 1, Max: 1) (see below for + nested schema)' + items: + properties: + exclude: + description: |- + (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + items: + type: string + type: array + include: + description: |- + (List of String) Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches. + Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. + items: + type: string + type: array + type: object + type: array + type: object + type: array + enforcement: + description: |- + (String) Possible values for Enforcement are disabled, active, evaluate. Note: evaluate is currently only supported for owners of type organization. + Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. + type: string + name: + description: |- + (String) The name of the ruleset. + The name of the ruleset. + type: string + repository: + description: |- + (String) Name of the repository to apply rulset to. + Name of the repository to apply rulset to. + type: string + repositoryRef: + description: Reference to a Repository in repo to populate repository. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + repositorySelector: + description: Selector for a Repository in repo to populate repository. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + rules: + description: |- + (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + Rules within the ruleset. + items: + properties: + branchNamePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with tag_name_pattern as it only applied to rulesets with target branch. (see below for nested schema) + Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tag_name_pattern` as it only applies to rulesets with target `branch`. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + commitAuthorEmailPattern: + description: |- + (Block List, Max: 1) Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + commitMessagePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + committerEmailPattern: + description: |- + (Block List, Max: 1) Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + creation: + description: |- + (Boolean) Only allow users with bypass permission to create matching refs. + Only allow users with bypass permission to create matching refs. + type: boolean + deletion: + description: |- + (Boolean) Only allow users with bypass permissions to delete matching refs. + Only allow users with bypass permissions to delete matching refs. + type: boolean + nonFastForward: + description: |- + (Boolean) Prevent users with push access from force pushing to branches. + Prevent users with push access from force pushing to branches. + type: boolean + pullRequest: + description: |- + (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema) + Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. + items: + properties: + dismissStaleReviewsOnPush: + description: |- + (Boolean) New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to false. + New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`. + type: boolean + requireCodeOwnerReview: + description: |- + (Boolean) Require an approving review in pull requests that modify files that have a designated code owner. Defaults to false. + Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`. + type: boolean + requireLastPushApproval: + description: |- + (Boolean) Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to false. + Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`. + type: boolean + requiredApprovingReviewCount: + description: |- + (Number) The number of approving reviews that are required before a pull request can be merged. Defaults to 0. + The number of approving reviews that are required before a pull request can be merged. Defaults to `0`. + format: int64 + type: integer + requiredReviewThreadResolution: + description: |- + (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to false. + All conversations on code must be resolved before a pull request can be merged. Defaults to `false`. + type: boolean + type: object + type: array + requiredDeployments: + description: |- + (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see below for nested schema) + Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. + items: + properties: + requiredDeploymentEnvironments: + description: |- + (List of String) The environments that must be successfully deployed to before branches can be merged. + The environments that must be successfully deployed to before branches can be merged. + items: + type: string + type: array + type: object + type: array + requiredLinearHistory: + description: |- + (Boolean) Prevent merge commits from being pushed to matching branches. + Prevent merge commits from being pushed to matching branches. + type: boolean + requiredSignatures: + description: |- + (Boolean) Commits pushed to matching branches must have verified signatures. + Commits pushed to matching branches must have verified signatures. + type: boolean + requiredStatusChecks: + description: |- + (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema) + Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. + items: + properties: + requiredCheck: + description: |- + (Block Set, Min: 1) Status checks that are required. Several can be defined. (see below for nested schema) + Status checks that are required. Several can be defined. + items: + properties: + context: + description: |- + (String) The status check context name that must be present on the commit. + The status check context name that must be present on the commit. + type: string + integrationId: + description: |- + (Number) The optional integration ID that this status check must originate from. + The optional integration ID that this status check must originate from. + format: int64 + type: integer + type: object + type: array + strictRequiredStatusChecksPolicy: + description: |- + (Boolean) Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to false. + Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`. + type: boolean + type: object + type: array + tagNamePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with branch_name_pattern as it only applied to rulesets with target tag. (see below for nested schema) + Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branch_name_pattern` as it only applies to rulesets with target `tag`. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + update: + description: |- + (Boolean) Only allow users with bypass permission to update matching refs. + Only allow users with bypass permission to update matching refs. + type: boolean + updateAllowsFetchAndMerge: + description: |- + (Boolean) Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires update to be set to true. Note: behaviour is affected by a known bug on the GitHub side which may cause issues when using this parameter. + Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires `update` to be set to `true`. + type: boolean + type: object + type: array + target: + description: |- + (String) Possible values are branch and tag. + Possible values are `branch` and `tag`. + type: string + type: object + initProvider: + description: |- + THIS IS A BETA FIELD. It will be honored + unless the Management Policies feature flag is disabled. + InitProvider holds the same fields as ForProvider, with the exception + of Identifier and other resource reference fields. The fields that are + in InitProvider are merged into ForProvider when the resource is created. + The same fields are also added to the terraform ignore_changes hook, to + avoid updating them after creation. This is useful for fields that are + required on creation, but we do not desire to update them after creation, + for example because of an external controller is managing them, like an + autoscaler. + properties: + bypassActors: + description: |- + (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + The actors that can bypass the rules in this ruleset. + items: + properties: + actorId: + description: |- + (Number) The ID of the actor that can bypass a ruleset. + The ID of the actor that can bypass a ruleset. When `actor_type` is `OrganizationAdmin`, this should be set to `1`. + format: int64 + type: integer + actorType: + description: |- + (String) The type of actor that can bypass a ruleset. Can be one of: RepositoryRole, Team, Integration, OrganizationAdmin. + The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`. + type: string + bypassMode: + description: |- + (String) When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: always, pull_request. + When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pull_request`. + type: string + type: object + type: array + conditions: + description: |- + (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) + Parameters for a repository ruleset ref name condition. + items: + properties: + refName: + description: '(Block List, Min: 1, Max: 1) (see below for + nested schema)' + items: + properties: + exclude: + description: |- + (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + items: + type: string + type: array + include: + description: |- + (List of String) Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches. + Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. + items: + type: string + type: array + type: object + type: array + type: object + type: array + enforcement: + description: |- + (String) Possible values for Enforcement are disabled, active, evaluate. Note: evaluate is currently only supported for owners of type organization. + Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. + type: string + name: + description: |- + (String) The name of the ruleset. + The name of the ruleset. + type: string + repository: + description: |- + (String) Name of the repository to apply rulset to. + Name of the repository to apply rulset to. + type: string + repositoryRef: + description: Reference to a Repository in repo to populate repository. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + repositorySelector: + description: Selector for a Repository in repo to populate repository. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + rules: + description: |- + (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + Rules within the ruleset. + items: + properties: + branchNamePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with tag_name_pattern as it only applied to rulesets with target branch. (see below for nested schema) + Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tag_name_pattern` as it only applies to rulesets with target `branch`. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + commitAuthorEmailPattern: + description: |- + (Block List, Max: 1) Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + commitMessagePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + committerEmailPattern: + description: |- + (Block List, Max: 1) Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + creation: + description: |- + (Boolean) Only allow users with bypass permission to create matching refs. + Only allow users with bypass permission to create matching refs. + type: boolean + deletion: + description: |- + (Boolean) Only allow users with bypass permissions to delete matching refs. + Only allow users with bypass permissions to delete matching refs. + type: boolean + nonFastForward: + description: |- + (Boolean) Prevent users with push access from force pushing to branches. + Prevent users with push access from force pushing to branches. + type: boolean + pullRequest: + description: |- + (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema) + Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. + items: + properties: + dismissStaleReviewsOnPush: + description: |- + (Boolean) New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to false. + New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`. + type: boolean + requireCodeOwnerReview: + description: |- + (Boolean) Require an approving review in pull requests that modify files that have a designated code owner. Defaults to false. + Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`. + type: boolean + requireLastPushApproval: + description: |- + (Boolean) Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to false. + Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`. + type: boolean + requiredApprovingReviewCount: + description: |- + (Number) The number of approving reviews that are required before a pull request can be merged. Defaults to 0. + The number of approving reviews that are required before a pull request can be merged. Defaults to `0`. + format: int64 + type: integer + requiredReviewThreadResolution: + description: |- + (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to false. + All conversations on code must be resolved before a pull request can be merged. Defaults to `false`. + type: boolean + type: object + type: array + requiredDeployments: + description: |- + (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see below for nested schema) + Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. + items: + properties: + requiredDeploymentEnvironments: + description: |- + (List of String) The environments that must be successfully deployed to before branches can be merged. + The environments that must be successfully deployed to before branches can be merged. + items: + type: string + type: array + type: object + type: array + requiredLinearHistory: + description: |- + (Boolean) Prevent merge commits from being pushed to matching branches. + Prevent merge commits from being pushed to matching branches. + type: boolean + requiredSignatures: + description: |- + (Boolean) Commits pushed to matching branches must have verified signatures. + Commits pushed to matching branches must have verified signatures. + type: boolean + requiredStatusChecks: + description: |- + (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema) + Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. + items: + properties: + requiredCheck: + description: |- + (Block Set, Min: 1) Status checks that are required. Several can be defined. (see below for nested schema) + Status checks that are required. Several can be defined. + items: + properties: + context: + description: |- + (String) The status check context name that must be present on the commit. + The status check context name that must be present on the commit. + type: string + integrationId: + description: |- + (Number) The optional integration ID that this status check must originate from. + The optional integration ID that this status check must originate from. + format: int64 + type: integer + type: object + type: array + strictRequiredStatusChecksPolicy: + description: |- + (Boolean) Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to false. + Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`. + type: boolean + type: object + type: array + tagNamePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with branch_name_pattern as it only applied to rulesets with target tag. (see below for nested schema) + Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branch_name_pattern` as it only applies to rulesets with target `tag`. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + update: + description: |- + (Boolean) Only allow users with bypass permission to update matching refs. + Only allow users with bypass permission to update matching refs. + type: boolean + updateAllowsFetchAndMerge: + description: |- + (Boolean) Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires update to be set to true. Note: behaviour is affected by a known bug on the GitHub side which may cause issues when using this parameter. + Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires `update` to be set to `true`. + type: boolean + type: object + type: array + target: + description: |- + (String) Possible values are branch and tag. + Possible values are `branch` and `tag`. + type: string + type: object + managementPolicies: + default: + - '*' + description: |- + THIS IS A BETA FIELD. It is on by default but can be opted out + through a Crossplane feature flag. + ManagementPolicies specify the array of actions Crossplane is allowed to + take on the managed and external resources. + This field is planned to replace the DeletionPolicy field in a future + release. Currently, both could be set independently and non-default + values would be honored if the feature flag is enabled. If both are + custom, the DeletionPolicy field will be ignored. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md + items: + description: |- + A ManagementAction represents an action that the Crossplane controllers + can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + providerConfigRef: + default: + name: default + description: |- + ProviderConfigReference specifies how the provider that will be used to + create, observe, update, and delete this managed resource should be + configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: |- + PublishConnectionDetailsTo specifies the connection secret config which + contains a name, metadata and a reference to secret store config to + which any connection details for this managed resource should be written. + Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: |- + SecretStoreConfigRef specifies which secret store config should be used + for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations are the annotations to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.annotations". + - It is up to Secret Store implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: |- + Labels are the labels/tags to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store types. + type: object + type: + description: |- + Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: |- + WriteConnectionSecretToReference specifies the namespace and name of a + Secret to which any connection details for this managed resource should + be written. Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + This field is planned to be replaced in a future release in favor of + PublishConnectionDetailsTo. Currently, both could be set independently + and connection details would be published to both without affecting + each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + x-kubernetes-validations: + - message: spec.forProvider.enforcement is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.enforcement) + || (has(self.initProvider) && has(self.initProvider.enforcement))' + - message: spec.forProvider.name is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.name) + || (has(self.initProvider) && has(self.initProvider.name))' + - message: spec.forProvider.rules is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.rules) + || (has(self.initProvider) && has(self.initProvider.rules))' + - message: spec.forProvider.target is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.target) + || (has(self.initProvider) && has(self.initProvider.target))' + status: + description: RepositoryRulesetStatus defines the observed state of RepositoryRuleset. + properties: + atProvider: + properties: + bypassActors: + description: |- + (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + The actors that can bypass the rules in this ruleset. + items: + properties: + actorId: + description: |- + (Number) The ID of the actor that can bypass a ruleset. + The ID of the actor that can bypass a ruleset. When `actor_type` is `OrganizationAdmin`, this should be set to `1`. + format: int64 + type: integer + actorType: + description: |- + (String) The type of actor that can bypass a ruleset. Can be one of: RepositoryRole, Team, Integration, OrganizationAdmin. + The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`. + type: string + bypassMode: + description: |- + (String) When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: always, pull_request. + When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pull_request`. + type: string + type: object + type: array + conditions: + description: |- + (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) + Parameters for a repository ruleset ref name condition. + items: + properties: + refName: + description: '(Block List, Min: 1, Max: 1) (see below for + nested schema)' + items: + properties: + exclude: + description: |- + (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. + items: + type: string + type: array + include: + description: |- + (List of String) Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches. + Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. + items: + type: string + type: array + type: object + type: array + type: object + type: array + enforcement: + description: |- + (String) Possible values for Enforcement are disabled, active, evaluate. Note: evaluate is currently only supported for owners of type organization. + Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. + type: string + etag: + description: (String) + type: string + id: + type: string + name: + description: |- + (String) The name of the ruleset. + The name of the ruleset. + type: string + nodeId: + description: |- + (String) GraphQL global node id for use with v4 API. + GraphQL global node id for use with v4 API. + type: string + repository: + description: |- + (String) Name of the repository to apply rulset to. + Name of the repository to apply rulset to. + type: string + rules: + description: |- + (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + Rules within the ruleset. + items: + properties: + branchNamePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with tag_name_pattern as it only applied to rulesets with target branch. (see below for nested schema) + Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tag_name_pattern` as it only applies to rulesets with target `branch`. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + commitAuthorEmailPattern: + description: |- + (Block List, Max: 1) Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + commitMessagePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the commit_message_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + committerEmailPattern: + description: |- + (Block List, Max: 1) Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema) + Parameters to be used for the committer_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + creation: + description: |- + (Boolean) Only allow users with bypass permission to create matching refs. + Only allow users with bypass permission to create matching refs. + type: boolean + deletion: + description: |- + (Boolean) Only allow users with bypass permissions to delete matching refs. + Only allow users with bypass permissions to delete matching refs. + type: boolean + nonFastForward: + description: |- + (Boolean) Prevent users with push access from force pushing to branches. + Prevent users with push access from force pushing to branches. + type: boolean + pullRequest: + description: |- + (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema) + Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. + items: + properties: + dismissStaleReviewsOnPush: + description: |- + (Boolean) New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to false. + New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`. + type: boolean + requireCodeOwnerReview: + description: |- + (Boolean) Require an approving review in pull requests that modify files that have a designated code owner. Defaults to false. + Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`. + type: boolean + requireLastPushApproval: + description: |- + (Boolean) Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to false. + Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`. + type: boolean + requiredApprovingReviewCount: + description: |- + (Number) The number of approving reviews that are required before a pull request can be merged. Defaults to 0. + The number of approving reviews that are required before a pull request can be merged. Defaults to `0`. + format: int64 + type: integer + requiredReviewThreadResolution: + description: |- + (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to false. + All conversations on code must be resolved before a pull request can be merged. Defaults to `false`. + type: boolean + type: object + type: array + requiredDeployments: + description: |- + (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see below for nested schema) + Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. + items: + properties: + requiredDeploymentEnvironments: + description: |- + (List of String) The environments that must be successfully deployed to before branches can be merged. + The environments that must be successfully deployed to before branches can be merged. + items: + type: string + type: array + type: object + type: array + requiredLinearHistory: + description: |- + (Boolean) Prevent merge commits from being pushed to matching branches. + Prevent merge commits from being pushed to matching branches. + type: boolean + requiredSignatures: + description: |- + (Boolean) Commits pushed to matching branches must have verified signatures. + Commits pushed to matching branches must have verified signatures. + type: boolean + requiredStatusChecks: + description: |- + (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema) + Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. + items: + properties: + requiredCheck: + description: |- + (Block Set, Min: 1) Status checks that are required. Several can be defined. (see below for nested schema) + Status checks that are required. Several can be defined. + items: + properties: + context: + description: |- + (String) The status check context name that must be present on the commit. + The status check context name that must be present on the commit. + type: string + integrationId: + description: |- + (Number) The optional integration ID that this status check must originate from. + The optional integration ID that this status check must originate from. + format: int64 + type: integer + type: object + type: array + strictRequiredStatusChecksPolicy: + description: |- + (Boolean) Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to false. + Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`. + type: boolean + type: object + type: array + tagNamePattern: + description: |- + (Block List, Max: 1) Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with branch_name_pattern as it only applied to rulesets with target tag. (see below for nested schema) + Parameters to be used for the tag_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branch_name_pattern` as it only applies to rulesets with target `tag`. + items: + properties: + name: + description: |- + (String) How this rule will appear to users. + How this rule will appear to users. + type: string + negate: + description: |- + (Boolean) If true, the rule will fail if the pattern matches. + If true, the rule will fail if the pattern matches. + type: boolean + operator: + description: |- + (String) The operator to use for matching. Can be one of: starts_with, ends_with, contains, regex. + The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`. + type: string + pattern: + description: |- + (String) The pattern to match with. + The pattern to match with. + type: string + type: object + type: array + update: + description: |- + (Boolean) Only allow users with bypass permission to update matching refs. + Only allow users with bypass permission to update matching refs. + type: boolean + updateAllowsFetchAndMerge: + description: |- + (Boolean) Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires update to be set to true. Note: behaviour is affected by a known bug on the GitHub side which may cause issues when using this parameter. + Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires `update` to be set to `true`. + type: boolean + type: object + type: array + rulesetId: + description: |- + (Number) GitHub ID for the ruleset. + GitHub ID for the ruleset. + format: int64 + type: integer + target: + description: |- + (String) Possible values are branch and tag. + Possible values are `branch` and `tag`. + type: string + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: |- + LastTransitionTime is the last time this condition transitioned from one + status to another. + format: date-time + type: string + message: + description: |- + A Message containing details about this condition's last transition from + one status to another, if any. + type: string + observedGeneration: + description: |- + ObservedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + type: integer + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: |- + Type of this condition. At most one of each condition type may apply to + a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + observedGeneration: + description: |- + ObservedGeneration is the latest metadata.generation + which resulted in either a ready state, or stalled due to error + it can not recover from without human intervention. + format: int64 + type: integer + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {}