From 001bba4df05387b81f76b2458aab63df36ac169a Mon Sep 17 00:00:00 2001 From: Schegolevatych Svetlana Date: Sun, 19 Feb 2023 17:02:30 +0200 Subject: [PATCH] Moving spring_cloud(2) resources to v1beta1 version --- .../v1beta1/zz_generated.deepcopy.go | 165 ++++++ .../v1beta1/zz_generated.managed.go | 66 +++ .../v1beta1/zz_generated.managedlist.go | 9 + .../v1beta1/zz_generated.resolvers.go | 43 ++ .../v1beta1/zz_generated_terraformed.go | 74 +++ .../v1beta1/zz_springcloudapiportal_types.go | 10 + ..._springcloudapiportalcustomdomain_types.go | 94 +++ .../v1beta1/zz_generated.deepcopy.go | 260 +++++++++ .../v1beta1/zz_generated.managed.go | 74 +++ .../v1beta1/zz_generated.managedlist.go | 17 + .../v1beta1/zz_generated.resolvers.go | 58 ++ .../v1beta1/zz_generated_terraformed.go | 88 +++ .../v1beta1/zz_groupversion_info.go | 32 + .../v1beta1/zz_springcloudconnection_types.go | 150 +++++ apis/zz_register.go | 2 + config/appplatform/config.go | 15 + config/externalname.go | 4 + config/externalnamenottested.go | 7 - config/generated.lst | 2 +- config/provider.go | 2 + .../appplatform/springcloudapiportal.yaml | 4 +- .../springcloudapiportalcustomdomain.yaml | 83 +++ .../servicelinker/springcloudconnection.yaml | 159 +++++ .../springcloudapiportalcustomdomain.yaml | 73 +++ .../servicelinker/springcloudconnection.yaml | 143 +++++ .../zz_controller.go | 51 ++ .../springcloudconnection/zz_controller.go | 51 ++ internal/controller/zz_setup.go | 4 + ....io_springcloudapiportalcustomdomains.yaml | 386 ++++++++++++ ...zure.upbound.io_springcloudapiportals.yaml | 78 +++ ...ure.upbound.io_springcloudconnections.yaml | 547 ++++++++++++++++++ 31 files changed, 2741 insertions(+), 10 deletions(-) create mode 100755 apis/appplatform/v1beta1/zz_springcloudapiportalcustomdomain_types.go create mode 100644 apis/servicelinker/v1beta1/zz_generated.deepcopy.go create mode 100644 apis/servicelinker/v1beta1/zz_generated.managed.go create mode 100644 apis/servicelinker/v1beta1/zz_generated.managedlist.go create mode 100644 apis/servicelinker/v1beta1/zz_generated.resolvers.go create mode 100755 apis/servicelinker/v1beta1/zz_generated_terraformed.go create mode 100755 apis/servicelinker/v1beta1/zz_groupversion_info.go create mode 100755 apis/servicelinker/v1beta1/zz_springcloudconnection_types.go create mode 100644 config/appplatform/config.go create mode 100644 examples-generated/appplatform/springcloudapiportalcustomdomain.yaml create mode 100644 examples-generated/servicelinker/springcloudconnection.yaml create mode 100644 examples/appplatform/springcloudapiportalcustomdomain.yaml create mode 100644 examples/servicelinker/springcloudconnection.yaml create mode 100755 internal/controller/appplatform/springcloudapiportalcustomdomain/zz_controller.go create mode 100755 internal/controller/servicelinker/springcloudconnection/zz_controller.go create mode 100644 package/crds/appplatform.azure.upbound.io_springcloudapiportalcustomdomains.yaml create mode 100644 package/crds/servicelinker.azure.upbound.io_springcloudconnections.yaml diff --git a/apis/appplatform/v1beta1/zz_generated.deepcopy.go b/apis/appplatform/v1beta1/zz_generated.deepcopy.go index fdb58eb96..b50f0faf2 100644 --- a/apis/appplatform/v1beta1/zz_generated.deepcopy.go +++ b/apis/appplatform/v1beta1/zz_generated.deepcopy.go @@ -1251,6 +1251,159 @@ func (in *SpringCloudAPIPortal) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpringCloudAPIPortalCustomDomain) DeepCopyInto(out *SpringCloudAPIPortalCustomDomain) { + *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 SpringCloudAPIPortalCustomDomain. +func (in *SpringCloudAPIPortalCustomDomain) DeepCopy() *SpringCloudAPIPortalCustomDomain { + if in == nil { + return nil + } + out := new(SpringCloudAPIPortalCustomDomain) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpringCloudAPIPortalCustomDomain) 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 *SpringCloudAPIPortalCustomDomainList) DeepCopyInto(out *SpringCloudAPIPortalCustomDomainList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SpringCloudAPIPortalCustomDomain, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpringCloudAPIPortalCustomDomainList. +func (in *SpringCloudAPIPortalCustomDomainList) DeepCopy() *SpringCloudAPIPortalCustomDomainList { + if in == nil { + return nil + } + out := new(SpringCloudAPIPortalCustomDomainList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpringCloudAPIPortalCustomDomainList) 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 *SpringCloudAPIPortalCustomDomainObservation) DeepCopyInto(out *SpringCloudAPIPortalCustomDomainObservation) { + *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 SpringCloudAPIPortalCustomDomainObservation. +func (in *SpringCloudAPIPortalCustomDomainObservation) DeepCopy() *SpringCloudAPIPortalCustomDomainObservation { + if in == nil { + return nil + } + out := new(SpringCloudAPIPortalCustomDomainObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpringCloudAPIPortalCustomDomainParameters) DeepCopyInto(out *SpringCloudAPIPortalCustomDomainParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.SpringCloudAPIPortalID != nil { + in, out := &in.SpringCloudAPIPortalID, &out.SpringCloudAPIPortalID + *out = new(string) + **out = **in + } + if in.SpringCloudAPIPortalIDRef != nil { + in, out := &in.SpringCloudAPIPortalIDRef, &out.SpringCloudAPIPortalIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.SpringCloudAPIPortalIDSelector != nil { + in, out := &in.SpringCloudAPIPortalIDSelector, &out.SpringCloudAPIPortalIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Thumbprint != nil { + in, out := &in.Thumbprint, &out.Thumbprint + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpringCloudAPIPortalCustomDomainParameters. +func (in *SpringCloudAPIPortalCustomDomainParameters) DeepCopy() *SpringCloudAPIPortalCustomDomainParameters { + if in == nil { + return nil + } + out := new(SpringCloudAPIPortalCustomDomainParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpringCloudAPIPortalCustomDomainSpec) DeepCopyInto(out *SpringCloudAPIPortalCustomDomainSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpringCloudAPIPortalCustomDomainSpec. +func (in *SpringCloudAPIPortalCustomDomainSpec) DeepCopy() *SpringCloudAPIPortalCustomDomainSpec { + if in == nil { + return nil + } + out := new(SpringCloudAPIPortalCustomDomainSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpringCloudAPIPortalCustomDomainStatus) DeepCopyInto(out *SpringCloudAPIPortalCustomDomainStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpringCloudAPIPortalCustomDomainStatus. +func (in *SpringCloudAPIPortalCustomDomainStatus) DeepCopy() *SpringCloudAPIPortalCustomDomainStatus { + if in == nil { + return nil + } + out := new(SpringCloudAPIPortalCustomDomainStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SpringCloudAPIPortalList) DeepCopyInto(out *SpringCloudAPIPortalList) { *out = *in @@ -1322,6 +1475,18 @@ func (in *SpringCloudAPIPortalParameters) DeepCopyInto(out *SpringCloudAPIPortal } } } + if in.GatewayIdsRefs != nil { + in, out := &in.GatewayIdsRefs, &out.GatewayIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.GatewayIdsSelector != nil { + in, out := &in.GatewayIdsSelector, &out.GatewayIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.HTTPSOnlyEnabled != nil { in, out := &in.HTTPSOnlyEnabled, &out.HTTPSOnlyEnabled *out = new(bool) diff --git a/apis/appplatform/v1beta1/zz_generated.managed.go b/apis/appplatform/v1beta1/zz_generated.managed.go index cb165933d..44ff6a3f5 100644 --- a/apis/appplatform/v1beta1/zz_generated.managed.go +++ b/apis/appplatform/v1beta1/zz_generated.managed.go @@ -73,6 +73,72 @@ func (mg *SpringCloudAPIPortal) SetWriteConnectionSecretToReference(r *xpv1.Secr mg.Spec.WriteConnectionSecretToReference = r } +// GetCondition of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this SpringCloudAPIPortalCustomDomain. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *SpringCloudAPIPortalCustomDomain) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this SpringCloudAPIPortalCustomDomain. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *SpringCloudAPIPortalCustomDomain) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this SpringCloudAccelerator. func (mg *SpringCloudAccelerator) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/appplatform/v1beta1/zz_generated.managedlist.go b/apis/appplatform/v1beta1/zz_generated.managedlist.go index f7008c8df..854d86203 100644 --- a/apis/appplatform/v1beta1/zz_generated.managedlist.go +++ b/apis/appplatform/v1beta1/zz_generated.managedlist.go @@ -7,6 +7,15 @@ package v1beta1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" +// GetItems of this SpringCloudAPIPortalCustomDomainList. +func (l *SpringCloudAPIPortalCustomDomainList) 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 SpringCloudAPIPortalList. func (l *SpringCloudAPIPortalList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/appplatform/v1beta1/zz_generated.resolvers.go b/apis/appplatform/v1beta1/zz_generated.resolvers.go index 8f8594846..c3bd1a327 100644 --- a/apis/appplatform/v1beta1/zz_generated.resolvers.go +++ b/apis/appplatform/v1beta1/zz_generated.resolvers.go @@ -27,8 +27,25 @@ func (mg *SpringCloudAPIPortal) ResolveReferences(ctx context.Context, c client. r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.GatewayIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.GatewayIdsRefs, + Selector: mg.Spec.ForProvider.GatewayIdsSelector, + To: reference.To{ + List: &SpringCloudGatewayList{}, + Managed: &SpringCloudGateway{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.GatewayIds") + } + mg.Spec.ForProvider.GatewayIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.GatewayIdsRefs = mrsp.ResolvedReferences + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.SpringCloudServiceID), Extract: resource.ExtractResourceID(), @@ -48,6 +65,32 @@ func (mg *SpringCloudAPIPortal) ResolveReferences(ctx context.Context, c client. return nil } +// ResolveReferences of this SpringCloudAPIPortalCustomDomain. +func (mg *SpringCloudAPIPortalCustomDomain) 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.SpringCloudAPIPortalID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.SpringCloudAPIPortalIDRef, + Selector: mg.Spec.ForProvider.SpringCloudAPIPortalIDSelector, + To: reference.To{ + List: &SpringCloudAPIPortalList{}, + Managed: &SpringCloudAPIPortal{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.SpringCloudAPIPortalID") + } + mg.Spec.ForProvider.SpringCloudAPIPortalID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.SpringCloudAPIPortalIDRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this SpringCloudAccelerator. func (mg *SpringCloudAccelerator) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) diff --git a/apis/appplatform/v1beta1/zz_generated_terraformed.go b/apis/appplatform/v1beta1/zz_generated_terraformed.go index 4916eb8f2..8e33afb3b 100755 --- a/apis/appplatform/v1beta1/zz_generated_terraformed.go +++ b/apis/appplatform/v1beta1/zz_generated_terraformed.go @@ -235,6 +235,80 @@ func (tr *SpringCloudAPIPortal) GetTerraformSchemaVersion() int { return 1 } +// GetTerraformResourceType returns Terraform resource type for this SpringCloudAPIPortalCustomDomain +func (mg *SpringCloudAPIPortalCustomDomain) GetTerraformResourceType() string { + return "azurerm_spring_cloud_api_portal_custom_domain" +} + +// GetConnectionDetailsMapping for this SpringCloudAPIPortalCustomDomain +func (tr *SpringCloudAPIPortalCustomDomain) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this SpringCloudAPIPortalCustomDomain +func (tr *SpringCloudAPIPortalCustomDomain) 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 SpringCloudAPIPortalCustomDomain +func (tr *SpringCloudAPIPortalCustomDomain) 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 SpringCloudAPIPortalCustomDomain +func (tr *SpringCloudAPIPortalCustomDomain) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this SpringCloudAPIPortalCustomDomain +func (tr *SpringCloudAPIPortalCustomDomain) 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 SpringCloudAPIPortalCustomDomain +func (tr *SpringCloudAPIPortalCustomDomain) 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 SpringCloudAPIPortalCustomDomain using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *SpringCloudAPIPortalCustomDomain) LateInitialize(attrs []byte) (bool, error) { + params := &SpringCloudAPIPortalCustomDomainParameters{} + 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 *SpringCloudAPIPortalCustomDomain) GetTerraformSchemaVersion() int { + return 1 +} + // GetTerraformResourceType returns Terraform resource type for this SpringCloudApp func (mg *SpringCloudApp) GetTerraformResourceType() string { return "azurerm_spring_cloud_app" diff --git a/apis/appplatform/v1beta1/zz_springcloudapiportal_types.go b/apis/appplatform/v1beta1/zz_springcloudapiportal_types.go index 051f31c06..6cdd4d60c 100755 --- a/apis/appplatform/v1beta1/zz_springcloudapiportal_types.go +++ b/apis/appplatform/v1beta1/zz_springcloudapiportal_types.go @@ -25,9 +25,19 @@ type SpringCloudAPIPortalObservation struct { type SpringCloudAPIPortalParameters struct { // Specifies a list of Spring Cloud Gateway. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/appplatform/v1beta1.SpringCloudGateway + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() // +kubebuilder:validation:Optional GatewayIds []*string `json:"gatewayIds,omitempty" tf:"gateway_ids,omitempty"` + // References to SpringCloudGateway in appplatform to populate gatewayIds. + // +kubebuilder:validation:Optional + GatewayIdsRefs []v1.Reference `json:"gatewayIdsRefs,omitempty" tf:"-"` + + // Selector for a list of SpringCloudGateway in appplatform to populate gatewayIds. + // +kubebuilder:validation:Optional + GatewayIdsSelector *v1.Selector `json:"gatewayIdsSelector,omitempty" tf:"-"` + // is only https is allowed? // +kubebuilder:validation:Optional HTTPSOnlyEnabled *bool `json:"httpsOnlyEnabled,omitempty" tf:"https_only_enabled,omitempty"` diff --git a/apis/appplatform/v1beta1/zz_springcloudapiportalcustomdomain_types.go b/apis/appplatform/v1beta1/zz_springcloudapiportalcustomdomain_types.go new file mode 100755 index 000000000..fea6e81aa --- /dev/null +++ b/apis/appplatform/v1beta1/zz_springcloudapiportalcustomdomain_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 SpringCloudAPIPortalCustomDomainObservation struct { + + // The ID of the Spring Cloud API Portal Domain. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type SpringCloudAPIPortalCustomDomainParameters struct { + + // The name which should be used for this Spring Cloud API Portal Domain. Changing this forces a new Spring Cloud API Portal Domain to be created. + // +kubebuilder:validation:Required + Name *string `json:"name" tf:"name,omitempty"` + + // The ID of the Spring Cloud API Portal. Changing this forces a new Spring Cloud API Portal Domain to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/appplatform/v1beta1.SpringCloudAPIPortal + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + SpringCloudAPIPortalID *string `json:"springCloudApiPortalId,omitempty" tf:"spring_cloud_api_portal_id,omitempty"` + + // Reference to a SpringCloudAPIPortal in appplatform to populate springCloudApiPortalId. + // +kubebuilder:validation:Optional + SpringCloudAPIPortalIDRef *v1.Reference `json:"springCloudApiPortalIdRef,omitempty" tf:"-"` + + // Selector for a SpringCloudAPIPortal in appplatform to populate springCloudApiPortalId. + // +kubebuilder:validation:Optional + SpringCloudAPIPortalIDSelector *v1.Selector `json:"springCloudApiPortalIdSelector,omitempty" tf:"-"` + + // Specifies the thumbprint of the Spring Cloud Certificate that binds to the Spring Cloud API Portal Domain. + // +kubebuilder:validation:Optional + Thumbprint *string `json:"thumbprint,omitempty" tf:"thumbprint,omitempty"` +} + +// SpringCloudAPIPortalCustomDomainSpec defines the desired state of SpringCloudAPIPortalCustomDomain +type SpringCloudAPIPortalCustomDomainSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider SpringCloudAPIPortalCustomDomainParameters `json:"forProvider"` +} + +// SpringCloudAPIPortalCustomDomainStatus defines the observed state of SpringCloudAPIPortalCustomDomain. +type SpringCloudAPIPortalCustomDomainStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider SpringCloudAPIPortalCustomDomainObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// SpringCloudAPIPortalCustomDomain is the Schema for the SpringCloudAPIPortalCustomDomains API. Manages a Spring Cloud API Portal Domain. +// +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 SpringCloudAPIPortalCustomDomain struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec SpringCloudAPIPortalCustomDomainSpec `json:"spec"` + Status SpringCloudAPIPortalCustomDomainStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// SpringCloudAPIPortalCustomDomainList contains a list of SpringCloudAPIPortalCustomDomains +type SpringCloudAPIPortalCustomDomainList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []SpringCloudAPIPortalCustomDomain `json:"items"` +} + +// Repository type metadata. +var ( + SpringCloudAPIPortalCustomDomain_Kind = "SpringCloudAPIPortalCustomDomain" + SpringCloudAPIPortalCustomDomain_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: SpringCloudAPIPortalCustomDomain_Kind}.String() + SpringCloudAPIPortalCustomDomain_KindAPIVersion = SpringCloudAPIPortalCustomDomain_Kind + "." + CRDGroupVersion.String() + SpringCloudAPIPortalCustomDomain_GroupVersionKind = CRDGroupVersion.WithKind(SpringCloudAPIPortalCustomDomain_Kind) +) + +func init() { + SchemeBuilder.Register(&SpringCloudAPIPortalCustomDomain{}, &SpringCloudAPIPortalCustomDomainList{}) +} diff --git a/apis/servicelinker/v1beta1/zz_generated.deepcopy.go b/apis/servicelinker/v1beta1/zz_generated.deepcopy.go new file mode 100644 index 000000000..48a796b8f --- /dev/null +++ b/apis/servicelinker/v1beta1/zz_generated.deepcopy.go @@ -0,0 +1,260 @@ +//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 *AuthenticationObservation) DeepCopyInto(out *AuthenticationObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationObservation. +func (in *AuthenticationObservation) DeepCopy() *AuthenticationObservation { + if in == nil { + return nil + } + out := new(AuthenticationObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AuthenticationParameters) DeepCopyInto(out *AuthenticationParameters) { + *out = *in + if in.CertificateSecretRef != nil { + in, out := &in.CertificateSecretRef, &out.CertificateSecretRef + *out = new(v1.SecretKeySelector) + **out = **in + } + if in.ClientID != nil { + in, out := &in.ClientID, &out.ClientID + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.PrincipalID != nil { + in, out := &in.PrincipalID, &out.PrincipalID + *out = new(string) + **out = **in + } + if in.SecretSecretRef != nil { + in, out := &in.SecretSecretRef, &out.SecretSecretRef + *out = new(v1.SecretKeySelector) + **out = **in + } + if in.SubscriptionID != nil { + in, out := &in.SubscriptionID, &out.SubscriptionID + *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 AuthenticationParameters. +func (in *AuthenticationParameters) DeepCopy() *AuthenticationParameters { + if in == nil { + return nil + } + out := new(AuthenticationParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpringCloudConnection) DeepCopyInto(out *SpringCloudConnection) { + *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 SpringCloudConnection. +func (in *SpringCloudConnection) DeepCopy() *SpringCloudConnection { + if in == nil { + return nil + } + out := new(SpringCloudConnection) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpringCloudConnection) 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 *SpringCloudConnectionList) DeepCopyInto(out *SpringCloudConnectionList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SpringCloudConnection, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpringCloudConnectionList. +func (in *SpringCloudConnectionList) DeepCopy() *SpringCloudConnectionList { + if in == nil { + return nil + } + out := new(SpringCloudConnectionList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpringCloudConnectionList) 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 *SpringCloudConnectionObservation) DeepCopyInto(out *SpringCloudConnectionObservation) { + *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 SpringCloudConnectionObservation. +func (in *SpringCloudConnectionObservation) DeepCopy() *SpringCloudConnectionObservation { + if in == nil { + return nil + } + out := new(SpringCloudConnectionObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpringCloudConnectionParameters) DeepCopyInto(out *SpringCloudConnectionParameters) { + *out = *in + if in.Authentication != nil { + in, out := &in.Authentication, &out.Authentication + *out = make([]AuthenticationParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ClientType != nil { + in, out := &in.ClientType, &out.ClientType + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.SpringCloudID != nil { + in, out := &in.SpringCloudID, &out.SpringCloudID + *out = new(string) + **out = **in + } + if in.SpringCloudIDRef != nil { + in, out := &in.SpringCloudIDRef, &out.SpringCloudIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.SpringCloudIDSelector != nil { + in, out := &in.SpringCloudIDSelector, &out.SpringCloudIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.TargetResourceID != nil { + in, out := &in.TargetResourceID, &out.TargetResourceID + *out = new(string) + **out = **in + } + if in.TargetResourceIDRef != nil { + in, out := &in.TargetResourceIDRef, &out.TargetResourceIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.TargetResourceIDSelector != nil { + in, out := &in.TargetResourceIDSelector, &out.TargetResourceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.VnetSolution != nil { + in, out := &in.VnetSolution, &out.VnetSolution + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpringCloudConnectionParameters. +func (in *SpringCloudConnectionParameters) DeepCopy() *SpringCloudConnectionParameters { + if in == nil { + return nil + } + out := new(SpringCloudConnectionParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpringCloudConnectionSpec) DeepCopyInto(out *SpringCloudConnectionSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpringCloudConnectionSpec. +func (in *SpringCloudConnectionSpec) DeepCopy() *SpringCloudConnectionSpec { + if in == nil { + return nil + } + out := new(SpringCloudConnectionSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpringCloudConnectionStatus) DeepCopyInto(out *SpringCloudConnectionStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpringCloudConnectionStatus. +func (in *SpringCloudConnectionStatus) DeepCopy() *SpringCloudConnectionStatus { + if in == nil { + return nil + } + out := new(SpringCloudConnectionStatus) + in.DeepCopyInto(out) + return out +} diff --git a/apis/servicelinker/v1beta1/zz_generated.managed.go b/apis/servicelinker/v1beta1/zz_generated.managed.go new file mode 100644 index 000000000..c5a2594a3 --- /dev/null +++ b/apis/servicelinker/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 SpringCloudConnection. +func (mg *SpringCloudConnection) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this SpringCloudConnection. +func (mg *SpringCloudConnection) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this SpringCloudConnection. +func (mg *SpringCloudConnection) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this SpringCloudConnection. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *SpringCloudConnection) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this SpringCloudConnection. +func (mg *SpringCloudConnection) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this SpringCloudConnection. +func (mg *SpringCloudConnection) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this SpringCloudConnection. +func (mg *SpringCloudConnection) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this SpringCloudConnection. +func (mg *SpringCloudConnection) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this SpringCloudConnection. +func (mg *SpringCloudConnection) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this SpringCloudConnection. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *SpringCloudConnection) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this SpringCloudConnection. +func (mg *SpringCloudConnection) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this SpringCloudConnection. +func (mg *SpringCloudConnection) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/servicelinker/v1beta1/zz_generated.managedlist.go b/apis/servicelinker/v1beta1/zz_generated.managedlist.go new file mode 100644 index 000000000..2f84c05b1 --- /dev/null +++ b/apis/servicelinker/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 SpringCloudConnectionList. +func (l *SpringCloudConnectionList) 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/servicelinker/v1beta1/zz_generated.resolvers.go b/apis/servicelinker/v1beta1/zz_generated.resolvers.go new file mode 100644 index 000000000..ee24a57ed --- /dev/null +++ b/apis/servicelinker/v1beta1/zz_generated.resolvers.go @@ -0,0 +1,58 @@ +/* +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/appplatform/v1beta1" + v1beta11 "github.com/upbound/provider-azure/apis/cosmosdb/v1beta1" + resource "github.com/upbound/upjet/pkg/resource" + client "sigs.k8s.io/controller-runtime/pkg/client" +) + +// ResolveReferences of this SpringCloudConnection. +func (mg *SpringCloudConnection) 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.SpringCloudID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.SpringCloudIDRef, + Selector: mg.Spec.ForProvider.SpringCloudIDSelector, + To: reference.To{ + List: &v1beta1.SpringCloudJavaDeploymentList{}, + Managed: &v1beta1.SpringCloudJavaDeployment{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.SpringCloudID") + } + mg.Spec.ForProvider.SpringCloudID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.SpringCloudIDRef = rsp.ResolvedReference + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.TargetResourceID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.TargetResourceIDRef, + Selector: mg.Spec.ForProvider.TargetResourceIDSelector, + To: reference.To{ + List: &v1beta11.SQLDatabaseList{}, + Managed: &v1beta11.SQLDatabase{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.TargetResourceID") + } + mg.Spec.ForProvider.TargetResourceID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.TargetResourceIDRef = rsp.ResolvedReference + + return nil +} diff --git a/apis/servicelinker/v1beta1/zz_generated_terraformed.go b/apis/servicelinker/v1beta1/zz_generated_terraformed.go new file mode 100755 index 000000000..8e99695f5 --- /dev/null +++ b/apis/servicelinker/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 SpringCloudConnection +func (mg *SpringCloudConnection) GetTerraformResourceType() string { + return "azurerm_spring_cloud_connection" +} + +// GetConnectionDetailsMapping for this SpringCloudConnection +func (tr *SpringCloudConnection) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"authentication[*].certificate": "spec.forProvider.authentication[*].certificateSecretRef", "authentication[*].secret": "spec.forProvider.authentication[*].secretSecretRef"} +} + +// GetObservation of this SpringCloudConnection +func (tr *SpringCloudConnection) 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 SpringCloudConnection +func (tr *SpringCloudConnection) 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 SpringCloudConnection +func (tr *SpringCloudConnection) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this SpringCloudConnection +func (tr *SpringCloudConnection) 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 SpringCloudConnection +func (tr *SpringCloudConnection) 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 SpringCloudConnection using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *SpringCloudConnection) LateInitialize(attrs []byte) (bool, error) { + params := &SpringCloudConnectionParameters{} + 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 *SpringCloudConnection) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/servicelinker/v1beta1/zz_groupversion_info.go b/apis/servicelinker/v1beta1/zz_groupversion_info.go new file mode 100755 index 000000000..e4e65e512 --- /dev/null +++ b/apis/servicelinker/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=servicelinker.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 = "servicelinker.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/servicelinker/v1beta1/zz_springcloudconnection_types.go b/apis/servicelinker/v1beta1/zz_springcloudconnection_types.go new file mode 100755 index 000000000..43da15f10 --- /dev/null +++ b/apis/servicelinker/v1beta1/zz_springcloudconnection_types.go @@ -0,0 +1,150 @@ +/* +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 AuthenticationObservation struct { +} + +type AuthenticationParameters struct { + + // Service principal certificate for servicePrincipal auth. Should be specified when type is set to servicePrincipalCertificate. + // +kubebuilder:validation:Optional + CertificateSecretRef *v1.SecretKeySelector `json:"certificateSecretRef,omitempty" tf:"-"` + + // Client ID for userAssignedIdentity or servicePrincipal auth. Should be specified when type is set to servicePrincipalSecret or servicePrincipalCertificate. When type is set to userAssignedIdentity, client_id and subscription_id should be either both specified or both not specified. + // +kubebuilder:validation:Optional + ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"` + + // Username or account name for secret auth. name and secret should be either both specified or both not specified when type is set to secret. + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // Principal ID for servicePrincipal auth. Should be specified when type is set to servicePrincipalSecret or servicePrincipalCertificate. + // +kubebuilder:validation:Optional + PrincipalID *string `json:"principalId,omitempty" tf:"principal_id,omitempty"` + + // Password or account key for secret auth. secret and name should be either both specified or both not specified when type is set to secret. + // +kubebuilder:validation:Optional + SecretSecretRef *v1.SecretKeySelector `json:"secretSecretRef,omitempty" tf:"-"` + + // Subscription ID for userAssignedIdentity. subscription_id and client_id should be either both specified or both not specified. + // +kubebuilder:validation:Optional + SubscriptionID *string `json:"subscriptionId,omitempty" tf:"subscription_id,omitempty"` + + // The authentication type. Possible values are systemAssignedIdentity, userAssignedIdentity, servicePrincipalSecret, servicePrincipalCertificate, secret. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Type *string `json:"type" tf:"type,omitempty"` +} + +type SpringCloudConnectionObservation struct { + + // The ID of the service connector. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type SpringCloudConnectionParameters struct { + + // The authentication info. An authentication block as defined below. + // +kubebuilder:validation:Required + Authentication []AuthenticationParameters `json:"authentication" tf:"authentication,omitempty"` + + // The application client type. Possible values are none, dotnet, java, python, go, php, ruby, django, nodejs and springBoot. + // +kubebuilder:validation:Optional + ClientType *string `json:"clientType,omitempty" tf:"client_type,omitempty"` + + // The name of the service connection. Changing this forces a new resource to be created. + // +kubebuilder:validation:Required + Name *string `json:"name" tf:"name,omitempty"` + + // The ID of the data source spring cloud. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/appplatform/v1beta1.SpringCloudJavaDeployment + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + SpringCloudID *string `json:"springCloudId,omitempty" tf:"spring_cloud_id,omitempty"` + + // Reference to a SpringCloudJavaDeployment in appplatform to populate springCloudId. + // +kubebuilder:validation:Optional + SpringCloudIDRef *v1.Reference `json:"springCloudIdRef,omitempty" tf:"-"` + + // Selector for a SpringCloudJavaDeployment in appplatform to populate springCloudId. + // +kubebuilder:validation:Optional + SpringCloudIDSelector *v1.Selector `json:"springCloudIdSelector,omitempty" tf:"-"` + + // The ID of the target resource. Changing this forces a new resource to be created. Possible values are Postgres, PostgresFlexible, Mysql, Sql, Redis, RedisEnterprise, CosmosCassandra, CosmosGremlin, CosmosMongo, CosmosSql, CosmosTable, StorageBlob, StorageQueue, StorageFile, StorageTable, AppConfig, EventHub, ServiceBus, SignalR, WebPubSub, ConfluentKafka. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/cosmosdb/v1beta1.SQLDatabase + // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + TargetResourceID *string `json:"targetResourceId,omitempty" tf:"target_resource_id,omitempty"` + + // Reference to a SQLDatabase in cosmosdb to populate targetResourceId. + // +kubebuilder:validation:Optional + TargetResourceIDRef *v1.Reference `json:"targetResourceIdRef,omitempty" tf:"-"` + + // Selector for a SQLDatabase in cosmosdb to populate targetResourceId. + // +kubebuilder:validation:Optional + TargetResourceIDSelector *v1.Selector `json:"targetResourceIdSelector,omitempty" tf:"-"` + + // The type of the VNet solution. Possible values are serviceEndpoint, privateLink. + // +kubebuilder:validation:Optional + VnetSolution *string `json:"vnetSolution,omitempty" tf:"vnet_solution,omitempty"` +} + +// SpringCloudConnectionSpec defines the desired state of SpringCloudConnection +type SpringCloudConnectionSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider SpringCloudConnectionParameters `json:"forProvider"` +} + +// SpringCloudConnectionStatus defines the observed state of SpringCloudConnection. +type SpringCloudConnectionStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider SpringCloudConnectionObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// SpringCloudConnection is the Schema for the SpringCloudConnections API. Manages a service connector for spring cloud app. +// +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 SpringCloudConnection struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec SpringCloudConnectionSpec `json:"spec"` + Status SpringCloudConnectionStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// SpringCloudConnectionList contains a list of SpringCloudConnections +type SpringCloudConnectionList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []SpringCloudConnection `json:"items"` +} + +// Repository type metadata. +var ( + SpringCloudConnection_Kind = "SpringCloudConnection" + SpringCloudConnection_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: SpringCloudConnection_Kind}.String() + SpringCloudConnection_KindAPIVersion = SpringCloudConnection_Kind + "." + CRDGroupVersion.String() + SpringCloudConnection_GroupVersionKind = CRDGroupVersion.WithKind(SpringCloudConnection_Kind) +) + +func init() { + SchemeBuilder.Register(&SpringCloudConnection{}, &SpringCloudConnectionList{}) +} diff --git a/apis/zz_register.go b/apis/zz_register.go index e1e8da7dd..7e8917409 100755 --- a/apis/zz_register.go +++ b/apis/zz_register.go @@ -85,6 +85,7 @@ import ( v1beta1securityinsights "github.com/upbound/provider-azure/apis/securityinsights/v1beta1" v1beta1servicebus "github.com/upbound/provider-azure/apis/servicebus/v1beta1" v1beta1servicefabric "github.com/upbound/provider-azure/apis/servicefabric/v1beta1" + v1beta1servicelinker "github.com/upbound/provider-azure/apis/servicelinker/v1beta1" v1beta1signalrservice "github.com/upbound/provider-azure/apis/signalrservice/v1beta1" v1beta1solutions "github.com/upbound/provider-azure/apis/solutions/v1beta1" v1beta1spring "github.com/upbound/provider-azure/apis/spring/v1beta1" @@ -179,6 +180,7 @@ func init() { v1beta1securityinsights.SchemeBuilder.AddToScheme, v1beta1servicebus.SchemeBuilder.AddToScheme, v1beta1servicefabric.SchemeBuilder.AddToScheme, + v1beta1servicelinker.SchemeBuilder.AddToScheme, v1beta1signalrservice.SchemeBuilder.AddToScheme, v1beta1solutions.SchemeBuilder.AddToScheme, v1beta1spring.SchemeBuilder.AddToScheme, diff --git a/config/appplatform/config.go b/config/appplatform/config.go new file mode 100644 index 000000000..b12b49a49 --- /dev/null +++ b/config/appplatform/config.go @@ -0,0 +1,15 @@ +package appplatform + +import ( + "github.com/upbound/upjet/pkg/config" +) + +// Configure configures appplatform group +func Configure(p *config.Provider) { + p.AddResourceConfigurator("azurerm_spring_cloud_api_portal", func(r *config.Resource) { + r.References["gateway_ids"] = config.Reference{ + Type: "github.com/upbound/provider-azure/apis/appplatform/v1beta1.SpringCloudGateway", + Extractor: "github.com/upbound/upjet/pkg/resource.ExtractResourceID()", + } + }) +} diff --git a/config/externalname.go b/config/externalname.go index 2577bcbb5..1996391f0 100644 --- a/config/externalname.go +++ b/config/externalname.go @@ -848,6 +848,10 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "azurerm_spring_cloud_service": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.AppPlatform/spring/{{ .external_name }}"), // /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/storages/storage1 "azurerm_spring_cloud_storage": config.TemplatedStringAsIdentifier("name", "{{ .parameters.spring_cloud_service_id }}/storages/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/apiPortals/apiPortal1/domains/domain1 + "azurerm_spring_cloud_api_portal_custom_domain": config.IdentifierFromProvider, + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AppPlatform/Spring/springcloud/apps/springcloudapp/deployments/deployment/providers/Microsoft.ServiceLinker/linkers/serviceconnector1 + "azurerm_spring_cloud_connection": config.IdentifierFromProvider, // analysisservices // diff --git a/config/externalnamenottested.go b/config/externalnamenottested.go index 32e3231b8..e0fca6282 100644 --- a/config/externalnamenottested.go +++ b/config/externalnamenottested.go @@ -577,13 +577,6 @@ var ExternalNameNotTestedConfigs = map[string]config.ExternalName{ // /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ManagedServices/registrationDefinitions/00000000-0000-0000-0000-000000000000 "azurerm_lighthouse_definition": config.IdentifierFromProvider, - // spring_cloud - // - // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/apiPortals/apiPortal1/domains/domain1 - "azurerm_spring_cloud_api_portal_custom_domain": config.TemplatedStringAsIdentifier("name", "{{ .parameters.spring_cloud_api_portal_id }}/domains/{{ .external_name }}"), - // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AppPlatform/Spring/springcloud/apps/springcloudapp/deployments/deployment/providers/Microsoft.ServiceLinker/linkers/serviceconnector1 - "azurerm_spring_cloud_connection": config.IdentifierFromProvider, - // resource_group // // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.PolicyInsights/remediations/remediation1 diff --git a/config/generated.lst b/config/generated.lst index a03b15053..9933d8251 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_certificate_order","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_insights_standard_web_test","azurerm_application_insights_web_test","azurerm_application_insights_workbook","azurerm_application_insights_workbook_template","azurerm_application_security_group","azurerm_attestation_provider","azurerm_automation_account","azurerm_automation_connection","azurerm_automation_connection_classic_certificate","azurerm_automation_connection_type","azurerm_automation_credential","azurerm_automation_hybrid_runbook_worker_group","azurerm_automation_module","azurerm_automation_runbook","azurerm_automation_schedule","azurerm_automation_variable_bool","azurerm_automation_variable_datetime","azurerm_automation_variable_int","azurerm_automation_variable_string","azurerm_automation_webhook","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_capacity_reservation","azurerm_capacity_reservation_group","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_cost_anomaly_alert","azurerm_custom_provider","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_active_slot","azurerm_function_app_function","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_medtech_service","azurerm_healthcare_medtech_service_fhir_destination","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_eventhub","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_certificate","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_contacts","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_lab","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_logz_monitor","azurerm_logz_sub_account","azurerm_logz_sub_account_tag_rule","azurerm_logz_tag_rule","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_job","azurerm_media_live_event","azurerm_media_live_event_output","azurerm_media_services_account","azurerm_media_services_account_filter","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_database_extended_auditing_policy","azurerm_mssql_database_vulnerability_assessment_rule_baseline","azurerm_mssql_elasticpool","azurerm_mssql_failover_group","azurerm_mssql_firewall_rule","azurerm_mssql_job_agent","azurerm_mssql_job_credential","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_microsoft_support_auditing_policy","azurerm_mssql_server_security_alert_policy","azurerm_mssql_server_transparent_data_encryption","azurerm_mssql_server_vulnerability_assessment","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_manager","azurerm_network_manager_management_group_connection","azurerm_network_manager_network_group","azurerm_network_manager_static_member","azurerm_network_manager_subscription_connection","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_orbital_contact_profile","azurerm_orbital_spacecraft","azurerm_orchestrated_virtual_machine_scale_set","azurerm_point_to_site_vpn_gateway","azurerm_policy_definition","azurerm_policy_virtual_machine_configuration_assignment","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_resolver","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_endpoint_application_security_group_association","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_deployment_script_azure_cli","azurerm_resource_deployment_script_azure_power_shell","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_search_shared_private_link_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_fusion","azurerm_sentinel_alert_rule_machine_learning_behavior_analytics","azurerm_sentinel_alert_rule_ms_security_incident","azurerm_sentinel_automation_rule","azurerm_sentinel_data_connector_iot","azurerm_sentinel_log_analytics_workspace_onboarding","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","azurerm_shared_image_gallery","azurerm_signalr_service","azurerm_signalr_service_network_acl","azurerm_signalr_shared_private_link_resource","azurerm_site_recovery_fabric","azurerm_site_recovery_network_mapping","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_accelerator","azurerm_spring_cloud_active_deployment","azurerm_spring_cloud_api_portal","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_application_live_view","azurerm_spring_cloud_build_deployment","azurerm_spring_cloud_build_pack_binding","azurerm_spring_cloud_builder","azurerm_spring_cloud_certificate","azurerm_spring_cloud_configuration_service","azurerm_spring_cloud_container_deployment","azurerm_spring_cloud_custom_domain","azurerm_spring_cloud_customized_accelerator","azurerm_spring_cloud_dev_tool_portal","azurerm_spring_cloud_gateway","azurerm_spring_cloud_gateway_custom_domain","azurerm_spring_cloud_java_deployment","azurerm_spring_cloud_service","azurerm_spring_cloud_storage","azurerm_ssh_public_key","azurerm_stack_hci_cluster","azurerm_static_site","azurerm_storage_account","azurerm_storage_account_local_user","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_eventhub","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_reference_input_mssql","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_sql_aad_admin","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_hub_connection","azurerm_virtual_hub_ip","azurerm_virtual_hub_route_table","azurerm_virtual_hub_route_table_route","azurerm_virtual_hub_security_partner_provider","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_server_configuration_policy_group","azurerm_vpn_site","azurerm_web_app_active_slot","azurerm_web_application_firewall_policy","azurerm_web_pubsub","azurerm_web_pubsub_hub","azurerm_web_pubsub_network_acl","azurerm_windows_function_app","azurerm_windows_function_app_slot","azurerm_windows_virtual_machine","azurerm_windows_virtual_machine_scale_set","azurerm_windows_web_app","azurerm_windows_web_app_slot"] \ 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_certificate_order","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_insights_standard_web_test","azurerm_application_insights_web_test","azurerm_application_insights_workbook","azurerm_application_insights_workbook_template","azurerm_application_security_group","azurerm_attestation_provider","azurerm_automation_account","azurerm_automation_connection","azurerm_automation_connection_classic_certificate","azurerm_automation_connection_type","azurerm_automation_credential","azurerm_automation_hybrid_runbook_worker_group","azurerm_automation_module","azurerm_automation_runbook","azurerm_automation_schedule","azurerm_automation_variable_bool","azurerm_automation_variable_datetime","azurerm_automation_variable_int","azurerm_automation_variable_string","azurerm_automation_webhook","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_capacity_reservation","azurerm_capacity_reservation_group","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_cost_anomaly_alert","azurerm_custom_provider","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_active_slot","azurerm_function_app_function","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_medtech_service","azurerm_healthcare_medtech_service_fhir_destination","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_eventhub","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_certificate","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_contacts","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_lab","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_logz_monitor","azurerm_logz_sub_account","azurerm_logz_sub_account_tag_rule","azurerm_logz_tag_rule","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_job","azurerm_media_live_event","azurerm_media_live_event_output","azurerm_media_services_account","azurerm_media_services_account_filter","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_database_extended_auditing_policy","azurerm_mssql_database_vulnerability_assessment_rule_baseline","azurerm_mssql_elasticpool","azurerm_mssql_failover_group","azurerm_mssql_firewall_rule","azurerm_mssql_job_agent","azurerm_mssql_job_credential","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_microsoft_support_auditing_policy","azurerm_mssql_server_security_alert_policy","azurerm_mssql_server_transparent_data_encryption","azurerm_mssql_server_vulnerability_assessment","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_manager","azurerm_network_manager_management_group_connection","azurerm_network_manager_network_group","azurerm_network_manager_static_member","azurerm_network_manager_subscription_connection","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_orbital_contact_profile","azurerm_orbital_spacecraft","azurerm_orchestrated_virtual_machine_scale_set","azurerm_point_to_site_vpn_gateway","azurerm_policy_definition","azurerm_policy_virtual_machine_configuration_assignment","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_resolver","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_endpoint_application_security_group_association","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_deployment_script_azure_cli","azurerm_resource_deployment_script_azure_power_shell","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_search_shared_private_link_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_fusion","azurerm_sentinel_alert_rule_machine_learning_behavior_analytics","azurerm_sentinel_alert_rule_ms_security_incident","azurerm_sentinel_automation_rule","azurerm_sentinel_data_connector_iot","azurerm_sentinel_log_analytics_workspace_onboarding","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","azurerm_shared_image_gallery","azurerm_signalr_service","azurerm_signalr_service_network_acl","azurerm_signalr_shared_private_link_resource","azurerm_site_recovery_fabric","azurerm_site_recovery_network_mapping","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_accelerator","azurerm_spring_cloud_active_deployment","azurerm_spring_cloud_api_portal","azurerm_spring_cloud_api_portal_custom_domain","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_application_live_view","azurerm_spring_cloud_build_deployment","azurerm_spring_cloud_build_pack_binding","azurerm_spring_cloud_builder","azurerm_spring_cloud_certificate","azurerm_spring_cloud_configuration_service","azurerm_spring_cloud_connection","azurerm_spring_cloud_container_deployment","azurerm_spring_cloud_custom_domain","azurerm_spring_cloud_customized_accelerator","azurerm_spring_cloud_dev_tool_portal","azurerm_spring_cloud_gateway","azurerm_spring_cloud_gateway_custom_domain","azurerm_spring_cloud_java_deployment","azurerm_spring_cloud_service","azurerm_spring_cloud_storage","azurerm_ssh_public_key","azurerm_stack_hci_cluster","azurerm_static_site","azurerm_storage_account","azurerm_storage_account_local_user","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_eventhub","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_reference_input_mssql","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_sql_aad_admin","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_hub_connection","azurerm_virtual_hub_ip","azurerm_virtual_hub_route_table","azurerm_virtual_hub_route_table_route","azurerm_virtual_hub_security_partner_provider","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_server_configuration_policy_group","azurerm_vpn_site","azurerm_web_app_active_slot","azurerm_web_application_firewall_policy","azurerm_web_pubsub","azurerm_web_pubsub_hub","azurerm_web_pubsub_network_acl","azurerm_windows_function_app","azurerm_windows_function_app_slot","azurerm_windows_virtual_machine","azurerm_windows_virtual_machine_scale_set","azurerm_windows_web_app","azurerm_windows_web_app_slot"] \ No newline at end of file diff --git a/config/provider.go b/config/provider.go index 4f5baed99..3abedc020 100644 --- a/config/provider.go +++ b/config/provider.go @@ -25,6 +25,7 @@ import ( "github.com/upbound/provider-azure/config/alertsmanagement" "github.com/upbound/provider-azure/config/apimanagement" + "github.com/upbound/provider-azure/config/appplatform" "github.com/upbound/provider-azure/config/authorization" "github.com/upbound/provider-azure/config/automation" "github.com/upbound/provider-azure/config/base" @@ -215,6 +216,7 @@ func GetProvider() *tjconfig.Provider { cdn.Configure, certificateregistration.Configure, orbital.Configure, + appplatform.Configure, } { configure(pc) } diff --git a/examples-generated/appplatform/springcloudapiportal.yaml b/examples-generated/appplatform/springcloudapiportal.yaml index 32ebbfd9a..3ada0b2cf 100644 --- a/examples-generated/appplatform/springcloudapiportal.yaml +++ b/examples-generated/appplatform/springcloudapiportal.yaml @@ -8,8 +8,8 @@ metadata: name: example spec: forProvider: - gatewayIds: - - ${azurerm_spring_cloud_gateway.example.id} + gatewayIdsRefs: + - name: example httpsOnlyEnabled: false instanceCount: 1 publicNetworkAccessEnabled: true diff --git a/examples-generated/appplatform/springcloudapiportalcustomdomain.yaml b/examples-generated/appplatform/springcloudapiportalcustomdomain.yaml new file mode 100644 index 000000000..6ff3af83a --- /dev/null +++ b/examples-generated/appplatform/springcloudapiportalcustomdomain.yaml @@ -0,0 +1,83 @@ +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudAPIPortalCustomDomain +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + name: example.com + springCloudApiPortalIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudAPIPortal +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + gatewayIdsRefs: + - name: example + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudGateway +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 + +--- + diff --git a/examples-generated/servicelinker/springcloudconnection.yaml b/examples-generated/servicelinker/springcloudconnection.yaml new file mode 100644 index 000000000..23a2db132 --- /dev/null +++ b/examples-generated/servicelinker/springcloudconnection.yaml @@ -0,0 +1,159 @@ +apiVersion: servicelinker.azure.upbound.io/v1beta1 +kind: SpringCloudConnection +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + authentication: + - type: systemAssignedIdentity + name: example-serviceconnector + springCloudIdSelector: + matchLabels: + testing.upbound.io/example-name: example + targetResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta1 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + consistencyPolicy: + - consistencyLevel: BoundedStaleness + maxIntervalInSeconds: 10 + maxStalenessPrefix: 200 + geoLocation: + - failoverPriority: 0 + location: West Europe + kind: GlobalDocumentDB + location: West Europe + offerType: Standard + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta1 +kind: SQLContainer +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + databaseNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionKeyPath: /definition + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta1 +kind: SQLDatabase +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + throughput: 400 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudApp +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + identity: + - type: SystemAssigned + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serviceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudJavaDeployment +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + springCloudAppIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + 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/appplatform/springcloudapiportalcustomdomain.yaml b/examples/appplatform/springcloudapiportalcustomdomain.yaml new file mode 100644 index 000000000..9c65d01ae --- /dev/null +++ b/examples/appplatform/springcloudapiportalcustomdomain.yaml @@ -0,0 +1,73 @@ +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudAPIPortalCustomDomain +metadata: + annotations: + uptest.upbound.io/timeout: "7200" + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + name: default.azuremicroservices.io + springCloudApiPortalIdSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: rgspringcloud + name: rgspringcloud +spec: + forProvider: + location: West Europe +--- +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudAPIPortal +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + gatewayIdsRefs: + - name: default + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudGateway +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportalcustomdomain + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloud + skuName: E0 \ No newline at end of file diff --git a/examples/servicelinker/springcloudconnection.yaml b/examples/servicelinker/springcloudconnection.yaml new file mode 100644 index 000000000..6708aa23a --- /dev/null +++ b/examples/servicelinker/springcloudconnection.yaml @@ -0,0 +1,143 @@ +apiVersion: servicelinker.azure.upbound.io/v1beta1 +kind: SpringCloudConnection +metadata: + annotations: + uptest.upbound.io/timeout: "3600" + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + authentication: + - type: systemAssignedIdentity + name: example_serviceconnector + springCloudIdSelector: + matchLabels: + testing.upbound.io/example-name: example + targetResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: cosmosdb.azure.upbound.io/v1beta1 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default-${Rand.RFC1123Subdomain} +spec: + forProvider: + consistencyPolicy: + - consistencyLevel: BoundedStaleness + maxIntervalInSeconds: 10 + maxStalenessPrefix: 200 + geoLocation: + - failoverPriority: 0 + location: West Europe + kind: GlobalDocumentDB + location: West Europe + offerType: Standard + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection +--- +apiVersion: cosmosdb.azure.upbound.io/v1beta1 +kind: SQLContainer +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + databaseNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionKeyPath: /definition + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection +--- +apiVersion: cosmosdb.azure.upbound.io/v1beta1 +kind: SQLDatabase +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection + throughput: 400 +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: rgspringcloudconnection + name: rgspringcloudconnection +spec: + forProvider: + location: West Europe +--- +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudApp +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + identity: + - type: SystemAssigned + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection + serviceNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudJavaDeployment +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + springCloudAppIdSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection \ No newline at end of file diff --git a/internal/controller/appplatform/springcloudapiportalcustomdomain/zz_controller.go b/internal/controller/appplatform/springcloudapiportalcustomdomain/zz_controller.go new file mode 100755 index 000000000..656329d7f --- /dev/null +++ b/internal/controller/appplatform/springcloudapiportalcustomdomain/zz_controller.go @@ -0,0 +1,51 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package springcloudapiportalcustomdomain + +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/appplatform/v1beta1" +) + +// Setup adds a controller that reconciles SpringCloudAPIPortalCustomDomain managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.SpringCloudAPIPortalCustomDomain_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.SpringCloudAPIPortalCustomDomain_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_spring_cloud_api_portal_custom_domain"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.SpringCloudAPIPortalCustomDomain_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.SpringCloudAPIPortalCustomDomain{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/servicelinker/springcloudconnection/zz_controller.go b/internal/controller/servicelinker/springcloudconnection/zz_controller.go new file mode 100755 index 000000000..a8d9727a9 --- /dev/null +++ b/internal/controller/servicelinker/springcloudconnection/zz_controller.go @@ -0,0 +1,51 @@ +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package springcloudconnection + +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/servicelinker/v1beta1" +) + +// Setup adds a controller that reconciles SpringCloudConnection managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.SpringCloudConnection_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.SpringCloudConnection_GroupVersionKind), + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["azurerm_spring_cloud_connection"], + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.SpringCloudConnection_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.SpringCloudConnection{}). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index c276b599d..398ed3720 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -53,6 +53,7 @@ import ( springcloudaccelerator "github.com/upbound/provider-azure/internal/controller/appplatform/springcloudaccelerator" springcloudactivedeployment "github.com/upbound/provider-azure/internal/controller/appplatform/springcloudactivedeployment" springcloudapiportal "github.com/upbound/provider-azure/internal/controller/appplatform/springcloudapiportal" + springcloudapiportalcustomdomain "github.com/upbound/provider-azure/internal/controller/appplatform/springcloudapiportalcustomdomain" springcloudapp "github.com/upbound/provider-azure/internal/controller/appplatform/springcloudapp" springcloudappcosmosdbassociation "github.com/upbound/provider-azure/internal/controller/appplatform/springcloudappcosmosdbassociation" springcloudappmysqlassociation "github.com/upbound/provider-azure/internal/controller/appplatform/springcloudappmysqlassociation" @@ -588,6 +589,7 @@ import ( topicauthorizationrule "github.com/upbound/provider-azure/internal/controller/servicebus/topicauthorizationrule" clusterservicefabric "github.com/upbound/provider-azure/internal/controller/servicefabric/cluster" managedcluster "github.com/upbound/provider-azure/internal/controller/servicefabric/managedcluster" + springcloudconnection "github.com/upbound/provider-azure/internal/controller/servicelinker/springcloudconnection" networkacl "github.com/upbound/provider-azure/internal/controller/signalrservice/networkacl" servicesignalrservice "github.com/upbound/provider-azure/internal/controller/signalrservice/service" signalrsharedprivatelinkresource "github.com/upbound/provider-azure/internal/controller/signalrservice/signalrsharedprivatelinkresource" @@ -747,6 +749,7 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { springcloudaccelerator.Setup, springcloudactivedeployment.Setup, springcloudapiportal.Setup, + springcloudapiportalcustomdomain.Setup, springcloudapp.Setup, springcloudappcosmosdbassociation.Setup, springcloudappmysqlassociation.Setup, @@ -1282,6 +1285,7 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { topicauthorizationrule.Setup, clusterservicefabric.Setup, managedcluster.Setup, + springcloudconnection.Setup, networkacl.Setup, servicesignalrservice.Setup, signalrsharedprivatelinkresource.Setup, diff --git a/package/crds/appplatform.azure.upbound.io_springcloudapiportalcustomdomains.yaml b/package/crds/appplatform.azure.upbound.io_springcloudapiportalcustomdomains.yaml new file mode 100644 index 000000000..688a73a44 --- /dev/null +++ b/package/crds/appplatform.azure.upbound.io_springcloudapiportalcustomdomains.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: springcloudapiportalcustomdomains.appplatform.azure.upbound.io +spec: + group: appplatform.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: SpringCloudAPIPortalCustomDomain + listKind: SpringCloudAPIPortalCustomDomainList + plural: springcloudapiportalcustomdomains + singular: springcloudapiportalcustomdomain + 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: SpringCloudAPIPortalCustomDomain is the Schema for the SpringCloudAPIPortalCustomDomains + API. Manages a Spring Cloud API Portal Domain. + 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: SpringCloudAPIPortalCustomDomainSpec defines the desired + state of SpringCloudAPIPortalCustomDomain + 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: + name: + description: The name which should be used for this Spring Cloud + API Portal Domain. Changing this forces a new Spring Cloud API + Portal Domain to be created. + type: string + springCloudApiPortalId: + description: The ID of the Spring Cloud API Portal. Changing this + forces a new Spring Cloud API Portal Domain to be created. + type: string + springCloudApiPortalIdRef: + description: Reference to a SpringCloudAPIPortal in appplatform + to populate springCloudApiPortalId. + 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 + springCloudApiPortalIdSelector: + description: Selector for a SpringCloudAPIPortal in appplatform + to populate springCloudApiPortalId. + 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 + thumbprint: + description: Specifies the thumbprint of the Spring Cloud Certificate + that binds to the Spring Cloud API Portal Domain. + type: string + required: + - 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: SpringCloudAPIPortalCustomDomainStatus defines the observed + state of SpringCloudAPIPortalCustomDomain. + properties: + atProvider: + properties: + id: + description: The ID of the Spring Cloud API Portal Domain. + 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/appplatform.azure.upbound.io_springcloudapiportals.yaml b/package/crds/appplatform.azure.upbound.io_springcloudapiportals.yaml index 6a2197dd8..7058fa489 100644 --- a/package/crds/appplatform.azure.upbound.io_springcloudapiportals.yaml +++ b/package/crds/appplatform.azure.upbound.io_springcloudapiportals.yaml @@ -69,6 +69,84 @@ spec: items: type: string type: array + gatewayIdsRefs: + description: References to SpringCloudGateway in appplatform to + populate gatewayIds. + items: + description: A Reference to a named object. + 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 + type: array + gatewayIdsSelector: + description: Selector for a list of SpringCloudGateway in appplatform + to populate gatewayIds. + 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 httpsOnlyEnabled: description: is only https is allowed? type: boolean diff --git a/package/crds/servicelinker.azure.upbound.io_springcloudconnections.yaml b/package/crds/servicelinker.azure.upbound.io_springcloudconnections.yaml new file mode 100644 index 000000000..ea32465f1 --- /dev/null +++ b/package/crds/servicelinker.azure.upbound.io_springcloudconnections.yaml @@ -0,0 +1,547 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: springcloudconnections.servicelinker.azure.upbound.io +spec: + group: servicelinker.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: SpringCloudConnection + listKind: SpringCloudConnectionList + plural: springcloudconnections + singular: springcloudconnection + 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: SpringCloudConnection is the Schema for the SpringCloudConnections + API. Manages a service connector for spring cloud app. + 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: SpringCloudConnectionSpec defines the desired state of SpringCloudConnection + 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: + authentication: + description: The authentication info. An authentication block + as defined below. + items: + properties: + certificateSecretRef: + description: Service principal certificate for servicePrincipal + auth. Should be specified when type is set to servicePrincipalCertificate. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + clientId: + description: Client ID for userAssignedIdentity or servicePrincipal + auth. Should be specified when type is set to servicePrincipalSecret + or servicePrincipalCertificate. When type is set to userAssignedIdentity, + client_id and subscription_id should be either both specified + or both not specified. + type: string + name: + description: Username or account name for secret auth. name + and secret should be either both specified or both not + specified when type is set to secret. + type: string + principalId: + description: Principal ID for servicePrincipal auth. Should + be specified when type is set to servicePrincipalSecret + or servicePrincipalCertificate. + type: string + secretSecretRef: + description: Password or account key for secret auth. secret + and name should be either both specified or both not specified + when type is set to secret. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + subscriptionId: + description: Subscription ID for userAssignedIdentity. subscription_id + and client_id should be either both specified or both + not specified. + type: string + type: + description: The authentication type. Possible values are + systemAssignedIdentity, userAssignedIdentity, servicePrincipalSecret, + servicePrincipalCertificate, secret. Changing this forces + a new resource to be created. + type: string + required: + - type + type: object + type: array + clientType: + description: The application client type. Possible values are + none, dotnet, java, python, go, php, ruby, django, nodejs and + springBoot. + type: string + name: + description: The name of the service connection. Changing this + forces a new resource to be created. + type: string + springCloudId: + description: The ID of the data source spring cloud. Changing + this forces a new resource to be created. + type: string + springCloudIdRef: + description: Reference to a SpringCloudJavaDeployment in appplatform + to populate springCloudId. + 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 + springCloudIdSelector: + description: Selector for a SpringCloudJavaDeployment in appplatform + to populate springCloudId. + 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 + targetResourceId: + description: The ID of the target resource. Changing this forces + a new resource to be created. Possible values are Postgres, + PostgresFlexible, Mysql, Sql, Redis, RedisEnterprise, CosmosCassandra, + CosmosGremlin, CosmosMongo, CosmosSql, CosmosTable, StorageBlob, + StorageQueue, StorageFile, StorageTable, AppConfig, EventHub, + ServiceBus, SignalR, WebPubSub, ConfluentKafka. + type: string + targetResourceIdRef: + description: Reference to a SQLDatabase in cosmosdb to populate + targetResourceId. + 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 + targetResourceIdSelector: + description: Selector for a SQLDatabase in cosmosdb to populate + targetResourceId. + 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 + vnetSolution: + description: The type of the VNet solution. Possible values are + serviceEndpoint, privateLink. + type: string + required: + - authentication + - 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: SpringCloudConnectionStatus defines the observed state of + SpringCloudConnection. + properties: + atProvider: + properties: + id: + description: The ID of the service connector. + 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: []