diff --git a/apis/compute/v1beta1/zz_galleryapplication_types.go b/apis/compute/v1beta1/zz_galleryapplication_types.go new file mode 100755 index 000000000..edaaf2022 --- /dev/null +++ b/apis/compute/v1beta1/zz_galleryapplication_types.go @@ -0,0 +1,118 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +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 GalleryApplicationObservation struct { + + // The ID of the Gallery Application. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type GalleryApplicationParameters struct { + + // A description of the Gallery Application. + // +kubebuilder:validation:Optional + Description *string `json:"description,omitempty" tf:"description,omitempty"` + + // The end of life date in RFC3339 format of the Gallery Application. + // +kubebuilder:validation:Optional + EndOfLifeDate *string `json:"endOfLifeDate,omitempty" tf:"end_of_life_date,omitempty"` + + // The End User Licence Agreement of the Gallery Application. + // +kubebuilder:validation:Optional + Eula *string `json:"eula,omitempty" tf:"eula,omitempty"` + + // The ID of the Shared Image Gallery. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/compute/v1beta1.SharedImageGallery + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + GalleryID *string `json:"galleryId,omitempty" tf:"gallery_id,omitempty"` + + // Reference to a SharedImageGallery in compute to populate galleryId. + // +kubebuilder:validation:Optional + GalleryIDRef *v1.Reference `json:"galleryIdRef,omitempty" tf:"-"` + + // Selector for a SharedImageGallery in compute to populate galleryId. + // +kubebuilder:validation:Optional + GalleryIDSelector *v1.Selector `json:"galleryIdSelector,omitempty" tf:"-"` + + // The Azure Region where the Gallery Application exists. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Location *string `json:"location" tf:"location,omitempty"` + + // The URI containing the Privacy Statement associated with the Gallery Application. + // +kubebuilder:validation:Optional + PrivacyStatementURI *string `json:"privacyStatementUri,omitempty" tf:"privacy_statement_uri,omitempty"` + + // The URI containing the Release Notes associated with the Gallery Application. + // +kubebuilder:validation:Optional + ReleaseNoteURI *string `json:"releaseNoteUri,omitempty" tf:"release_note_uri,omitempty"` + + // The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + SupportedOsType *string `json:"supportedOsType" tf:"supported_os_type,omitempty"` + + // A mapping of tags to assign to the Gallery Application. + // +kubebuilder:validation:Optional + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` +} + +// GalleryApplicationSpec defines the desired state of GalleryApplication +type GalleryApplicationSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider GalleryApplicationParameters `json:"forProvider"` +} + +// GalleryApplicationStatus defines the observed state of GalleryApplication. +type GalleryApplicationStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider GalleryApplicationObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// GalleryApplication is the Schema for the GalleryApplications API. Manages a Gallery Application. +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type GalleryApplication struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec GalleryApplicationSpec `json:"spec"` + Status GalleryApplicationStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// GalleryApplicationList contains a list of GalleryApplications +type GalleryApplicationList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []GalleryApplication `json:"items"` +} + +// Repository type metadata. +var ( + GalleryApplication_Kind = "GalleryApplication" + GalleryApplication_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: GalleryApplication_Kind}.String() + GalleryApplication_KindAPIVersion = GalleryApplication_Kind + "." + CRDGroupVersion.String() + GalleryApplication_GroupVersionKind = CRDGroupVersion.WithKind(GalleryApplication_Kind) +) + +func init() { + SchemeBuilder.Register(&GalleryApplication{}, &GalleryApplicationList{}) +} diff --git a/apis/compute/v1beta1/zz_galleryapplicationversion_types.go b/apis/compute/v1beta1/zz_galleryapplicationversion_types.go new file mode 100755 index 000000000..1435fe240 --- /dev/null +++ b/apis/compute/v1beta1/zz_galleryapplicationversion_types.go @@ -0,0 +1,192 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +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 GalleryApplicationVersionObservation struct { + + // The ID of the Gallery Application Version. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type GalleryApplicationVersionParameters struct { + + // Should the Gallery Application reports health. Defaults to false. + // +kubebuilder:validation:Optional + EnableHealthCheck *bool `json:"enableHealthCheck,omitempty" tf:"enable_health_check,omitempty"` + + // The end of life date in RFC3339 format of the Gallery Application Version. + // +kubebuilder:validation:Optional + EndOfLifeDate *string `json:"endOfLifeDate,omitempty" tf:"end_of_life_date,omitempty"` + + // Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false. + // +kubebuilder:validation:Optional + ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty" tf:"exclude_from_latest,omitempty"` + + // The ID of the Gallery Application. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/compute/v1beta1.GalleryApplication + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + GalleryApplicationID *string `json:"galleryApplicationId,omitempty" tf:"gallery_application_id,omitempty"` + + // Reference to a GalleryApplication in compute to populate galleryApplicationId. + // +kubebuilder:validation:Optional + GalleryApplicationIDRef *v1.Reference `json:"galleryApplicationIdRef,omitempty" tf:"-"` + + // Selector for a GalleryApplication in compute to populate galleryApplicationId. + // +kubebuilder:validation:Optional + GalleryApplicationIDSelector *v1.Selector `json:"galleryApplicationIdSelector,omitempty" tf:"-"` + + // The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Location *string `json:"location" tf:"location,omitempty"` + + // A manage_action block as defined below. + // +kubebuilder:validation:Required + ManageAction []ManageActionParameters `json:"manageAction" tf:"manage_action,omitempty"` + + // The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Name *string `json:"name" tf:"name,omitempty"` + + // A source block as defined below. + // +kubebuilder:validation:Required + Source []SourceParameters `json:"source" tf:"source,omitempty"` + + // A mapping of tags to assign to the Gallery Application Version. + // +kubebuilder:validation:Optional + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` + + // One or more target_region blocks as defined below. + // +kubebuilder:validation:Required + TargetRegion []TargetRegionParameters `json:"targetRegion" tf:"target_region,omitempty"` +} + +type ManageActionObservation struct { +} + +type ManageActionParameters struct { + + // The command to install the Gallery Application. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Install *string `json:"install" tf:"install,omitempty"` + + // The command to remove the Gallery Application. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Remove *string `json:"remove" tf:"remove,omitempty"` + + // The command to update the Gallery Application. Changing this forces a new resource to be created. + // +kubebuilder:validation:Optional + Update *string `json:"update,omitempty" tf:"update,omitempty"` +} + +type SourceObservation struct { +} + +type SourceParameters struct { + + // The Storage Blob URI of the default configuration. Changing this forces a new resource to be created. + // +kubebuilder:validation:Optional + DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty" tf:"default_configuration_link,omitempty"` + + // The Storage Blob URI of the source application package. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta1.Blob + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + MediaLink *string `json:"mediaLink,omitempty" tf:"media_link,omitempty"` + + // Reference to a Blob in storage to populate mediaLink. + // +kubebuilder:validation:Optional + MediaLinkRef *v1.Reference `json:"mediaLinkRef,omitempty" tf:"-"` + + // Selector for a Blob in storage to populate mediaLink. + // +kubebuilder:validation:Optional + MediaLinkSelector *v1.Selector `json:"mediaLinkSelector,omitempty" tf:"-"` +} + +type TargetRegionObservation struct { +} + +type TargetRegionParameters struct { + + // The Azure Region in which the Gallery Application Version exists. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/compute/v1beta1.GalleryApplication + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("location",false) + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // Reference to a GalleryApplication in compute to populate name. + // +kubebuilder:validation:Optional + NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"` + + // Selector for a GalleryApplication in compute to populate name. + // +kubebuilder:validation:Optional + NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"` + + // The number of replicas of the Gallery Application Version to be created per region. Possible values are between 1 and 10. + // +kubebuilder:validation:Required + RegionalReplicaCount *float64 `json:"regionalReplicaCount" tf:"regional_replica_count,omitempty"` + + // The storage account type for the Gallery Application Version. Possible values are Standard_LRS, Premium_LRS and Standard_ZRS. Defaults to Standard_LRS. + // +kubebuilder:validation:Optional + StorageAccountType *string `json:"storageAccountType,omitempty" tf:"storage_account_type,omitempty"` +} + +// GalleryApplicationVersionSpec defines the desired state of GalleryApplicationVersion +type GalleryApplicationVersionSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider GalleryApplicationVersionParameters `json:"forProvider"` +} + +// GalleryApplicationVersionStatus defines the observed state of GalleryApplicationVersion. +type GalleryApplicationVersionStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider GalleryApplicationVersionObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// GalleryApplicationVersion is the Schema for the GalleryApplicationVersions API. Manages a Gallery Application Version. +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type GalleryApplicationVersion struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec GalleryApplicationVersionSpec `json:"spec"` + Status GalleryApplicationVersionStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// GalleryApplicationVersionList contains a list of GalleryApplicationVersions +type GalleryApplicationVersionList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []GalleryApplicationVersion `json:"items"` +} + +// Repository type metadata. +var ( + GalleryApplicationVersion_Kind = "GalleryApplicationVersion" + GalleryApplicationVersion_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: GalleryApplicationVersion_Kind}.String() + GalleryApplicationVersion_KindAPIVersion = GalleryApplicationVersion_Kind + "." + CRDGroupVersion.String() + GalleryApplicationVersion_GroupVersionKind = CRDGroupVersion.WithKind(GalleryApplicationVersion_Kind) +) + +func init() { + SchemeBuilder.Register(&GalleryApplicationVersion{}, &GalleryApplicationVersionList{}) +} diff --git a/apis/compute/v1beta1/zz_generated.deepcopy.go b/apis/compute/v1beta1/zz_generated.deepcopy.go index d89fb1958..680458d66 100644 --- a/apis/compute/v1beta1/zz_generated.deepcopy.go +++ b/apis/compute/v1beta1/zz_generated.deepcopy.go @@ -1398,9 +1398,73 @@ func (in *ExtensionProtectedSettingsFromKeyVaultParameters) DeepCopy() *Extensio return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GalleryApplication) DeepCopyInto(out *GalleryApplication) { + *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 GalleryApplication. +func (in *GalleryApplication) DeepCopy() *GalleryApplication { + if in == nil { + return nil + } + out := new(GalleryApplication) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *GalleryApplication) 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 *GalleryApplicationList) DeepCopyInto(out *GalleryApplicationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]GalleryApplication, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationList. +func (in *GalleryApplicationList) DeepCopy() *GalleryApplicationList { + if in == nil { + return nil + } + out := new(GalleryApplicationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *GalleryApplicationList) 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 *GalleryApplicationObservation) DeepCopyInto(out *GalleryApplicationObservation) { *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationObservation. @@ -1416,26 +1480,71 @@ func (in *GalleryApplicationObservation) DeepCopy() *GalleryApplicationObservati // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GalleryApplicationParameters) DeepCopyInto(out *GalleryApplicationParameters) { *out = *in - if in.ConfigurationBlobURI != nil { - in, out := &in.ConfigurationBlobURI, &out.ConfigurationBlobURI + if in.Description != nil { + in, out := &in.Description, &out.Description *out = new(string) **out = **in } - if in.Order != nil { - in, out := &in.Order, &out.Order - *out = new(float64) + if in.EndOfLifeDate != nil { + in, out := &in.EndOfLifeDate, &out.EndOfLifeDate + *out = new(string) **out = **in } - if in.Tag != nil { - in, out := &in.Tag, &out.Tag + if in.Eula != nil { + in, out := &in.Eula, &out.Eula *out = new(string) **out = **in } - if in.VersionID != nil { - in, out := &in.VersionID, &out.VersionID + if in.GalleryID != nil { + in, out := &in.GalleryID, &out.GalleryID + *out = new(string) + **out = **in + } + if in.GalleryIDRef != nil { + in, out := &in.GalleryIDRef, &out.GalleryIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.GalleryIDSelector != nil { + in, out := &in.GalleryIDSelector, &out.GalleryIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.PrivacyStatementURI != nil { + in, out := &in.PrivacyStatementURI, &out.PrivacyStatementURI + *out = new(string) + **out = **in + } + if in.ReleaseNoteURI != nil { + in, out := &in.ReleaseNoteURI, &out.ReleaseNoteURI + *out = new(string) + **out = **in + } + if in.SupportedOsType != nil { + in, out := &in.SupportedOsType, &out.SupportedOsType *out = new(string) **out = **in } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationParameters. @@ -1448,6 +1557,244 @@ func (in *GalleryApplicationParameters) DeepCopy() *GalleryApplicationParameters return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GalleryApplicationSpec) DeepCopyInto(out *GalleryApplicationSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationSpec. +func (in *GalleryApplicationSpec) DeepCopy() *GalleryApplicationSpec { + if in == nil { + return nil + } + out := new(GalleryApplicationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GalleryApplicationStatus) DeepCopyInto(out *GalleryApplicationStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationStatus. +func (in *GalleryApplicationStatus) DeepCopy() *GalleryApplicationStatus { + if in == nil { + return nil + } + out := new(GalleryApplicationStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GalleryApplicationVersion) DeepCopyInto(out *GalleryApplicationVersion) { + *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 GalleryApplicationVersion. +func (in *GalleryApplicationVersion) DeepCopy() *GalleryApplicationVersion { + if in == nil { + return nil + } + out := new(GalleryApplicationVersion) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *GalleryApplicationVersion) 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 *GalleryApplicationVersionList) DeepCopyInto(out *GalleryApplicationVersionList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]GalleryApplicationVersion, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationVersionList. +func (in *GalleryApplicationVersionList) DeepCopy() *GalleryApplicationVersionList { + if in == nil { + return nil + } + out := new(GalleryApplicationVersionList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *GalleryApplicationVersionList) 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 *GalleryApplicationVersionObservation) DeepCopyInto(out *GalleryApplicationVersionObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationVersionObservation. +func (in *GalleryApplicationVersionObservation) DeepCopy() *GalleryApplicationVersionObservation { + if in == nil { + return nil + } + out := new(GalleryApplicationVersionObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GalleryApplicationVersionParameters) DeepCopyInto(out *GalleryApplicationVersionParameters) { + *out = *in + if in.EnableHealthCheck != nil { + in, out := &in.EnableHealthCheck, &out.EnableHealthCheck + *out = new(bool) + **out = **in + } + if in.EndOfLifeDate != nil { + in, out := &in.EndOfLifeDate, &out.EndOfLifeDate + *out = new(string) + **out = **in + } + if in.ExcludeFromLatest != nil { + in, out := &in.ExcludeFromLatest, &out.ExcludeFromLatest + *out = new(bool) + **out = **in + } + if in.GalleryApplicationID != nil { + in, out := &in.GalleryApplicationID, &out.GalleryApplicationID + *out = new(string) + **out = **in + } + if in.GalleryApplicationIDRef != nil { + in, out := &in.GalleryApplicationIDRef, &out.GalleryApplicationIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.GalleryApplicationIDSelector != nil { + in, out := &in.GalleryApplicationIDSelector, &out.GalleryApplicationIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.ManageAction != nil { + in, out := &in.ManageAction, &out.ManageAction + *out = make([]ManageActionParameters, 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.Source != nil { + in, out := &in.Source, &out.Source + *out = make([]SourceParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.TargetRegion != nil { + in, out := &in.TargetRegion, &out.TargetRegion + *out = make([]TargetRegionParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationVersionParameters. +func (in *GalleryApplicationVersionParameters) DeepCopy() *GalleryApplicationVersionParameters { + if in == nil { + return nil + } + out := new(GalleryApplicationVersionParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GalleryApplicationVersionSpec) DeepCopyInto(out *GalleryApplicationVersionSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationVersionSpec. +func (in *GalleryApplicationVersionSpec) DeepCopy() *GalleryApplicationVersionSpec { + if in == nil { + return nil + } + out := new(GalleryApplicationVersionSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GalleryApplicationVersionStatus) DeepCopyInto(out *GalleryApplicationVersionStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GalleryApplicationVersionStatus. +func (in *GalleryApplicationVersionStatus) DeepCopy() *GalleryApplicationVersionStatus { + if in == nil { + return nil + } + out := new(GalleryApplicationVersionStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GalleryApplicationsObservation) DeepCopyInto(out *GalleryApplicationsObservation) { *out = *in @@ -2267,6 +2614,56 @@ func (in *LinuxVirtualMachine) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LinuxVirtualMachineGalleryApplicationObservation) DeepCopyInto(out *LinuxVirtualMachineGalleryApplicationObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinuxVirtualMachineGalleryApplicationObservation. +func (in *LinuxVirtualMachineGalleryApplicationObservation) DeepCopy() *LinuxVirtualMachineGalleryApplicationObservation { + if in == nil { + return nil + } + out := new(LinuxVirtualMachineGalleryApplicationObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LinuxVirtualMachineGalleryApplicationParameters) DeepCopyInto(out *LinuxVirtualMachineGalleryApplicationParameters) { + *out = *in + if in.ConfigurationBlobURI != nil { + in, out := &in.ConfigurationBlobURI, &out.ConfigurationBlobURI + *out = new(string) + **out = **in + } + if in.Order != nil { + in, out := &in.Order, &out.Order + *out = new(float64) + **out = **in + } + if in.Tag != nil { + in, out := &in.Tag, &out.Tag + *out = new(string) + **out = **in + } + if in.VersionID != nil { + in, out := &in.VersionID, &out.VersionID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinuxVirtualMachineGalleryApplicationParameters. +func (in *LinuxVirtualMachineGalleryApplicationParameters) DeepCopy() *LinuxVirtualMachineGalleryApplicationParameters { + if in == nil { + return nil + } + out := new(LinuxVirtualMachineGalleryApplicationParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LinuxVirtualMachineIdentityObservation) DeepCopyInto(out *LinuxVirtualMachineIdentityObservation) { *out = *in @@ -2592,7 +2989,7 @@ func (in *LinuxVirtualMachineParameters) DeepCopyInto(out *LinuxVirtualMachinePa } if in.GalleryApplication != nil { in, out := &in.GalleryApplication, &out.GalleryApplication - *out = make([]GalleryApplicationParameters, len(*in)) + *out = make([]LinuxVirtualMachineGalleryApplicationParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3839,6 +4236,51 @@ func (in *LinuxVirtualMachineStatus) DeepCopy() *LinuxVirtualMachineStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManageActionObservation) DeepCopyInto(out *ManageActionObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManageActionObservation. +func (in *ManageActionObservation) DeepCopy() *ManageActionObservation { + if in == nil { + return nil + } + out := new(ManageActionObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManageActionParameters) DeepCopyInto(out *ManageActionParameters) { + *out = *in + if in.Install != nil { + in, out := &in.Install, &out.Install + *out = new(string) + **out = **in + } + if in.Remove != nil { + in, out := &in.Remove, &out.Remove + *out = new(string) + **out = **in + } + if in.Update != nil { + in, out := &in.Update, &out.Update + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManageActionParameters. +func (in *ManageActionParameters) DeepCopy() *ManageActionParameters { + if in == nil { + return nil + } + out := new(ManageActionParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ManagedDisk) DeepCopyInto(out *ManagedDisk) { *out = *in @@ -6545,6 +6987,56 @@ func (in *SourceImageReferenceParameters) DeepCopy() *SourceImageReferenceParame return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SourceObservation) DeepCopyInto(out *SourceObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceObservation. +func (in *SourceObservation) DeepCopy() *SourceObservation { + if in == nil { + return nil + } + out := new(SourceObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SourceParameters) DeepCopyInto(out *SourceParameters) { + *out = *in + if in.DefaultConfigurationLink != nil { + in, out := &in.DefaultConfigurationLink, &out.DefaultConfigurationLink + *out = new(string) + **out = **in + } + if in.MediaLink != nil { + in, out := &in.MediaLink, &out.MediaLink + *out = new(string) + **out = **in + } + if in.MediaLinkRef != nil { + in, out := &in.MediaLinkRef, &out.MediaLinkRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.MediaLinkSelector != nil { + in, out := &in.MediaLinkSelector, &out.MediaLinkSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceParameters. +func (in *SourceParameters) DeepCopy() *SourceParameters { + if in == nil { + return nil + } + out := new(SourceParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SpotRestoreObservation) DeepCopyInto(out *SpotRestoreObservation) { *out = *in @@ -6585,6 +7077,61 @@ func (in *SpotRestoreParameters) DeepCopy() *SpotRestoreParameters { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TargetRegionObservation) DeepCopyInto(out *TargetRegionObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetRegionObservation. +func (in *TargetRegionObservation) DeepCopy() *TargetRegionObservation { + if in == nil { + return nil + } + out := new(TargetRegionObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TargetRegionParameters) DeepCopyInto(out *TargetRegionParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.NameRef != nil { + in, out := &in.NameRef, &out.NameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.NameSelector != nil { + in, out := &in.NameSelector, &out.NameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.RegionalReplicaCount != nil { + in, out := &in.RegionalReplicaCount, &out.RegionalReplicaCount + *out = new(float64) + **out = **in + } + if in.StorageAccountType != nil { + in, out := &in.StorageAccountType, &out.StorageAccountType + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetRegionParameters. +func (in *TargetRegionParameters) DeepCopy() *TargetRegionParameters { + if in == nil { + return nil + } + out := new(TargetRegionParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TerminateNotificationObservation) DeepCopyInto(out *TerminateNotificationObservation) { *out = *in diff --git a/apis/compute/v1beta1/zz_generated.managed.go b/apis/compute/v1beta1/zz_generated.managed.go index 0fd899e34..4b1009ef7 100644 --- a/apis/compute/v1beta1/zz_generated.managed.go +++ b/apis/compute/v1beta1/zz_generated.managed.go @@ -271,6 +271,138 @@ func (mg *DiskEncryptionSet) SetWriteConnectionSecretToReference(r *xpv1.SecretR mg.Spec.WriteConnectionSecretToReference = r } +// GetCondition of this GalleryApplication. +func (mg *GalleryApplication) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this GalleryApplication. +func (mg *GalleryApplication) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this GalleryApplication. +func (mg *GalleryApplication) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this GalleryApplication. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *GalleryApplication) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this GalleryApplication. +func (mg *GalleryApplication) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this GalleryApplication. +func (mg *GalleryApplication) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this GalleryApplication. +func (mg *GalleryApplication) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this GalleryApplication. +func (mg *GalleryApplication) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this GalleryApplication. +func (mg *GalleryApplication) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this GalleryApplication. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *GalleryApplication) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this GalleryApplication. +func (mg *GalleryApplication) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this GalleryApplication. +func (mg *GalleryApplication) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this GalleryApplicationVersion. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *GalleryApplicationVersion) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this GalleryApplicationVersion. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *GalleryApplicationVersion) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this Image. func (mg *Image) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/compute/v1beta1/zz_generated.managedlist.go b/apis/compute/v1beta1/zz_generated.managedlist.go index 630c1c122..a31225a96 100644 --- a/apis/compute/v1beta1/zz_generated.managedlist.go +++ b/apis/compute/v1beta1/zz_generated.managedlist.go @@ -43,6 +43,24 @@ func (l *DiskEncryptionSetList) GetItems() []resource.Managed { return items } +// GetItems of this GalleryApplicationList. +func (l *GalleryApplicationList) 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 GalleryApplicationVersionList. +func (l *GalleryApplicationVersionList) 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 ImageList. func (l *ImageList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/compute/v1beta1/zz_generated.resolvers.go b/apis/compute/v1beta1/zz_generated.resolvers.go index 27921434c..6bd74d5e1 100644 --- a/apis/compute/v1beta1/zz_generated.resolvers.go +++ b/apis/compute/v1beta1/zz_generated.resolvers.go @@ -11,8 +11,9 @@ import ( errors "github.com/pkg/errors" v1beta1 "github.com/upbound/provider-azure/apis/azure/v1beta1" v1beta11 "github.com/upbound/provider-azure/apis/keyvault/v1beta1" - v1beta12 "github.com/upbound/provider-azure/apis/network/v1beta1" + v1beta13 "github.com/upbound/provider-azure/apis/network/v1beta1" rconfig "github.com/upbound/provider-azure/apis/rconfig" + v1beta12 "github.com/upbound/provider-azure/apis/storage/v1beta1" resource "github.com/upbound/upjet/pkg/resource" client "sigs.k8s.io/controller-runtime/pkg/client" ) @@ -111,6 +112,95 @@ func (mg *DiskEncryptionSet) ResolveReferences(ctx context.Context, c client.Rea return nil } +// ResolveReferences of this GalleryApplication. +func (mg *GalleryApplication) 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.GalleryID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.GalleryIDRef, + Selector: mg.Spec.ForProvider.GalleryIDSelector, + To: reference.To{ + List: &SharedImageGalleryList{}, + Managed: &SharedImageGallery{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.GalleryID") + } + mg.Spec.ForProvider.GalleryID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.GalleryIDRef = rsp.ResolvedReference + + return nil +} + +// ResolveReferences of this GalleryApplicationVersion. +func (mg *GalleryApplicationVersion) 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.GalleryApplicationID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.GalleryApplicationIDRef, + Selector: mg.Spec.ForProvider.GalleryApplicationIDSelector, + To: reference.To{ + List: &GalleryApplicationList{}, + Managed: &GalleryApplication{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.GalleryApplicationID") + } + mg.Spec.ForProvider.GalleryApplicationID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.GalleryApplicationIDRef = rsp.ResolvedReference + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Source); i3++ { + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Source[i3].MediaLink), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.Source[i3].MediaLinkRef, + Selector: mg.Spec.ForProvider.Source[i3].MediaLinkSelector, + To: reference.To{ + List: &v1beta12.BlobList{}, + Managed: &v1beta12.Blob{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Source[i3].MediaLink") + } + mg.Spec.ForProvider.Source[i3].MediaLink = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.Source[i3].MediaLinkRef = rsp.ResolvedReference + + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.TargetRegion); i3++ { + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.TargetRegion[i3].Name), + Extract: resource.ExtractParamPath("location", false), + Reference: mg.Spec.ForProvider.TargetRegion[i3].NameRef, + Selector: mg.Spec.ForProvider.TargetRegion[i3].NameSelector, + To: reference.To{ + List: &GalleryApplicationList{}, + Managed: &GalleryApplication{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.TargetRegion[i3].Name") + } + mg.Spec.ForProvider.TargetRegion[i3].Name = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.TargetRegion[i3].NameRef = rsp.ResolvedReference + + } + + return nil +} + // ResolveReferences of this Image. func (mg *Image) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) @@ -151,8 +241,8 @@ func (mg *LinuxVirtualMachine) ResolveReferences(ctx context.Context, c client.R References: mg.Spec.ForProvider.NetworkInterfaceIdsRefs, Selector: mg.Spec.ForProvider.NetworkInterfaceIdsSelector, To: reference.To{ - List: &v1beta12.NetworkInterfaceList{}, - Managed: &v1beta12.NetworkInterface{}, + List: &v1beta13.NetworkInterfaceList{}, + Managed: &v1beta13.NetworkInterface{}, }, }) if err != nil { @@ -195,8 +285,8 @@ func (mg *LinuxVirtualMachineScaleSet) ResolveReferences(ctx context.Context, c Reference: mg.Spec.ForProvider.NetworkInterface[i3].IPConfiguration[i4].SubnetIDRef, Selector: mg.Spec.ForProvider.NetworkInterface[i3].IPConfiguration[i4].SubnetIDSelector, To: reference.To{ - List: &v1beta12.SubnetList{}, - Managed: &v1beta12.Subnet{}, + List: &v1beta13.SubnetList{}, + Managed: &v1beta13.Subnet{}, }, }) if err != nil { @@ -283,8 +373,8 @@ func (mg *OrchestratedVirtualMachineScaleSet) ResolveReferences(ctx context.Cont Reference: mg.Spec.ForProvider.NetworkInterface[i3].IPConfiguration[i4].SubnetIDRef, Selector: mg.Spec.ForProvider.NetworkInterface[i3].IPConfiguration[i4].SubnetIDSelector, To: reference.To{ - List: &v1beta12.SubnetList{}, - Managed: &v1beta12.Subnet{}, + List: &v1beta13.SubnetList{}, + Managed: &v1beta13.Subnet{}, }, }) if err != nil { @@ -449,8 +539,8 @@ func (mg *WindowsVirtualMachineScaleSet) ResolveReferences(ctx context.Context, Reference: mg.Spec.ForProvider.NetworkInterface[i3].IPConfiguration[i4].SubnetIDRef, Selector: mg.Spec.ForProvider.NetworkInterface[i3].IPConfiguration[i4].SubnetIDSelector, To: reference.To{ - List: &v1beta12.SubnetList{}, - Managed: &v1beta12.Subnet{}, + List: &v1beta13.SubnetList{}, + Managed: &v1beta13.Subnet{}, }, }) if err != nil { diff --git a/apis/compute/v1beta1/zz_generated_terraformed.go b/apis/compute/v1beta1/zz_generated_terraformed.go index 3ffc206e7..5c5d4c918 100755 --- a/apis/compute/v1beta1/zz_generated_terraformed.go +++ b/apis/compute/v1beta1/zz_generated_terraformed.go @@ -309,6 +309,154 @@ func (tr *DiskEncryptionSet) GetTerraformSchemaVersion() int { return 0 } +// GetTerraformResourceType returns Terraform resource type for this GalleryApplication +func (mg *GalleryApplication) GetTerraformResourceType() string { + return "azurerm_gallery_application" +} + +// GetConnectionDetailsMapping for this GalleryApplication +func (tr *GalleryApplication) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this GalleryApplication +func (tr *GalleryApplication) 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 GalleryApplication +func (tr *GalleryApplication) 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 GalleryApplication +func (tr *GalleryApplication) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this GalleryApplication +func (tr *GalleryApplication) 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 GalleryApplication +func (tr *GalleryApplication) 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) +} + +// LateInitialize this GalleryApplication using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *GalleryApplication) LateInitialize(attrs []byte) (bool, error) { + params := &GalleryApplicationParameters{} + 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 *GalleryApplication) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this GalleryApplicationVersion +func (mg *GalleryApplicationVersion) GetTerraformResourceType() string { + return "azurerm_gallery_application_version" +} + +// GetConnectionDetailsMapping for this GalleryApplicationVersion +func (tr *GalleryApplicationVersion) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this GalleryApplicationVersion +func (tr *GalleryApplicationVersion) 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 GalleryApplicationVersion +func (tr *GalleryApplicationVersion) 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 GalleryApplicationVersion +func (tr *GalleryApplicationVersion) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this GalleryApplicationVersion +func (tr *GalleryApplicationVersion) 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 GalleryApplicationVersion +func (tr *GalleryApplicationVersion) 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) +} + +// LateInitialize this GalleryApplicationVersion using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *GalleryApplicationVersion) LateInitialize(attrs []byte) (bool, error) { + params := &GalleryApplicationVersionParameters{} + 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 *GalleryApplicationVersion) GetTerraformSchemaVersion() int { + return 0 +} + // GetTerraformResourceType returns Terraform resource type for this Image func (mg *Image) GetTerraformResourceType() string { return "azurerm_image" diff --git a/apis/compute/v1beta1/zz_linuxvirtualmachine_types.go b/apis/compute/v1beta1/zz_linuxvirtualmachine_types.go index 0554746ea..202d697f9 100755 --- a/apis/compute/v1beta1/zz_linuxvirtualmachine_types.go +++ b/apis/compute/v1beta1/zz_linuxvirtualmachine_types.go @@ -71,10 +71,10 @@ type DiffDiskSettingsParameters struct { Placement *string `json:"placement,omitempty" tf:"placement,omitempty"` } -type GalleryApplicationObservation struct { +type LinuxVirtualMachineGalleryApplicationObservation struct { } -type GalleryApplicationParameters struct { +type LinuxVirtualMachineGalleryApplicationParameters struct { // Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided. // +kubebuilder:validation:Optional @@ -252,7 +252,7 @@ type LinuxVirtualMachineParameters struct { // A gallery_application block as defined below. // +kubebuilder:validation:Optional - GalleryApplication []GalleryApplicationParameters `json:"galleryApplication,omitempty" tf:"gallery_application,omitempty"` + GalleryApplication []LinuxVirtualMachineGalleryApplicationParameters `json:"galleryApplication,omitempty" tf:"gallery_application,omitempty"` // An identity block as defined below. // +kubebuilder:validation:Optional diff --git a/apis/databricks/v1beta1/zz_accessconnector_types.go b/apis/databricks/v1beta1/zz_accessconnector_types.go new file mode 100755 index 000000000..5713e6cda --- /dev/null +++ b/apis/databricks/v1beta1/zz_accessconnector_types.go @@ -0,0 +1,117 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +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 AccessConnectorObservation struct { + + // The ID of the Databricks Access Connector in the Azure management plane. + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // An identity block as defined below. + // +kubebuilder:validation:Required + Identity []IdentityObservation `json:"identity,omitempty" tf:"identity,omitempty"` +} + +type AccessConnectorParameters struct { + + // An identity block as defined below. + // +kubebuilder:validation:Required + Identity []IdentityParameters `json:"identity" tf:"identity,omitempty"` + + // Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Location *string `json:"location" tf:"location,omitempty"` + + // The name of the Resource Group in which the Databricks Access Connector should exist. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup + // +kubebuilder:validation:Optional + ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"` + + // Reference to a ResourceGroup in azure to populate resourceGroupName. + // +kubebuilder:validation:Optional + ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"` + + // Selector for a ResourceGroup in azure to populate resourceGroupName. + // +kubebuilder:validation:Optional + ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"` + + // A mapping of tags to assign to the resource. + // +kubebuilder:validation:Optional + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` +} + +type IdentityObservation struct { + + // The object id of an existing principal. If not specified, a new system-assigned managed identity is created. + PrincipalID *string `json:"principalId,omitempty" tf:"principal_id,omitempty"` + + // The tenant id in which the principal resides. + TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"` +} + +type IdentityParameters struct { + + // The type of identity to use for this Access Connector. SystemAssigned is the only possible value. + // +kubebuilder:validation:Required + Type *string `json:"type" tf:"type,omitempty"` +} + +// AccessConnectorSpec defines the desired state of AccessConnector +type AccessConnectorSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider AccessConnectorParameters `json:"forProvider"` +} + +// AccessConnectorStatus defines the observed state of AccessConnector. +type AccessConnectorStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider AccessConnectorObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// AccessConnector is the Schema for the AccessConnectors API. Manages a Databricks Access Connector +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type AccessConnector struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec AccessConnectorSpec `json:"spec"` + Status AccessConnectorStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// AccessConnectorList contains a list of AccessConnectors +type AccessConnectorList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []AccessConnector `json:"items"` +} + +// Repository type metadata. +var ( + AccessConnector_Kind = "AccessConnector" + AccessConnector_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: AccessConnector_Kind}.String() + AccessConnector_KindAPIVersion = AccessConnector_Kind + "." + CRDGroupVersion.String() + AccessConnector_GroupVersionKind = CRDGroupVersion.WithKind(AccessConnector_Kind) +) + +func init() { + SchemeBuilder.Register(&AccessConnector{}, &AccessConnectorList{}) +} diff --git a/apis/databricks/v1beta1/zz_generated.deepcopy.go b/apis/databricks/v1beta1/zz_generated.deepcopy.go index 01c489d63..54b15e552 100644 --- a/apis/databricks/v1beta1/zz_generated.deepcopy.go +++ b/apis/databricks/v1beta1/zz_generated.deepcopy.go @@ -14,6 +14,183 @@ import ( runtime "k8s.io/apimachinery/pkg/runtime" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AccessConnector) DeepCopyInto(out *AccessConnector) { + *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 AccessConnector. +func (in *AccessConnector) DeepCopy() *AccessConnector { + if in == nil { + return nil + } + out := new(AccessConnector) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *AccessConnector) 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 *AccessConnectorList) DeepCopyInto(out *AccessConnectorList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]AccessConnector, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessConnectorList. +func (in *AccessConnectorList) DeepCopy() *AccessConnectorList { + if in == nil { + return nil + } + out := new(AccessConnectorList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *AccessConnectorList) 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 *AccessConnectorObservation) DeepCopyInto(out *AccessConnectorObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = make([]IdentityObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessConnectorObservation. +func (in *AccessConnectorObservation) DeepCopy() *AccessConnectorObservation { + if in == nil { + return nil + } + out := new(AccessConnectorObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AccessConnectorParameters) DeepCopyInto(out *AccessConnectorParameters) { + *out = *in + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = make([]IdentityParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.ResourceGroupName != nil { + in, out := &in.ResourceGroupName, &out.ResourceGroupName + *out = new(string) + **out = **in + } + if in.ResourceGroupNameRef != nil { + in, out := &in.ResourceGroupNameRef, &out.ResourceGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ResourceGroupNameSelector != nil { + in, out := &in.ResourceGroupNameSelector, &out.ResourceGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessConnectorParameters. +func (in *AccessConnectorParameters) DeepCopy() *AccessConnectorParameters { + if in == nil { + return nil + } + out := new(AccessConnectorParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AccessConnectorSpec) DeepCopyInto(out *AccessConnectorSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessConnectorSpec. +func (in *AccessConnectorSpec) DeepCopy() *AccessConnectorSpec { + if in == nil { + return nil + } + out := new(AccessConnectorSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AccessConnectorStatus) DeepCopyInto(out *AccessConnectorStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessConnectorStatus. +func (in *AccessConnectorStatus) DeepCopy() *AccessConnectorStatus { + if in == nil { + return nil + } + out := new(AccessConnectorStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CustomParametersObservation) DeepCopyInto(out *CustomParametersObservation) { *out = *in @@ -124,6 +301,51 @@ func (in *CustomParametersParameters) DeepCopy() *CustomParametersParameters { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IdentityObservation) DeepCopyInto(out *IdentityObservation) { + *out = *in + if in.PrincipalID != nil { + in, out := &in.PrincipalID, &out.PrincipalID + *out = new(string) + **out = **in + } + if in.TenantID != nil { + in, out := &in.TenantID, &out.TenantID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IdentityObservation. +func (in *IdentityObservation) DeepCopy() *IdentityObservation { + if in == nil { + return nil + } + out := new(IdentityObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IdentityParameters) DeepCopyInto(out *IdentityParameters) { + *out = *in + if in.Type != nil { + in, out := &in.Type, &out.Type + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IdentityParameters. +func (in *IdentityParameters) DeepCopy() *IdentityParameters { + if in == nil { + return nil + } + out := new(IdentityParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ManagedDiskIdentityObservation) DeepCopyInto(out *ManagedDiskIdentityObservation) { *out = *in diff --git a/apis/databricks/v1beta1/zz_generated.managed.go b/apis/databricks/v1beta1/zz_generated.managed.go index 0756c060b..18455dc89 100644 --- a/apis/databricks/v1beta1/zz_generated.managed.go +++ b/apis/databricks/v1beta1/zz_generated.managed.go @@ -7,6 +7,72 @@ package v1beta1 import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +// GetCondition of this AccessConnector. +func (mg *AccessConnector) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this AccessConnector. +func (mg *AccessConnector) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this AccessConnector. +func (mg *AccessConnector) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this AccessConnector. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *AccessConnector) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this AccessConnector. +func (mg *AccessConnector) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this AccessConnector. +func (mg *AccessConnector) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this AccessConnector. +func (mg *AccessConnector) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this AccessConnector. +func (mg *AccessConnector) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this AccessConnector. +func (mg *AccessConnector) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this AccessConnector. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *AccessConnector) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this AccessConnector. +func (mg *AccessConnector) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this AccessConnector. +func (mg *AccessConnector) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this Workspace. func (mg *Workspace) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/databricks/v1beta1/zz_generated.managedlist.go b/apis/databricks/v1beta1/zz_generated.managedlist.go index fa4f0b82b..6de8c2237 100644 --- a/apis/databricks/v1beta1/zz_generated.managedlist.go +++ b/apis/databricks/v1beta1/zz_generated.managedlist.go @@ -7,6 +7,15 @@ package v1beta1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" +// GetItems of this AccessConnectorList. +func (l *AccessConnectorList) 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 WorkspaceCustomerManagedKeyList. func (l *WorkspaceCustomerManagedKeyList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/databricks/v1beta1/zz_generated.resolvers.go b/apis/databricks/v1beta1/zz_generated.resolvers.go index 2ec6505c7..f8b642aeb 100644 --- a/apis/databricks/v1beta1/zz_generated.resolvers.go +++ b/apis/databricks/v1beta1/zz_generated.resolvers.go @@ -9,13 +9,39 @@ import ( "context" reference "github.com/crossplane/crossplane-runtime/pkg/reference" errors "github.com/pkg/errors" - v1beta11 "github.com/upbound/provider-azure/apis/azure/v1beta1" + v1beta1 "github.com/upbound/provider-azure/apis/azure/v1beta1" v1beta12 "github.com/upbound/provider-azure/apis/keyvault/v1beta1" - v1beta1 "github.com/upbound/provider-azure/apis/network/v1beta1" + v1beta11 "github.com/upbound/provider-azure/apis/network/v1beta1" resource "github.com/upbound/upjet/pkg/resource" client "sigs.k8s.io/controller-runtime/pkg/client" ) +// ResolveReferences of this AccessConnector. +func (mg *AccessConnector) 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.ResourceGroupName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.ResourceGroupNameRef, + Selector: mg.Spec.ForProvider.ResourceGroupNameSelector, + To: reference.To{ + List: &v1beta1.ResourceGroupList{}, + Managed: &v1beta1.ResourceGroup{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ResourceGroupName") + } + mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this Workspace. func (mg *Workspace) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) @@ -30,8 +56,8 @@ func (mg *Workspace) ResolveReferences(ctx context.Context, c client.Reader) err Reference: mg.Spec.ForProvider.CustomParameters[i3].PrivateSubnetNameRef, Selector: mg.Spec.ForProvider.CustomParameters[i3].PrivateSubnetNameSelector, To: reference.To{ - List: &v1beta1.SubnetList{}, - Managed: &v1beta1.Subnet{}, + List: &v1beta11.SubnetList{}, + Managed: &v1beta11.Subnet{}, }, }) if err != nil { @@ -48,8 +74,8 @@ func (mg *Workspace) ResolveReferences(ctx context.Context, c client.Reader) err Reference: mg.Spec.ForProvider.CustomParameters[i3].PublicSubnetNameRef, Selector: mg.Spec.ForProvider.CustomParameters[i3].PublicSubnetNameSelector, To: reference.To{ - List: &v1beta1.SubnetList{}, - Managed: &v1beta1.Subnet{}, + List: &v1beta11.SubnetList{}, + Managed: &v1beta11.Subnet{}, }, }) if err != nil { @@ -65,8 +91,8 @@ func (mg *Workspace) ResolveReferences(ctx context.Context, c client.Reader) err Reference: mg.Spec.ForProvider.ManagedResourceGroupNameRef, Selector: mg.Spec.ForProvider.ManagedResourceGroupNameSelector, To: reference.To{ - List: &v1beta11.ResourceGroupList{}, - Managed: &v1beta11.ResourceGroup{}, + List: &v1beta1.ResourceGroupList{}, + Managed: &v1beta1.ResourceGroup{}, }, }) if err != nil { @@ -81,8 +107,8 @@ func (mg *Workspace) ResolveReferences(ctx context.Context, c client.Reader) err Reference: mg.Spec.ForProvider.ResourceGroupNameRef, Selector: mg.Spec.ForProvider.ResourceGroupNameSelector, To: reference.To{ - List: &v1beta11.ResourceGroupList{}, - Managed: &v1beta11.ResourceGroup{}, + List: &v1beta1.ResourceGroupList{}, + Managed: &v1beta1.ResourceGroup{}, }, }) if err != nil { diff --git a/apis/databricks/v1beta1/zz_generated_terraformed.go b/apis/databricks/v1beta1/zz_generated_terraformed.go index 34dc2f6ab..f78f04b23 100755 --- a/apis/databricks/v1beta1/zz_generated_terraformed.go +++ b/apis/databricks/v1beta1/zz_generated_terraformed.go @@ -13,6 +13,80 @@ import ( "github.com/upbound/upjet/pkg/resource/json" ) +// GetTerraformResourceType returns Terraform resource type for this AccessConnector +func (mg *AccessConnector) GetTerraformResourceType() string { + return "azurerm_databricks_access_connector" +} + +// GetConnectionDetailsMapping for this AccessConnector +func (tr *AccessConnector) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this AccessConnector +func (tr *AccessConnector) 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 AccessConnector +func (tr *AccessConnector) 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 AccessConnector +func (tr *AccessConnector) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this AccessConnector +func (tr *AccessConnector) 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 AccessConnector +func (tr *AccessConnector) 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) +} + +// LateInitialize this AccessConnector using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *AccessConnector) LateInitialize(attrs []byte) (bool, error) { + params := &AccessConnectorParameters{} + 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 *AccessConnector) GetTerraformSchemaVersion() int { + return 0 +} + // GetTerraformResourceType returns Terraform resource type for this Workspace func (mg *Workspace) GetTerraformResourceType() string { return "azurerm_databricks_workspace" diff --git a/apis/eventhub/v1beta1/zz_generated.deepcopy.go b/apis/eventhub/v1beta1/zz_generated.deepcopy.go index 9c0b1454b..7a7bd5762 100644 --- a/apis/eventhub/v1beta1/zz_generated.deepcopy.go +++ b/apis/eventhub/v1beta1/zz_generated.deepcopy.go @@ -1354,6 +1354,159 @@ func (in *NamespaceDisasterRecoveryConfigStatus) DeepCopy() *NamespaceDisasterRe return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NamespaceSchemaGroup) DeepCopyInto(out *NamespaceSchemaGroup) { + *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 NamespaceSchemaGroup. +func (in *NamespaceSchemaGroup) DeepCopy() *NamespaceSchemaGroup { + if in == nil { + return nil + } + out := new(NamespaceSchemaGroup) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NamespaceSchemaGroup) 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 *NamespaceSchemaGroupList) DeepCopyInto(out *NamespaceSchemaGroupList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NamespaceSchemaGroup, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSchemaGroupList. +func (in *NamespaceSchemaGroupList) DeepCopy() *NamespaceSchemaGroupList { + if in == nil { + return nil + } + out := new(NamespaceSchemaGroupList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NamespaceSchemaGroupList) 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 *NamespaceSchemaGroupObservation) DeepCopyInto(out *NamespaceSchemaGroupObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSchemaGroupObservation. +func (in *NamespaceSchemaGroupObservation) DeepCopy() *NamespaceSchemaGroupObservation { + if in == nil { + return nil + } + out := new(NamespaceSchemaGroupObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NamespaceSchemaGroupParameters) DeepCopyInto(out *NamespaceSchemaGroupParameters) { + *out = *in + if in.NamespaceID != nil { + in, out := &in.NamespaceID, &out.NamespaceID + *out = new(string) + **out = **in + } + if in.NamespaceIDRef != nil { + in, out := &in.NamespaceIDRef, &out.NamespaceIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.NamespaceIDSelector != nil { + in, out := &in.NamespaceIDSelector, &out.NamespaceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.SchemaCompatibility != nil { + in, out := &in.SchemaCompatibility, &out.SchemaCompatibility + *out = new(string) + **out = **in + } + if in.SchemaType != nil { + in, out := &in.SchemaType, &out.SchemaType + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSchemaGroupParameters. +func (in *NamespaceSchemaGroupParameters) DeepCopy() *NamespaceSchemaGroupParameters { + if in == nil { + return nil + } + out := new(NamespaceSchemaGroupParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NamespaceSchemaGroupSpec) DeepCopyInto(out *NamespaceSchemaGroupSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSchemaGroupSpec. +func (in *NamespaceSchemaGroupSpec) DeepCopy() *NamespaceSchemaGroupSpec { + if in == nil { + return nil + } + out := new(NamespaceSchemaGroupSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NamespaceSchemaGroupStatus) DeepCopyInto(out *NamespaceSchemaGroupStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSchemaGroupStatus. +func (in *NamespaceSchemaGroupStatus) DeepCopy() *NamespaceSchemaGroupStatus { + if in == nil { + return nil + } + out := new(NamespaceSchemaGroupStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NetworkRulesetsObservation) DeepCopyInto(out *NetworkRulesetsObservation) { *out = *in diff --git a/apis/eventhub/v1beta1/zz_generated.managed.go b/apis/eventhub/v1beta1/zz_generated.managed.go index 4d61896f4..8c1abae80 100644 --- a/apis/eventhub/v1beta1/zz_generated.managed.go +++ b/apis/eventhub/v1beta1/zz_generated.managed.go @@ -402,3 +402,69 @@ func (mg *NamespaceDisasterRecoveryConfig) SetPublishConnectionDetailsTo(r *xpv1 func (mg *NamespaceDisasterRecoveryConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } + +// GetCondition of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this NamespaceSchemaGroup. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *NamespaceSchemaGroup) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this NamespaceSchemaGroup. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *NamespaceSchemaGroup) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/eventhub/v1beta1/zz_generated.managedlist.go b/apis/eventhub/v1beta1/zz_generated.managedlist.go index b70a33965..8c021febb 100644 --- a/apis/eventhub/v1beta1/zz_generated.managedlist.go +++ b/apis/eventhub/v1beta1/zz_generated.managedlist.go @@ -60,3 +60,12 @@ func (l *NamespaceDisasterRecoveryConfigList) GetItems() []resource.Managed { } return items } + +// GetItems of this NamespaceSchemaGroupList. +func (l *NamespaceSchemaGroupList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} diff --git a/apis/eventhub/v1beta1/zz_generated.resolvers.go b/apis/eventhub/v1beta1/zz_generated.resolvers.go index c83068072..260461c3f 100644 --- a/apis/eventhub/v1beta1/zz_generated.resolvers.go +++ b/apis/eventhub/v1beta1/zz_generated.resolvers.go @@ -319,3 +319,29 @@ func (mg *NamespaceDisasterRecoveryConfig) ResolveReferences(ctx context.Context return nil } + +// ResolveReferences of this NamespaceSchemaGroup. +func (mg *NamespaceSchemaGroup) 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.NamespaceID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.NamespaceIDRef, + Selector: mg.Spec.ForProvider.NamespaceIDSelector, + To: reference.To{ + List: &EventHubNamespaceList{}, + Managed: &EventHubNamespace{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.NamespaceID") + } + mg.Spec.ForProvider.NamespaceID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.NamespaceIDRef = rsp.ResolvedReference + + return nil +} diff --git a/apis/eventhub/v1beta1/zz_generated_terraformed.go b/apis/eventhub/v1beta1/zz_generated_terraformed.go index 18d16039e..736973673 100755 --- a/apis/eventhub/v1beta1/zz_generated_terraformed.go +++ b/apis/eventhub/v1beta1/zz_generated_terraformed.go @@ -457,3 +457,77 @@ func (tr *NamespaceDisasterRecoveryConfig) LateInitialize(attrs []byte) (bool, e func (tr *NamespaceDisasterRecoveryConfig) GetTerraformSchemaVersion() int { return 0 } + +// GetTerraformResourceType returns Terraform resource type for this NamespaceSchemaGroup +func (mg *NamespaceSchemaGroup) GetTerraformResourceType() string { + return "azurerm_eventhub_namespace_schema_group" +} + +// GetConnectionDetailsMapping for this NamespaceSchemaGroup +func (tr *NamespaceSchemaGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this NamespaceSchemaGroup +func (tr *NamespaceSchemaGroup) 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 NamespaceSchemaGroup +func (tr *NamespaceSchemaGroup) 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 NamespaceSchemaGroup +func (tr *NamespaceSchemaGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this NamespaceSchemaGroup +func (tr *NamespaceSchemaGroup) 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 NamespaceSchemaGroup +func (tr *NamespaceSchemaGroup) 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) +} + +// LateInitialize this NamespaceSchemaGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *NamespaceSchemaGroup) LateInitialize(attrs []byte) (bool, error) { + params := &NamespaceSchemaGroupParameters{} + 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 *NamespaceSchemaGroup) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/eventhub/v1beta1/zz_namespaceschemagroup_types.go b/apis/eventhub/v1beta1/zz_namespaceschemagroup_types.go new file mode 100755 index 000000000..4283bdd70 --- /dev/null +++ b/apis/eventhub/v1beta1/zz_namespaceschemagroup_types.go @@ -0,0 +1,94 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +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 NamespaceSchemaGroupObservation struct { + + // The ID of the EventHub Namespace Schema Group. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type NamespaceSchemaGroupParameters struct { + + // The ID of the EventHub Namespace. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHubNamespace + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + NamespaceID *string `json:"namespaceId,omitempty" tf:"namespace_id,omitempty"` + + // Reference to a EventHubNamespace in eventhub to populate namespaceId. + // +kubebuilder:validation:Optional + NamespaceIDRef *v1.Reference `json:"namespaceIdRef,omitempty" tf:"-"` + + // Selector for a EventHubNamespace in eventhub to populate namespaceId. + // +kubebuilder:validation:Optional + NamespaceIDSelector *v1.Selector `json:"namespaceIdSelector,omitempty" tf:"-"` + + // The compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + SchemaCompatibility *string `json:"schemaCompatibility" tf:"schema_compatibility,omitempty"` + + // The Type of this schema group. Possible values are Avro, Unknown. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + SchemaType *string `json:"schemaType" tf:"schema_type,omitempty"` +} + +// NamespaceSchemaGroupSpec defines the desired state of NamespaceSchemaGroup +type NamespaceSchemaGroupSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider NamespaceSchemaGroupParameters `json:"forProvider"` +} + +// NamespaceSchemaGroupStatus defines the observed state of NamespaceSchemaGroup. +type NamespaceSchemaGroupStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider NamespaceSchemaGroupObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// NamespaceSchemaGroup is the Schema for the NamespaceSchemaGroups API. Manages a Schema Group for a EventHub Namespace. +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type NamespaceSchemaGroup struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NamespaceSchemaGroupSpec `json:"spec"` + Status NamespaceSchemaGroupStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// NamespaceSchemaGroupList contains a list of NamespaceSchemaGroups +type NamespaceSchemaGroupList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NamespaceSchemaGroup `json:"items"` +} + +// Repository type metadata. +var ( + NamespaceSchemaGroup_Kind = "NamespaceSchemaGroup" + NamespaceSchemaGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: NamespaceSchemaGroup_Kind}.String() + NamespaceSchemaGroup_KindAPIVersion = NamespaceSchemaGroup_Kind + "." + CRDGroupVersion.String() + NamespaceSchemaGroup_GroupVersionKind = CRDGroupVersion.WithKind(NamespaceSchemaGroup_Kind) +) + +func init() { + SchemeBuilder.Register(&NamespaceSchemaGroup{}, &NamespaceSchemaGroupList{}) +} diff --git a/apis/fluidrelay/v1beta1/zz_generated.deepcopy.go b/apis/fluidrelay/v1beta1/zz_generated.deepcopy.go new file mode 100644 index 000000000..492a781a8 --- /dev/null +++ b/apis/fluidrelay/v1beta1/zz_generated.deepcopy.go @@ -0,0 +1,296 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by controller-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "github.com/crossplane/crossplane-runtime/apis/common/v1" + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IdentityObservation) DeepCopyInto(out *IdentityObservation) { + *out = *in + if in.PrincipalID != nil { + in, out := &in.PrincipalID, &out.PrincipalID + *out = new(string) + **out = **in + } + if in.TenantID != nil { + in, out := &in.TenantID, &out.TenantID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IdentityObservation. +func (in *IdentityObservation) DeepCopy() *IdentityObservation { + if in == nil { + return nil + } + out := new(IdentityObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IdentityParameters) DeepCopyInto(out *IdentityParameters) { + *out = *in + if in.IdentityIds != nil { + in, out := &in.IdentityIds, &out.IdentityIds + *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.Type != nil { + in, out := &in.Type, &out.Type + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IdentityParameters. +func (in *IdentityParameters) DeepCopy() *IdentityParameters { + if in == nil { + return nil + } + out := new(IdentityParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Server) DeepCopyInto(out *Server) { + *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 Server. +func (in *Server) DeepCopy() *Server { + if in == nil { + return nil + } + out := new(Server) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Server) 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 *ServerList) DeepCopyInto(out *ServerList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Server, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerList. +func (in *ServerList) DeepCopy() *ServerList { + if in == nil { + return nil + } + out := new(ServerList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ServerList) 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 *ServerObservation) DeepCopyInto(out *ServerObservation) { + *out = *in + if in.FrsTenantID != nil { + in, out := &in.FrsTenantID, &out.FrsTenantID + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = make([]IdentityObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.OrdererEndpoints != nil { + in, out := &in.OrdererEndpoints, &out.OrdererEndpoints + *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.ServiceEndpoints != nil { + in, out := &in.ServiceEndpoints, &out.ServiceEndpoints + *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.StorageEndpoints != nil { + in, out := &in.StorageEndpoints, &out.StorageEndpoints + *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 ServerObservation. +func (in *ServerObservation) DeepCopy() *ServerObservation { + if in == nil { + return nil + } + out := new(ServerObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ServerParameters) DeepCopyInto(out *ServerParameters) { + *out = *in + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = make([]IdentityParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.ResourceGroupName != nil { + in, out := &in.ResourceGroupName, &out.ResourceGroupName + *out = new(string) + **out = **in + } + if in.ResourceGroupNameRef != nil { + in, out := &in.ResourceGroupNameRef, &out.ResourceGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ResourceGroupNameSelector != nil { + in, out := &in.ResourceGroupNameSelector, &out.ResourceGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.StorageSku != nil { + in, out := &in.StorageSku, &out.StorageSku + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerParameters. +func (in *ServerParameters) DeepCopy() *ServerParameters { + if in == nil { + return nil + } + out := new(ServerParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ServerSpec) DeepCopyInto(out *ServerSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerSpec. +func (in *ServerSpec) DeepCopy() *ServerSpec { + if in == nil { + return nil + } + out := new(ServerSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ServerStatus) DeepCopyInto(out *ServerStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStatus. +func (in *ServerStatus) DeepCopy() *ServerStatus { + if in == nil { + return nil + } + out := new(ServerStatus) + in.DeepCopyInto(out) + return out +} diff --git a/apis/fluidrelay/v1beta1/zz_generated.managed.go b/apis/fluidrelay/v1beta1/zz_generated.managed.go new file mode 100644 index 000000000..f0801e96e --- /dev/null +++ b/apis/fluidrelay/v1beta1/zz_generated.managed.go @@ -0,0 +1,74 @@ +/* +Copyright 2022 Upbound Inc. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1beta1 + +import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" + +// GetCondition of this Server. +func (mg *Server) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this Server. +func (mg *Server) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this Server. +func (mg *Server) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this Server. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *Server) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this Server. +func (mg *Server) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this Server. +func (mg *Server) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this Server. +func (mg *Server) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this Server. +func (mg *Server) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this Server. +func (mg *Server) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this Server. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *Server) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this Server. +func (mg *Server) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this Server. +func (mg *Server) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/fluidrelay/v1beta1/zz_generated.managedlist.go b/apis/fluidrelay/v1beta1/zz_generated.managedlist.go new file mode 100644 index 000000000..9e2f75657 --- /dev/null +++ b/apis/fluidrelay/v1beta1/zz_generated.managedlist.go @@ -0,0 +1,17 @@ +/* +Copyright 2022 Upbound Inc. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1beta1 + +import resource "github.com/crossplane/crossplane-runtime/pkg/resource" + +// GetItems of this ServerList. +func (l *ServerList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} diff --git a/apis/fluidrelay/v1beta1/zz_generated.resolvers.go b/apis/fluidrelay/v1beta1/zz_generated.resolvers.go new file mode 100644 index 000000000..f5c2d6f12 --- /dev/null +++ b/apis/fluidrelay/v1beta1/zz_generated.resolvers.go @@ -0,0 +1,40 @@ +/* +Copyright 2022 Upbound Inc. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1beta1 + +import ( + "context" + reference "github.com/crossplane/crossplane-runtime/pkg/reference" + errors "github.com/pkg/errors" + v1beta1 "github.com/upbound/provider-azure/apis/azure/v1beta1" + client "sigs.k8s.io/controller-runtime/pkg/client" +) + +// ResolveReferences of this Server. +func (mg *Server) 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.ResourceGroupName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.ResourceGroupNameRef, + Selector: mg.Spec.ForProvider.ResourceGroupNameSelector, + To: reference.To{ + List: &v1beta1.ResourceGroupList{}, + Managed: &v1beta1.ResourceGroup{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ResourceGroupName") + } + mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + + return nil +} diff --git a/apis/fluidrelay/v1beta1/zz_generated_terraformed.go b/apis/fluidrelay/v1beta1/zz_generated_terraformed.go new file mode 100755 index 000000000..a70e0e430 --- /dev/null +++ b/apis/fluidrelay/v1beta1/zz_generated_terraformed.go @@ -0,0 +1,88 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + "github.com/pkg/errors" + + "github.com/upbound/upjet/pkg/resource" + "github.com/upbound/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this Server +func (mg *Server) GetTerraformResourceType() string { + return "azurerm_fluid_relay_server" +} + +// GetConnectionDetailsMapping for this Server +func (tr *Server) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"primary_key": "status.atProvider.primaryKey", "secondary_key": "status.atProvider.secondaryKey"} +} + +// GetObservation of this Server +func (tr *Server) 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 Server +func (tr *Server) 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 Server +func (tr *Server) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this Server +func (tr *Server) 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 Server +func (tr *Server) 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) +} + +// LateInitialize this Server using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Server) LateInitialize(attrs []byte) (bool, error) { + params := &ServerParameters{} + 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 *Server) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/fluidrelay/v1beta1/zz_groupversion_info.go b/apis/fluidrelay/v1beta1/zz_groupversion_info.go new file mode 100755 index 000000000..0c4639e23 --- /dev/null +++ b/apis/fluidrelay/v1beta1/zz_groupversion_info.go @@ -0,0 +1,32 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +// +kubebuilder:object:generate=true +// +groupName=fluidrelay.azure.upbound.io +// +versionName=v1beta1 +package v1beta1 + +import ( + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/controller-runtime/pkg/scheme" +) + +// Package type metadata. +const ( + CRDGroup = "fluidrelay.azure.upbound.io" + CRDVersion = "v1beta1" +) + +var ( + // CRDGroupVersion is the API Group Version used to register the objects + CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} + + // SchemeBuilder is used to add go types to the GroupVersionKind scheme + SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} + + // AddToScheme adds the types in this group-version to the given scheme. + AddToScheme = SchemeBuilder.AddToScheme +) diff --git a/apis/fluidrelay/v1beta1/zz_server_types.go b/apis/fluidrelay/v1beta1/zz_server_types.go new file mode 100755 index 000000000..add80df2c --- /dev/null +++ b/apis/fluidrelay/v1beta1/zz_server_types.go @@ -0,0 +1,141 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +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 IdentityObservation struct { + + // The Principal ID for the Service Principal associated with the Identity of this Fluid Relay Server. + PrincipalID *string `json:"principalId,omitempty" tf:"principal_id,omitempty"` + + // The Tenant ID for the Service Principal associated with the Identity of this Fluid Relay Server. + TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"` +} + +type IdentityParameters struct { + + // Specifies a list of User Assigned Managed Identity IDs to be assigned to this Fluid Relay Service. + // +kubebuilder:validation:Optional + IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"` + + // Specifies the type of Managed Service Identity that should be configured on this Fluid Relay Service. Possible values are SystemAssigned,UserAssigned and SystemAssigned, UserAssigned. + // +kubebuilder:validation:Required + Type *string `json:"type" tf:"type,omitempty"` +} + +type ServerObservation struct { + + // The Fluid tenantId for this server. + FrsTenantID *string `json:"frsTenantId,omitempty" tf:"frs_tenant_id,omitempty"` + + // The ID of the Fluid Relay Server. + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // An identity block as defined below. + // +kubebuilder:validation:Optional + Identity []IdentityObservation `json:"identity,omitempty" tf:"identity,omitempty"` + + // An array of the Fluid Relay Orderer endpoints. This will be deprecated in future version of fluid relay server and will always be empty, more details. + OrdererEndpoints []*string `json:"ordererEndpoints,omitempty" tf:"orderer_endpoints,omitempty"` + + // An array of service endpoints for this Fluid Relay Server. + ServiceEndpoints []*string `json:"serviceEndpoints,omitempty" tf:"service_endpoints,omitempty"` + + // An array of storage endpoints for this Fluid Relay Server. This will be deprecated in future version of fluid relay server and will always be empty, more details. + StorageEndpoints []*string `json:"storageEndpoints,omitempty" tf:"storage_endpoints,omitempty"` +} + +type ServerParameters struct { + + // An identity block as defined below. + // +kubebuilder:validation:Optional + Identity []IdentityParameters `json:"identity,omitempty" tf:"identity,omitempty"` + + // The Azure Region where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created. + // +kubebuilder:validation:Required + Location *string `json:"location" tf:"location,omitempty"` + + // The name which should be used for this Fluid Relay Server. Changing this forces a new Fluid Relay Server to be created. + // +kubebuilder:validation:Required + Name *string `json:"name" tf:"name,omitempty"` + + // The name of the Resource Group where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup + // +kubebuilder:validation:Optional + ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"` + + // Reference to a ResourceGroup in azure to populate resourceGroupName. + // +kubebuilder:validation:Optional + ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"` + + // Selector for a ResourceGroup in azure to populate resourceGroupName. + // +kubebuilder:validation:Optional + ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"` + + // Sku of the storage associated with the resource, Possible values are standard and basic. Changing this forces a new Fluid Relay Server to be created. + // +kubebuilder:validation:Optional + StorageSku *string `json:"storageSku,omitempty" tf:"storage_sku,omitempty"` + + // A mapping of tags which should be assigned to the Fluid Relay Server. + // +kubebuilder:validation:Optional + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` +} + +// ServerSpec defines the desired state of Server +type ServerSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider ServerParameters `json:"forProvider"` +} + +// ServerStatus defines the observed state of Server. +type ServerStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider ServerObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// Server is the Schema for the Servers API. Manages a Fluid Relay Server. +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type Server struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec ServerSpec `json:"spec"` + Status ServerStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// ServerList contains a list of Servers +type ServerList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []Server `json:"items"` +} + +// Repository type metadata. +var ( + Server_Kind = "Server" + Server_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Server_Kind}.String() + Server_KindAPIVersion = Server_Kind + "." + CRDGroupVersion.String() + Server_GroupVersionKind = CRDGroupVersion.WithKind(Server_Kind) +) + +func init() { + SchemeBuilder.Register(&Server{}, &ServerList{}) +} diff --git a/apis/managedidentity/v1beta1/zz_federatedidentitycredential_types.go b/apis/managedidentity/v1beta1/zz_federatedidentitycredential_types.go new file mode 100755 index 000000000..d57b89b38 --- /dev/null +++ b/apis/managedidentity/v1beta1/zz_federatedidentitycredential_types.go @@ -0,0 +1,111 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +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 FederatedIdentityCredentialObservation struct { + + // The ID of the Federated Identity Credential. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type FederatedIdentityCredentialParameters struct { + + // Specifies the audience for this Federated Identity Credential. Changing this forces a new Federated Identity Credential to be created. + // +kubebuilder:validation:Required + Audience []*string `json:"audience" tf:"audience,omitempty"` + + // Specifies the issuer of this Federated Identity Credential. Changing this forces a new Federated Identity Credential to be created. + // +kubebuilder:validation:Required + Issuer *string `json:"issuer" tf:"issuer,omitempty"` + + // Specifies parent ID of User Assigned Identity for this Federated Identity Credential. Changing this forces a new Federated Identity Credential to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/managedidentity/v1beta1.UserAssignedIdentity + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + ParentID *string `json:"parentId,omitempty" tf:"parent_id,omitempty"` + + // Reference to a UserAssignedIdentity in managedidentity to populate parentId. + // +kubebuilder:validation:Optional + ParentIDRef *v1.Reference `json:"parentIdRef,omitempty" tf:"-"` + + // Selector for a UserAssignedIdentity in managedidentity to populate parentId. + // +kubebuilder:validation:Optional + ParentIDSelector *v1.Selector `json:"parentIdSelector,omitempty" tf:"-"` + + // Specifies the name of the Resource Group within which this Federated Identity Credential should exist. Changing this forces a new Federated Identity Credential to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup + // +kubebuilder:validation:Optional + ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"` + + // Reference to a ResourceGroup in azure to populate resourceGroupName. + // +kubebuilder:validation:Optional + ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"` + + // Selector for a ResourceGroup in azure to populate resourceGroupName. + // +kubebuilder:validation:Optional + ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"` + + // Specifies the subject for this Federated Identity Credential. Changing this forces a new Federated Identity Credential to be created. + // +kubebuilder:validation:Required + Subject *string `json:"subject" tf:"subject,omitempty"` +} + +// FederatedIdentityCredentialSpec defines the desired state of FederatedIdentityCredential +type FederatedIdentityCredentialSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider FederatedIdentityCredentialParameters `json:"forProvider"` +} + +// FederatedIdentityCredentialStatus defines the observed state of FederatedIdentityCredential. +type FederatedIdentityCredentialStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider FederatedIdentityCredentialObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// FederatedIdentityCredential is the Schema for the FederatedIdentityCredentials API. Manages a Federated Identity Credential. +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type FederatedIdentityCredential struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec FederatedIdentityCredentialSpec `json:"spec"` + Status FederatedIdentityCredentialStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// FederatedIdentityCredentialList contains a list of FederatedIdentityCredentials +type FederatedIdentityCredentialList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []FederatedIdentityCredential `json:"items"` +} + +// Repository type metadata. +var ( + FederatedIdentityCredential_Kind = "FederatedIdentityCredential" + FederatedIdentityCredential_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: FederatedIdentityCredential_Kind}.String() + FederatedIdentityCredential_KindAPIVersion = FederatedIdentityCredential_Kind + "." + CRDGroupVersion.String() + FederatedIdentityCredential_GroupVersionKind = CRDGroupVersion.WithKind(FederatedIdentityCredential_Kind) +) + +func init() { + SchemeBuilder.Register(&FederatedIdentityCredential{}, &FederatedIdentityCredentialList{}) +} diff --git a/apis/managedidentity/v1beta1/zz_generated.deepcopy.go b/apis/managedidentity/v1beta1/zz_generated.deepcopy.go index 59fdd76c2..2bfbc96a6 100644 --- a/apis/managedidentity/v1beta1/zz_generated.deepcopy.go +++ b/apis/managedidentity/v1beta1/zz_generated.deepcopy.go @@ -14,6 +14,185 @@ import ( runtime "k8s.io/apimachinery/pkg/runtime" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FederatedIdentityCredential) DeepCopyInto(out *FederatedIdentityCredential) { + *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 FederatedIdentityCredential. +func (in *FederatedIdentityCredential) DeepCopy() *FederatedIdentityCredential { + if in == nil { + return nil + } + out := new(FederatedIdentityCredential) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FederatedIdentityCredential) 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 *FederatedIdentityCredentialList) DeepCopyInto(out *FederatedIdentityCredentialList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]FederatedIdentityCredential, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedIdentityCredentialList. +func (in *FederatedIdentityCredentialList) DeepCopy() *FederatedIdentityCredentialList { + if in == nil { + return nil + } + out := new(FederatedIdentityCredentialList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FederatedIdentityCredentialList) 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 *FederatedIdentityCredentialObservation) DeepCopyInto(out *FederatedIdentityCredentialObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedIdentityCredentialObservation. +func (in *FederatedIdentityCredentialObservation) DeepCopy() *FederatedIdentityCredentialObservation { + if in == nil { + return nil + } + out := new(FederatedIdentityCredentialObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FederatedIdentityCredentialParameters) DeepCopyInto(out *FederatedIdentityCredentialParameters) { + *out = *in + if in.Audience != nil { + in, out := &in.Audience, &out.Audience + *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.Issuer != nil { + in, out := &in.Issuer, &out.Issuer + *out = new(string) + **out = **in + } + if in.ParentID != nil { + in, out := &in.ParentID, &out.ParentID + *out = new(string) + **out = **in + } + if in.ParentIDRef != nil { + in, out := &in.ParentIDRef, &out.ParentIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ParentIDSelector != nil { + in, out := &in.ParentIDSelector, &out.ParentIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.ResourceGroupName != nil { + in, out := &in.ResourceGroupName, &out.ResourceGroupName + *out = new(string) + **out = **in + } + if in.ResourceGroupNameRef != nil { + in, out := &in.ResourceGroupNameRef, &out.ResourceGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ResourceGroupNameSelector != nil { + in, out := &in.ResourceGroupNameSelector, &out.ResourceGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Subject != nil { + in, out := &in.Subject, &out.Subject + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedIdentityCredentialParameters. +func (in *FederatedIdentityCredentialParameters) DeepCopy() *FederatedIdentityCredentialParameters { + if in == nil { + return nil + } + out := new(FederatedIdentityCredentialParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FederatedIdentityCredentialSpec) DeepCopyInto(out *FederatedIdentityCredentialSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedIdentityCredentialSpec. +func (in *FederatedIdentityCredentialSpec) DeepCopy() *FederatedIdentityCredentialSpec { + if in == nil { + return nil + } + out := new(FederatedIdentityCredentialSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FederatedIdentityCredentialStatus) DeepCopyInto(out *FederatedIdentityCredentialStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedIdentityCredentialStatus. +func (in *FederatedIdentityCredentialStatus) DeepCopy() *FederatedIdentityCredentialStatus { + if in == nil { + return nil + } + out := new(FederatedIdentityCredentialStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserAssignedIdentity) DeepCopyInto(out *UserAssignedIdentity) { *out = *in diff --git a/apis/managedidentity/v1beta1/zz_generated.managed.go b/apis/managedidentity/v1beta1/zz_generated.managed.go index 9373f3bfc..644be35d9 100644 --- a/apis/managedidentity/v1beta1/zz_generated.managed.go +++ b/apis/managedidentity/v1beta1/zz_generated.managed.go @@ -7,6 +7,72 @@ package v1beta1 import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +// GetCondition of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this FederatedIdentityCredential. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *FederatedIdentityCredential) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this FederatedIdentityCredential. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *FederatedIdentityCredential) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this UserAssignedIdentity. func (mg *UserAssignedIdentity) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/managedidentity/v1beta1/zz_generated.managedlist.go b/apis/managedidentity/v1beta1/zz_generated.managedlist.go index 7f6977745..adbfcd7c5 100644 --- a/apis/managedidentity/v1beta1/zz_generated.managedlist.go +++ b/apis/managedidentity/v1beta1/zz_generated.managedlist.go @@ -7,6 +7,15 @@ package v1beta1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" +// GetItems of this FederatedIdentityCredentialList. +func (l *FederatedIdentityCredentialList) 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 UserAssignedIdentityList. func (l *UserAssignedIdentityList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/managedidentity/v1beta1/zz_generated.resolvers.go b/apis/managedidentity/v1beta1/zz_generated.resolvers.go index a706b1c99..6b36e6867 100644 --- a/apis/managedidentity/v1beta1/zz_generated.resolvers.go +++ b/apis/managedidentity/v1beta1/zz_generated.resolvers.go @@ -10,9 +10,52 @@ import ( reference "github.com/crossplane/crossplane-runtime/pkg/reference" errors "github.com/pkg/errors" v1beta1 "github.com/upbound/provider-azure/apis/azure/v1beta1" + resource "github.com/upbound/upjet/pkg/resource" client "sigs.k8s.io/controller-runtime/pkg/client" ) +// ResolveReferences of this FederatedIdentityCredential. +func (mg *FederatedIdentityCredential) 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.ParentID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.ParentIDRef, + Selector: mg.Spec.ForProvider.ParentIDSelector, + To: reference.To{ + List: &UserAssignedIdentityList{}, + Managed: &UserAssignedIdentity{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ParentID") + } + mg.Spec.ForProvider.ParentID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ParentIDRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ResourceGroupName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.ResourceGroupNameRef, + Selector: mg.Spec.ForProvider.ResourceGroupNameSelector, + To: reference.To{ + List: &v1beta1.ResourceGroupList{}, + Managed: &v1beta1.ResourceGroup{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ResourceGroupName") + } + mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this UserAssignedIdentity. func (mg *UserAssignedIdentity) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) diff --git a/apis/managedidentity/v1beta1/zz_generated_terraformed.go b/apis/managedidentity/v1beta1/zz_generated_terraformed.go index e22713741..ee1b47b1d 100755 --- a/apis/managedidentity/v1beta1/zz_generated_terraformed.go +++ b/apis/managedidentity/v1beta1/zz_generated_terraformed.go @@ -13,6 +13,80 @@ import ( "github.com/upbound/upjet/pkg/resource/json" ) +// GetTerraformResourceType returns Terraform resource type for this FederatedIdentityCredential +func (mg *FederatedIdentityCredential) GetTerraformResourceType() string { + return "azurerm_federated_identity_credential" +} + +// GetConnectionDetailsMapping for this FederatedIdentityCredential +func (tr *FederatedIdentityCredential) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this FederatedIdentityCredential +func (tr *FederatedIdentityCredential) 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 FederatedIdentityCredential +func (tr *FederatedIdentityCredential) 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 FederatedIdentityCredential +func (tr *FederatedIdentityCredential) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this FederatedIdentityCredential +func (tr *FederatedIdentityCredential) 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 FederatedIdentityCredential +func (tr *FederatedIdentityCredential) 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) +} + +// LateInitialize this FederatedIdentityCredential using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *FederatedIdentityCredential) LateInitialize(attrs []byte) (bool, error) { + params := &FederatedIdentityCredentialParameters{} + 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 *FederatedIdentityCredential) GetTerraformSchemaVersion() int { + return 0 +} + // GetTerraformResourceType returns Terraform resource type for this UserAssignedIdentity func (mg *UserAssignedIdentity) GetTerraformResourceType() string { return "azurerm_user_assigned_identity" diff --git a/apis/zz_register.go b/apis/zz_register.go index 65d096dee..5260c099c 100755 --- a/apis/zz_register.go +++ b/apis/zz_register.go @@ -47,6 +47,7 @@ import ( v1beta1elastic "github.com/upbound/provider-azure/apis/elastic/v1beta1" v1beta1eventgrid "github.com/upbound/provider-azure/apis/eventgrid/v1beta1" v1beta1eventhub "github.com/upbound/provider-azure/apis/eventhub/v1beta1" + v1beta1fluidrelay "github.com/upbound/provider-azure/apis/fluidrelay/v1beta1" v1beta1hdinsight "github.com/upbound/provider-azure/apis/hdinsight/v1beta1" v1beta1healthbot "github.com/upbound/provider-azure/apis/healthbot/v1beta1" v1beta1healthcareapis "github.com/upbound/provider-azure/apis/healthcareapis/v1beta1" @@ -134,6 +135,7 @@ func init() { v1beta1elastic.SchemeBuilder.AddToScheme, v1beta1eventgrid.SchemeBuilder.AddToScheme, v1beta1eventhub.SchemeBuilder.AddToScheme, + v1beta1fluidrelay.SchemeBuilder.AddToScheme, v1beta1hdinsight.SchemeBuilder.AddToScheme, v1beta1healthbot.SchemeBuilder.AddToScheme, v1beta1healthcareapis.SchemeBuilder.AddToScheme, diff --git a/config/externalname.go b/config/externalname.go index eadaf7e93..fb4f408c3 100644 --- a/config/externalname.go +++ b/config/externalname.go @@ -199,6 +199,10 @@ var ExternalNameConfigs = map[string]config.ExternalName{ // Arguments make up the ID. "azurerm_marketplace_agreement": config.IdentifierFromProvider, "azurerm_dedicated_host": config.TemplatedStringAsIdentifier("name", "{{ .parameters.dedicated_host_group_id }}/hosts/{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1 + "azurerm_gallery_application": config.TemplatedStringAsIdentifier("name", "{{ .parameters.gallery_id }}/applications/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1/versions/galleryApplicationVersion1 + "azurerm_gallery_application_version": config.IdentifierFromProvider, // cdn // @@ -286,6 +290,8 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "azurerm_eventhub": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.EventHub/namespaces/{{ .parameters.namespace_name }}/eventhubs/{{ .external_name }}"), "azurerm_eventhub_consumer_group": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.EventHub/namespaces/{{ .parameters.namespace_name }}/eventhubs/{{ .parameters.eventhub_name }}/consumerGroups/{{ .external_name }}"), "azurerm_eventhub_authorization_rule": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.EventHub/namespaces/{{ .parameters.namespace_name }}/eventhubs/{{ .parameters.eventhub_name }}/authorizationRules/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1/schemaGroups/group1 + "azurerm_eventhub_namespace_schema_group": config.TemplatedStringAsIdentifier("name", "{{ .parameters.namespace_id }}/schemaGroups/{{ .external_name }}"), // iotcentral // @@ -897,6 +903,8 @@ var ExternalNameConfigs = map[string]config.ExternalName{ // Databricks Workspace Customer Managed Key can be imported using the resource id // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Databricks/workspaces/workspace1 "azurerm_databricks_workspace_customer_managed_key": config.TemplatedStringAsIdentifier("", "{{ .parameters.workspace_id }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Databricks/accessConnectors/connector1 + "azurerm_databricks_access_connector": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.Databricks/accessConnectors/{{ .external_name }}"), // purview // @@ -1505,6 +1513,16 @@ var ExternalNameConfigs = map[string]config.ExternalName{ // Healthcare Workspaces can be imported using the resourceid // /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1 "azurerm_healthcare_workspace": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.HealthcareApis/workspaces/{{ .external_name }}"), + + // fluid_relay + // + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.FluidRelay/fluidRelayServers/server1 + "azurerm_fluid_relay_server": config.IdentifierFromProvider, + + // federated_identity + // + // /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{parentIdentityName}/federatedIdentityCredentials/{resourceName} + "azurerm_federated_identity_credential": config.TemplatedStringAsIdentifier("name", "{{ .parameters.parent_id }}/federatedIdentityCredentials/{{ .external_name }}"), } func keyVaultURLIDConf(resourceType string) config.ExternalName { diff --git a/config/externalnamenottested.go b/config/externalnamenottested.go index 22be54b1a..7e683774a 100644 --- a/config/externalnamenottested.go +++ b/config/externalnamenottested.go @@ -651,11 +651,6 @@ var ExternalNameNotTestedConfigs = map[string]config.ExternalName{ // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/resourceGuards/resourceGuard1 "azurerm_data_protection_resource_guard": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.DataProtection/resourceGuards/{{ .external_name }}"), - // databricks - // - // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Databricks/accessConnectors/connector1 - "azurerm_databricks_access_connector": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.Databricks/accessConnectors/{{ .external_name }}"), - // datadog_monitor // // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Datadog/monitors/monitor1 @@ -670,28 +665,6 @@ var ExternalNameNotTestedConfigs = map[string]config.ExternalName{ // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1/timeSeriesDatabaseConnections/connection1 "azurerm_digital_twins_time_series_database_connection": config.TemplatedStringAsIdentifier("name", "{{ .parameters.digital_twins_id }}/timeSeriesDatabaseConnections/{{ .external_name }}"), - // eventhub - // - // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1/schemaGroups/group1 - "azurerm_eventhub_namespace_schema_group": config.TemplatedStringAsIdentifier("name", "{{ .parameters.namespace_id }}/schemaGroups/{{ .external_name }}"), - - // federated_identity - // - // /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{parentIdentityName}/federatedIdentityCredentials/{resourceName} - "azurerm_federated_identity_credential": config.TemplatedStringAsIdentifier("name", "{{ .parameters.parent_id }}/federatedIdentityCredentials/{{ .external_name }}"), - - // fluid_relay - // - // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.FluidRelay/fluidRelayServers/server1 - "azurerm_fluid_relay_server": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.FluidRelay/fluidRelayServers/{{ .external_name }}"), - - // gallery - // - // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1 - "azurerm_gallery_application": config.TemplatedStringAsIdentifier("name", "{{ .parameters.gallery_id }}/applications/{{ .external_name }}"), - // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1/versions/galleryApplicationVersion1 - "azurerm_gallery_application_version": config.TemplatedStringAsIdentifier("name", "{{ .parameters.gallery_application_id }}/versions/{{ .external_name }}"), - // healthcare // // /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1 diff --git a/config/generated.lst b/config/generated.lst index c8d8db52b..cf79253aa 100644 --- a/config/generated.lst +++ b/config/generated.lst @@ -1 +1 @@ -["azurerm_advanced_threat_protection","azurerm_analysis_services_server","azurerm_api_management","azurerm_api_management_api","azurerm_api_management_api_diagnostic","azurerm_api_management_api_operation","azurerm_api_management_api_operation_policy","azurerm_api_management_api_operation_tag","azurerm_api_management_api_policy","azurerm_api_management_api_release","azurerm_api_management_api_schema","azurerm_api_management_api_tag","azurerm_api_management_api_version_set","azurerm_api_management_authorization_server","azurerm_api_management_backend","azurerm_api_management_certificate","azurerm_api_management_diagnostic","azurerm_api_management_email_template","azurerm_api_management_gateway","azurerm_api_management_identity_provider_aad","azurerm_api_management_identity_provider_facebook","azurerm_api_management_identity_provider_google","azurerm_api_management_identity_provider_microsoft","azurerm_api_management_identity_provider_twitter","azurerm_api_management_logger","azurerm_api_management_named_value","azurerm_api_management_notification_recipient_email","azurerm_api_management_notification_recipient_user","azurerm_api_management_openid_connect_provider","azurerm_api_management_policy","azurerm_api_management_product","azurerm_api_management_product_api","azurerm_api_management_product_policy","azurerm_api_management_redis_cache","azurerm_api_management_subscription","azurerm_api_management_tag","azurerm_api_management_user","azurerm_app_service_plan","azurerm_application_gateway","azurerm_application_insights","azurerm_application_insights_analytics_item","azurerm_application_insights_api_key","azurerm_application_insights_smart_detection_rule","azurerm_application_security_group","azurerm_attestation_provider","azurerm_automation_account","azurerm_automation_credential","azurerm_automation_module","azurerm_automation_variable_bool","azurerm_automation_variable_datetime","azurerm_automation_variable_int","azurerm_automation_variable_string","azurerm_availability_set","azurerm_backup_container_storage_account","azurerm_backup_policy_file_share","azurerm_backup_policy_vm","azurerm_backup_policy_vm_workload","azurerm_backup_protected_file_share","azurerm_backup_protected_vm","azurerm_bot_channel_alexa","azurerm_bot_channel_directline","azurerm_bot_channel_line","azurerm_bot_channel_ms_teams","azurerm_bot_channel_slack","azurerm_bot_channel_sms","azurerm_bot_channel_web_chat","azurerm_bot_channels_registration","azurerm_bot_connection","azurerm_bot_web_app","azurerm_cdn_endpoint","azurerm_cdn_frontdoor_custom_domain","azurerm_cdn_frontdoor_custom_domain_association","azurerm_cdn_frontdoor_endpoint","azurerm_cdn_frontdoor_origin","azurerm_cdn_frontdoor_origin_group","azurerm_cdn_frontdoor_profile","azurerm_cdn_frontdoor_route","azurerm_cdn_frontdoor_rule","azurerm_cdn_frontdoor_rule_set","azurerm_cdn_profile","azurerm_cognitive_account","azurerm_communication_service","azurerm_confidential_ledger","azurerm_consumption_budget_management_group","azurerm_consumption_budget_resource_group","azurerm_consumption_budget_subscription","azurerm_container_connected_registry","azurerm_container_registry","azurerm_container_registry_agent_pool","azurerm_container_registry_scope_map","azurerm_container_registry_token","azurerm_container_registry_token_password","azurerm_container_registry_webhook","azurerm_cosmosdb_account","azurerm_cosmosdb_cassandra_cluster","azurerm_cosmosdb_cassandra_datacenter","azurerm_cosmosdb_cassandra_keyspace","azurerm_cosmosdb_cassandra_table","azurerm_cosmosdb_gremlin_database","azurerm_cosmosdb_gremlin_graph","azurerm_cosmosdb_mongo_collection","azurerm_cosmosdb_mongo_database","azurerm_cosmosdb_sql_container","azurerm_cosmosdb_sql_database","azurerm_cosmosdb_sql_dedicated_gateway","azurerm_cosmosdb_sql_function","azurerm_cosmosdb_sql_role_assignment","azurerm_cosmosdb_sql_role_definition","azurerm_cosmosdb_sql_stored_procedure","azurerm_cosmosdb_sql_trigger","azurerm_cosmosdb_table","azurerm_data_factory","azurerm_data_factory_custom_dataset","azurerm_data_factory_data_flow","azurerm_data_factory_dataset_azure_blob","azurerm_data_factory_dataset_binary","azurerm_data_factory_dataset_cosmosdb_sqlapi","azurerm_data_factory_dataset_delimited_text","azurerm_data_factory_dataset_http","azurerm_data_factory_dataset_json","azurerm_data_factory_dataset_mysql","azurerm_data_factory_dataset_parquet","azurerm_data_factory_dataset_postgresql","azurerm_data_factory_dataset_snowflake","azurerm_data_factory_dataset_sql_server_table","azurerm_data_factory_integration_runtime_azure","azurerm_data_factory_integration_runtime_azure_ssis","azurerm_data_factory_integration_runtime_managed","azurerm_data_factory_integration_runtime_self_hosted","azurerm_data_factory_linked_custom_service","azurerm_data_factory_linked_service_azure_blob_storage","azurerm_data_factory_linked_service_azure_databricks","azurerm_data_factory_linked_service_azure_file_storage","azurerm_data_factory_linked_service_azure_function","azurerm_data_factory_linked_service_azure_search","azurerm_data_factory_linked_service_azure_sql_database","azurerm_data_factory_linked_service_azure_table_storage","azurerm_data_factory_linked_service_cosmosdb","azurerm_data_factory_linked_service_cosmosdb_mongoapi","azurerm_data_factory_linked_service_data_lake_storage_gen2","azurerm_data_factory_linked_service_key_vault","azurerm_data_factory_linked_service_kusto","azurerm_data_factory_linked_service_mysql","azurerm_data_factory_linked_service_odata","azurerm_data_factory_linked_service_odbc","azurerm_data_factory_linked_service_postgresql","azurerm_data_factory_linked_service_sftp","azurerm_data_factory_linked_service_snowflake","azurerm_data_factory_linked_service_sql_server","azurerm_data_factory_linked_service_synapse","azurerm_data_factory_linked_service_web","azurerm_data_factory_managed_private_endpoint","azurerm_data_factory_pipeline","azurerm_data_factory_trigger_blob_event","azurerm_data_factory_trigger_custom_event","azurerm_data_factory_trigger_schedule","azurerm_data_protection_backup_instance_blob_storage","azurerm_data_protection_backup_instance_disk","azurerm_data_protection_backup_instance_postgresql","azurerm_data_protection_backup_policy_blob_storage","azurerm_data_protection_backup_policy_disk","azurerm_data_protection_backup_vault","azurerm_data_protection_resource_guard","azurerm_data_share","azurerm_data_share_account","azurerm_data_share_dataset_blob_storage","azurerm_data_share_dataset_data_lake_gen2","azurerm_data_share_dataset_kusto_cluster","azurerm_data_share_dataset_kusto_database","azurerm_database_migration_project","azurerm_database_migration_service","azurerm_databox_edge_device","azurerm_databricks_workspace","azurerm_databricks_workspace_customer_managed_key","azurerm_dedicated_host","azurerm_dev_test_global_vm_shutdown_schedule","azurerm_dev_test_lab","azurerm_dev_test_linux_virtual_machine","azurerm_dev_test_policy","azurerm_dev_test_schedule","azurerm_dev_test_virtual_network","azurerm_dev_test_windows_virtual_machine","azurerm_digital_twins_instance","azurerm_disk_access","azurerm_disk_encryption_set","azurerm_disk_pool","azurerm_dns_a_record","azurerm_dns_aaaa_record","azurerm_dns_caa_record","azurerm_dns_cname_record","azurerm_dns_mx_record","azurerm_dns_ns_record","azurerm_dns_ptr_record","azurerm_dns_srv_record","azurerm_dns_txt_record","azurerm_dns_zone","azurerm_elastic_cloud_elasticsearch","azurerm_eventgrid_domain","azurerm_eventgrid_domain_topic","azurerm_eventgrid_event_subscription","azurerm_eventgrid_system_topic","azurerm_eventgrid_topic","azurerm_eventhub","azurerm_eventhub_authorization_rule","azurerm_eventhub_consumer_group","azurerm_eventhub_namespace","azurerm_eventhub_namespace_authorization_rule","azurerm_eventhub_namespace_disaster_recovery_config","azurerm_express_route_circuit","azurerm_express_route_circuit_authorization","azurerm_express_route_circuit_connection","azurerm_express_route_circuit_peering","azurerm_express_route_connection","azurerm_express_route_gateway","azurerm_express_route_port","azurerm_firewall","azurerm_firewall_application_rule_collection","azurerm_firewall_nat_rule_collection","azurerm_firewall_network_rule_collection","azurerm_firewall_policy","azurerm_firewall_policy_rule_collection_group","azurerm_frontdoor","azurerm_frontdoor_custom_https_configuration","azurerm_frontdoor_firewall_policy","azurerm_frontdoor_rules_engine","azurerm_function_app","azurerm_function_app_slot","azurerm_hdinsight_hadoop_cluster","azurerm_hdinsight_hbase_cluster","azurerm_hdinsight_interactive_query_cluster","azurerm_hdinsight_kafka_cluster","azurerm_hdinsight_spark_cluster","azurerm_healthbot","azurerm_healthcare_dicom_service","azurerm_healthcare_fhir_service","azurerm_healthcare_service","azurerm_healthcare_workspace","azurerm_hpc_cache","azurerm_hpc_cache_access_policy","azurerm_hpc_cache_blob_nfs_target","azurerm_hpc_cache_blob_target","azurerm_hpc_cache_nfs_target","azurerm_image","azurerm_integration_service_environment","azurerm_iot_security_device_group","azurerm_iot_security_solution","azurerm_iot_time_series_insights_event_source_iothub","azurerm_iot_time_series_insights_gen2_environment","azurerm_iot_time_series_insights_reference_data_set","azurerm_iot_time_series_insights_standard_environment","azurerm_iotcentral_application","azurerm_iotcentral_application_network_rule_set","azurerm_iothub","azurerm_iothub_consumer_group","azurerm_iothub_device_update_account","azurerm_iothub_device_update_instance","azurerm_iothub_dps","azurerm_iothub_dps_certificate","azurerm_iothub_dps_shared_access_policy","azurerm_iothub_endpoint_eventhub","azurerm_iothub_endpoint_servicebus_queue","azurerm_iothub_endpoint_servicebus_topic","azurerm_iothub_endpoint_storage_container","azurerm_iothub_enrichment","azurerm_iothub_fallback_route","azurerm_iothub_route","azurerm_iothub_shared_access_policy","azurerm_ip_group","azurerm_key_vault","azurerm_key_vault_access_policy","azurerm_key_vault_certificate","azurerm_key_vault_certificate_issuer","azurerm_key_vault_key","azurerm_key_vault_managed_hardware_security_module","azurerm_key_vault_managed_storage_account","azurerm_key_vault_managed_storage_account_sas_token_definition","azurerm_key_vault_secret","azurerm_kubernetes_cluster","azurerm_kubernetes_cluster_node_pool","azurerm_kubernetes_fleet_manager","azurerm_kusto_attached_database_configuration","azurerm_kusto_cluster","azurerm_kusto_cluster_managed_private_endpoint","azurerm_kusto_cluster_principal_assignment","azurerm_kusto_database","azurerm_kusto_database_principal_assignment","azurerm_kusto_eventgrid_data_connection","azurerm_kusto_eventhub_data_connection","azurerm_kusto_iothub_data_connection","azurerm_lab_service_plan","azurerm_lb","azurerm_lb_backend_address_pool","azurerm_lb_backend_address_pool_address","azurerm_lb_nat_pool","azurerm_lb_nat_rule","azurerm_lb_outbound_rule","azurerm_lb_probe","azurerm_lb_rule","azurerm_linux_function_app","azurerm_linux_function_app_slot","azurerm_linux_virtual_machine","azurerm_linux_virtual_machine_scale_set","azurerm_linux_web_app","azurerm_linux_web_app_slot","azurerm_local_network_gateway","azurerm_log_analytics_data_export_rule","azurerm_log_analytics_datasource_windows_event","azurerm_log_analytics_datasource_windows_performance_counter","azurerm_log_analytics_linked_service","azurerm_log_analytics_linked_storage_account","azurerm_log_analytics_query_pack","azurerm_log_analytics_query_pack_query","azurerm_log_analytics_saved_search","azurerm_log_analytics_solution","azurerm_log_analytics_workspace","azurerm_logic_app_action_custom","azurerm_logic_app_action_http","azurerm_logic_app_integration_account","azurerm_logic_app_integration_account_batch_configuration","azurerm_logic_app_integration_account_partner","azurerm_logic_app_integration_account_schema","azurerm_logic_app_integration_account_session","azurerm_logic_app_trigger_custom","azurerm_logic_app_trigger_http_request","azurerm_logic_app_trigger_recurrence","azurerm_logic_app_workflow","azurerm_managed_application_definition","azurerm_managed_disk","azurerm_management_group","azurerm_management_lock","azurerm_maps_account","azurerm_maps_creator","azurerm_mariadb_configuration","azurerm_mariadb_database","azurerm_mariadb_firewall_rule","azurerm_mariadb_server","azurerm_mariadb_virtual_network_rule","azurerm_marketplace_agreement","azurerm_media_asset","azurerm_media_asset_filter","azurerm_media_content_key_policy","azurerm_media_live_event","azurerm_media_live_event_output","azurerm_media_services_account","azurerm_media_streaming_endpoint","azurerm_media_streaming_locator","azurerm_media_streaming_policy","azurerm_media_transform","azurerm_monitor_action_group","azurerm_monitor_action_rule_action_group","azurerm_monitor_action_rule_suppression","azurerm_monitor_activity_log_alert","azurerm_monitor_alert_processing_rule_action_group","azurerm_monitor_alert_processing_rule_suppression","azurerm_monitor_autoscale_setting","azurerm_monitor_data_collection_endpoint","azurerm_monitor_data_collection_rule","azurerm_monitor_data_collection_rule_association","azurerm_monitor_metric_alert","azurerm_monitor_private_link_scope","azurerm_monitor_private_link_scoped_service","azurerm_monitor_scheduled_query_rules_alert","azurerm_monitor_scheduled_query_rules_alert_v2","azurerm_monitor_scheduled_query_rules_log","azurerm_monitor_smart_detector_alert_rule","azurerm_mssql_database","azurerm_mssql_failover_group","azurerm_mssql_managed_database","azurerm_mssql_managed_instance","azurerm_mssql_managed_instance_active_directory_administrator","azurerm_mssql_managed_instance_failover_group","azurerm_mssql_managed_instance_vulnerability_assessment","azurerm_mssql_outbound_firewall_rule","azurerm_mssql_server","azurerm_mssql_server_dns_alias","azurerm_mssql_server_transparent_data_encryption","azurerm_mssql_virtual_network_rule","azurerm_mysql_active_directory_administrator","azurerm_mysql_configuration","azurerm_mysql_database","azurerm_mysql_firewall_rule","azurerm_mysql_flexible_database","azurerm_mysql_flexible_server","azurerm_mysql_flexible_server_configuration","azurerm_mysql_flexible_server_firewall_rule","azurerm_mysql_server","azurerm_mysql_virtual_network_rule","azurerm_nat_gateway","azurerm_nat_gateway_public_ip_association","azurerm_nat_gateway_public_ip_prefix_association","azurerm_netapp_account","azurerm_netapp_pool","azurerm_netapp_snapshot","azurerm_netapp_snapshot_policy","azurerm_netapp_volume","azurerm_network_connection_monitor","azurerm_network_ddos_protection_plan","azurerm_network_interface","azurerm_network_interface_application_security_group_association","azurerm_network_interface_backend_address_pool_association","azurerm_network_interface_nat_rule_association","azurerm_network_interface_security_group_association","azurerm_network_packet_capture","azurerm_network_profile","azurerm_network_security_group","azurerm_network_security_rule","azurerm_network_watcher","azurerm_network_watcher_flow_log","azurerm_notification_hub","azurerm_notification_hub_authorization_rule","azurerm_notification_hub_namespace","azurerm_orchestrated_virtual_machine_scale_set","azurerm_point_to_site_vpn_gateway","azurerm_policy_definition","azurerm_portal_dashboard","azurerm_postgresql_active_directory_administrator","azurerm_postgresql_configuration","azurerm_postgresql_database","azurerm_postgresql_firewall_rule","azurerm_postgresql_flexible_server","azurerm_postgresql_flexible_server_configuration","azurerm_postgresql_flexible_server_database","azurerm_postgresql_flexible_server_firewall_rule","azurerm_postgresql_server","azurerm_postgresql_server_key","azurerm_postgresql_virtual_network_rule","azurerm_powerbi_embedded","azurerm_private_dns_a_record","azurerm_private_dns_aaaa_record","azurerm_private_dns_cname_record","azurerm_private_dns_mx_record","azurerm_private_dns_ptr_record","azurerm_private_dns_srv_record","azurerm_private_dns_txt_record","azurerm_private_dns_zone","azurerm_private_dns_zone_virtual_network_link","azurerm_private_endpoint","azurerm_private_link_service","azurerm_proximity_placement_group","azurerm_public_ip","azurerm_public_ip_prefix","azurerm_purview_account","azurerm_recovery_services_vault","azurerm_redis_cache","azurerm_redis_enterprise_cluster","azurerm_redis_enterprise_database","azurerm_redis_firewall_rule","azurerm_redis_linked_server","azurerm_relay_namespace","azurerm_relay_namespace_authorization_rule","azurerm_resource_group","azurerm_resource_group_cost_management_export","azurerm_resource_group_policy_assignment","azurerm_resource_group_template_deployment","azurerm_resource_policy_assignment","azurerm_resource_policy_exemption","azurerm_resource_policy_remediation","azurerm_resource_provider_registration","azurerm_role_assignment","azurerm_role_definition","azurerm_route","azurerm_route_filter","azurerm_route_map","azurerm_route_server","azurerm_route_server_bgp_connection","azurerm_route_table","azurerm_search_service","azurerm_security_center_assessment","azurerm_security_center_assessment_policy","azurerm_security_center_auto_provisioning","azurerm_security_center_contact","azurerm_security_center_server_vulnerability_assessment","azurerm_security_center_server_vulnerability_assessment_virtual_machine","azurerm_security_center_setting","azurerm_security_center_subscription_pricing","azurerm_security_center_workspace","azurerm_sentinel_alert_rule_ms_security_incident","azurerm_sentinel_automation_rule","azurerm_sentinel_data_connector_iot","azurerm_sentinel_watchlist","azurerm_service_fabric_cluster","azurerm_service_fabric_managed_cluster","azurerm_service_plan","azurerm_servicebus_namespace","azurerm_servicebus_namespace_authorization_rule","azurerm_servicebus_namespace_disaster_recovery_config","azurerm_servicebus_namespace_network_rule_set","azurerm_servicebus_queue","azurerm_servicebus_queue_authorization_rule","azurerm_servicebus_subscription","azurerm_servicebus_subscription_rule","azurerm_servicebus_topic","azurerm_servicebus_topic_authorization_rule","azurerm_shared_image_gallery","azurerm_signalr_service","azurerm_signalr_service_network_acl","azurerm_site_recovery_fabric","azurerm_site_recovery_protection_container","azurerm_site_recovery_protection_container_mapping","azurerm_site_recovery_replication_policy","azurerm_snapshot","azurerm_source_control_token","azurerm_spatial_anchors_account","azurerm_spring_cloud_active_deployment","azurerm_spring_cloud_app","azurerm_spring_cloud_app_cosmosdb_association","azurerm_spring_cloud_app_mysql_association","azurerm_spring_cloud_app_redis_association","azurerm_spring_cloud_certificate","azurerm_spring_cloud_custom_domain","azurerm_spring_cloud_java_deployment","azurerm_spring_cloud_service","azurerm_spring_cloud_storage","azurerm_stack_hci_cluster","azurerm_storage_account","azurerm_storage_account_network_rules","azurerm_storage_blob","azurerm_storage_blob_inventory_policy","azurerm_storage_container","azurerm_storage_data_lake_gen2_filesystem","azurerm_storage_data_lake_gen2_path","azurerm_storage_encryption_scope","azurerm_storage_management_policy","azurerm_storage_object_replication","azurerm_storage_queue","azurerm_storage_share","azurerm_storage_share_directory","azurerm_storage_sync","azurerm_storage_table","azurerm_storage_table_entity","azurerm_stream_analytics_cluster","azurerm_stream_analytics_function_javascript_uda","azurerm_stream_analytics_job","azurerm_stream_analytics_managed_private_endpoint","azurerm_stream_analytics_output_blob","azurerm_stream_analytics_output_function","azurerm_stream_analytics_output_mssql","azurerm_stream_analytics_output_servicebus_queue","azurerm_stream_analytics_output_servicebus_topic","azurerm_stream_analytics_output_synapse","azurerm_stream_analytics_reference_input_blob","azurerm_stream_analytics_stream_input_blob","azurerm_stream_analytics_stream_input_eventhub","azurerm_stream_analytics_stream_input_iothub","azurerm_subnet","azurerm_subnet_nat_gateway_association","azurerm_subnet_network_security_group_association","azurerm_subnet_route_table_association","azurerm_subnet_service_endpoint_storage_policy","azurerm_subscription","azurerm_subscription_cost_management_export","azurerm_subscription_policy_assignment","azurerm_subscription_policy_exemption","azurerm_subscription_policy_remediation","azurerm_subscription_template_deployment","azurerm_synapse_firewall_rule","azurerm_synapse_integration_runtime_azure","azurerm_synapse_integration_runtime_self_hosted","azurerm_synapse_linked_service","azurerm_synapse_managed_private_endpoint","azurerm_synapse_private_link_hub","azurerm_synapse_role_assignment","azurerm_synapse_spark_pool","azurerm_synapse_sql_pool","azurerm_synapse_sql_pool_extended_auditing_policy","azurerm_synapse_sql_pool_security_alert_policy","azurerm_synapse_sql_pool_workload_classifier","azurerm_synapse_sql_pool_workload_group","azurerm_synapse_workspace","azurerm_synapse_workspace_aad_admin","azurerm_synapse_workspace_extended_auditing_policy","azurerm_synapse_workspace_security_alert_policy","azurerm_synapse_workspace_vulnerability_assessment","azurerm_traffic_manager_azure_endpoint","azurerm_traffic_manager_external_endpoint","azurerm_traffic_manager_nested_endpoint","azurerm_traffic_manager_profile","azurerm_user_assigned_identity","azurerm_virtual_hub","azurerm_virtual_network","azurerm_virtual_network_gateway","azurerm_virtual_network_gateway_connection","azurerm_virtual_network_peering","azurerm_virtual_wan","azurerm_vpn_gateway","azurerm_vpn_gateway_connection","azurerm_vpn_server_configuration","azurerm_vpn_site","azurerm_web_application_firewall_policy","azurerm_windows_virtual_machine","azurerm_windows_virtual_machine_scale_set"] \ No newline at end of file +["azurerm_advanced_threat_protection","azurerm_analysis_services_server","azurerm_api_management","azurerm_api_management_api","azurerm_api_management_api_diagnostic","azurerm_api_management_api_operation","azurerm_api_management_api_operation_policy","azurerm_api_management_api_operation_tag","azurerm_api_management_api_policy","azurerm_api_management_api_release","azurerm_api_management_api_schema","azurerm_api_management_api_tag","azurerm_api_management_api_version_set","azurerm_api_management_authorization_server","azurerm_api_management_backend","azurerm_api_management_certificate","azurerm_api_management_diagnostic","azurerm_api_management_email_template","azurerm_api_management_gateway","azurerm_api_management_identity_provider_aad","azurerm_api_management_identity_provider_facebook","azurerm_api_management_identity_provider_google","azurerm_api_management_identity_provider_microsoft","azurerm_api_management_identity_provider_twitter","azurerm_api_management_logger","azurerm_api_management_named_value","azurerm_api_management_notification_recipient_email","azurerm_api_management_notification_recipient_user","azurerm_api_management_openid_connect_provider","azurerm_api_management_policy","azurerm_api_management_product","azurerm_api_management_product_api","azurerm_api_management_product_policy","azurerm_api_management_redis_cache","azurerm_api_management_subscription","azurerm_api_management_tag","azurerm_api_management_user","azurerm_app_service_plan","azurerm_application_gateway","azurerm_application_insights","azurerm_application_insights_analytics_item","azurerm_application_insights_api_key","azurerm_application_insights_smart_detection_rule","azurerm_application_security_group","azurerm_attestation_provider","azurerm_automation_account","azurerm_automation_credential","azurerm_automation_module","azurerm_automation_variable_bool","azurerm_automation_variable_datetime","azurerm_automation_variable_int","azurerm_automation_variable_string","azurerm_availability_set","azurerm_backup_container_storage_account","azurerm_backup_policy_file_share","azurerm_backup_policy_vm","azurerm_backup_policy_vm_workload","azurerm_backup_protected_file_share","azurerm_backup_protected_vm","azurerm_bot_channel_alexa","azurerm_bot_channel_directline","azurerm_bot_channel_line","azurerm_bot_channel_ms_teams","azurerm_bot_channel_slack","azurerm_bot_channel_sms","azurerm_bot_channel_web_chat","azurerm_bot_channels_registration","azurerm_bot_connection","azurerm_bot_web_app","azurerm_cdn_endpoint","azurerm_cdn_frontdoor_custom_domain","azurerm_cdn_frontdoor_custom_domain_association","azurerm_cdn_frontdoor_endpoint","azurerm_cdn_frontdoor_origin","azurerm_cdn_frontdoor_origin_group","azurerm_cdn_frontdoor_profile","azurerm_cdn_frontdoor_route","azurerm_cdn_frontdoor_rule","azurerm_cdn_frontdoor_rule_set","azurerm_cdn_profile","azurerm_cognitive_account","azurerm_communication_service","azurerm_confidential_ledger","azurerm_consumption_budget_management_group","azurerm_consumption_budget_resource_group","azurerm_consumption_budget_subscription","azurerm_container_connected_registry","azurerm_container_registry","azurerm_container_registry_agent_pool","azurerm_container_registry_scope_map","azurerm_container_registry_token","azurerm_container_registry_token_password","azurerm_container_registry_webhook","azurerm_cosmosdb_account","azurerm_cosmosdb_cassandra_cluster","azurerm_cosmosdb_cassandra_datacenter","azurerm_cosmosdb_cassandra_keyspace","azurerm_cosmosdb_cassandra_table","azurerm_cosmosdb_gremlin_database","azurerm_cosmosdb_gremlin_graph","azurerm_cosmosdb_mongo_collection","azurerm_cosmosdb_mongo_database","azurerm_cosmosdb_sql_container","azurerm_cosmosdb_sql_database","azurerm_cosmosdb_sql_dedicated_gateway","azurerm_cosmosdb_sql_function","azurerm_cosmosdb_sql_role_assignment","azurerm_cosmosdb_sql_role_definition","azurerm_cosmosdb_sql_stored_procedure","azurerm_cosmosdb_sql_trigger","azurerm_cosmosdb_table","azurerm_data_factory","azurerm_data_factory_custom_dataset","azurerm_data_factory_data_flow","azurerm_data_factory_dataset_azure_blob","azurerm_data_factory_dataset_binary","azurerm_data_factory_dataset_cosmosdb_sqlapi","azurerm_data_factory_dataset_delimited_text","azurerm_data_factory_dataset_http","azurerm_data_factory_dataset_json","azurerm_data_factory_dataset_mysql","azurerm_data_factory_dataset_parquet","azurerm_data_factory_dataset_postgresql","azurerm_data_factory_dataset_snowflake","azurerm_data_factory_dataset_sql_server_table","azurerm_data_factory_integration_runtime_azure","azurerm_data_factory_integration_runtime_azure_ssis","azurerm_data_factory_integration_runtime_managed","azurerm_data_factory_integration_runtime_self_hosted","azurerm_data_factory_linked_custom_service","azurerm_data_factory_linked_service_azure_blob_storage","azurerm_data_factory_linked_service_azure_databricks","azurerm_data_factory_linked_service_azure_file_storage","azurerm_data_factory_linked_service_azure_function","azurerm_data_factory_linked_service_azure_search","azurerm_data_factory_linked_service_azure_sql_database","azurerm_data_factory_linked_service_azure_table_storage","azurerm_data_factory_linked_service_cosmosdb","azurerm_data_factory_linked_service_cosmosdb_mongoapi","azurerm_data_factory_linked_service_data_lake_storage_gen2","azurerm_data_factory_linked_service_key_vault","azurerm_data_factory_linked_service_kusto","azurerm_data_factory_linked_service_mysql","azurerm_data_factory_linked_service_odata","azurerm_data_factory_linked_service_odbc","azurerm_data_factory_linked_service_postgresql","azurerm_data_factory_linked_service_sftp","azurerm_data_factory_linked_service_snowflake","azurerm_data_factory_linked_service_sql_server","azurerm_data_factory_linked_service_synapse","azurerm_data_factory_linked_service_web","azurerm_data_factory_managed_private_endpoint","azurerm_data_factory_pipeline","azurerm_data_factory_trigger_blob_event","azurerm_data_factory_trigger_custom_event","azurerm_data_factory_trigger_schedule","azurerm_data_protection_backup_instance_blob_storage","azurerm_data_protection_backup_instance_disk","azurerm_data_protection_backup_instance_postgresql","azurerm_data_protection_backup_policy_blob_storage","azurerm_data_protection_backup_policy_disk","azurerm_data_protection_backup_vault","azurerm_data_protection_resource_guard","azurerm_data_share","azurerm_data_share_account","azurerm_data_share_dataset_blob_storage","azurerm_data_share_dataset_data_lake_gen2","azurerm_data_share_dataset_kusto_cluster","azurerm_data_share_dataset_kusto_database","azurerm_database_migration_project","azurerm_database_migration_service","azurerm_databox_edge_device","azurerm_databricks_access_connector","azurerm_databricks_workspace","azurerm_databricks_workspace_customer_managed_key","azurerm_dedicated_host","azurerm_dev_test_global_vm_shutdown_schedule","azurerm_dev_test_lab","azurerm_dev_test_linux_virtual_machine","azurerm_dev_test_policy","azurerm_dev_test_schedule","azurerm_dev_test_virtual_network","azurerm_dev_test_windows_virtual_machine","azurerm_digital_twins_instance","azurerm_disk_access","azurerm_disk_encryption_set","azurerm_disk_pool","azurerm_dns_a_record","azurerm_dns_aaaa_record","azurerm_dns_caa_record","azurerm_dns_cname_record","azurerm_dns_mx_record","azurerm_dns_ns_record","azurerm_dns_ptr_record","azurerm_dns_srv_record","azurerm_dns_txt_record","azurerm_dns_zone","azurerm_elastic_cloud_elasticsearch","azurerm_eventgrid_domain","azurerm_eventgrid_domain_topic","azurerm_eventgrid_event_subscription","azurerm_eventgrid_system_topic","azurerm_eventgrid_topic","azurerm_eventhub","azurerm_eventhub_authorization_rule","azurerm_eventhub_consumer_group","azurerm_eventhub_namespace","azurerm_eventhub_namespace_authorization_rule","azurerm_eventhub_namespace_disaster_recovery_config","azurerm_eventhub_namespace_schema_group","azurerm_express_route_circuit","azurerm_express_route_circuit_authorization","azurerm_express_route_circuit_connection","azurerm_express_route_circuit_peering","azurerm_express_route_connection","azurerm_express_route_gateway","azurerm_express_route_port","azurerm_federated_identity_credential","azurerm_firewall","azurerm_firewall_application_rule_collection","azurerm_firewall_nat_rule_collection","azurerm_firewall_network_rule_collection","azurerm_firewall_policy","azurerm_firewall_policy_rule_collection_group","azurerm_fluid_relay_server","azurerm_frontdoor","azurerm_frontdoor_custom_https_configuration","azurerm_frontdoor_firewall_policy","azurerm_frontdoor_rules_engine","azurerm_function_app","azurerm_function_app_slot","azurerm_gallery_application","azurerm_gallery_application_version","azurerm_hdinsight_hadoop_cluster","azurerm_hdinsight_hbase_cluster","azurerm_hdinsight_interactive_query_cluster","azurerm_hdinsight_kafka_cluster","azurerm_hdinsight_spark_cluster","azurerm_healthbot","azurerm_healthcare_dicom_service","azurerm_healthcare_fhir_service","azurerm_healthcare_service","azurerm_healthcare_workspace","azurerm_hpc_cache","azurerm_hpc_cache_access_policy","azurerm_hpc_cache_blob_nfs_target","azurerm_hpc_cache_blob_target","azurerm_hpc_cache_nfs_target","azurerm_image","azurerm_integration_service_environment","azurerm_iot_security_device_group","azurerm_iot_security_solution","azurerm_iot_time_series_insights_event_source_iothub","azurerm_iot_time_series_insights_gen2_environment","azurerm_iot_time_series_insights_reference_data_set","azurerm_iot_time_series_insights_standard_environment","azurerm_iotcentral_application","azurerm_iotcentral_application_network_rule_set","azurerm_iothub","azurerm_iothub_consumer_group","azurerm_iothub_device_update_account","azurerm_iothub_device_update_instance","azurerm_iothub_dps","azurerm_iothub_dps_certificate","azurerm_iothub_dps_shared_access_policy","azurerm_iothub_endpoint_eventhub","azurerm_iothub_endpoint_servicebus_queue","azurerm_iothub_endpoint_servicebus_topic","azurerm_iothub_endpoint_storage_container","azurerm_iothub_enrichment","azurerm_iothub_fallback_route","azurerm_iothub_route","azurerm_iothub_shared_access_policy","azurerm_ip_group","azurerm_key_vault","azurerm_key_vault_access_policy","azurerm_key_vault_certificate","azurerm_key_vault_certificate_issuer","azurerm_key_vault_key","azurerm_key_vault_managed_hardware_security_module","azurerm_key_vault_managed_storage_account","azurerm_key_vault_managed_storage_account_sas_token_definition","azurerm_key_vault_secret","azurerm_kubernetes_cluster","azurerm_kubernetes_cluster_node_pool","azurerm_kubernetes_fleet_manager","azurerm_kusto_attached_database_configuration","azurerm_kusto_cluster","azurerm_kusto_cluster_managed_private_endpoint","azurerm_kusto_cluster_principal_assignment","azurerm_kusto_database","azurerm_kusto_database_principal_assignment","azurerm_kusto_eventgrid_data_connection","azurerm_kusto_eventhub_data_connection","azurerm_kusto_iothub_data_connection","azurerm_lab_service_plan","azurerm_lb","azurerm_lb_backend_address_pool","azurerm_lb_backend_address_pool_address","azurerm_lb_nat_pool","azurerm_lb_nat_rule","azurerm_lb_outbound_rule","azurerm_lb_probe","azurerm_lb_rule","azurerm_linux_function_app","azurerm_linux_function_app_slot","azurerm_linux_virtual_machine","azurerm_linux_virtual_machine_scale_set","azurerm_linux_web_app","azurerm_linux_web_app_slot","azurerm_local_network_gateway","azurerm_log_analytics_data_export_rule","azurerm_log_analytics_datasource_windows_event","azurerm_log_analytics_datasource_windows_performance_counter","azurerm_log_analytics_linked_service","azurerm_log_analytics_linked_storage_account","azurerm_log_analytics_query_pack","azurerm_log_analytics_query_pack_query","azurerm_log_analytics_saved_search","azurerm_log_analytics_solution","azurerm_log_analytics_workspace","azurerm_logic_app_action_custom","azurerm_logic_app_action_http","azurerm_logic_app_integration_account","azurerm_logic_app_integration_account_batch_configuration","azurerm_logic_app_integration_account_partner","azurerm_logic_app_integration_account_schema","azurerm_logic_app_integration_account_session","azurerm_logic_app_trigger_custom","azurerm_logic_app_trigger_http_request","azurerm_logic_app_trigger_recurrence","azurerm_logic_app_workflow","azurerm_managed_application_definition","azurerm_managed_disk","azurerm_management_group","azurerm_management_lock","azurerm_maps_account","azurerm_maps_creator","azurerm_mariadb_configuration","azurerm_mariadb_database","azurerm_mariadb_firewall_rule","azurerm_mariadb_server","azurerm_mariadb_virtual_network_rule","azurerm_marketplace_agreement","azurerm_media_asset","azurerm_media_asset_filter","azurerm_media_content_key_policy","azurerm_media_live_event","azurerm_media_live_event_output","azurerm_media_services_account","azurerm_media_streaming_endpoint","azurerm_media_streaming_locator","azurerm_media_streaming_policy","azurerm_media_transform","azurerm_monitor_action_group","azurerm_monitor_action_rule_action_group","azurerm_monitor_action_rule_suppression","azurerm_monitor_activity_log_alert","azurerm_monitor_alert_processing_rule_action_group","azurerm_monitor_alert_processing_rule_suppression","azurerm_monitor_autoscale_setting","azurerm_monitor_data_collection_endpoint","azurerm_monitor_data_collection_rule","azurerm_monitor_data_collection_rule_association","azurerm_monitor_metric_alert","azurerm_monitor_private_link_scope","azurerm_monitor_private_link_scoped_service","azurerm_monitor_scheduled_query_rules_alert","azurerm_monitor_scheduled_query_rules_alert_v2","azurerm_monitor_scheduled_query_rules_log","azurerm_monitor_smart_detector_alert_rule","azurerm_mssql_database","azurerm_mssql_failover_group","azurerm_mssql_managed_database","azurerm_mssql_managed_instance","azurerm_mssql_managed_instance_active_directory_administrator","azurerm_mssql_managed_instance_failover_group","azurerm_mssql_managed_instance_vulnerability_assessment","azurerm_mssql_outbound_firewall_rule","azurerm_mssql_server","azurerm_mssql_server_dns_alias","azurerm_mssql_server_transparent_data_encryption","azurerm_mssql_virtual_network_rule","azurerm_mysql_active_directory_administrator","azurerm_mysql_configuration","azurerm_mysql_database","azurerm_mysql_firewall_rule","azurerm_mysql_flexible_database","azurerm_mysql_flexible_server","azurerm_mysql_flexible_server_configuration","azurerm_mysql_flexible_server_firewall_rule","azurerm_mysql_server","azurerm_mysql_virtual_network_rule","azurerm_nat_gateway","azurerm_nat_gateway_public_ip_association","azurerm_nat_gateway_public_ip_prefix_association","azurerm_netapp_account","azurerm_netapp_pool","azurerm_netapp_snapshot","azurerm_netapp_snapshot_policy","azurerm_netapp_volume","azurerm_network_connection_monitor","azurerm_network_ddos_protection_plan","azurerm_network_interface","azurerm_network_interface_application_security_group_association","azurerm_network_interface_backend_address_pool_association","azurerm_network_interface_nat_rule_association","azurerm_network_interface_security_group_association","azurerm_network_packet_capture","azurerm_network_profile","azurerm_network_security_group","azurerm_network_security_rule","azurerm_network_watcher","azurerm_network_watcher_flow_log","azurerm_notification_hub","azurerm_notification_hub_authorization_rule","azurerm_notification_hub_namespace","azurerm_orchestrated_virtual_machine_scale_set","azurerm_point_to_site_vpn_gateway","azurerm_policy_definition","azurerm_portal_dashboard","azurerm_postgresql_active_directory_administrator","azurerm_postgresql_configuration","azurerm_postgresql_database","azurerm_postgresql_firewall_rule","azurerm_postgresql_flexible_server","azurerm_postgresql_flexible_server_configuration","azurerm_postgresql_flexible_server_database","azurerm_postgresql_flexible_server_firewall_rule","azurerm_postgresql_server","azurerm_postgresql_server_key","azurerm_postgresql_virtual_network_rule","azurerm_powerbi_embedded","azurerm_private_dns_a_record","azurerm_private_dns_aaaa_record","azurerm_private_dns_cname_record","azurerm_private_dns_mx_record","azurerm_private_dns_ptr_record","azurerm_private_dns_srv_record","azurerm_private_dns_txt_record","azurerm_private_dns_zone","azurerm_private_dns_zone_virtual_network_link","azurerm_private_endpoint","azurerm_private_link_service","azurerm_proximity_placement_group","azurerm_public_ip","azurerm_public_ip_prefix","azurerm_purview_account","azurerm_recovery_services_vault","azurerm_redis_cache","azurerm_redis_enterprise_cluster","azurerm_redis_enterprise_database","azurerm_redis_firewall_rule","azurerm_redis_linked_server","azurerm_relay_namespace","azurerm_relay_namespace_authorization_rule","azurerm_resource_group","azurerm_resource_group_cost_management_export","azurerm_resource_group_policy_assignment","azurerm_resource_group_template_deployment","azurerm_resource_policy_assignment","azurerm_resource_policy_exemption","azurerm_resource_policy_remediation","azurerm_resource_provider_registration","azurerm_role_assignment","azurerm_role_definition","azurerm_route","azurerm_route_filter","azurerm_route_map","azurerm_route_server","azurerm_route_server_bgp_connection","azurerm_route_table","azurerm_search_service","azurerm_security_center_assessment","azurerm_security_center_assessment_policy","azurerm_security_center_auto_provisioning","azurerm_security_center_contact","azurerm_security_center_server_vulnerability_assessment","azurerm_security_center_server_vulnerability_assessment_virtual_machine","azurerm_security_center_setting","azurerm_security_center_subscription_pricing","azurerm_security_center_workspace","azurerm_sentinel_alert_rule_ms_security_incident","azurerm_sentinel_automation_rule","azurerm_sentinel_data_connector_iot","azurerm_sentinel_watchlist","azurerm_service_fabric_cluster","azurerm_service_fabric_managed_cluster","azurerm_service_plan","azurerm_servicebus_namespace","azurerm_servicebus_namespace_authorization_rule","azurerm_servicebus_namespace_disaster_recovery_config","azurerm_servicebus_namespace_network_rule_set","azurerm_servicebus_queue","azurerm_servicebus_queue_authorization_rule","azurerm_servicebus_subscription","azurerm_servicebus_subscription_rule","azurerm_servicebus_topic","azurerm_servicebus_topic_authorization_rule","azurerm_shared_image_gallery","azurerm_signalr_service","azurerm_signalr_service_network_acl","azurerm_site_recovery_fabric","azurerm_site_recovery_protection_container","azurerm_site_recovery_protection_container_mapping","azurerm_site_recovery_replication_policy","azurerm_snapshot","azurerm_source_control_token","azurerm_spatial_anchors_account","azurerm_spring_cloud_active_deployment","azurerm_spring_cloud_app","azurerm_spring_cloud_app_cosmosdb_association","azurerm_spring_cloud_app_mysql_association","azurerm_spring_cloud_app_redis_association","azurerm_spring_cloud_certificate","azurerm_spring_cloud_custom_domain","azurerm_spring_cloud_java_deployment","azurerm_spring_cloud_service","azurerm_spring_cloud_storage","azurerm_stack_hci_cluster","azurerm_storage_account","azurerm_storage_account_network_rules","azurerm_storage_blob","azurerm_storage_blob_inventory_policy","azurerm_storage_container","azurerm_storage_data_lake_gen2_filesystem","azurerm_storage_data_lake_gen2_path","azurerm_storage_encryption_scope","azurerm_storage_management_policy","azurerm_storage_object_replication","azurerm_storage_queue","azurerm_storage_share","azurerm_storage_share_directory","azurerm_storage_sync","azurerm_storage_table","azurerm_storage_table_entity","azurerm_stream_analytics_cluster","azurerm_stream_analytics_function_javascript_uda","azurerm_stream_analytics_job","azurerm_stream_analytics_managed_private_endpoint","azurerm_stream_analytics_output_blob","azurerm_stream_analytics_output_function","azurerm_stream_analytics_output_mssql","azurerm_stream_analytics_output_servicebus_queue","azurerm_stream_analytics_output_servicebus_topic","azurerm_stream_analytics_output_synapse","azurerm_stream_analytics_reference_input_blob","azurerm_stream_analytics_stream_input_blob","azurerm_stream_analytics_stream_input_eventhub","azurerm_stream_analytics_stream_input_iothub","azurerm_subnet","azurerm_subnet_nat_gateway_association","azurerm_subnet_network_security_group_association","azurerm_subnet_route_table_association","azurerm_subnet_service_endpoint_storage_policy","azurerm_subscription","azurerm_subscription_cost_management_export","azurerm_subscription_policy_assignment","azurerm_subscription_policy_exemption","azurerm_subscription_policy_remediation","azurerm_subscription_template_deployment","azurerm_synapse_firewall_rule","azurerm_synapse_integration_runtime_azure","azurerm_synapse_integration_runtime_self_hosted","azurerm_synapse_linked_service","azurerm_synapse_managed_private_endpoint","azurerm_synapse_private_link_hub","azurerm_synapse_role_assignment","azurerm_synapse_spark_pool","azurerm_synapse_sql_pool","azurerm_synapse_sql_pool_extended_auditing_policy","azurerm_synapse_sql_pool_security_alert_policy","azurerm_synapse_sql_pool_workload_classifier","azurerm_synapse_sql_pool_workload_group","azurerm_synapse_workspace","azurerm_synapse_workspace_aad_admin","azurerm_synapse_workspace_extended_auditing_policy","azurerm_synapse_workspace_security_alert_policy","azurerm_synapse_workspace_vulnerability_assessment","azurerm_traffic_manager_azure_endpoint","azurerm_traffic_manager_external_endpoint","azurerm_traffic_manager_nested_endpoint","azurerm_traffic_manager_profile","azurerm_user_assigned_identity","azurerm_virtual_hub","azurerm_virtual_network","azurerm_virtual_network_gateway","azurerm_virtual_network_gateway_connection","azurerm_virtual_network_peering","azurerm_virtual_wan","azurerm_vpn_gateway","azurerm_vpn_gateway_connection","azurerm_vpn_server_configuration","azurerm_vpn_site","azurerm_web_application_firewall_policy","azurerm_windows_virtual_machine","azurerm_windows_virtual_machine_scale_set"] \ No newline at end of file diff --git a/examples-generated/compute/galleryapplication.yaml b/examples-generated/compute/galleryapplication.yaml new file mode 100644 index 000000000..fb9c64ca0 --- /dev/null +++ b/examples-generated/compute/galleryapplication.yaml @@ -0,0 +1,49 @@ +apiVersion: compute.azure.upbound.io/v1beta1 +kind: GalleryApplication +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplication + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + galleryIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + supportedOsType: Linux + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplication + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: compute.azure.upbound.io/v1beta1 +kind: SharedImageGallery +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplication + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples-generated/compute/galleryapplicationversion.yaml b/examples-generated/compute/galleryapplicationversion.yaml new file mode 100644 index 000000000..be9de3ed3 --- /dev/null +++ b/examples-generated/compute/galleryapplicationversion.yaml @@ -0,0 +1,136 @@ +apiVersion: compute.azure.upbound.io/v1beta1 +kind: GalleryApplicationVersion +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + galleryApplicationIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + manageAction: + - install: '[install command]' + remove: '[remove command]' + name: 0.0.1 + source: + - mediaLinkSelector: + matchLabels: + testing.upbound.io/example-name: example + targetRegion: + - nameSelector: + matchLabels: + testing.upbound.io/example-name: example + regionalReplicaCount: 1 + +--- + +apiVersion: compute.azure.upbound.io/v1beta1 +kind: GalleryApplication +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + galleryIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + supportedOsType: Linux + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: compute.azure.upbound.io/v1beta1 +kind: SharedImageGallery +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Blob +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + sourceContent: '[scripts file content]' + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageContainerNameSelector: + matchLabels: + testing.upbound.io/example-name: example + type: Block + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAccessType: blob + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples-generated/databricks/accessconnector.yaml b/examples-generated/databricks/accessconnector.yaml new file mode 100644 index 000000000..b90bdac25 --- /dev/null +++ b/examples-generated/databricks/accessconnector.yaml @@ -0,0 +1,35 @@ +apiVersion: databricks.azure.upbound.io/v1beta1 +kind: AccessConnector +metadata: + annotations: + meta.upbound.io/example-id: databricks/v1beta1/accessconnector + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + identity: + - type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + Environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: databricks/v1beta1/accessconnector + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + diff --git a/examples-generated/eventhub/namespaceschemagroup.yaml b/examples-generated/eventhub/namespaceschemagroup.yaml new file mode 100644 index 000000000..80083c342 --- /dev/null +++ b/examples-generated/eventhub/namespaceschemagroup.yaml @@ -0,0 +1,50 @@ +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: NamespaceSchemaGroup +metadata: + annotations: + meta.upbound.io/example-id: eventhub/v1beta1/namespaceschemagroup + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + namespaceIdSelector: + matchLabels: + testing.upbound.io/example-name: test + schemaCompatibility: Forward + schemaType: Avro + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: eventhub/v1beta1/namespaceschemagroup + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + location: ${azurerm_resource_group.test.location} + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: test + sku: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: eventhub/v1beta1/namespaceschemagroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: East US + +--- + diff --git a/examples-generated/fluidrelay/server.yaml b/examples-generated/fluidrelay/server.yaml new file mode 100644 index 000000000..330959a44 --- /dev/null +++ b/examples-generated/fluidrelay/server.yaml @@ -0,0 +1,32 @@ +apiVersion: fluidrelay.azure.upbound.io/v1beta1 +kind: Server +metadata: + annotations: + meta.upbound.io/example-id: fluidrelay/v1beta1/server + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: fluidrelay/v1beta1/server + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + diff --git a/examples-generated/managedidentity/federatedidentitycredential.yaml b/examples-generated/managedidentity/federatedidentitycredential.yaml new file mode 100644 index 000000000..e035b013d --- /dev/null +++ b/examples-generated/managedidentity/federatedidentitycredential.yaml @@ -0,0 +1,55 @@ +apiVersion: managedidentity.azure.upbound.io/v1beta1 +kind: FederatedIdentityCredential +metadata: + annotations: + meta.upbound.io/example-id: managedidentity/v1beta1/federatedidentitycredential + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + audience: + - foo + issuer: https://foo + parentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + subject: foo + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: managedidentity/v1beta1/federatedidentitycredential + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: managedidentity.azure.upbound.io/v1beta1 +kind: UserAssignedIdentity +metadata: + annotations: + meta.upbound.io/example-id: managedidentity/v1beta1/federatedidentitycredential + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples/compute/galleryapplication.yaml b/examples/compute/galleryapplication.yaml new file mode 100644 index 000000000..be6905dae --- /dev/null +++ b/examples/compute/galleryapplication.yaml @@ -0,0 +1,46 @@ +apiVersion: compute.azure.upbound.io/v1beta1 +kind: GalleryApplication +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplication + labels: + testing.upbound.io/example-name: galleryapplicationexample + name: galleryapplicationexample +spec: + forProvider: + galleryIdSelector: + matchLabels: + testing.upbound.io/example-name: galleryapplicationig + location: West Europe + supportedOsType: Linux + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplication + labels: + testing.upbound.io/example-name: galleryapplication-rg + name: galleryapplication-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: compute.azure.upbound.io/v1beta1 +kind: SharedImageGallery +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplication + labels: + testing.upbound.io/example-name: galleryapplicationig + name: galleryapplicationig +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryapplication-rg diff --git a/examples/compute/galleryapplicationversion.yaml b/examples/compute/galleryapplicationversion.yaml new file mode 100644 index 000000000..1e06647bc --- /dev/null +++ b/examples/compute/galleryapplicationversion.yaml @@ -0,0 +1,133 @@ +apiVersion: compute.azure.upbound.io/v1beta1 +kind: GalleryApplicationVersion +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversion + name: galleryappversion +spec: + forProvider: + name: 1.0.0 + galleryApplicationIdSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversiongalleryapp + location: West Europe + manageAction: + - install: '[install command]' + remove: '[remove command]' + source: + - mediaLinkSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionstorblob + targetRegion: + - nameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversiongalleryapp + regionalReplicaCount: 1 + +--- + +apiVersion: compute.azure.upbound.io/v1beta1 +kind: GalleryApplication +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversiongalleryapp + name: galleryappversiongalleryapp +spec: + forProvider: + galleryIdSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversiongallery + location: West Europe + supportedOsType: Linux + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversionrg + name: galleryappversionrg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: compute.azure.upbound.io/v1beta1 +kind: SharedImageGallery +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversiongallery + name: galleryappversiongallery +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionrg + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversionstoracc + name: galleryappversionstoracc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionrg + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Blob +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversionstorblob + name: galleryappversionstorblob +spec: + forProvider: + sourceContent: '[scripts file content]' + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionstoracc + storageContainerNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionstorcont + type: Block + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversionstorcont + name: galleryappversionstorcont +spec: + forProvider: + containerAccessType: blob + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionstoracc diff --git a/examples/databricks/accessconnector.yaml b/examples/databricks/accessconnector.yaml new file mode 100644 index 000000000..e297eb299 --- /dev/null +++ b/examples/databricks/accessconnector.yaml @@ -0,0 +1,32 @@ +apiVersion: databricks.azure.upbound.io/v1beta1 +kind: AccessConnector +metadata: + annotations: + meta.upbound.io/example-id: databricks/v1beta1/accessconnector + labels: + testing.upbound.io/example-name: accessconnectorexample + name: accessconnectorexample +spec: + forProvider: + identity: + - type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: accessconnector-rg + tags: + Environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: databricks/v1beta1/accessconnector + labels: + testing.upbound.io/example-name: accessconnector-rg + name: accessconnector-rg +spec: + forProvider: + location: West Europe diff --git a/examples/eventhub/namespaceschemagroup.yaml b/examples/eventhub/namespaceschemagroup.yaml new file mode 100644 index 000000000..316313fcb --- /dev/null +++ b/examples/eventhub/namespaceschemagroup.yaml @@ -0,0 +1,47 @@ +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: NamespaceSchemaGroup +metadata: + annotations: + meta.upbound.io/example-id: eventhub/v1beta1/namespaceschemagroup + labels: + testing.upbound.io/example-name: testschemagroup + name: testschemagroup +spec: + forProvider: + namespaceIdSelector: + matchLabels: + testing.upbound.io/example-name: namespaceschemagroup-ns + schemaCompatibility: Forward + schemaType: Avro + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: eventhub/v1beta1/namespaceschemagroup + labels: + testing.upbound.io/example-name: namespaceschemagroup-ns + name: namespaceschemagroup-ns +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: namespaceschemagroup-rg + sku: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: eventhub/v1beta1/namespaceschemagroup + labels: + testing.upbound.io/example-name: namespaceschemagroup-rg + name: namespaceschemagroup-rg +spec: + forProvider: + location: East US diff --git a/examples/fluidrelay/server.yaml b/examples/fluidrelay/server.yaml new file mode 100644 index 000000000..c40656456 --- /dev/null +++ b/examples/fluidrelay/server.yaml @@ -0,0 +1,29 @@ +apiVersion: fluidrelay.azure.upbound.io/v1beta1 +kind: Server +metadata: + annotations: + meta.upbound.io/example-id: fluidrelay/v1beta1/server + labels: + testing.upbound.io/example-name: fluidrelayserverexample + name: fluidrelayserverexample +spec: + forProvider: + name: fluidrelayserverexample + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: fluidrelayserver-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: fluidrelay/v1beta1/server + labels: + testing.upbound.io/example-name: fluidrelayserver-rg + name: fluidrelayserver-rg +spec: + forProvider: + location: West Europe diff --git a/examples/managedidentity/federatedidentitycredential.yaml b/examples/managedidentity/federatedidentitycredential.yaml new file mode 100644 index 000000000..1c70cab07 --- /dev/null +++ b/examples/managedidentity/federatedidentitycredential.yaml @@ -0,0 +1,53 @@ +apiVersion: managedidentity.azure.upbound.io/v1beta1 +kind: FederatedIdentityCredential +metadata: + annotations: + uptest.upbound.io/timeout: "3600" + meta.upbound.io/example-id: managedidentity/v1beta1/federatedidentitycredential + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + audience: + - foo + issuer: https://foo + parentIdSelector: + matchLabels: + testing.upbound.io/example-name: fedidentitycred-uai + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: fedidentitycred-rg + subject: foo + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: managedidentity/v1beta1/federatedidentitycredential + labels: + testing.upbound.io/example-name: fedidentitycred-rg + name: fedidentitycred-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: managedidentity.azure.upbound.io/v1beta1 +kind: UserAssignedIdentity +metadata: + annotations: + meta.upbound.io/example-id: managedidentity/v1beta1/federatedidentitycredential + labels: + testing.upbound.io/example-name: fedidentitycred-uai + name: fedidentitycred-uai +spec: + forProvider: + location: West Europe + name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: fedidentitycred-rg diff --git a/internal/controller/compute/galleryapplication/zz_controller.go b/internal/controller/compute/galleryapplication/zz_controller.go new file mode 100755 index 000000000..f21b1f764 --- /dev/null +++ b/internal/controller/compute/galleryapplication/zz_controller.go @@ -0,0 +1,52 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package galleryapplication + +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" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/compute/v1beta1" +) + +// Setup adds a controller that reconciles GalleryApplication managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.GalleryApplication_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.GalleryApplication_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_gallery_application"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.GalleryApplication_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.GalleryApplication{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/compute/galleryapplicationversion/zz_controller.go b/internal/controller/compute/galleryapplicationversion/zz_controller.go new file mode 100755 index 000000000..0ac64f5a3 --- /dev/null +++ b/internal/controller/compute/galleryapplicationversion/zz_controller.go @@ -0,0 +1,51 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package galleryapplicationversion + +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" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/compute/v1beta1" +) + +// Setup adds a controller that reconciles GalleryApplicationVersion managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.GalleryApplicationVersion_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)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.GalleryApplicationVersion_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_gallery_application_version"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.GalleryApplicationVersion_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.GalleryApplicationVersion{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/databricks/accessconnector/zz_controller.go b/internal/controller/databricks/accessconnector/zz_controller.go new file mode 100755 index 000000000..b4af101da --- /dev/null +++ b/internal/controller/databricks/accessconnector/zz_controller.go @@ -0,0 +1,52 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package accessconnector + +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" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/databricks/v1beta1" +) + +// Setup adds a controller that reconciles AccessConnector managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.AccessConnector_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.AccessConnector_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_databricks_access_connector"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.AccessConnector_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.AccessConnector{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/eventhub/namespaceschemagroup/zz_controller.go b/internal/controller/eventhub/namespaceschemagroup/zz_controller.go new file mode 100755 index 000000000..607c48ba4 --- /dev/null +++ b/internal/controller/eventhub/namespaceschemagroup/zz_controller.go @@ -0,0 +1,52 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package namespaceschemagroup + +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" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/eventhub/v1beta1" +) + +// Setup adds a controller that reconciles NamespaceSchemaGroup managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.NamespaceSchemaGroup_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.NamespaceSchemaGroup_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_eventhub_namespace_schema_group"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.NamespaceSchemaGroup_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.NamespaceSchemaGroup{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/fluidrelay/server/zz_controller.go b/internal/controller/fluidrelay/server/zz_controller.go new file mode 100755 index 000000000..5c24bf3d3 --- /dev/null +++ b/internal/controller/fluidrelay/server/zz_controller.go @@ -0,0 +1,51 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package server + +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" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/fluidrelay/v1beta1" +) + +// Setup adds a controller that reconciles Server managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.Server_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)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.Server_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_fluid_relay_server"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.Server_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.Server{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/managedidentity/federatedidentitycredential/zz_controller.go b/internal/controller/managedidentity/federatedidentitycredential/zz_controller.go new file mode 100755 index 000000000..b076804db --- /dev/null +++ b/internal/controller/managedidentity/federatedidentitycredential/zz_controller.go @@ -0,0 +1,52 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package federatedidentitycredential + +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" + tjcontroller "github.com/upbound/upjet/pkg/controller" + "github.com/upbound/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/managedidentity/v1beta1" +) + +// Setup adds a controller that reconciles FederatedIdentityCredential managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.FederatedIdentityCredential_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } + r := managed.NewReconciler(mgr, + xpresource.ManagedKind(v1beta1.FederatedIdentityCredential_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_federated_identity_credential"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.FederatedIdentityCredential_GroupVersionKind))), + )), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3*time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + ) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + For(&v1beta1.FederatedIdentityCredential{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index d22279841..ca720a1db 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -113,6 +113,8 @@ import ( dedicatedhost "github.com/upbound/provider-azure/internal/controller/compute/dedicatedhost" diskaccess "github.com/upbound/provider-azure/internal/controller/compute/diskaccess" diskencryptionset "github.com/upbound/provider-azure/internal/controller/compute/diskencryptionset" + galleryapplication "github.com/upbound/provider-azure/internal/controller/compute/galleryapplication" + galleryapplicationversion "github.com/upbound/provider-azure/internal/controller/compute/galleryapplicationversion" image "github.com/upbound/provider-azure/internal/controller/compute/image" linuxvirtualmachine "github.com/upbound/provider-azure/internal/controller/compute/linuxvirtualmachine" linuxvirtualmachinescaleset "github.com/upbound/provider-azure/internal/controller/compute/linuxvirtualmachinescaleset" @@ -158,6 +160,7 @@ import ( resourcegroupcostmanagementexport "github.com/upbound/provider-azure/internal/controller/costmanagement/resourcegroupcostmanagementexport" subscriptioncostmanagementexport "github.com/upbound/provider-azure/internal/controller/costmanagement/subscriptioncostmanagementexport" device "github.com/upbound/provider-azure/internal/controller/databoxedge/device" + accessconnector "github.com/upbound/provider-azure/internal/controller/databricks/accessconnector" workspace "github.com/upbound/provider-azure/internal/controller/databricks/workspace" workspacecustomermanagedkey "github.com/upbound/provider-azure/internal/controller/databricks/workspacecustomermanagedkey" customdataset "github.com/upbound/provider-azure/internal/controller/datafactory/customdataset" @@ -281,6 +284,8 @@ import ( eventhubnamespace "github.com/upbound/provider-azure/internal/controller/eventhub/eventhubnamespace" namespaceauthorizationrule "github.com/upbound/provider-azure/internal/controller/eventhub/namespaceauthorizationrule" namespacedisasterrecoveryconfig "github.com/upbound/provider-azure/internal/controller/eventhub/namespacedisasterrecoveryconfig" + namespaceschemagroup "github.com/upbound/provider-azure/internal/controller/eventhub/namespaceschemagroup" + serverfluidrelay "github.com/upbound/provider-azure/internal/controller/fluidrelay/server" hadoopcluster "github.com/upbound/provider-azure/internal/controller/hdinsight/hadoopcluster" hbasecluster "github.com/upbound/provider-azure/internal/controller/hdinsight/hbasecluster" interactivequerycluster "github.com/upbound/provider-azure/internal/controller/hdinsight/interactivequerycluster" @@ -340,6 +345,7 @@ import ( apptriggerrecurrence "github.com/upbound/provider-azure/internal/controller/logic/apptriggerrecurrence" appworkflow "github.com/upbound/provider-azure/internal/controller/logic/appworkflow" integrationserviceenvironment "github.com/upbound/provider-azure/internal/controller/logic/integrationserviceenvironment" + federatedidentitycredential "github.com/upbound/provider-azure/internal/controller/managedidentity/federatedidentitycredential" userassignedidentity "github.com/upbound/provider-azure/internal/controller/managedidentity/userassignedidentity" managementgroup "github.com/upbound/provider-azure/internal/controller/management/managementgroup" accountmaps "github.com/upbound/provider-azure/internal/controller/maps/account" @@ -711,6 +717,8 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { dedicatedhost.Setup, diskaccess.Setup, diskencryptionset.Setup, + galleryapplication.Setup, + galleryapplicationversion.Setup, image.Setup, linuxvirtualmachine.Setup, linuxvirtualmachinescaleset.Setup, @@ -756,6 +764,7 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { resourcegroupcostmanagementexport.Setup, subscriptioncostmanagementexport.Setup, device.Setup, + accessconnector.Setup, workspace.Setup, workspacecustomermanagedkey.Setup, customdataset.Setup, @@ -879,6 +888,8 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { eventhubnamespace.Setup, namespaceauthorizationrule.Setup, namespacedisasterrecoveryconfig.Setup, + namespaceschemagroup.Setup, + serverfluidrelay.Setup, hadoopcluster.Setup, hbasecluster.Setup, interactivequerycluster.Setup, @@ -938,6 +949,7 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { apptriggerrecurrence.Setup, appworkflow.Setup, integrationserviceenvironment.Setup, + federatedidentitycredential.Setup, userassignedidentity.Setup, managementgroup.Setup, accountmaps.Setup, diff --git a/package/crds/compute.azure.upbound.io_galleryapplications.yaml b/package/crds/compute.azure.upbound.io_galleryapplications.yaml new file mode 100644 index 000000000..40e790abc --- /dev/null +++ b/package/crds/compute.azure.upbound.io_galleryapplications.yaml @@ -0,0 +1,408 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: galleryapplications.compute.azure.upbound.io +spec: + group: compute.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: GalleryApplication + listKind: GalleryApplicationList + plural: galleryapplications + singular: galleryapplication + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: GalleryApplication is the Schema for the GalleryApplications + API. Manages a Gallery Application. + 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: GalleryApplicationSpec defines the desired state of GalleryApplication + 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. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + description: + description: A description of the Gallery Application. + type: string + endOfLifeDate: + description: The end of life date in RFC3339 format of the Gallery + Application. + type: string + eula: + description: The End User Licence Agreement of the Gallery Application. + type: string + galleryId: + description: The ID of the Shared Image Gallery. Changing this + forces a new resource to be created. + type: string + galleryIdRef: + description: Reference to a SharedImageGallery in compute to populate + galleryId. + 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 + galleryIdSelector: + description: Selector for a SharedImageGallery in compute to populate + galleryId. + 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 + location: + description: The Azure Region where the Gallery Application exists. + Changing this forces a new resource to be created. + type: string + privacyStatementUri: + description: The URI containing the Privacy Statement associated + with the Gallery Application. + type: string + releaseNoteUri: + description: The URI containing the Release Notes associated with + the Gallery Application. + type: string + supportedOsType: + description: The type of the Operating System supported for the + Gallery Application. Possible values are Linux and Windows. + Changing this forces a new resource to be created. + type: string + tags: + additionalProperties: + type: string + description: A mapping of tags to assign to the Gallery Application. + type: object + required: + - location + - supportedOsType + type: object + 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 + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + 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 + status: + description: GalleryApplicationStatus defines the observed state of GalleryApplication. + properties: + atProvider: + properties: + id: + description: The ID of the Gallery Application. + 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 + 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 + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/package/crds/compute.azure.upbound.io_galleryapplicationversions.yaml b/package/crds/compute.azure.upbound.io_galleryapplicationversions.yaml new file mode 100644 index 000000000..0a9aa7341 --- /dev/null +++ b/package/crds/compute.azure.upbound.io_galleryapplicationversions.yaml @@ -0,0 +1,622 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: galleryapplicationversions.compute.azure.upbound.io +spec: + group: compute.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: GalleryApplicationVersion + listKind: GalleryApplicationVersionList + plural: galleryapplicationversions + singular: galleryapplicationversion + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: GalleryApplicationVersion is the Schema for the GalleryApplicationVersions + API. Manages a Gallery Application Version. + 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: GalleryApplicationVersionSpec defines the desired state of + GalleryApplicationVersion + 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. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + enableHealthCheck: + description: Should the Gallery Application reports health. Defaults + to false. + type: boolean + endOfLifeDate: + description: The end of life date in RFC3339 format of the Gallery + Application Version. + type: string + excludeFromLatest: + description: Should the Gallery Application Version be excluded + from the latest filter? If set to true this Gallery Application + Version won't be returned for the latest version. Defaults to + false. + type: boolean + galleryApplicationId: + description: The ID of the Gallery Application. Changing this + forces a new resource to be created. + type: string + galleryApplicationIdRef: + description: Reference to a GalleryApplication in compute to populate + galleryApplicationId. + 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 + galleryApplicationIdSelector: + description: Selector for a GalleryApplication in compute to populate + galleryApplicationId. + 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 + location: + description: The Azure Region where the Gallery Application Version + exists. Changing this forces a new resource to be created. + type: string + manageAction: + description: A manage_action block as defined below. + items: + properties: + install: + description: The command to install the Gallery Application. + Changing this forces a new resource to be created. + type: string + remove: + description: The command to remove the Gallery Application. + Changing this forces a new resource to be created. + type: string + update: + description: The command to update the Gallery Application. + Changing this forces a new resource to be created. + type: string + required: + - install + - remove + type: object + type: array + name: + description: The version name of the Gallery Application Version, + such as 1.0.0. Changing this forces a new resource to be created. + type: string + source: + description: A source block as defined below. + items: + properties: + defaultConfigurationLink: + description: The Storage Blob URI of the default configuration. + Changing this forces a new resource to be created. + type: string + mediaLink: + description: The Storage Blob URI of the source application + package. Changing this forces a new resource to be created. + type: string + mediaLinkRef: + description: Reference to a Blob in storage to populate + mediaLink. + 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 + mediaLinkSelector: + description: Selector for a Blob in storage to populate + mediaLink. + 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 + type: object + type: array + tags: + additionalProperties: + type: string + description: A mapping of tags to assign to the Gallery Application + Version. + type: object + targetRegion: + description: One or more target_region blocks as defined below. + items: + properties: + name: + description: The Azure Region in which the Gallery Application + Version exists. + type: string + nameRef: + description: Reference to a GalleryApplication in compute + to populate name. + 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 + nameSelector: + description: Selector for a GalleryApplication in compute + to populate name. + 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 + regionalReplicaCount: + description: The number of replicas of the Gallery Application + Version to be created per region. Possible values are + between 1 and 10. + type: number + storageAccountType: + description: The storage account type for the Gallery Application + Version. Possible values are Standard_LRS, Premium_LRS + and Standard_ZRS. Defaults to Standard_LRS. + type: string + required: + - regionalReplicaCount + type: object + type: array + required: + - location + - manageAction + - name + - source + - targetRegion + type: object + 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 + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + 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 + status: + description: GalleryApplicationVersionStatus defines the observed state + of GalleryApplicationVersion. + properties: + atProvider: + properties: + id: + description: The ID of the Gallery Application Version. + 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 + 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 + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/package/crds/databricks.azure.upbound.io_accessconnectors.yaml b/package/crds/databricks.azure.upbound.io_accessconnectors.yaml new file mode 100644 index 000000000..698b0e6b0 --- /dev/null +++ b/package/crds/databricks.azure.upbound.io_accessconnectors.yaml @@ -0,0 +1,414 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: accessconnectors.databricks.azure.upbound.io +spec: + group: databricks.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: AccessConnector + listKind: AccessConnectorList + plural: accessconnectors + singular: accessconnector + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: AccessConnector is the Schema for the AccessConnectors API. Manages + a Databricks Access Connector + 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: AccessConnectorSpec defines the desired state of AccessConnector + 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. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + identity: + description: An identity block as defined below. + items: + properties: + type: + description: The type of identity to use for this Access + Connector. SystemAssigned is the only possible value. + type: string + required: + - type + type: object + type: array + location: + description: Specifies the supported Azure location where the + resource has to be created. Changing this forces a new resource + to be created. + type: string + resourceGroupName: + description: The name of the Resource Group in which the Databricks + Access Connector should exist. Changing this forces a new resource + to be created. + type: string + resourceGroupNameRef: + description: Reference to a ResourceGroup in azure to populate + resourceGroupName. + 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 + resourceGroupNameSelector: + description: Selector for a ResourceGroup in azure to populate + resourceGroupName. + 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 + tags: + additionalProperties: + type: string + description: A mapping of tags to assign to the resource. + type: object + required: + - identity + - location + type: object + 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 + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + 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 + status: + description: AccessConnectorStatus defines the observed state of AccessConnector. + properties: + atProvider: + properties: + id: + description: The ID of the Databricks Access Connector in the + Azure management plane. + type: string + identity: + description: An identity block as defined below. + items: + properties: + principalId: + description: The object id of an existing principal. If + not specified, a new system-assigned managed identity + is created. + type: string + tenantId: + description: The tenant id in which the principal resides. + type: string + type: object + type: array + 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 + 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 + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/package/crds/eventhub.azure.upbound.io_namespaceschemagroups.yaml b/package/crds/eventhub.azure.upbound.io_namespaceschemagroups.yaml new file mode 100644 index 000000000..d6601aac1 --- /dev/null +++ b/package/crds/eventhub.azure.upbound.io_namespaceschemagroups.yaml @@ -0,0 +1,386 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: namespaceschemagroups.eventhub.azure.upbound.io +spec: + group: eventhub.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: NamespaceSchemaGroup + listKind: NamespaceSchemaGroupList + plural: namespaceschemagroups + singular: namespaceschemagroup + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: NamespaceSchemaGroup is the Schema for the NamespaceSchemaGroups + API. Manages a Schema Group for a EventHub Namespace. + 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: NamespaceSchemaGroupSpec defines the desired state of NamespaceSchemaGroup + 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. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + namespaceId: + description: The ID of the EventHub Namespace. Changing this forces + a new resource to be created. + type: string + namespaceIdRef: + description: Reference to a EventHubNamespace in eventhub to populate + namespaceId. + 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 + namespaceIdSelector: + description: Selector for a EventHubNamespace in eventhub to populate + namespaceId. + 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 + schemaCompatibility: + description: The compatibility of this schema group. Possible + values are None, Backward, Forward. Changing this forces a new + resource to be created. + type: string + schemaType: + description: The Type of this schema group. Possible values are + Avro, Unknown. Changing this forces a new resource to be created. + type: string + required: + - schemaCompatibility + - schemaType + type: object + 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 + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + 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 + status: + description: NamespaceSchemaGroupStatus defines the observed state of + NamespaceSchemaGroup. + properties: + atProvider: + properties: + id: + description: The ID of the EventHub Namespace Schema Group. + 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 + 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 + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/package/crds/fluidrelay.azure.upbound.io_servers.yaml b/package/crds/fluidrelay.azure.upbound.io_servers.yaml new file mode 100644 index 000000000..2260a7314 --- /dev/null +++ b/package/crds/fluidrelay.azure.upbound.io_servers.yaml @@ -0,0 +1,454 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: servers.fluidrelay.azure.upbound.io +spec: + group: fluidrelay.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: Server + listKind: ServerList + plural: servers + singular: server + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: Server is the Schema for the Servers API. Manages a Fluid Relay + Server. + 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: ServerSpec defines the desired state of Server + 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. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + identity: + description: An identity block as defined below. + items: + properties: + identityIds: + description: Specifies a list of User Assigned Managed Identity + IDs to be assigned to this Fluid Relay Service. + items: + type: string + type: array + type: + description: Specifies the type of Managed Service Identity + that should be configured on this Fluid Relay Service. + Possible values are SystemAssigned,UserAssigned and SystemAssigned, + UserAssigned. + type: string + required: + - type + type: object + type: array + location: + description: The Azure Region where the Fluid Relay Server should + exist. Changing this forces a new Fluid Relay Server to be created. + type: string + name: + description: The name which should be used for this Fluid Relay + Server. Changing this forces a new Fluid Relay Server to be + created. + type: string + resourceGroupName: + description: The name of the Resource Group where the Fluid Relay + Server should exist. Changing this forces a new Fluid Relay + Server to be created. + type: string + resourceGroupNameRef: + description: Reference to a ResourceGroup in azure to populate + resourceGroupName. + 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 + resourceGroupNameSelector: + description: Selector for a ResourceGroup in azure to populate + resourceGroupName. + 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 + storageSku: + description: Sku of the storage associated with the resource, + Possible values are standard and basic. Changing this forces + a new Fluid Relay Server to be created. + type: string + tags: + additionalProperties: + type: string + description: A mapping of tags which should be assigned to the + Fluid Relay Server. + type: object + required: + - location + - name + type: object + 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 + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + 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 + status: + description: ServerStatus defines the observed state of Server. + properties: + atProvider: + properties: + frsTenantId: + description: The Fluid tenantId for this server. + type: string + id: + description: The ID of the Fluid Relay Server. + type: string + identity: + description: An identity block as defined below. + items: + properties: + principalId: + description: The Principal ID for the Service Principal + associated with the Identity of this Fluid Relay Server. + type: string + tenantId: + description: The Tenant ID for the Service Principal associated + with the Identity of this Fluid Relay Server. + type: string + type: object + type: array + ordererEndpoints: + description: An array of the Fluid Relay Orderer endpoints. This + will be deprecated in future version of fluid relay server and + will always be empty, more details. + items: + type: string + type: array + serviceEndpoints: + description: An array of service endpoints for this Fluid Relay + Server. + items: + type: string + type: array + storageEndpoints: + description: An array of storage endpoints for this Fluid Relay + Server. This will be deprecated in future version of fluid relay + server and will always be empty, more details. + items: + type: string + type: array + 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 + 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 + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/package/crds/managedidentity.azure.upbound.io_federatedidentitycredentials.yaml b/package/crds/managedidentity.azure.upbound.io_federatedidentitycredentials.yaml new file mode 100644 index 000000000..5c69beff3 --- /dev/null +++ b/package/crds/managedidentity.azure.upbound.io_federatedidentitycredentials.yaml @@ -0,0 +1,477 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: federatedidentitycredentials.managedidentity.azure.upbound.io +spec: + group: managedidentity.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: FederatedIdentityCredential + listKind: FederatedIdentityCredentialList + plural: federatedidentitycredentials + singular: federatedidentitycredential + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: FederatedIdentityCredential is the Schema for the FederatedIdentityCredentials + API. Manages a Federated Identity Credential. + 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: FederatedIdentityCredentialSpec defines the desired state + of FederatedIdentityCredential + 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. + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + audience: + description: Specifies the audience for this Federated Identity + Credential. Changing this forces a new Federated Identity Credential + to be created. + items: + type: string + type: array + issuer: + description: Specifies the issuer of this Federated Identity Credential. + Changing this forces a new Federated Identity Credential to + be created. + type: string + parentId: + description: Specifies parent ID of User Assigned Identity for + this Federated Identity Credential. Changing this forces a new + Federated Identity Credential to be created. + type: string + parentIdRef: + description: Reference to a UserAssignedIdentity in managedidentity + to populate parentId. + 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 + parentIdSelector: + description: Selector for a UserAssignedIdentity in managedidentity + to populate parentId. + 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 + resourceGroupName: + description: Specifies the name of the Resource Group within which + this Federated Identity Credential should exist. Changing this + forces a new Federated Identity Credential to be created. + type: string + resourceGroupNameRef: + description: Reference to a ResourceGroup in azure to populate + resourceGroupName. + 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 + resourceGroupNameSelector: + description: Selector for a ResourceGroup in azure to populate + resourceGroupName. + 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 + subject: + description: Specifies the subject for this Federated Identity + Credential. Changing this forces a new Federated Identity Credential + to be created. + type: string + required: + - audience + - issuer + - subject + type: object + 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 + providerRef: + description: 'ProviderReference specifies the provider that will be + used to create, observe, update, and delete this managed resource. + Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' + 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 + status: + description: FederatedIdentityCredentialStatus defines the observed state + of FederatedIdentityCredential. + properties: + atProvider: + properties: + id: + description: The ID of the Federated Identity Credential. + 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 + 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 + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: []