From e565b12508bbf80cc719b6dbcd1d7513243df581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergen=20Yal=C3=A7=C4=B1n?= Date: Mon, 20 May 2024 12:49:51 +0300 Subject: [PATCH 1/4] Make MaxItems values consistent between JSON schema and provider schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergen Yalçın --- .../v1beta2/zz_generated.deepcopy.go | 18 +- .../v1beta2/zz_management_types.go | 6 +- .../v1beta2/zz_generated.deepcopy.go | 72 +- .../v1beta2/zz_generated.resolvers.go | 60 +- .../v1beta2/zz_registry_types.go | 24 +- .../v1beta2/zz_eventhubnamespace_types.go | 6 +- .../eventhub/v1beta2/zz_generated.deepcopy.go | 18 +- .../v1beta2/zz_generated.resolvers.go | 32 +- .../v1beta1/zz_generated.conversion_hubs.go | 3 - .../v1beta1/zz_generated.conversion_spokes.go | 20 + .../v1beta2/zz_generated.conversion_hubs.go | 3 + apis/network/v1beta2/zz_generated.deepcopy.go | 365 +++++++ apis/network/v1beta2/zz_generated.managed.go | 60 ++ .../v1beta2/zz_generated.managedlist.go | 9 + .../network/v1beta2/zz_generated.resolvers.go | 31 + .../v1beta2/zz_routefilter_terraformed.go | 129 +++ apis/network/v1beta2/zz_routefilter_types.go | 185 ++++ apis/web/v1beta2/zz_functionapp_types.go | 12 +- apis/web/v1beta2/zz_functionappslot_types.go | 12 +- apis/web/v1beta2/zz_generated.deepcopy.go | 360 +++---- apis/web/v1beta2/zz_linuxfunctionapp_types.go | 12 +- .../v1beta2/zz_linuxfunctionappslot_types.go | 12 +- apis/web/v1beta2/zz_linuxwebapp_types.go | 12 +- apis/web/v1beta2/zz_linuxwebappslot_types.go | 12 +- .../v1beta2/zz_windowsfunctionapp_types.go | 12 +- .../zz_windowsfunctionappslot_types.go | 12 +- apis/web/v1beta2/zz_windowswebapp_types.go | 12 +- .../web/v1beta2/zz_windowswebappslot_types.go | 12 +- config/apimanagement/config.go | 4 + config/containerregistry/config.go | 10 + config/eventhub/config.go | 4 + config/network/config.go | 19 +- config/synapse/config.go | 18 + config/web/config.go | 92 ++ .../network/v1beta2/routefilter.yaml | 20 + ...nagement.azure.upbound.io_managements.yaml | 60 +- ...rregistry.azure.upbound.io_registries.yaml | 982 +++++++++--------- ...b.azure.upbound.io_eventhubnamespaces.yaml | 548 +++++----- ...network.azure.upbound.io_routefilters.yaml | 494 +++++++++ .../web.azure.upbound.io_functionapps.yaml | 372 ++++--- ...web.azure.upbound.io_functionappslots.yaml | 372 ++++--- ...eb.azure.upbound.io_linuxfunctionapps.yaml | 348 +++---- ...zure.upbound.io_linuxfunctionappslots.yaml | 348 +++---- .../web.azure.upbound.io_linuxwebapps.yaml | 348 +++---- ...web.azure.upbound.io_linuxwebappslots.yaml | 348 +++---- ....azure.upbound.io_windowsfunctionapps.yaml | 348 +++---- ...re.upbound.io_windowsfunctionappslots.yaml | 348 +++---- .../web.azure.upbound.io_windowswebapps.yaml | 348 +++---- ...b.azure.upbound.io_windowswebappslots.yaml | 348 +++---- 49 files changed, 4223 insertions(+), 3077 deletions(-) create mode 100755 apis/network/v1beta2/zz_routefilter_terraformed.go create mode 100755 apis/network/v1beta2/zz_routefilter_types.go create mode 100644 config/synapse/config.go create mode 100644 examples-generated/network/v1beta2/routefilter.yaml diff --git a/apis/apimanagement/v1beta2/zz_generated.deepcopy.go b/apis/apimanagement/v1beta2/zz_generated.deepcopy.go index f9c42aeff..c1c0546d8 100644 --- a/apis/apimanagement/v1beta2/zz_generated.deepcopy.go +++ b/apis/apimanagement/v1beta2/zz_generated.deepcopy.go @@ -7519,10 +7519,8 @@ func (in *ManagementInitParameters) DeepCopyInto(out *ManagementInitParameters) } if in.Policy != nil { in, out := &in.Policy, &out.Policy - *out = make([]PolicyInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(PolicyInitParameters) + (*in).DeepCopyInto(*out) } if in.Protocols != nil { in, out := &in.Protocols, &out.Protocols @@ -7739,10 +7737,8 @@ func (in *ManagementObservation) DeepCopyInto(out *ManagementObservation) { } if in.Policy != nil { in, out := &in.Policy, &out.Policy - *out = make([]PolicyObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(PolicyObservation) + (*in).DeepCopyInto(*out) } if in.PortalURL != nil { in, out := &in.PortalURL, &out.PortalURL @@ -7934,10 +7930,8 @@ func (in *ManagementParameters) DeepCopyInto(out *ManagementParameters) { } if in.Policy != nil { in, out := &in.Policy, &out.Policy - *out = make([]PolicyParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(PolicyParameters) + (*in).DeepCopyInto(*out) } if in.Protocols != nil { in, out := &in.Protocols, &out.Protocols diff --git a/apis/apimanagement/v1beta2/zz_management_types.go b/apis/apimanagement/v1beta2/zz_management_types.go index 8161ffda4..3b527fde4 100755 --- a/apis/apimanagement/v1beta2/zz_management_types.go +++ b/apis/apimanagement/v1beta2/zz_management_types.go @@ -337,7 +337,7 @@ type ManagementInitParameters struct { NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty" tf:"notification_sender_email,omitempty"` // A policy block as defined below. - Policy []PolicyInitParameters `json:"policy,omitempty" tf:"policy,omitempty"` + Policy *PolicyInitParameters `json:"policy,omitempty" tf:"policy,omitempty"` // A protocols block as defined below. Protocols *ProtocolsInitParameters `json:"protocols,omitempty" tf:"protocols,omitempty"` @@ -432,7 +432,7 @@ type ManagementObservation struct { NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty" tf:"notification_sender_email,omitempty"` // A policy block as defined below. - Policy []PolicyObservation `json:"policy,omitempty" tf:"policy,omitempty"` + Policy *PolicyObservation `json:"policy,omitempty" tf:"policy,omitempty"` // The URL for the Publisher Portal associated with this API Management service. PortalURL *string `json:"portalUrl,omitempty" tf:"portal_url,omitempty"` @@ -534,7 +534,7 @@ type ManagementParameters struct { // A policy block as defined below. // +kubebuilder:validation:Optional - Policy []PolicyParameters `json:"policy,omitempty" tf:"policy,omitempty"` + Policy *PolicyParameters `json:"policy,omitempty" tf:"policy,omitempty"` // A protocols block as defined below. // +kubebuilder:validation:Optional diff --git a/apis/containerregistry/v1beta2/zz_generated.deepcopy.go b/apis/containerregistry/v1beta2/zz_generated.deepcopy.go index 7af4c1cfa..a4ca98171 100644 --- a/apis/containerregistry/v1beta2/zz_generated.deepcopy.go +++ b/apis/containerregistry/v1beta2/zz_generated.deepcopy.go @@ -708,10 +708,8 @@ func (in *RegistryInitParameters) DeepCopyInto(out *RegistryInitParameters) { } if in.Encryption != nil { in, out := &in.Encryption, &out.Encryption - *out = make([]EncryptionInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(EncryptionInitParameters) + (*in).DeepCopyInto(*out) } if in.ExportPolicyEnabled != nil { in, out := &in.ExportPolicyEnabled, &out.ExportPolicyEnabled @@ -742,10 +740,8 @@ func (in *RegistryInitParameters) DeepCopyInto(out *RegistryInitParameters) { } if in.NetworkRuleSet != nil { in, out := &in.NetworkRuleSet, &out.NetworkRuleSet - *out = make([]NetworkRuleSetInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(NetworkRuleSetInitParameters) + (*in).DeepCopyInto(*out) } if in.PublicNetworkAccessEnabled != nil { in, out := &in.PublicNetworkAccessEnabled, &out.PublicNetworkAccessEnabled @@ -759,10 +755,8 @@ func (in *RegistryInitParameters) DeepCopyInto(out *RegistryInitParameters) { } if in.RetentionPolicy != nil { in, out := &in.RetentionPolicy, &out.RetentionPolicy - *out = make([]RetentionPolicyInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(RetentionPolicyInitParameters) + (*in).DeepCopyInto(*out) } if in.Sku != nil { in, out := &in.Sku, &out.Sku @@ -787,10 +781,8 @@ func (in *RegistryInitParameters) DeepCopyInto(out *RegistryInitParameters) { } if in.TrustPolicy != nil { in, out := &in.TrustPolicy, &out.TrustPolicy - *out = make([]TrustPolicyInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(TrustPolicyInitParameters) + (*in).DeepCopyInto(*out) } if in.ZoneRedundancyEnabled != nil { in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled @@ -866,10 +858,8 @@ func (in *RegistryObservation) DeepCopyInto(out *RegistryObservation) { } if in.Encryption != nil { in, out := &in.Encryption, &out.Encryption - *out = make([]EncryptionObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(EncryptionObservation) + (*in).DeepCopyInto(*out) } if in.ExportPolicyEnabled != nil { in, out := &in.ExportPolicyEnabled, &out.ExportPolicyEnabled @@ -910,10 +900,8 @@ func (in *RegistryObservation) DeepCopyInto(out *RegistryObservation) { } if in.NetworkRuleSet != nil { in, out := &in.NetworkRuleSet, &out.NetworkRuleSet - *out = make([]NetworkRuleSetObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(NetworkRuleSetObservation) + (*in).DeepCopyInto(*out) } if in.PublicNetworkAccessEnabled != nil { in, out := &in.PublicNetworkAccessEnabled, &out.PublicNetworkAccessEnabled @@ -932,10 +920,8 @@ func (in *RegistryObservation) DeepCopyInto(out *RegistryObservation) { } if in.RetentionPolicy != nil { in, out := &in.RetentionPolicy, &out.RetentionPolicy - *out = make([]RetentionPolicyObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(RetentionPolicyObservation) + (*in).DeepCopyInto(*out) } if in.Sku != nil { in, out := &in.Sku, &out.Sku @@ -960,10 +946,8 @@ func (in *RegistryObservation) DeepCopyInto(out *RegistryObservation) { } if in.TrustPolicy != nil { in, out := &in.TrustPolicy, &out.TrustPolicy - *out = make([]TrustPolicyObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(TrustPolicyObservation) + (*in).DeepCopyInto(*out) } if in.ZoneRedundancyEnabled != nil { in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled @@ -1002,10 +986,8 @@ func (in *RegistryParameters) DeepCopyInto(out *RegistryParameters) { } if in.Encryption != nil { in, out := &in.Encryption, &out.Encryption - *out = make([]EncryptionParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(EncryptionParameters) + (*in).DeepCopyInto(*out) } if in.ExportPolicyEnabled != nil { in, out := &in.ExportPolicyEnabled, &out.ExportPolicyEnabled @@ -1036,10 +1018,8 @@ func (in *RegistryParameters) DeepCopyInto(out *RegistryParameters) { } if in.NetworkRuleSet != nil { in, out := &in.NetworkRuleSet, &out.NetworkRuleSet - *out = make([]NetworkRuleSetParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(NetworkRuleSetParameters) + (*in).DeepCopyInto(*out) } if in.PublicNetworkAccessEnabled != nil { in, out := &in.PublicNetworkAccessEnabled, &out.PublicNetworkAccessEnabled @@ -1068,10 +1048,8 @@ func (in *RegistryParameters) DeepCopyInto(out *RegistryParameters) { } if in.RetentionPolicy != nil { in, out := &in.RetentionPolicy, &out.RetentionPolicy - *out = make([]RetentionPolicyParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(RetentionPolicyParameters) + (*in).DeepCopyInto(*out) } if in.Sku != nil { in, out := &in.Sku, &out.Sku @@ -1096,10 +1074,8 @@ func (in *RegistryParameters) DeepCopyInto(out *RegistryParameters) { } if in.TrustPolicy != nil { in, out := &in.TrustPolicy, &out.TrustPolicy - *out = make([]TrustPolicyParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(TrustPolicyParameters) + (*in).DeepCopyInto(*out) } if in.ZoneRedundancyEnabled != nil { in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled diff --git a/apis/containerregistry/v1beta2/zz_generated.resolvers.go b/apis/containerregistry/v1beta2/zz_generated.resolvers.go index 6328629ed..eab645c27 100644 --- a/apis/containerregistry/v1beta2/zz_generated.resolvers.go +++ b/apis/containerregistry/v1beta2/zz_generated.resolvers.go @@ -28,47 +28,47 @@ func (mg *Registry) ResolveReferences(ctx context.Context, c client.Reader) erro var rsp reference.ResolutionResponse var err error - for i3 := 0; i3 < len(mg.Spec.ForProvider.Encryption); i3++ { + if mg.Spec.ForProvider.Encryption != nil { { m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Encryption[i3].IdentityClientID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Encryption.IdentityClientID), Extract: resource.ExtractParamPath("client_id", true), - Reference: mg.Spec.ForProvider.Encryption[i3].IdentityClientIDRef, - Selector: mg.Spec.ForProvider.Encryption[i3].IdentityClientIDSelector, + Reference: mg.Spec.ForProvider.Encryption.IdentityClientIDRef, + Selector: mg.Spec.ForProvider.Encryption.IdentityClientIDSelector, To: reference.To{List: l, Managed: m}, }) } if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.Encryption[i3].IdentityClientID") + return errors.Wrap(err, "mg.Spec.ForProvider.Encryption.IdentityClientID") } - mg.Spec.ForProvider.Encryption[i3].IdentityClientID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.Encryption[i3].IdentityClientIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.Encryption.IdentityClientID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.Encryption.IdentityClientIDRef = rsp.ResolvedReference } - for i3 := 0; i3 < len(mg.Spec.ForProvider.NetworkRuleSet); i3++ { - for i4 := 0; i4 < len(mg.Spec.ForProvider.NetworkRuleSet[i3].VirtualNetwork); i4++ { + if mg.Spec.ForProvider.NetworkRuleSet != nil { + for i4 := 0; i4 < len(mg.Spec.ForProvider.NetworkRuleSet.VirtualNetwork); i4++ { { m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta2", "Subnet", "SubnetList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetID), Extract: rconfig.ExtractResourceID(), - Reference: mg.Spec.ForProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetIDRef, - Selector: mg.Spec.ForProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetIDSelector, + Reference: mg.Spec.ForProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetIDRef, + Selector: mg.Spec.ForProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetIDSelector, To: reference.To{List: l, Managed: m}, }) } if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetID") + return errors.Wrap(err, "mg.Spec.ForProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetID") } - mg.Spec.ForProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetIDRef = rsp.ResolvedReference } } @@ -91,47 +91,47 @@ func (mg *Registry) ResolveReferences(ctx context.Context, c client.Reader) erro mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference - for i3 := 0; i3 < len(mg.Spec.InitProvider.Encryption); i3++ { + if mg.Spec.InitProvider.Encryption != nil { { m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.Encryption[i3].IdentityClientID), + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.Encryption.IdentityClientID), Extract: resource.ExtractParamPath("client_id", true), - Reference: mg.Spec.InitProvider.Encryption[i3].IdentityClientIDRef, - Selector: mg.Spec.InitProvider.Encryption[i3].IdentityClientIDSelector, + Reference: mg.Spec.InitProvider.Encryption.IdentityClientIDRef, + Selector: mg.Spec.InitProvider.Encryption.IdentityClientIDSelector, To: reference.To{List: l, Managed: m}, }) } if err != nil { - return errors.Wrap(err, "mg.Spec.InitProvider.Encryption[i3].IdentityClientID") + return errors.Wrap(err, "mg.Spec.InitProvider.Encryption.IdentityClientID") } - mg.Spec.InitProvider.Encryption[i3].IdentityClientID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.InitProvider.Encryption[i3].IdentityClientIDRef = rsp.ResolvedReference + mg.Spec.InitProvider.Encryption.IdentityClientID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.Encryption.IdentityClientIDRef = rsp.ResolvedReference } - for i3 := 0; i3 < len(mg.Spec.InitProvider.NetworkRuleSet); i3++ { - for i4 := 0; i4 < len(mg.Spec.InitProvider.NetworkRuleSet[i3].VirtualNetwork); i4++ { + if mg.Spec.InitProvider.NetworkRuleSet != nil { + for i4 := 0; i4 < len(mg.Spec.InitProvider.NetworkRuleSet.VirtualNetwork); i4++ { { m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta2", "Subnet", "SubnetList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetID), + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetID), Extract: rconfig.ExtractResourceID(), - Reference: mg.Spec.InitProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetIDRef, - Selector: mg.Spec.InitProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetIDSelector, + Reference: mg.Spec.InitProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetIDRef, + Selector: mg.Spec.InitProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetIDSelector, To: reference.To{List: l, Managed: m}, }) } if err != nil { - return errors.Wrap(err, "mg.Spec.InitProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetID") + return errors.Wrap(err, "mg.Spec.InitProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetID") } - mg.Spec.InitProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.InitProvider.NetworkRuleSet[i3].VirtualNetwork[i4].SubnetIDRef = rsp.ResolvedReference + mg.Spec.InitProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.NetworkRuleSet.VirtualNetwork[i4].SubnetIDRef = rsp.ResolvedReference } } diff --git a/apis/containerregistry/v1beta2/zz_registry_types.go b/apis/containerregistry/v1beta2/zz_registry_types.go index cf861f940..0f78d13d4 100755 --- a/apis/containerregistry/v1beta2/zz_registry_types.go +++ b/apis/containerregistry/v1beta2/zz_registry_types.go @@ -239,7 +239,7 @@ type RegistryInitParameters struct { DataEndpointEnabled *bool `json:"dataEndpointEnabled,omitempty" tf:"data_endpoint_enabled,omitempty"` // An encryption block as documented below. - Encryption []EncryptionInitParameters `json:"encryption,omitempty" tf:"encryption,omitempty"` + Encryption *EncryptionInitParameters `json:"encryption,omitempty" tf:"encryption,omitempty"` // Boolean value that indicates whether export policy is enabled. Defaults to true. In order to set it to false, make sure the public_network_access_enabled is also set to false. ExportPolicyEnabled *bool `json:"exportPolicyEnabled,omitempty" tf:"export_policy_enabled,omitempty"` @@ -257,7 +257,7 @@ type RegistryInitParameters struct { NetworkRuleBypassOption *string `json:"networkRuleBypassOption,omitempty" tf:"network_rule_bypass_option,omitempty"` // A network_rule_set block as documented below. - NetworkRuleSet []NetworkRuleSetInitParameters `json:"networkRuleSet,omitempty" tf:"network_rule_set,omitempty"` + NetworkRuleSet *NetworkRuleSetInitParameters `json:"networkRuleSet,omitempty" tf:"network_rule_set,omitempty"` // Whether public network access is allowed for the container registry. Defaults to true. PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"` @@ -266,7 +266,7 @@ type RegistryInitParameters struct { QuarantinePolicyEnabled *bool `json:"quarantinePolicyEnabled,omitempty" tf:"quarantine_policy_enabled,omitempty"` // A retention_policy block as documented below. - RetentionPolicy []RetentionPolicyInitParameters `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"` + RetentionPolicy *RetentionPolicyInitParameters `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"` // The SKU name of the container registry. Possible values are Basic, Standard and Premium. Sku *string `json:"sku,omitempty" tf:"sku,omitempty"` @@ -276,7 +276,7 @@ type RegistryInitParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // A trust_policy block as documented below. - TrustPolicy []TrustPolicyInitParameters `json:"trustPolicy,omitempty" tf:"trust_policy,omitempty"` + TrustPolicy *TrustPolicyInitParameters `json:"trustPolicy,omitempty" tf:"trust_policy,omitempty"` // Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false. ZoneRedundancyEnabled *bool `json:"zoneRedundancyEnabled,omitempty" tf:"zone_redundancy_enabled,omitempty"` @@ -297,7 +297,7 @@ type RegistryObservation struct { DataEndpointEnabled *bool `json:"dataEndpointEnabled,omitempty" tf:"data_endpoint_enabled,omitempty"` // An encryption block as documented below. - Encryption []EncryptionObservation `json:"encryption,omitempty" tf:"encryption,omitempty"` + Encryption *EncryptionObservation `json:"encryption,omitempty" tf:"encryption,omitempty"` // Boolean value that indicates whether export policy is enabled. Defaults to true. In order to set it to false, make sure the public_network_access_enabled is also set to false. ExportPolicyEnabled *bool `json:"exportPolicyEnabled,omitempty" tf:"export_policy_enabled,omitempty"` @@ -321,7 +321,7 @@ type RegistryObservation struct { NetworkRuleBypassOption *string `json:"networkRuleBypassOption,omitempty" tf:"network_rule_bypass_option,omitempty"` // A network_rule_set block as documented below. - NetworkRuleSet []NetworkRuleSetObservation `json:"networkRuleSet,omitempty" tf:"network_rule_set,omitempty"` + NetworkRuleSet *NetworkRuleSetObservation `json:"networkRuleSet,omitempty" tf:"network_rule_set,omitempty"` // Whether public network access is allowed for the container registry. Defaults to true. PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"` @@ -333,7 +333,7 @@ type RegistryObservation struct { ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"` // A retention_policy block as documented below. - RetentionPolicy []RetentionPolicyObservation `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"` + RetentionPolicy *RetentionPolicyObservation `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"` // The SKU name of the container registry. Possible values are Basic, Standard and Premium. Sku *string `json:"sku,omitempty" tf:"sku,omitempty"` @@ -343,7 +343,7 @@ type RegistryObservation struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // A trust_policy block as documented below. - TrustPolicy []TrustPolicyObservation `json:"trustPolicy,omitempty" tf:"trust_policy,omitempty"` + TrustPolicy *TrustPolicyObservation `json:"trustPolicy,omitempty" tf:"trust_policy,omitempty"` // Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false. ZoneRedundancyEnabled *bool `json:"zoneRedundancyEnabled,omitempty" tf:"zone_redundancy_enabled,omitempty"` @@ -365,7 +365,7 @@ type RegistryParameters struct { // An encryption block as documented below. // +kubebuilder:validation:Optional - Encryption []EncryptionParameters `json:"encryption,omitempty" tf:"encryption,omitempty"` + Encryption *EncryptionParameters `json:"encryption,omitempty" tf:"encryption,omitempty"` // Boolean value that indicates whether export policy is enabled. Defaults to true. In order to set it to false, make sure the public_network_access_enabled is also set to false. // +kubebuilder:validation:Optional @@ -389,7 +389,7 @@ type RegistryParameters struct { // A network_rule_set block as documented below. // +kubebuilder:validation:Optional - NetworkRuleSet []NetworkRuleSetParameters `json:"networkRuleSet,omitempty" tf:"network_rule_set,omitempty"` + NetworkRuleSet *NetworkRuleSetParameters `json:"networkRuleSet,omitempty" tf:"network_rule_set,omitempty"` // Whether public network access is allowed for the container registry. Defaults to true. // +kubebuilder:validation:Optional @@ -414,7 +414,7 @@ type RegistryParameters struct { // A retention_policy block as documented below. // +kubebuilder:validation:Optional - RetentionPolicy []RetentionPolicyParameters `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"` // The SKU name of the container registry. Possible values are Basic, Standard and Premium. // +kubebuilder:validation:Optional @@ -427,7 +427,7 @@ type RegistryParameters struct { // A trust_policy block as documented below. // +kubebuilder:validation:Optional - TrustPolicy []TrustPolicyParameters `json:"trustPolicy,omitempty" tf:"trust_policy,omitempty"` + TrustPolicy *TrustPolicyParameters `json:"trustPolicy,omitempty" tf:"trust_policy,omitempty"` // Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false. // +kubebuilder:validation:Optional diff --git a/apis/eventhub/v1beta2/zz_eventhubnamespace_types.go b/apis/eventhub/v1beta2/zz_eventhubnamespace_types.go index e87646a32..553d4ad0e 100755 --- a/apis/eventhub/v1beta2/zz_eventhubnamespace_types.go +++ b/apis/eventhub/v1beta2/zz_eventhubnamespace_types.go @@ -40,7 +40,7 @@ type EventHubNamespaceInitParameters struct { MinimumTLSVersion *string `json:"minimumTlsVersion,omitempty" tf:"minimum_tls_version,omitempty"` // A network_rulesets block as defined below. - NetworkRulesets []NetworkRulesetsInitParameters `json:"networkRulesets,omitempty" tf:"network_rulesets,omitempty"` + NetworkRulesets *NetworkRulesetsInitParameters `json:"networkRulesets,omitempty" tf:"network_rulesets,omitempty"` // Is public network access enabled for the EventHub Namespace? Defaults to true. PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"` @@ -86,7 +86,7 @@ type EventHubNamespaceObservation struct { MinimumTLSVersion *string `json:"minimumTlsVersion,omitempty" tf:"minimum_tls_version,omitempty"` // A network_rulesets block as defined below. - NetworkRulesets []NetworkRulesetsObservation `json:"networkRulesets,omitempty" tf:"network_rulesets,omitempty"` + NetworkRulesets *NetworkRulesetsObservation `json:"networkRulesets,omitempty" tf:"network_rulesets,omitempty"` // Is public network access enabled for the EventHub Namespace? Defaults to true. PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"` @@ -141,7 +141,7 @@ type EventHubNamespaceParameters struct { // A network_rulesets block as defined below. // +kubebuilder:validation:Optional - NetworkRulesets []NetworkRulesetsParameters `json:"networkRulesets,omitempty" tf:"network_rulesets,omitempty"` + NetworkRulesets *NetworkRulesetsParameters `json:"networkRulesets,omitempty" tf:"network_rulesets,omitempty"` // Is public network access enabled for the EventHub Namespace? Defaults to true. // +kubebuilder:validation:Optional diff --git a/apis/eventhub/v1beta2/zz_generated.deepcopy.go b/apis/eventhub/v1beta2/zz_generated.deepcopy.go index cb95fbb42..bc148adde 100644 --- a/apis/eventhub/v1beta2/zz_generated.deepcopy.go +++ b/apis/eventhub/v1beta2/zz_generated.deepcopy.go @@ -419,10 +419,8 @@ func (in *EventHubNamespaceInitParameters) DeepCopyInto(out *EventHubNamespaceIn } if in.NetworkRulesets != nil { in, out := &in.NetworkRulesets, &out.NetworkRulesets - *out = make([]NetworkRulesetsInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(NetworkRulesetsInitParameters) + (*in).DeepCopyInto(*out) } if in.PublicNetworkAccessEnabled != nil { in, out := &in.PublicNetworkAccessEnabled, &out.PublicNetworkAccessEnabled @@ -549,10 +547,8 @@ func (in *EventHubNamespaceObservation) DeepCopyInto(out *EventHubNamespaceObser } if in.NetworkRulesets != nil { in, out := &in.NetworkRulesets, &out.NetworkRulesets - *out = make([]NetworkRulesetsObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(NetworkRulesetsObservation) + (*in).DeepCopyInto(*out) } if in.PublicNetworkAccessEnabled != nil { in, out := &in.PublicNetworkAccessEnabled, &out.PublicNetworkAccessEnabled @@ -647,10 +643,8 @@ func (in *EventHubNamespaceParameters) DeepCopyInto(out *EventHubNamespaceParame } if in.NetworkRulesets != nil { in, out := &in.NetworkRulesets, &out.NetworkRulesets - *out = make([]NetworkRulesetsParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(NetworkRulesetsParameters) + (*in).DeepCopyInto(*out) } if in.PublicNetworkAccessEnabled != nil { in, out := &in.PublicNetworkAccessEnabled, &out.PublicNetworkAccessEnabled diff --git a/apis/eventhub/v1beta2/zz_generated.resolvers.go b/apis/eventhub/v1beta2/zz_generated.resolvers.go index c63c279a3..e9d017ec6 100644 --- a/apis/eventhub/v1beta2/zz_generated.resolvers.go +++ b/apis/eventhub/v1beta2/zz_generated.resolvers.go @@ -77,26 +77,26 @@ func (mg *EventHubNamespace) ResolveReferences(ctx context.Context, c client.Rea var rsp reference.ResolutionResponse var err error - for i3 := 0; i3 < len(mg.Spec.ForProvider.NetworkRulesets); i3++ { - for i4 := 0; i4 < len(mg.Spec.ForProvider.NetworkRulesets[i3].VirtualNetworkRule); i4++ { + if mg.Spec.ForProvider.NetworkRulesets != nil { + for i4 := 0; i4 < len(mg.Spec.ForProvider.NetworkRulesets.VirtualNetworkRule); i4++ { { m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta2", "Subnet", "SubnetList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetID), Extract: rconfig.ExtractResourceID(), - Reference: mg.Spec.ForProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetIDRef, - Selector: mg.Spec.ForProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetIDSelector, + Reference: mg.Spec.ForProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetIDRef, + Selector: mg.Spec.ForProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetIDSelector, To: reference.To{List: l, Managed: m}, }) } if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetID") + return errors.Wrap(err, "mg.Spec.ForProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetID") } - mg.Spec.ForProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetIDRef = rsp.ResolvedReference } } @@ -119,26 +119,26 @@ func (mg *EventHubNamespace) ResolveReferences(ctx context.Context, c client.Rea mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference - for i3 := 0; i3 < len(mg.Spec.InitProvider.NetworkRulesets); i3++ { - for i4 := 0; i4 < len(mg.Spec.InitProvider.NetworkRulesets[i3].VirtualNetworkRule); i4++ { + if mg.Spec.InitProvider.NetworkRulesets != nil { + for i4 := 0; i4 < len(mg.Spec.InitProvider.NetworkRulesets.VirtualNetworkRule); i4++ { { m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta2", "Subnet", "SubnetList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetID), + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetID), Extract: rconfig.ExtractResourceID(), - Reference: mg.Spec.InitProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetIDRef, - Selector: mg.Spec.InitProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetIDSelector, + Reference: mg.Spec.InitProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetIDRef, + Selector: mg.Spec.InitProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetIDSelector, To: reference.To{List: l, Managed: m}, }) } if err != nil { - return errors.Wrap(err, "mg.Spec.InitProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetID") + return errors.Wrap(err, "mg.Spec.InitProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetID") } - mg.Spec.InitProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.InitProvider.NetworkRulesets[i3].VirtualNetworkRule[i4].SubnetIDRef = rsp.ResolvedReference + mg.Spec.InitProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.NetworkRulesets.VirtualNetworkRule[i4].SubnetIDRef = rsp.ResolvedReference } } diff --git a/apis/network/v1beta1/zz_generated.conversion_hubs.go b/apis/network/v1beta1/zz_generated.conversion_hubs.go index 9212d6856..865899838 100755 --- a/apis/network/v1beta1/zz_generated.conversion_hubs.go +++ b/apis/network/v1beta1/zz_generated.conversion_hubs.go @@ -168,9 +168,6 @@ func (tr *PublicIPPrefix) Hub() {} // Hub marks this type as a conversion hub. func (tr *Route) Hub() {} -// Hub marks this type as a conversion hub. -func (tr *RouteFilter) Hub() {} - // Hub marks this type as a conversion hub. func (tr *RouteMap) Hub() {} diff --git a/apis/network/v1beta1/zz_generated.conversion_spokes.go b/apis/network/v1beta1/zz_generated.conversion_spokes.go index c602ae4ee..9962aa8be 100755 --- a/apis/network/v1beta1/zz_generated.conversion_spokes.go +++ b/apis/network/v1beta1/zz_generated.conversion_spokes.go @@ -393,6 +393,26 @@ func (tr *Profile) ConvertFrom(srcRaw conversion.Hub) error { return nil } +// ConvertTo converts this RouteFilter to the hub type. +func (tr *RouteFilter) ConvertTo(dstRaw conversion.Hub) error { + spokeVersion := tr.GetObjectKind().GroupVersionKind().Version + hubVersion := dstRaw.GetObjectKind().GroupVersionKind().Version + if err := ujconversion.RoundTrip(dstRaw.(resource.Terraformed), tr); err != nil { + return errors.Wrapf(err, "cannot convert from the spoke version %q to the hub version %q", spokeVersion, hubVersion) + } + return nil +} + +// ConvertFrom converts from the hub type to the RouteFilter type. +func (tr *RouteFilter) ConvertFrom(srcRaw conversion.Hub) error { + spokeVersion := tr.GetObjectKind().GroupVersionKind().Version + hubVersion := srcRaw.GetObjectKind().GroupVersionKind().Version + if err := ujconversion.RoundTrip(tr, srcRaw.(resource.Terraformed)); err != nil { + return errors.Wrapf(err, "cannot convert from the hub version %q to the spoke version %q", hubVersion, spokeVersion) + } + return nil +} + // ConvertTo converts this Subnet to the hub type. func (tr *Subnet) ConvertTo(dstRaw conversion.Hub) error { spokeVersion := tr.GetObjectKind().GroupVersionKind().Version diff --git a/apis/network/v1beta2/zz_generated.conversion_hubs.go b/apis/network/v1beta2/zz_generated.conversion_hubs.go index f95a6fa1b..594f4f0c8 100755 --- a/apis/network/v1beta2/zz_generated.conversion_hubs.go +++ b/apis/network/v1beta2/zz_generated.conversion_hubs.go @@ -63,6 +63,9 @@ func (tr *PrivateEndpoint) Hub() {} // Hub marks this type as a conversion hub. func (tr *Profile) Hub() {} +// Hub marks this type as a conversion hub. +func (tr *RouteFilter) Hub() {} + // Hub marks this type as a conversion hub. func (tr *Subnet) Hub() {} diff --git a/apis/network/v1beta2/zz_generated.deepcopy.go b/apis/network/v1beta2/zz_generated.deepcopy.go index 6d08934f3..5957dad8f 100644 --- a/apis/network/v1beta2/zz_generated.deepcopy.go +++ b/apis/network/v1beta2/zz_generated.deepcopy.go @@ -19185,6 +19185,371 @@ func (in *RootCertificateParameters) DeepCopy() *RootCertificateParameters { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteFilter) DeepCopyInto(out *RouteFilter) { + *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 RouteFilter. +func (in *RouteFilter) DeepCopy() *RouteFilter { + if in == nil { + return nil + } + out := new(RouteFilter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RouteFilter) 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 *RouteFilterInitParameters) DeepCopyInto(out *RouteFilterInitParameters) { + *out = *in + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.Rule != nil { + in, out := &in.Rule, &out.Rule + *out = new(RouteFilterRuleInitParameters) + (*in).DeepCopyInto(*out) + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterInitParameters. +func (in *RouteFilterInitParameters) DeepCopy() *RouteFilterInitParameters { + if in == nil { + return nil + } + out := new(RouteFilterInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteFilterList) DeepCopyInto(out *RouteFilterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RouteFilter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterList. +func (in *RouteFilterList) DeepCopy() *RouteFilterList { + if in == nil { + return nil + } + out := new(RouteFilterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RouteFilterList) 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 *RouteFilterObservation) DeepCopyInto(out *RouteFilterObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.ResourceGroupName != nil { + in, out := &in.ResourceGroupName, &out.ResourceGroupName + *out = new(string) + **out = **in + } + if in.Rule != nil { + in, out := &in.Rule, &out.Rule + *out = new(RouteFilterRuleObservation) + (*in).DeepCopyInto(*out) + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterObservation. +func (in *RouteFilterObservation) DeepCopy() *RouteFilterObservation { + if in == nil { + return nil + } + out := new(RouteFilterObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteFilterParameters) DeepCopyInto(out *RouteFilterParameters) { + *out = *in + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.ResourceGroupName != nil { + in, out := &in.ResourceGroupName, &out.ResourceGroupName + *out = new(string) + **out = **in + } + if in.ResourceGroupNameRef != nil { + in, out := &in.ResourceGroupNameRef, &out.ResourceGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ResourceGroupNameSelector != nil { + in, out := &in.ResourceGroupNameSelector, &out.ResourceGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Rule != nil { + in, out := &in.Rule, &out.Rule + *out = new(RouteFilterRuleParameters) + (*in).DeepCopyInto(*out) + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterParameters. +func (in *RouteFilterParameters) DeepCopy() *RouteFilterParameters { + if in == nil { + return nil + } + out := new(RouteFilterParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteFilterRuleInitParameters) DeepCopyInto(out *RouteFilterRuleInitParameters) { + *out = *in + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = new(string) + **out = **in + } + if in.Communities != nil { + in, out := &in.Communities, &out.Communities + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.RuleType != nil { + in, out := &in.RuleType, &out.RuleType + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterRuleInitParameters. +func (in *RouteFilterRuleInitParameters) DeepCopy() *RouteFilterRuleInitParameters { + if in == nil { + return nil + } + out := new(RouteFilterRuleInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteFilterRuleObservation) DeepCopyInto(out *RouteFilterRuleObservation) { + *out = *in + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = new(string) + **out = **in + } + if in.Communities != nil { + in, out := &in.Communities, &out.Communities + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.RuleType != nil { + in, out := &in.RuleType, &out.RuleType + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterRuleObservation. +func (in *RouteFilterRuleObservation) DeepCopy() *RouteFilterRuleObservation { + if in == nil { + return nil + } + out := new(RouteFilterRuleObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteFilterRuleParameters) DeepCopyInto(out *RouteFilterRuleParameters) { + *out = *in + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = new(string) + **out = **in + } + if in.Communities != nil { + in, out := &in.Communities, &out.Communities + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.RuleType != nil { + in, out := &in.RuleType, &out.RuleType + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterRuleParameters. +func (in *RouteFilterRuleParameters) DeepCopy() *RouteFilterRuleParameters { + if in == nil { + return nil + } + out := new(RouteFilterRuleParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteFilterSpec) DeepCopyInto(out *RouteFilterSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterSpec. +func (in *RouteFilterSpec) DeepCopy() *RouteFilterSpec { + if in == nil { + return nil + } + out := new(RouteFilterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteFilterStatus) DeepCopyInto(out *RouteFilterStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteFilterStatus. +func (in *RouteFilterStatus) DeepCopy() *RouteFilterStatus { + if in == nil { + return nil + } + out := new(RouteFilterStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RouteInitParameters) DeepCopyInto(out *RouteInitParameters) { *out = *in diff --git a/apis/network/v1beta2/zz_generated.managed.go b/apis/network/v1beta2/zz_generated.managed.go index 4c994aa1e..9082ef340 100644 --- a/apis/network/v1beta2/zz_generated.managed.go +++ b/apis/network/v1beta2/zz_generated.managed.go @@ -1147,6 +1147,66 @@ func (mg *Profile) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) mg.Spec.WriteConnectionSecretToReference = r } +// GetCondition of this RouteFilter. +func (mg *RouteFilter) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this RouteFilter. +func (mg *RouteFilter) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this RouteFilter. +func (mg *RouteFilter) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this RouteFilter. +func (mg *RouteFilter) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this RouteFilter. +func (mg *RouteFilter) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this RouteFilter. +func (mg *RouteFilter) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this RouteFilter. +func (mg *RouteFilter) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this RouteFilter. +func (mg *RouteFilter) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this RouteFilter. +func (mg *RouteFilter) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this RouteFilter. +func (mg *RouteFilter) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this RouteFilter. +func (mg *RouteFilter) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this RouteFilter. +func (mg *RouteFilter) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this Subnet. func (mg *Subnet) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/network/v1beta2/zz_generated.managedlist.go b/apis/network/v1beta2/zz_generated.managedlist.go index 2f4ff75dd..df446a452 100644 --- a/apis/network/v1beta2/zz_generated.managedlist.go +++ b/apis/network/v1beta2/zz_generated.managedlist.go @@ -178,6 +178,15 @@ func (l *ProfileList) GetItems() []resource.Managed { return items } +// GetItems of this RouteFilterList. +func (l *RouteFilterList) 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 SubnetList. func (l *SubnetList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/network/v1beta2/zz_generated.resolvers.go b/apis/network/v1beta2/zz_generated.resolvers.go index 9f8a0d4b7..bd3a0857b 100644 --- a/apis/network/v1beta2/zz_generated.resolvers.go +++ b/apis/network/v1beta2/zz_generated.resolvers.go @@ -1274,6 +1274,37 @@ func (mg *Profile) ResolveReferences(ctx context.Context, c client.Reader) error return nil } +// ResolveReferences of this RouteFilter. +func (mg *RouteFilter) ResolveReferences(ctx context.Context, c client.Reader) error { + var m xpresource.Managed + var l xpresource.ManagedList + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ResourceGroupName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.ResourceGroupNameRef, + Selector: mg.Spec.ForProvider.ResourceGroupNameSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ResourceGroupName") + } + mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this Subnet. func (mg *Subnet) ResolveReferences(ctx context.Context, c client.Reader) error { var m xpresource.Managed diff --git a/apis/network/v1beta2/zz_routefilter_terraformed.go b/apis/network/v1beta2/zz_routefilter_terraformed.go new file mode 100755 index 000000000..fa27ac685 --- /dev/null +++ b/apis/network/v1beta2/zz_routefilter_terraformed.go @@ -0,0 +1,129 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta2 + +import ( + "dario.cat/mergo" + "github.com/pkg/errors" + + "github.com/crossplane/upjet/pkg/resource" + "github.com/crossplane/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this RouteFilter +func (mg *RouteFilter) GetTerraformResourceType() string { + return "azurerm_route_filter" +} + +// GetConnectionDetailsMapping for this RouteFilter +func (tr *RouteFilter) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this RouteFilter +func (tr *RouteFilter) 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 RouteFilter +func (tr *RouteFilter) 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 RouteFilter +func (tr *RouteFilter) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this RouteFilter +func (tr *RouteFilter) 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 RouteFilter +func (tr *RouteFilter) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// GetInitParameters of this RouteFilter +func (tr *RouteFilter) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// GetInitParameters of this RouteFilter +func (tr *RouteFilter) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { + params, err := tr.GetParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) + } + if !shouldMergeInitProvider { + return params, nil + } + + initParams, err := tr.GetInitParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get init parameters for resource '%q'", tr.GetName()) + } + + // Note(lsviben): mergo.WithSliceDeepCopy is needed to merge the + // slices from the initProvider to forProvider. As it also sets + // overwrite to true, we need to set it back to false, we don't + // want to overwrite the forProvider fields with the initProvider + // fields. + err = mergo.Merge(¶ms, initParams, mergo.WithSliceDeepCopy, func(c *mergo.Config) { + c.Overwrite = false + }) + if err != nil { + return nil, errors.Wrapf(err, "cannot merge spec.initProvider and spec.forProvider parameters for resource '%q'", tr.GetName()) + } + + return params, nil +} + +// LateInitialize this RouteFilter using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *RouteFilter) LateInitialize(attrs []byte) (bool, error) { + params := &RouteFilterParameters{} + 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 *RouteFilter) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/network/v1beta2/zz_routefilter_types.go b/apis/network/v1beta2/zz_routefilter_types.go new file mode 100755 index 000000000..e11575e28 --- /dev/null +++ b/apis/network/v1beta2/zz_routefilter_types.go @@ -0,0 +1,185 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta2 + +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 RouteFilterInitParameters struct { + + // The Azure Region where the Route Filter should exist. Changing this forces a new Route Filter to be created. + Location *string `json:"location,omitempty" tf:"location,omitempty"` + + // A rule block as defined below. + Rule *RouteFilterRuleInitParameters `json:"rule,omitempty" tf:"rule,omitempty"` + + // A mapping of tags which should be assigned to the Route Filter. + // +mapType=granular + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` +} + +type RouteFilterObservation struct { + + // The ID of the Route Filter. + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // The Azure Region where the Route Filter should exist. Changing this forces a new Route Filter to be created. + Location *string `json:"location,omitempty" tf:"location,omitempty"` + + // The name of the Resource Group where the Route Filter should exist. Changing this forces a new Route Filter to be created. + ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"` + + // A rule block as defined below. + Rule *RouteFilterRuleObservation `json:"rule,omitempty" tf:"rule,omitempty"` + + // A mapping of tags which should be assigned to the Route Filter. + // +mapType=granular + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` +} + +type RouteFilterParameters struct { + + // The Azure Region where the Route Filter should exist. Changing this forces a new Route Filter to be created. + // +kubebuilder:validation:Optional + Location *string `json:"location,omitempty" tf:"location,omitempty"` + + // The name of the Resource Group where the Route Filter should exist. Changing this forces a new Route Filter to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup + // +kubebuilder:validation:Optional + ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"` + + // Reference to a ResourceGroup in azure to populate resourceGroupName. + // +kubebuilder:validation:Optional + ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"` + + // Selector for a ResourceGroup in azure to populate resourceGroupName. + // +kubebuilder:validation:Optional + ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"` + + // A rule block as defined below. + // +kubebuilder:validation:Optional + Rule *RouteFilterRuleParameters `json:"rule,omitempty" tf:"rule,omitempty"` + + // A mapping of tags which should be assigned to the Route Filter. + // +kubebuilder:validation:Optional + // +mapType=granular + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` +} + +type RouteFilterRuleInitParameters struct { + + // The access type of the rule. The only possible value is Allow. + Access *string `json:"access,omitempty" tf:"access"` + + // The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. + Communities []*string `json:"communities,omitempty" tf:"communities"` + + // The name of the route filter rule. + Name *string `json:"name,omitempty" tf:"name"` + + // The rule type of the rule. The only possible value is Community. + RuleType *string `json:"ruleType,omitempty" tf:"rule_type"` +} + +type RouteFilterRuleObservation struct { + + // The access type of the rule. The only possible value is Allow. + Access *string `json:"access,omitempty" tf:"access,omitempty"` + + // The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. + Communities []*string `json:"communities,omitempty" tf:"communities,omitempty"` + + // The name of the route filter rule. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // The rule type of the rule. The only possible value is Community. + RuleType *string `json:"ruleType,omitempty" tf:"rule_type,omitempty"` +} + +type RouteFilterRuleParameters struct { + + // The access type of the rule. The only possible value is Allow. + // +kubebuilder:validation:Optional + Access *string `json:"access,omitempty" tf:"access"` + + // The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. + // +kubebuilder:validation:Optional + Communities []*string `json:"communities,omitempty" tf:"communities"` + + // The name of the route filter rule. + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name"` + + // The rule type of the rule. The only possible value is Community. + // +kubebuilder:validation:Optional + RuleType *string `json:"ruleType,omitempty" tf:"rule_type"` +} + +// RouteFilterSpec defines the desired state of RouteFilter +type RouteFilterSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider RouteFilterParameters `json:"forProvider"` + // THIS IS A BETA FIELD. It will be honored + // unless the Management Policies feature flag is disabled. + // InitProvider holds the same fields as ForProvider, with the exception + // of Identifier and other resource reference fields. The fields that are + // in InitProvider are merged into ForProvider when the resource is created. + // The same fields are also added to the terraform ignore_changes hook, to + // avoid updating them after creation. This is useful for fields that are + // required on creation, but we do not desire to update them after creation, + // for example because of an external controller is managing them, like an + // autoscaler. + InitProvider RouteFilterInitParameters `json:"initProvider,omitempty"` +} + +// RouteFilterStatus defines the observed state of RouteFilter. +type RouteFilterStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider RouteFilterObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status + +// RouteFilter is the Schema for the RouteFilters API. Manages a Route Filter. +// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure} +type RouteFilter struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.location) || (has(self.initProvider) && has(self.initProvider.location))",message="spec.forProvider.location is a required parameter" + Spec RouteFilterSpec `json:"spec"` + Status RouteFilterStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// RouteFilterList contains a list of RouteFilters +type RouteFilterList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []RouteFilter `json:"items"` +} + +// Repository type metadata. +var ( + RouteFilter_Kind = "RouteFilter" + RouteFilter_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: RouteFilter_Kind}.String() + RouteFilter_KindAPIVersion = RouteFilter_Kind + "." + CRDGroupVersion.String() + RouteFilter_GroupVersionKind = CRDGroupVersion.WithKind(RouteFilter_Kind) +) + +func init() { + SchemeBuilder.Register(&RouteFilter{}, &RouteFilterList{}) +} diff --git a/apis/web/v1beta2/zz_functionapp_types.go b/apis/web/v1beta2/zz_functionapp_types.go index 4adeeb7f9..832cf7a07 100755 --- a/apis/web/v1beta2/zz_functionapp_types.go +++ b/apis/web/v1beta2/zz_functionapp_types.go @@ -692,7 +692,7 @@ type IPRestrictionInitParameters struct { Action *string `json:"action,omitempty" tf:"action"` // The headers block for this specific scm_ip_restriction as defined below. - Headers []HeadersInitParameters `json:"headers,omitempty" tf:"headers"` + Headers *HeadersInitParameters `json:"headers,omitempty" tf:"headers"` // The IP Address used for this IP Restriction in CIDR notation. IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address"` @@ -726,7 +726,7 @@ type IPRestrictionObservation struct { Action *string `json:"action,omitempty" tf:"action,omitempty"` // The headers block for this specific scm_ip_restriction as defined below. - Headers []HeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *HeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The IP Address used for this IP Restriction in CIDR notation. IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"` @@ -752,7 +752,7 @@ type IPRestrictionParameters struct { // The headers block for this specific scm_ip_restriction as defined below. // +kubebuilder:validation:Optional - Headers []HeadersParameters `json:"headers,omitempty" tf:"headers"` + Headers *HeadersParameters `json:"headers,omitempty" tf:"headers"` // The IP Address used for this IP Restriction in CIDR notation. // +kubebuilder:validation:Optional @@ -923,7 +923,7 @@ type ScmIPRestrictionInitParameters struct { Action *string `json:"action,omitempty" tf:"action"` // The headers block for this specific scm_ip_restriction as defined below. - Headers []ScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers"` + Headers *ScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers"` // The IP Address used for this IP Restriction in CIDR notation. IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address"` @@ -957,7 +957,7 @@ type ScmIPRestrictionObservation struct { Action *string `json:"action,omitempty" tf:"action,omitempty"` // The headers block for this specific scm_ip_restriction as defined below. - Headers []ScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *ScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The IP Address used for this IP Restriction in CIDR notation. IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"` @@ -983,7 +983,7 @@ type ScmIPRestrictionParameters struct { // The headers block for this specific scm_ip_restriction as defined below. // +kubebuilder:validation:Optional - Headers []ScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers"` + Headers *ScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers"` // The IP Address used for this IP Restriction in CIDR notation. // +kubebuilder:validation:Optional diff --git a/apis/web/v1beta2/zz_functionappslot_types.go b/apis/web/v1beta2/zz_functionappslot_types.go index cedda9d90..599068d81 100755 --- a/apis/web/v1beta2/zz_functionappslot_types.go +++ b/apis/web/v1beta2/zz_functionappslot_types.go @@ -982,7 +982,7 @@ type SiteConfigIPRestrictionInitParameters struct { Action *string `json:"action,omitempty" tf:"action"` // The headers block for this specific scm_ip_restriction as defined below. - Headers []IPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers"` + Headers *IPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers"` // The IP Address used for this IP Restriction in CIDR notation. IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address"` @@ -1016,7 +1016,7 @@ type SiteConfigIPRestrictionObservation struct { Action *string `json:"action,omitempty" tf:"action,omitempty"` // The headers block for this specific scm_ip_restriction as defined below. - Headers []IPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *IPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The IP Address used for this IP Restriction in CIDR notation. IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"` @@ -1042,7 +1042,7 @@ type SiteConfigIPRestrictionParameters struct { // The headers block for this specific scm_ip_restriction as defined below. // +kubebuilder:validation:Optional - Headers []IPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers"` + Headers *IPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers"` // The IP Address used for this IP Restriction in CIDR notation. // +kubebuilder:validation:Optional @@ -1142,7 +1142,7 @@ type SiteConfigScmIPRestrictionInitParameters struct { Action *string `json:"action,omitempty" tf:"action"` // The headers block for this specific scm_ip_restriction as defined below. - Headers []SiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers"` + Headers *SiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers"` // The IP Address used for this IP Restriction in CIDR notation. IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address"` @@ -1176,7 +1176,7 @@ type SiteConfigScmIPRestrictionObservation struct { Action *string `json:"action,omitempty" tf:"action,omitempty"` // The headers block for this specific scm_ip_restriction as defined below. - Headers []SiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *SiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The IP Address used for this IP Restriction in CIDR notation. IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"` @@ -1202,7 +1202,7 @@ type SiteConfigScmIPRestrictionParameters struct { // The headers block for this specific scm_ip_restriction as defined below. // +kubebuilder:validation:Optional - Headers []SiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers"` + Headers *SiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers"` // The IP Address used for this IP Restriction in CIDR notation. // +kubebuilder:validation:Optional diff --git a/apis/web/v1beta2/zz_generated.deepcopy.go b/apis/web/v1beta2/zz_generated.deepcopy.go index 5dc18741a..c2eb89ea7 100644 --- a/apis/web/v1beta2/zz_generated.deepcopy.go +++ b/apis/web/v1beta2/zz_generated.deepcopy.go @@ -9163,10 +9163,8 @@ func (in *IPRestrictionInitParameters) DeepCopyInto(out *IPRestrictionInitParame } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]HeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(HeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -9225,10 +9223,8 @@ func (in *IPRestrictionObservation) DeepCopyInto(out *IPRestrictionObservation) } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]HeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(HeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -9277,10 +9273,8 @@ func (in *IPRestrictionParameters) DeepCopyInto(out *IPRestrictionParameters) { } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]HeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(HeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -11371,10 +11365,8 @@ func (in *LinuxFunctionAppSiteConfigIPRestrictionInitParameters) DeepCopyInto(ou } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]SiteConfigIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SiteConfigIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -11438,10 +11430,8 @@ func (in *LinuxFunctionAppSiteConfigIPRestrictionObservation) DeepCopyInto(out * } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]SiteConfigIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SiteConfigIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -11495,10 +11485,8 @@ func (in *LinuxFunctionAppSiteConfigIPRestrictionParameters) DeepCopyInto(out *L } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]SiteConfigIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SiteConfigIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -12334,10 +12322,8 @@ func (in *LinuxFunctionAppSiteConfigScmIPRestrictionInitParameters) DeepCopyInto } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -12401,10 +12387,8 @@ func (in *LinuxFunctionAppSiteConfigScmIPRestrictionObservation) DeepCopyInto(ou } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -12458,10 +12442,8 @@ func (in *LinuxFunctionAppSiteConfigScmIPRestrictionParameters) DeepCopyInto(out } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -15076,10 +15058,8 @@ func (in *LinuxFunctionAppSlotSiteConfigIPRestrictionInitParameters) DeepCopyInt } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -15143,10 +15123,8 @@ func (in *LinuxFunctionAppSlotSiteConfigIPRestrictionObservation) DeepCopyInto(o } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -15200,10 +15178,8 @@ func (in *LinuxFunctionAppSlotSiteConfigIPRestrictionParameters) DeepCopyInto(ou } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -16054,10 +16030,8 @@ func (in *LinuxFunctionAppSlotSiteConfigScmIPRestrictionInitParameters) DeepCopy } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -16121,10 +16095,8 @@ func (in *LinuxFunctionAppSlotSiteConfigScmIPRestrictionObservation) DeepCopyInt } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -16178,10 +16150,8 @@ func (in *LinuxFunctionAppSlotSiteConfigScmIPRestrictionParameters) DeepCopyInto } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -20946,10 +20916,8 @@ func (in *LinuxWebAppSiteConfigIPRestrictionInitParameters) DeepCopyInto(out *Li } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSiteConfigIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSiteConfigIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -21013,10 +20981,8 @@ func (in *LinuxWebAppSiteConfigIPRestrictionObservation) DeepCopyInto(out *Linux } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSiteConfigIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSiteConfigIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -21070,10 +21036,8 @@ func (in *LinuxWebAppSiteConfigIPRestrictionParameters) DeepCopyInto(out *LinuxW } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSiteConfigIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSiteConfigIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -21869,10 +21833,8 @@ func (in *LinuxWebAppSiteConfigScmIPRestrictionInitParameters) DeepCopyInto(out } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -21936,10 +21898,8 @@ func (in *LinuxWebAppSiteConfigScmIPRestrictionObservation) DeepCopyInto(out *Li } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -21993,10 +21953,8 @@ func (in *LinuxWebAppSiteConfigScmIPRestrictionParameters) DeepCopyInto(out *Lin } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -26671,10 +26629,8 @@ func (in *LinuxWebAppSlotSiteConfigIPRestrictionInitParameters) DeepCopyInto(out } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSlotSiteConfigIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSlotSiteConfigIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -26738,10 +26694,8 @@ func (in *LinuxWebAppSlotSiteConfigIPRestrictionObservation) DeepCopyInto(out *L } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSlotSiteConfigIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSlotSiteConfigIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -26795,10 +26749,8 @@ func (in *LinuxWebAppSlotSiteConfigIPRestrictionParameters) DeepCopyInto(out *Li } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSlotSiteConfigIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSlotSiteConfigIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -27609,10 +27561,8 @@ func (in *LinuxWebAppSlotSiteConfigScmIPRestrictionInitParameters) DeepCopyInto( } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -27676,10 +27626,8 @@ func (in *LinuxWebAppSlotSiteConfigScmIPRestrictionObservation) DeepCopyInto(out } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -27733,10 +27681,8 @@ func (in *LinuxWebAppSlotSiteConfigScmIPRestrictionParameters) DeepCopyInto(out } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -29594,10 +29540,8 @@ func (in *ScmIPRestrictionInitParameters) DeepCopyInto(out *ScmIPRestrictionInit } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]ScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(ScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -29656,10 +29600,8 @@ func (in *ScmIPRestrictionObservation) DeepCopyInto(out *ScmIPRestrictionObserva } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]ScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(ScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -29708,10 +29650,8 @@ func (in *ScmIPRestrictionParameters) DeepCopyInto(out *ScmIPRestrictionParamete } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]ScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(ScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -30877,10 +30817,8 @@ func (in *SiteConfigIPRestrictionInitParameters) DeepCopyInto(out *SiteConfigIPR } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]IPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(IPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -30939,10 +30877,8 @@ func (in *SiteConfigIPRestrictionObservation) DeepCopyInto(out *SiteConfigIPRest } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]IPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(IPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -30991,10 +30927,8 @@ func (in *SiteConfigIPRestrictionParameters) DeepCopyInto(out *SiteConfigIPRestr } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]IPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(IPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -31602,10 +31536,8 @@ func (in *SiteConfigScmIPRestrictionInitParameters) DeepCopyInto(out *SiteConfig } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]SiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -31664,10 +31596,8 @@ func (in *SiteConfigScmIPRestrictionObservation) DeepCopyInto(out *SiteConfigScm } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]SiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -31716,10 +31646,8 @@ func (in *SiteConfigScmIPRestrictionParameters) DeepCopyInto(out *SiteConfigScmI } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]SiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -38372,10 +38300,8 @@ func (in *WindowsFunctionAppSiteConfigIPRestrictionInitParameters) DeepCopyInto( } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSiteConfigIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSiteConfigIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -38439,10 +38365,8 @@ func (in *WindowsFunctionAppSiteConfigIPRestrictionObservation) DeepCopyInto(out } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSiteConfigIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSiteConfigIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -38496,10 +38420,8 @@ func (in *WindowsFunctionAppSiteConfigIPRestrictionParameters) DeepCopyInto(out } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSiteConfigIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSiteConfigIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -39305,10 +39227,8 @@ func (in *WindowsFunctionAppSiteConfigScmIPRestrictionInitParameters) DeepCopyIn } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -39372,10 +39292,8 @@ func (in *WindowsFunctionAppSiteConfigScmIPRestrictionObservation) DeepCopyInto( } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -39429,10 +39347,8 @@ func (in *WindowsFunctionAppSiteConfigScmIPRestrictionParameters) DeepCopyInto(o } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -43991,10 +43907,8 @@ func (in *WindowsFunctionAppSlotSiteConfigIPRestrictionInitParameters) DeepCopyI } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -44058,10 +43972,8 @@ func (in *WindowsFunctionAppSlotSiteConfigIPRestrictionObservation) DeepCopyInto } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -44115,10 +44027,8 @@ func (in *WindowsFunctionAppSlotSiteConfigIPRestrictionParameters) DeepCopyInto( } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -44939,10 +44849,8 @@ func (in *WindowsFunctionAppSlotSiteConfigScmIPRestrictionInitParameters) DeepCo } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -45006,10 +44914,8 @@ func (in *WindowsFunctionAppSlotSiteConfigScmIPRestrictionObservation) DeepCopyI } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -45063,10 +44969,8 @@ func (in *WindowsFunctionAppSlotSiteConfigScmIPRestrictionParameters) DeepCopyIn } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -50514,10 +50418,8 @@ func (in *WindowsWebAppSiteConfigIPRestrictionInitParameters) DeepCopyInto(out * } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSiteConfigIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSiteConfigIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -50581,10 +50483,8 @@ func (in *WindowsWebAppSiteConfigIPRestrictionObservation) DeepCopyInto(out *Win } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSiteConfigIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSiteConfigIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -50638,10 +50538,8 @@ func (in *WindowsWebAppSiteConfigIPRestrictionParameters) DeepCopyInto(out *Wind } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSiteConfigIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSiteConfigIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -51463,10 +51361,8 @@ func (in *WindowsWebAppSiteConfigScmIPRestrictionInitParameters) DeepCopyInto(ou } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -51530,10 +51426,8 @@ func (in *WindowsWebAppSiteConfigScmIPRestrictionObservation) DeepCopyInto(out * } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -51587,10 +51481,8 @@ func (in *WindowsWebAppSiteConfigScmIPRestrictionParameters) DeepCopyInto(out *W } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -56931,10 +56823,8 @@ func (in *WindowsWebAppSlotSiteConfigIPRestrictionInitParameters) DeepCopyInto(o } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSlotSiteConfigIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSlotSiteConfigIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -56998,10 +56888,8 @@ func (in *WindowsWebAppSlotSiteConfigIPRestrictionObservation) DeepCopyInto(out } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSlotSiteConfigIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSlotSiteConfigIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -57055,10 +56943,8 @@ func (in *WindowsWebAppSlotSiteConfigIPRestrictionParameters) DeepCopyInto(out * } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSlotSiteConfigIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSlotSiteConfigIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -57890,10 +57776,8 @@ func (in *WindowsWebAppSlotSiteConfigScmIPRestrictionInitParameters) DeepCopyInt } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersInitParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -57957,10 +57841,8 @@ func (in *WindowsWebAppSlotSiteConfigScmIPRestrictionObservation) DeepCopyInto(o } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersObservation) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress @@ -58014,10 +57896,8 @@ func (in *WindowsWebAppSlotSiteConfigScmIPRestrictionParameters) DeepCopyInto(ou } if in.Headers != nil { in, out := &in.Headers, &out.Headers - *out = make([]WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersParameters) + (*in).DeepCopyInto(*out) } if in.IPAddress != nil { in, out := &in.IPAddress, &out.IPAddress diff --git a/apis/web/v1beta2/zz_linuxfunctionapp_types.go b/apis/web/v1beta2/zz_linuxfunctionapp_types.go index fba750124..db734d94b 100755 --- a/apis/web/v1beta2/zz_linuxfunctionapp_types.go +++ b/apis/web/v1beta2/zz_linuxfunctionapp_types.go @@ -2139,7 +2139,7 @@ type LinuxFunctionAppSiteConfigIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []SiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *SiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2183,7 +2183,7 @@ type LinuxFunctionAppSiteConfigIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []SiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *SiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2220,7 +2220,7 @@ type LinuxFunctionAppSiteConfigIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []SiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *SiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2755,7 +2755,7 @@ type LinuxFunctionAppSiteConfigScmIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxFunctionAppSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2799,7 +2799,7 @@ type LinuxFunctionAppSiteConfigScmIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxFunctionAppSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2836,7 +2836,7 @@ type LinuxFunctionAppSiteConfigScmIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []LinuxFunctionAppSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` diff --git a/apis/web/v1beta2/zz_linuxfunctionappslot_types.go b/apis/web/v1beta2/zz_linuxfunctionappslot_types.go index 6b737f3e5..4eaf75aa7 100755 --- a/apis/web/v1beta2/zz_linuxfunctionappslot_types.go +++ b/apis/web/v1beta2/zz_linuxfunctionappslot_types.go @@ -2291,7 +2291,7 @@ type LinuxFunctionAppSlotSiteConfigIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // a headers block as detailed below. - Headers []LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2335,7 +2335,7 @@ type LinuxFunctionAppSlotSiteConfigIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // a headers block as detailed below. - Headers []LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2372,7 +2372,7 @@ type LinuxFunctionAppSlotSiteConfigIPRestrictionParameters struct { // a headers block as detailed below. // +kubebuilder:validation:Optional - Headers []LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSlotSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2919,7 +2919,7 @@ type LinuxFunctionAppSlotSiteConfigScmIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // a headers block as detailed below. - Headers []LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2963,7 +2963,7 @@ type LinuxFunctionAppSlotSiteConfigScmIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // a headers block as detailed below. - Headers []LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3000,7 +3000,7 @@ type LinuxFunctionAppSlotSiteConfigScmIPRestrictionParameters struct { // a headers block as detailed below. // +kubebuilder:validation:Optional - Headers []LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxFunctionAppSlotSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` diff --git a/apis/web/v1beta2/zz_linuxwebapp_types.go b/apis/web/v1beta2/zz_linuxwebapp_types.go index a38e9767f..dce2103bb 100755 --- a/apis/web/v1beta2/zz_linuxwebapp_types.go +++ b/apis/web/v1beta2/zz_linuxwebapp_types.go @@ -2522,7 +2522,7 @@ type LinuxWebAppSiteConfigIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxWebAppSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2566,7 +2566,7 @@ type LinuxWebAppSiteConfigIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxWebAppSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2603,7 +2603,7 @@ type LinuxWebAppSiteConfigIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []LinuxWebAppSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3033,7 +3033,7 @@ type LinuxWebAppSiteConfigScmIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxWebAppSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3077,7 +3077,7 @@ type LinuxWebAppSiteConfigScmIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxWebAppSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3114,7 +3114,7 @@ type LinuxWebAppSiteConfigScmIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []LinuxWebAppSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` diff --git a/apis/web/v1beta2/zz_linuxwebappslot_types.go b/apis/web/v1beta2/zz_linuxwebappslot_types.go index 6cbdcbb2b..d55ad3a79 100755 --- a/apis/web/v1beta2/zz_linuxwebappslot_types.go +++ b/apis/web/v1beta2/zz_linuxwebappslot_types.go @@ -2488,7 +2488,7 @@ type LinuxWebAppSlotSiteConfigIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxWebAppSlotSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSlotSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2532,7 +2532,7 @@ type LinuxWebAppSlotSiteConfigIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxWebAppSlotSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSlotSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2569,7 +2569,7 @@ type LinuxWebAppSlotSiteConfigIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []LinuxWebAppSlotSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSlotSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3009,7 +3009,7 @@ type LinuxWebAppSlotSiteConfigScmIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3053,7 +3053,7 @@ type LinuxWebAppSlotSiteConfigScmIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3090,7 +3090,7 @@ type LinuxWebAppSlotSiteConfigScmIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *LinuxWebAppSlotSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` diff --git a/apis/web/v1beta2/zz_windowsfunctionapp_types.go b/apis/web/v1beta2/zz_windowsfunctionapp_types.go index e5bfa1e7b..38d456c07 100755 --- a/apis/web/v1beta2/zz_windowsfunctionapp_types.go +++ b/apis/web/v1beta2/zz_windowsfunctionapp_types.go @@ -2407,7 +2407,7 @@ type WindowsFunctionAppSiteConfigIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsFunctionAppSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2451,7 +2451,7 @@ type WindowsFunctionAppSiteConfigIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsFunctionAppSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2488,7 +2488,7 @@ type WindowsFunctionAppSiteConfigIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []WindowsFunctionAppSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2997,7 +2997,7 @@ type WindowsFunctionAppSiteConfigScmIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsFunctionAppSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3041,7 +3041,7 @@ type WindowsFunctionAppSiteConfigScmIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsFunctionAppSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3078,7 +3078,7 @@ type WindowsFunctionAppSiteConfigScmIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []WindowsFunctionAppSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` diff --git a/apis/web/v1beta2/zz_windowsfunctionappslot_types.go b/apis/web/v1beta2/zz_windowsfunctionappslot_types.go index 7afea809e..7bb60c2f6 100755 --- a/apis/web/v1beta2/zz_windowsfunctionappslot_types.go +++ b/apis/web/v1beta2/zz_windowsfunctionappslot_types.go @@ -2361,7 +2361,7 @@ type WindowsFunctionAppSlotSiteConfigIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // a headers block as detailed below. - Headers []WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2405,7 +2405,7 @@ type WindowsFunctionAppSlotSiteConfigIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // a headers block as detailed below. - Headers []WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2442,7 +2442,7 @@ type WindowsFunctionAppSlotSiteConfigIPRestrictionParameters struct { // a headers block as detailed below. // +kubebuilder:validation:Optional - Headers []WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSlotSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2963,7 +2963,7 @@ type WindowsFunctionAppSlotSiteConfigScmIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // a headers block as detailed below. - Headers []WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3007,7 +3007,7 @@ type WindowsFunctionAppSlotSiteConfigScmIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // a headers block as detailed below. - Headers []WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3044,7 +3044,7 @@ type WindowsFunctionAppSlotSiteConfigScmIPRestrictionParameters struct { // a headers block as detailed below. // +kubebuilder:validation:Optional - Headers []WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsFunctionAppSlotSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` diff --git a/apis/web/v1beta2/zz_windowswebapp_types.go b/apis/web/v1beta2/zz_windowswebapp_types.go index 8dc154bf7..6087968eb 100755 --- a/apis/web/v1beta2/zz_windowswebapp_types.go +++ b/apis/web/v1beta2/zz_windowswebapp_types.go @@ -2926,7 +2926,7 @@ type WindowsWebAppSiteConfigIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsWebAppSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2970,7 +2970,7 @@ type WindowsWebAppSiteConfigIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsWebAppSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3007,7 +3007,7 @@ type WindowsWebAppSiteConfigIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []WindowsWebAppSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3449,7 +3449,7 @@ type WindowsWebAppSiteConfigScmIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsWebAppSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3493,7 +3493,7 @@ type WindowsWebAppSiteConfigScmIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsWebAppSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3530,7 +3530,7 @@ type WindowsWebAppSiteConfigScmIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []WindowsWebAppSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` diff --git a/apis/web/v1beta2/zz_windowswebappslot_types.go b/apis/web/v1beta2/zz_windowswebappslot_types.go index 4fbf2dd61..00500eaf9 100755 --- a/apis/web/v1beta2/zz_windowswebappslot_types.go +++ b/apis/web/v1beta2/zz_windowswebappslot_types.go @@ -2887,7 +2887,7 @@ type WindowsWebAppSlotSiteConfigIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsWebAppSlotSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSlotSiteConfigIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2931,7 +2931,7 @@ type WindowsWebAppSlotSiteConfigIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsWebAppSlotSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSlotSiteConfigIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -2968,7 +2968,7 @@ type WindowsWebAppSlotSiteConfigIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []WindowsWebAppSlotSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSlotSiteConfigIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3418,7 +3418,7 @@ type WindowsWebAppSlotSiteConfigScmIPRestrictionInitParameters struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersInitParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3462,7 +3462,7 @@ type WindowsWebAppSlotSiteConfigScmIPRestrictionObservation struct { Description *string `json:"description,omitempty" tf:"description,omitempty"` // A headers block as defined above. - Headers []WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersObservation `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` @@ -3499,7 +3499,7 @@ type WindowsWebAppSlotSiteConfigScmIPRestrictionParameters struct { // A headers block as defined above. // +kubebuilder:validation:Optional - Headers []WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` + Headers *WindowsWebAppSlotSiteConfigScmIPRestrictionHeadersParameters `json:"headers,omitempty" tf:"headers,omitempty"` // The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 // The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22` diff --git a/config/apimanagement/config.go b/config/apimanagement/config.go index c37f7a2ed..0c0b3ba97 100644 --- a/config/apimanagement/config.go +++ b/config/apimanagement/config.go @@ -21,6 +21,10 @@ func Configure(p *config.Provider) { r.Kind = "Management" // Mutually exclusive with azurerm_api_management_custom_domain config.MoveToStatus(r.TerraformResource, "hostname_configuration") + + r.TerraformResource.Schema["policy"].MaxItems = 1 + + r.AddSingletonListConversion("policy", "policy") }) p.AddResourceConfigurator("azurerm_api_management_api_operation", func(r *config.Resource) { r.References["api_name"] = config.Reference{ diff --git a/config/containerregistry/config.go b/config/containerregistry/config.go index f2523d199..c5a76e0ae 100644 --- a/config/containerregistry/config.go +++ b/config/containerregistry/config.go @@ -17,6 +17,16 @@ func Configure(p *config.Provider) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"encryption"}, } + + r.TerraformResource.Schema["retention_policy"].MaxItems = 1 + r.TerraformResource.Schema["trust_policy"].MaxItems = 1 + r.TerraformResource.Schema["encryption"].MaxItems = 1 + r.TerraformResource.Schema["network_rule_set"].MaxItems = 1 + + r.AddSingletonListConversion("retention_policy", "retention_policy") + r.AddSingletonListConversion("trust_policy", "trust_policy") + r.AddSingletonListConversion("encryption", "encryption") + r.AddSingletonListConversion("network_rule_set", "network_rule_set") }) p.AddResourceConfigurator("azurerm_container_registry_token", func(r *config.Resource) { diff --git a/config/eventhub/config.go b/config/eventhub/config.go index b5cf38e25..9ed58115d 100644 --- a/config/eventhub/config.go +++ b/config/eventhub/config.go @@ -15,6 +15,10 @@ func Configure(p *config.Provider) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"network_rulesets"}, } + + r.TerraformResource.Schema["network_rulesets"].MaxItems = 1 + + r.AddSingletonListConversion("network_rulesets", "network_rulesets") }) p.AddResourceConfigurator("azurerm_eventhub", func(r *config.Resource) { diff --git a/config/network/config.go b/config/network/config.go index 9a6d0f5d6..912d7511b 100644 --- a/config/network/config.go +++ b/config/network/config.go @@ -6,8 +6,8 @@ package network import ( "github.com/crossplane/upjet/pkg/config" + "github.com/crossplane/upjet/pkg/config/conversion" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "github.com/upbound/provider-azure/apis/rconfig" ) @@ -608,4 +608,21 @@ func Configure(p *config.Provider) { return diff, nil } }) + + p.AddResourceConfigurator("azurerm_route_filter", func(r *config.Resource) { + r.TerraformResource.Schema["rule"].MaxItems = 1 + + r.Version = "v1beta2" + r.PreviousVersions = []string{"v1beta1"} + // we would like to set the storage version to v1beta1 to facilitate + // downgrades. + r.SetCRDStorageVersion("v1beta1") + r.ControllerReconcileVersion = "v1beta1" + r.Conversions = []conversion.Conversion{ + conversion.NewIdentityConversionExpandPaths(conversion.AllVersions, conversion.AllVersions, conversion.DefaultPathPrefixes(), r.CRDListConversionPaths()...), + conversion.NewSingletonListConversion("v1beta1", "v1beta2", conversion.DefaultPathPrefixes(), r.CRDListConversionPaths(), conversion.ToEmbeddedObject), + conversion.NewSingletonListConversion("v1beta2", "v1beta1", conversion.DefaultPathPrefixes(), r.CRDListConversionPaths(), conversion.ToSingletonList)} + + r.AddSingletonListConversion("rule", "rule") + }) } diff --git a/config/synapse/config.go b/config/synapse/config.go new file mode 100644 index 000000000..5ba77b7bd --- /dev/null +++ b/config/synapse/config.go @@ -0,0 +1,18 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: CC0-1.0 + +package synapse + +import "github.com/crossplane/upjet/pkg/config" + +// Configure configures synapse group +func Configure(p *config.Provider) { + p.AddResourceConfigurator("azurerm_synapse_workspace", func(r *config.Resource) { + r.TerraformResource.Schema["aad_admin"].MaxItems = 1 + r.TerraformResource.Schema["sql_aad_admin"].MaxItems = 1 + + r.AddSingletonListConversion("aad_admin", "aad_admin") + r.AddSingletonListConversion("sql_aad_admin", "sql_aad_admin") + }) +} diff --git a/config/web/config.go b/config/web/config.go index 9d85a929e..bff876aed 100644 --- a/config/web/config.go +++ b/config/web/config.go @@ -5,6 +5,8 @@ package web import ( + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/crossplane/upjet/pkg/config" "github.com/upbound/provider-azure/apis/rconfig" @@ -16,51 +18,141 @@ func Configure(p *config.Provider) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_function_app", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_function_app_slot", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_linux_function_app", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_linux_function_app_slot", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_linux_web_app_slot", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_windows_function_app", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_windows_function_app_slot", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_windows_web_app", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_windows_web_app_slot", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"key_vault_reference_identity_id"}, } + + sc := r.TerraformResource.Schema["site_config"].Elem.(*schema.Resource) + sc.Schema["ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + sc.Schema["scm_ip_restriction"].Elem.(*schema.Resource). + Schema["headers"].MaxItems = 1 + + r.AddSingletonListConversion("site_config[*].ip_restriction[*].headers", "siteConfig[*].ipRestriction[*].headers") + r.AddSingletonListConversion("site_config[*].scm_ip_restriction[*].headers", "siteConfig[*].scmIpRestriction[*].headers") }) p.AddResourceConfigurator("azurerm_function_app_hybrid_connection", func(r *config.Resource) { r.References["function_app_id"] = config.Reference{ diff --git a/examples-generated/network/v1beta2/routefilter.yaml b/examples-generated/network/v1beta2/routefilter.yaml new file mode 100644 index 000000000..9e49ee9f9 --- /dev/null +++ b/examples-generated/network/v1beta2/routefilter.yaml @@ -0,0 +1,20 @@ +apiVersion: network.azure.upbound.io/v1beta2 +kind: RouteFilter +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/routefilter + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + rule: + - access: Allow + communities: + - 12076:52004 + name: rule + ruleType: Community diff --git a/package/crds/apimanagement.azure.upbound.io_managements.yaml b/package/crds/apimanagement.azure.upbound.io_managements.yaml index 35526eaa9..534f12b63 100644 --- a/package/crds/apimanagement.azure.upbound.io_managements.yaml +++ b/package/crds/apimanagement.azure.upbound.io_managements.yaml @@ -2280,17 +2280,15 @@ spec: type: string policy: description: A policy block as defined below. - items: - properties: - xmlContent: - description: The XML Content for this Policy. - type: string - xmlLink: - description: A link to an API Management Policy XML Document, - which must be publicly available. - type: string - type: object - type: array + properties: + xmlContent: + description: The XML Content for this Policy. + type: string + xmlLink: + description: A link to an API Management Policy XML Document, + which must be publicly available. + type: string + type: object protocols: description: A protocols block as defined below. properties: @@ -2810,17 +2808,15 @@ spec: type: string policy: description: A policy block as defined below. - items: - properties: - xmlContent: - description: The XML Content for this Policy. - type: string - xmlLink: - description: A link to an API Management Policy XML Document, - which must be publicly available. - type: string - type: object - type: array + properties: + xmlContent: + description: The XML Content for this Policy. + type: string + xmlLink: + description: A link to an API Management Policy XML Document, + which must be publicly available. + type: string + type: object protocols: description: A protocols block as defined below. properties: @@ -3624,17 +3620,15 @@ spec: type: string policy: description: A policy block as defined below. - items: - properties: - xmlContent: - description: The XML Content for this Policy. - type: string - xmlLink: - description: A link to an API Management Policy XML Document, - which must be publicly available. - type: string - type: object - type: array + properties: + xmlContent: + description: The XML Content for this Policy. + type: string + xmlLink: + description: A link to an API Management Policy XML Document, + which must be publicly available. + type: string + type: object portalUrl: description: The URL for the Publisher Portal associated with this API Management service. diff --git a/package/crds/containerregistry.azure.upbound.io_registries.yaml b/package/crds/containerregistry.azure.upbound.io_registries.yaml index 815b99856..9dec74ec7 100644 --- a/package/crds/containerregistry.azure.upbound.io_registries.yaml +++ b/package/crds/containerregistry.azure.upbound.io_registries.yaml @@ -1330,97 +1330,95 @@ spec: type: boolean encryption: description: An encryption block as documented below. - items: - properties: - enabled: - description: Boolean value that indicates whether encryption - is enabled. - type: boolean - identityClientId: - description: The client ID of the managed identity associated - with the encryption key. - type: string - identityClientIdRef: - description: Reference to a UserAssignedIdentity in managedidentity - to populate identityClientId. - properties: - name: - description: Name of the referenced object. + properties: + enabled: + description: Boolean value that indicates whether encryption + is enabled. + type: boolean + identityClientId: + description: The client ID of the managed identity associated + with the encryption key. + type: string + identityClientIdRef: + description: Reference to a UserAssignedIdentity in managedidentity + to populate identityClientId. + 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 + identityClientIdSelector: + description: Selector for a UserAssignedIdentity in managedidentity + to populate identityClientId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: 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 - identityClientIdSelector: - description: Selector for a UserAssignedIdentity in managedidentity - to populate identityClientId. - properties: - matchControllerRef: - description: |- - MatchControllerRef ensures an object with the same controller reference - as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: + 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 - 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 - keyVaultKeyId: - description: The ID of the Key Vault Key. - type: string - type: object - type: array + 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 + keyVaultKeyId: + description: The ID of the Key Vault Key. + type: string + type: object exportPolicyEnabled: description: Boolean value that indicates whether export policy is enabled. Defaults to true. In order to set it to false, make @@ -1480,116 +1478,114 @@ spec: type: string networkRuleSet: description: A network_rule_set block as documented below. - items: - properties: - defaultAction: - description: The behaviour for requests matching no rules. - Either Allow or Deny. Defaults to Allow - type: string - ipRule: - description: One or more ip_rule blocks as defined below. - items: - properties: - action: - description: The behaviour for requests matching this - rule. At this time the only supported value is Allow - type: string - ipRange: - description: The CIDR block from which requests will - match the rule. - type: string - type: object - type: array - virtualNetwork: - items: - properties: - action: - description: The behaviour for requests matching this - rule. At this time the only supported value is Allow - type: string - subnetId: - description: The ID of the Container Registry. - type: string - subnetIdRef: - description: Reference to a Subnet in network to populate - subnetId. - properties: - name: - description: Name of the referenced object. + properties: + defaultAction: + description: The behaviour for requests matching no rules. + Either Allow or Deny. Defaults to Allow + type: string + ipRule: + description: One or more ip_rule blocks as defined below. + items: + properties: + action: + description: The behaviour for requests matching this + rule. At this time the only supported value is Allow + type: string + ipRange: + description: The CIDR block from which requests will + match the rule. + type: string + type: object + type: array + virtualNetwork: + items: + properties: + action: + description: The behaviour for requests matching this + rule. At this time the only supported value is Allow + type: string + subnetId: + description: The ID of the Container Registry. + type: string + subnetIdRef: + description: Reference to a Subnet in network to populate + subnetId. + 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 + subnetIdSelector: + description: Selector for a Subnet in network to populate + subnetId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: 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 - subnetIdSelector: - description: Selector for a Subnet in network to populate - subnetId. - properties: - matchControllerRef: - description: |- - MatchControllerRef ensures an object with the same controller reference - as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: + 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 - description: MatchLabels ensures an object with - matching labels is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: |- - Resolution specifies whether resolution of this reference is required. - The default is 'Required', which means the reconcile will fail if the - reference cannot be resolved. 'Optional' means this reference will be - a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: |- - Resolve specifies when this reference should be resolved. The default - is 'IfNotPresent', which will attempt to resolve the reference only when - the corresponding field is not present. Use 'Always' to resolve the - reference on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - type: object - type: array - type: object - type: array + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + type: object + type: array + type: object publicNetworkAccessEnabled: description: Whether public network access is allowed for the container registry. Defaults to true. @@ -1681,18 +1677,16 @@ spec: type: object retentionPolicy: description: A retention_policy block as documented below. - items: - properties: - days: - description: The number of days to retain an untagged manifest - after which it gets purged. Default is 7. - type: number - enabled: - description: Boolean value that indicates whether the policy - is enabled. - type: boolean - type: object - type: array + properties: + days: + description: The number of days to retain an untagged manifest + after which it gets purged. Default is 7. + type: number + enabled: + description: Boolean value that indicates whether the policy + is enabled. + type: boolean + type: object sku: description: The SKU name of the container registry. Possible values are Basic, Standard and Premium. @@ -1705,14 +1699,12 @@ spec: x-kubernetes-map-type: granular trustPolicy: description: A trust_policy block as documented below. - items: - properties: - enabled: - description: Boolean value that indicates whether the policy - is enabled. - type: boolean - type: object - type: array + properties: + enabled: + description: Boolean value that indicates whether the policy + is enabled. + type: boolean + type: object zoneRedundancyEnabled: description: Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. @@ -1748,97 +1740,95 @@ spec: type: boolean encryption: description: An encryption block as documented below. - items: - properties: - enabled: - description: Boolean value that indicates whether encryption - is enabled. - type: boolean - identityClientId: - description: The client ID of the managed identity associated - with the encryption key. - type: string - identityClientIdRef: - description: Reference to a UserAssignedIdentity in managedidentity - to populate identityClientId. - properties: - name: - description: Name of the referenced object. + properties: + enabled: + description: Boolean value that indicates whether encryption + is enabled. + type: boolean + identityClientId: + description: The client ID of the managed identity associated + with the encryption key. + type: string + identityClientIdRef: + description: Reference to a UserAssignedIdentity in managedidentity + to populate identityClientId. + 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 + identityClientIdSelector: + description: Selector for a UserAssignedIdentity in managedidentity + to populate identityClientId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: 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 - identityClientIdSelector: - description: Selector for a UserAssignedIdentity in managedidentity - to populate identityClientId. - properties: - matchControllerRef: - description: |- - MatchControllerRef ensures an object with the same controller reference - as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: + 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 - 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 - keyVaultKeyId: - description: The ID of the Key Vault Key. - type: string - type: object - type: array + 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 + keyVaultKeyId: + description: The ID of the Key Vault Key. + type: string + type: object exportPolicyEnabled: description: Boolean value that indicates whether export policy is enabled. Defaults to true. In order to set it to false, make @@ -1898,116 +1888,114 @@ spec: type: string networkRuleSet: description: A network_rule_set block as documented below. - items: - properties: - defaultAction: - description: The behaviour for requests matching no rules. - Either Allow or Deny. Defaults to Allow - type: string - ipRule: - description: One or more ip_rule blocks as defined below. - items: - properties: - action: - description: The behaviour for requests matching this - rule. At this time the only supported value is Allow - type: string - ipRange: - description: The CIDR block from which requests will - match the rule. - type: string - type: object - type: array - virtualNetwork: - items: - properties: - action: - description: The behaviour for requests matching this - rule. At this time the only supported value is Allow - type: string - subnetId: - description: The ID of the Container Registry. - type: string - subnetIdRef: - description: Reference to a Subnet in network to populate - subnetId. - properties: - name: - description: Name of the referenced object. + properties: + defaultAction: + description: The behaviour for requests matching no rules. + Either Allow or Deny. Defaults to Allow + type: string + ipRule: + description: One or more ip_rule blocks as defined below. + items: + properties: + action: + description: The behaviour for requests matching this + rule. At this time the only supported value is Allow + type: string + ipRange: + description: The CIDR block from which requests will + match the rule. + type: string + type: object + type: array + virtualNetwork: + items: + properties: + action: + description: The behaviour for requests matching this + rule. At this time the only supported value is Allow + type: string + subnetId: + description: The ID of the Container Registry. + type: string + subnetIdRef: + description: Reference to a Subnet in network to populate + subnetId. + 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 + subnetIdSelector: + description: Selector for a Subnet in network to populate + subnetId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: 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 - subnetIdSelector: - description: Selector for a Subnet in network to populate - subnetId. - properties: - matchControllerRef: - description: |- - MatchControllerRef ensures an object with the same controller reference - as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: + 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 - description: MatchLabels ensures an object with - matching labels is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: |- - Resolution specifies whether resolution of this reference is required. - The default is 'Required', which means the reconcile will fail if the - reference cannot be resolved. 'Optional' means this reference will be - a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: |- - Resolve specifies when this reference should be resolved. The default - is 'IfNotPresent', which will attempt to resolve the reference only when - the corresponding field is not present. Use 'Always' to resolve the - reference on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - type: object - type: array - type: object - type: array + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + type: object + type: array + type: object publicNetworkAccessEnabled: description: Whether public network access is allowed for the container registry. Defaults to true. @@ -2018,18 +2006,16 @@ spec: type: boolean retentionPolicy: description: A retention_policy block as documented below. - items: - properties: - days: - description: The number of days to retain an untagged manifest - after which it gets purged. Default is 7. - type: number - enabled: - description: Boolean value that indicates whether the policy - is enabled. - type: boolean - type: object - type: array + properties: + days: + description: The number of days to retain an untagged manifest + after which it gets purged. Default is 7. + type: number + enabled: + description: Boolean value that indicates whether the policy + is enabled. + type: boolean + type: object sku: description: The SKU name of the container registry. Possible values are Basic, Standard and Premium. @@ -2042,14 +2028,12 @@ spec: x-kubernetes-map-type: granular trustPolicy: description: A trust_policy block as documented below. - items: - properties: - enabled: - description: Boolean value that indicates whether the policy - is enabled. - type: boolean - type: object - type: array + properties: + enabled: + description: Boolean value that indicates whether the policy + is enabled. + type: boolean + type: object zoneRedundancyEnabled: description: Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. @@ -2257,21 +2241,19 @@ spec: type: boolean encryption: description: An encryption block as documented below. - items: - properties: - enabled: - description: Boolean value that indicates whether encryption - is enabled. - type: boolean - identityClientId: - description: The client ID of the managed identity associated - with the encryption key. - type: string - keyVaultKeyId: - description: The ID of the Key Vault Key. - type: string - type: object - type: array + properties: + enabled: + description: Boolean value that indicates whether encryption + is enabled. + type: boolean + identityClientId: + description: The client ID of the managed identity associated + with the encryption key. + type: string + keyVaultKeyId: + description: The ID of the Key Vault Key. + type: string + type: object exportPolicyEnabled: description: Boolean value that indicates whether export policy is enabled. Defaults to true. In order to set it to false, make @@ -2346,40 +2328,38 @@ spec: type: string networkRuleSet: description: A network_rule_set block as documented below. - items: - properties: - defaultAction: - description: The behaviour for requests matching no rules. - Either Allow or Deny. Defaults to Allow - type: string - ipRule: - description: One or more ip_rule blocks as defined below. - items: - properties: - action: - description: The behaviour for requests matching this - rule. At this time the only supported value is Allow - type: string - ipRange: - description: The CIDR block from which requests will - match the rule. - type: string - type: object - type: array - virtualNetwork: - items: - properties: - action: - description: The behaviour for requests matching this - rule. At this time the only supported value is Allow - type: string - subnetId: - description: The ID of the Container Registry. - type: string - type: object - type: array - type: object - type: array + properties: + defaultAction: + description: The behaviour for requests matching no rules. + Either Allow or Deny. Defaults to Allow + type: string + ipRule: + description: One or more ip_rule blocks as defined below. + items: + properties: + action: + description: The behaviour for requests matching this + rule. At this time the only supported value is Allow + type: string + ipRange: + description: The CIDR block from which requests will + match the rule. + type: string + type: object + type: array + virtualNetwork: + items: + properties: + action: + description: The behaviour for requests matching this + rule. At this time the only supported value is Allow + type: string + subnetId: + description: The ID of the Container Registry. + type: string + type: object + type: array + type: object publicNetworkAccessEnabled: description: Whether public network access is allowed for the container registry. Defaults to true. @@ -2395,18 +2375,16 @@ spec: type: string retentionPolicy: description: A retention_policy block as documented below. - items: - properties: - days: - description: The number of days to retain an untagged manifest - after which it gets purged. Default is 7. - type: number - enabled: - description: Boolean value that indicates whether the policy - is enabled. - type: boolean - type: object - type: array + properties: + days: + description: The number of days to retain an untagged manifest + after which it gets purged. Default is 7. + type: number + enabled: + description: Boolean value that indicates whether the policy + is enabled. + type: boolean + type: object sku: description: The SKU name of the container registry. Possible values are Basic, Standard and Premium. @@ -2419,14 +2397,12 @@ spec: x-kubernetes-map-type: granular trustPolicy: description: A trust_policy block as documented below. - items: - properties: - enabled: - description: Boolean value that indicates whether the policy - is enabled. - type: boolean - type: object - type: array + properties: + enabled: + description: Boolean value that indicates whether the policy + is enabled. + type: boolean + type: object zoneRedundancyEnabled: description: Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. diff --git a/package/crds/eventhub.azure.upbound.io_eventhubnamespaces.yaml b/package/crds/eventhub.azure.upbound.io_eventhubnamespaces.yaml index d8a5d63cb..a59ecc1b8 100644 --- a/package/crds/eventhub.azure.upbound.io_eventhubnamespaces.yaml +++ b/package/crds/eventhub.azure.upbound.io_eventhubnamespaces.yaml @@ -1024,125 +1024,123 @@ spec: type: string networkRulesets: description: A network_rulesets block as defined below. - items: - properties: - defaultAction: - description: The default action to take when a rule is not - matched. Possible values are Allow and Deny. - type: string - ipRule: - description: One or more ip_rule blocks as defined below. - items: - properties: - action: - description: The action to take when the rule is matched. - Possible values are Allow. Defaults to Allow. - type: string - ipMask: - description: The IP mask to match on. - type: string - type: object - type: array - publicNetworkAccessEnabled: - description: Is public network access enabled for the EventHub - Namespace? Defaults to true. - type: boolean - trustedServiceAccessEnabled: - description: Whether Trusted Microsoft Services are allowed - to bypass firewall. - type: boolean - virtualNetworkRule: - description: One or more virtual_network_rule blocks as - defined below. - items: - properties: - ignoreMissingVirtualNetworkServiceEndpoint: - description: Are missing virtual network service endpoints - ignored? - type: boolean - subnetId: - description: The id of the subnet to match on. - type: string - subnetIdRef: - description: Reference to a Subnet in network to populate - subnetId. - properties: - name: - description: Name of the referenced object. + properties: + defaultAction: + description: The default action to take when a rule is not + matched. Possible values are Allow and Deny. + type: string + ipRule: + description: One or more ip_rule blocks as defined below. + items: + properties: + action: + description: The action to take when the rule is matched. + Possible values are Allow. Defaults to Allow. + type: string + ipMask: + description: The IP mask to match on. + type: string + type: object + type: array + publicNetworkAccessEnabled: + description: Is public network access enabled for the EventHub + Namespace? Defaults to true. + type: boolean + trustedServiceAccessEnabled: + description: Whether Trusted Microsoft Services are allowed + to bypass firewall. + type: boolean + virtualNetworkRule: + description: One or more virtual_network_rule blocks as defined + below. + items: + properties: + ignoreMissingVirtualNetworkServiceEndpoint: + description: Are missing virtual network service endpoints + ignored? + type: boolean + subnetId: + description: The id of the subnet to match on. + type: string + subnetIdRef: + description: Reference to a Subnet in network to populate + subnetId. + 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 + subnetIdSelector: + description: Selector for a Subnet in network to populate + subnetId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: 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 - subnetIdSelector: - description: Selector for a Subnet in network to populate - subnetId. - properties: - matchControllerRef: - description: |- - MatchControllerRef ensures an object with the same controller reference - as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: + 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 - description: MatchLabels ensures an object with - matching labels is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: |- - Resolution specifies whether resolution of this reference is required. - The default is 'Required', which means the reconcile will fail if the - reference cannot be resolved. 'Optional' means this reference will be - a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: |- - Resolve specifies when this reference should be resolved. The default - is 'IfNotPresent', which will attempt to resolve the reference only when - the corresponding field is not present. Use 'Always' to resolve the - reference on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - type: object - type: array - type: object - type: array + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + type: object + type: array + type: object publicNetworkAccessEnabled: description: Is public network access enabled for the EventHub Namespace? Defaults to true. @@ -1306,125 +1304,123 @@ spec: type: string networkRulesets: description: A network_rulesets block as defined below. - items: - properties: - defaultAction: - description: The default action to take when a rule is not - matched. Possible values are Allow and Deny. - type: string - ipRule: - description: One or more ip_rule blocks as defined below. - items: - properties: - action: - description: The action to take when the rule is matched. - Possible values are Allow. Defaults to Allow. - type: string - ipMask: - description: The IP mask to match on. - type: string - type: object - type: array - publicNetworkAccessEnabled: - description: Is public network access enabled for the EventHub - Namespace? Defaults to true. - type: boolean - trustedServiceAccessEnabled: - description: Whether Trusted Microsoft Services are allowed - to bypass firewall. - type: boolean - virtualNetworkRule: - description: One or more virtual_network_rule blocks as - defined below. - items: - properties: - ignoreMissingVirtualNetworkServiceEndpoint: - description: Are missing virtual network service endpoints - ignored? - type: boolean - subnetId: - description: The id of the subnet to match on. - type: string - subnetIdRef: - description: Reference to a Subnet in network to populate - subnetId. - properties: - name: - description: Name of the referenced object. + properties: + defaultAction: + description: The default action to take when a rule is not + matched. Possible values are Allow and Deny. + type: string + ipRule: + description: One or more ip_rule blocks as defined below. + items: + properties: + action: + description: The action to take when the rule is matched. + Possible values are Allow. Defaults to Allow. + type: string + ipMask: + description: The IP mask to match on. + type: string + type: object + type: array + publicNetworkAccessEnabled: + description: Is public network access enabled for the EventHub + Namespace? Defaults to true. + type: boolean + trustedServiceAccessEnabled: + description: Whether Trusted Microsoft Services are allowed + to bypass firewall. + type: boolean + virtualNetworkRule: + description: One or more virtual_network_rule blocks as defined + below. + items: + properties: + ignoreMissingVirtualNetworkServiceEndpoint: + description: Are missing virtual network service endpoints + ignored? + type: boolean + subnetId: + description: The id of the subnet to match on. + type: string + subnetIdRef: + description: Reference to a Subnet in network to populate + subnetId. + 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 + subnetIdSelector: + description: Selector for a Subnet in network to populate + subnetId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: 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 - subnetIdSelector: - description: Selector for a Subnet in network to populate - subnetId. - properties: - matchControllerRef: - description: |- - MatchControllerRef ensures an object with the same controller reference - as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: + 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 - description: MatchLabels ensures an object with - matching labels is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: |- - Resolution specifies whether resolution of this reference is required. - The default is 'Required', which means the reconcile will fail if the - reference cannot be resolved. 'Optional' means this reference will be - a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: |- - Resolve specifies when this reference should be resolved. The default - is 'IfNotPresent', which will attempt to resolve the reference only when - the corresponding field is not present. Use 'Always' to resolve the - reference on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - type: object - type: array - type: object - type: array + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + type: object + type: array + type: object publicNetworkAccessEnabled: description: Is public network access enabled for the EventHub Namespace? Defaults to true. @@ -1687,49 +1683,47 @@ spec: type: string networkRulesets: description: A network_rulesets block as defined below. - items: - properties: - defaultAction: - description: The default action to take when a rule is not - matched. Possible values are Allow and Deny. - type: string - ipRule: - description: One or more ip_rule blocks as defined below. - items: - properties: - action: - description: The action to take when the rule is matched. - Possible values are Allow. Defaults to Allow. - type: string - ipMask: - description: The IP mask to match on. - type: string - type: object - type: array - publicNetworkAccessEnabled: - description: Is public network access enabled for the EventHub - Namespace? Defaults to true. - type: boolean - trustedServiceAccessEnabled: - description: Whether Trusted Microsoft Services are allowed - to bypass firewall. - type: boolean - virtualNetworkRule: - description: One or more virtual_network_rule blocks as - defined below. - items: - properties: - ignoreMissingVirtualNetworkServiceEndpoint: - description: Are missing virtual network service endpoints - ignored? - type: boolean - subnetId: - description: The id of the subnet to match on. - type: string - type: object - type: array - type: object - type: array + properties: + defaultAction: + description: The default action to take when a rule is not + matched. Possible values are Allow and Deny. + type: string + ipRule: + description: One or more ip_rule blocks as defined below. + items: + properties: + action: + description: The action to take when the rule is matched. + Possible values are Allow. Defaults to Allow. + type: string + ipMask: + description: The IP mask to match on. + type: string + type: object + type: array + publicNetworkAccessEnabled: + description: Is public network access enabled for the EventHub + Namespace? Defaults to true. + type: boolean + trustedServiceAccessEnabled: + description: Whether Trusted Microsoft Services are allowed + to bypass firewall. + type: boolean + virtualNetworkRule: + description: One or more virtual_network_rule blocks as defined + below. + items: + properties: + ignoreMissingVirtualNetworkServiceEndpoint: + description: Are missing virtual network service endpoints + ignored? + type: boolean + subnetId: + description: The id of the subnet to match on. + type: string + type: object + type: array + type: object publicNetworkAccessEnabled: description: Is public network access enabled for the EventHub Namespace? Defaults to true. diff --git a/package/crds/network.azure.upbound.io_routefilters.yaml b/package/crds/network.azure.upbound.io_routefilters.yaml index 7a8633e87..0a5963d1b 100644 --- a/package/crds/network.azure.upbound.io_routefilters.yaml +++ b/package/crds/network.azure.upbound.io_routefilters.yaml @@ -518,3 +518,497 @@ spec: storage: true subresources: status: {} + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta2 + schema: + openAPIV3Schema: + description: RouteFilter is the Schema for the RouteFilters API. Manages a + Route Filter. + 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: RouteFilterSpec defines the desired state of RouteFilter + properties: + deletionPolicy: + default: Delete + description: |- + DeletionPolicy specifies what will happen to the underlying external + when this managed resource is deleted - either "Delete" or "Orphan" the + external resource. + This field is planned to be deprecated in favor of the ManagementPolicies + field in a future release. Currently, both could be set independently and + non-default values would be honored if the feature flag is enabled. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + location: + description: The Azure Region where the Route Filter should exist. + Changing this forces a new Route Filter to be created. + type: string + resourceGroupName: + description: The name of the Resource Group where the Route Filter + should exist. Changing this forces a new Route Filter to be + created. + type: string + resourceGroupNameRef: + description: Reference to a ResourceGroup in azure to populate + resourceGroupName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + resourceGroupNameSelector: + description: Selector for a ResourceGroup in azure to populate + resourceGroupName. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + rule: + description: A rule block as defined below. + properties: + access: + description: The access type of the rule. The only possible + value is Allow. + type: string + communities: + description: The collection for bgp community values to filter + on. e.g. ['12076:5010','12076:5020']. + items: + type: string + type: array + name: + description: The name of the route filter rule. + type: string + ruleType: + description: The rule type of the rule. The only possible + value is Community. + type: string + type: object + tags: + additionalProperties: + type: string + description: A mapping of tags which should be assigned to the + Route Filter. + type: object + x-kubernetes-map-type: granular + type: object + initProvider: + description: |- + THIS IS A BETA FIELD. It will be honored + unless the Management Policies feature flag is disabled. + InitProvider holds the same fields as ForProvider, with the exception + of Identifier and other resource reference fields. The fields that are + in InitProvider are merged into ForProvider when the resource is created. + The same fields are also added to the terraform ignore_changes hook, to + avoid updating them after creation. This is useful for fields that are + required on creation, but we do not desire to update them after creation, + for example because of an external controller is managing them, like an + autoscaler. + properties: + location: + description: The Azure Region where the Route Filter should exist. + Changing this forces a new Route Filter to be created. + type: string + rule: + description: A rule block as defined below. + properties: + access: + description: The access type of the rule. The only possible + value is Allow. + type: string + communities: + description: The collection for bgp community values to filter + on. e.g. ['12076:5010','12076:5020']. + items: + type: string + type: array + name: + description: The name of the route filter rule. + type: string + ruleType: + description: The rule type of the rule. The only possible + value is Community. + type: string + type: object + tags: + additionalProperties: + type: string + description: A mapping of tags which should be assigned to the + Route Filter. + type: object + x-kubernetes-map-type: granular + type: object + managementPolicies: + default: + - '*' + description: |- + THIS IS A BETA FIELD. It is on by default but can be opted out + through a Crossplane feature flag. + ManagementPolicies specify the array of actions Crossplane is allowed to + take on the managed and external resources. + This field is planned to replace the DeletionPolicy field in a future + release. Currently, both could be set independently and non-default + values would be honored if the feature flag is enabled. If both are + custom, the DeletionPolicy field will be ignored. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md + items: + description: |- + A ManagementAction represents an action that the Crossplane controllers + can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + providerConfigRef: + default: + name: default + description: |- + ProviderConfigReference specifies how the provider that will be used to + create, observe, update, and delete this managed resource should be + configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: |- + PublishConnectionDetailsTo specifies the connection secret config which + contains a name, metadata and a reference to secret store config to + which any connection details for this managed resource should be written. + Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: |- + SecretStoreConfigRef specifies which secret store config should be used + for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations are the annotations to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.annotations". + - It is up to Secret Store implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: |- + Labels are the labels/tags to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store types. + type: object + type: + description: |- + Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: |- + WriteConnectionSecretToReference specifies the namespace and name of a + Secret to which any connection details for this managed resource should + be written. Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + This field is planned to be replaced in a future release in favor of + PublishConnectionDetailsTo. Currently, both could be set independently + and connection details would be published to both without affecting + each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + x-kubernetes-validations: + - message: spec.forProvider.location is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.location) + || (has(self.initProvider) && has(self.initProvider.location))' + status: + description: RouteFilterStatus defines the observed state of RouteFilter. + properties: + atProvider: + properties: + id: + description: The ID of the Route Filter. + type: string + location: + description: The Azure Region where the Route Filter should exist. + Changing this forces a new Route Filter to be created. + type: string + resourceGroupName: + description: The name of the Resource Group where the Route Filter + should exist. Changing this forces a new Route Filter to be + created. + type: string + rule: + description: A rule block as defined below. + properties: + access: + description: The access type of the rule. The only possible + value is Allow. + type: string + communities: + description: The collection for bgp community values to filter + on. e.g. ['12076:5010','12076:5020']. + items: + type: string + type: array + name: + description: The name of the route filter rule. + type: string + ruleType: + description: The rule type of the rule. The only possible + value is Community. + type: string + type: object + tags: + additionalProperties: + type: string + description: A mapping of tags which should be assigned to the + Route Filter. + type: object + x-kubernetes-map-type: granular + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: |- + LastTransitionTime is the last time this condition transitioned from one + status to another. + format: date-time + type: string + message: + description: |- + A Message containing details about this condition's last transition from + one status to another, if any. + type: string + observedGeneration: + description: |- + ObservedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + type: integer + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: |- + Type of this condition. At most one of each condition type may apply to + a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + observedGeneration: + description: |- + ObservedGeneration is the latest metadata.generation + which resulted in either a ready state, or stalled due to error + it can not recover from without human intervention. + format: int64 + type: integer + type: object + required: + - spec + type: object + served: true + storage: false + subresources: + status: {} diff --git a/package/crds/web.azure.upbound.io_functionapps.yaml b/package/crds/web.azure.upbound.io_functionapps.yaml index 94e12327a..b48274581 100644 --- a/package/crds/web.azure.upbound.io_functionapps.yaml +++ b/package/crds/web.azure.upbound.io_functionapps.yaml @@ -3357,38 +3357,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -3520,38 +3518,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -4239,38 +4235,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -4402,38 +4396,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -5154,38 +5146,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -5241,38 +5231,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. diff --git a/package/crds/web.azure.upbound.io_functionappslots.yaml b/package/crds/web.azure.upbound.io_functionappslots.yaml index 1dc0f542f..b8237a0cb 100644 --- a/package/crds/web.azure.upbound.io_functionappslots.yaml +++ b/package/crds/web.azure.upbound.io_functionappslots.yaml @@ -3285,38 +3285,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -3448,38 +3446,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -4044,38 +4040,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -4207,38 +4201,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -4914,38 +4906,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. @@ -5001,38 +4991,36 @@ spec: headers: description: The headers block for this specific scm_ip_restriction as defined below. - items: - properties: - xAzureFdid: - description: A list of allowed Azure FrontDoor - IDs in UUID notation with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - xFdHealthProbe: - description: A list to allow the Azure FrontDoor - health probe header. Only allowed value is "1". - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedFor: - description: A list of allowed 'X-Forwarded-For' - IPs in CIDR notation with a maximum of 8 - items: - type: string - type: array - x-kubernetes-list-type: set - xForwardedHost: - description: A list of allowed 'X-Forwarded-Host' - domains with a maximum of 8. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - type: array + properties: + xAzureFdid: + description: A list of allowed Azure FrontDoor IDs + in UUID notation with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + xFdHealthProbe: + description: A list to allow the Azure FrontDoor + health probe header. Only allowed value is "1". + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedFor: + description: A list of allowed 'X-Forwarded-For' + IPs in CIDR notation with a maximum of 8 + items: + type: string + type: array + x-kubernetes-list-type: set + xForwardedHost: + description: A list of allowed 'X-Forwarded-Host' + domains with a maximum of 8. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object ipAddress: description: The IP Address used for this IP Restriction in CIDR notation. diff --git a/package/crds/web.azure.upbound.io_linuxfunctionapps.yaml b/package/crds/web.azure.upbound.io_linuxfunctionapps.yaml index 1981004cd..e75895962 100644 --- a/package/crds/web.azure.upbound.io_linuxfunctionapps.yaml +++ b/package/crds/web.azure.upbound.io_linuxfunctionapps.yaml @@ -6612,36 +6612,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -6802,36 +6800,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8291,36 +8287,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8481,36 +8475,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -10041,36 +10033,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -10158,36 +10148,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 diff --git a/package/crds/web.azure.upbound.io_linuxfunctionappslots.yaml b/package/crds/web.azure.upbound.io_linuxfunctionappslots.yaml index 4da205322..77f0a66ad 100644 --- a/package/crds/web.azure.upbound.io_linuxfunctionappslots.yaml +++ b/package/crds/web.azure.upbound.io_linuxfunctionappslots.yaml @@ -6207,36 +6207,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -6396,36 +6394,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -7701,36 +7697,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -7890,36 +7884,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9417,36 +9409,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9535,36 +9525,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 diff --git a/package/crds/web.azure.upbound.io_linuxwebapps.yaml b/package/crds/web.azure.upbound.io_linuxwebapps.yaml index 25c88176e..c5348b77f 100644 --- a/package/crds/web.azure.upbound.io_linuxwebapps.yaml +++ b/package/crds/web.azure.upbound.io_linuxwebapps.yaml @@ -6625,36 +6625,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -6806,36 +6804,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8188,36 +8184,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8369,36 +8363,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9915,36 +9907,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -10022,36 +10012,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 diff --git a/package/crds/web.azure.upbound.io_linuxwebappslots.yaml b/package/crds/web.azure.upbound.io_linuxwebappslots.yaml index a6cf7cc8f..47a6ba7d9 100644 --- a/package/crds/web.azure.upbound.io_linuxwebappslots.yaml +++ b/package/crds/web.azure.upbound.io_linuxwebappslots.yaml @@ -6447,36 +6447,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -6628,36 +6626,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8003,36 +7999,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8184,36 +8178,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9724,36 +9716,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9831,36 +9821,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 diff --git a/package/crds/web.azure.upbound.io_windowsfunctionapps.yaml b/package/crds/web.azure.upbound.io_windowsfunctionapps.yaml index bd2303d85..865ab8fe2 100644 --- a/package/crds/web.azure.upbound.io_windowsfunctionapps.yaml +++ b/package/crds/web.azure.upbound.io_windowsfunctionapps.yaml @@ -6288,36 +6288,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -6478,36 +6476,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -7845,36 +7841,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8035,36 +8029,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9550,36 +9542,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9664,36 +9654,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 diff --git a/package/crds/web.azure.upbound.io_windowsfunctionappslots.yaml b/package/crds/web.azure.upbound.io_windowsfunctionappslots.yaml index b90d31cee..498cc9918 100644 --- a/package/crds/web.azure.upbound.io_windowsfunctionappslots.yaml +++ b/package/crds/web.azure.upbound.io_windowsfunctionappslots.yaml @@ -5988,36 +5988,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -6177,36 +6175,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -7445,36 +7441,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -7634,36 +7628,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9129,36 +9121,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9242,36 +9232,34 @@ spec: type: string headers: description: a headers block as detailed below. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 diff --git a/package/crds/web.azure.upbound.io_windowswebapps.yaml b/package/crds/web.azure.upbound.io_windowswebapps.yaml index 7953bd755..a9fb9dd0c 100644 --- a/package/crds/web.azure.upbound.io_windowswebapps.yaml +++ b/package/crds/web.azure.upbound.io_windowswebapps.yaml @@ -6867,36 +6867,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -7048,36 +7046,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8493,36 +8489,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8674,36 +8668,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -10283,36 +10275,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -10390,36 +10380,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 diff --git a/package/crds/web.azure.upbound.io_windowswebappslots.yaml b/package/crds/web.azure.upbound.io_windowswebappslots.yaml index 6241f31af..14b19a415 100644 --- a/package/crds/web.azure.upbound.io_windowswebappslots.yaml +++ b/package/crds/web.azure.upbound.io_windowswebappslots.yaml @@ -6585,36 +6585,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -6766,36 +6764,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8122,36 +8118,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -8303,36 +8297,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9893,36 +9885,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 @@ -9998,36 +9988,34 @@ spec: type: string headers: description: A headers block as defined above. - items: - properties: - xAzureFdid: - description: Specifies a list of Azure Front Door - IDs. - items: - type: string - type: array - xFdHealthProbe: - description: Specifies if a Front Door Health - Probe should be expected. The only possible - value is 1. - items: - type: string - type: array - xForwardedFor: - description: Specifies a list of addresses for - which matching should be applied. Omitting this - value means allow any. - items: - type: string - type: array - xForwardedHost: - description: Specifies a list of Hosts for which - matching should be applied. - items: - type: string - type: array - type: object - type: array + properties: + xAzureFdid: + description: Specifies a list of Azure Front Door + IDs. + items: + type: string + type: array + xFdHealthProbe: + description: Specifies if a Front Door Health Probe + should be expected. The only possible value is + 1. + items: + type: string + type: array + xForwardedFor: + description: Specifies a list of addresses for which + matching should be applied. Omitting this value + means allow any. + items: + type: string + type: array + xForwardedHost: + description: Specifies a list of Hosts for which + matching should be applied. + items: + type: string + type: array + type: object ipAddress: description: |- The CIDR notation of the IP or IP Range to match. For example: 10.0.0.0/24 or 192.168.10.1/32 From 7edcc0fe93bd79fa529db2684c0b707aa0517ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergen=20Yal=C3=A7=C4=B1n?= Date: Tue, 21 May 2024 16:04:59 +0300 Subject: [PATCH 2/4] Fix linter import issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergen Yalçın --- config/network/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/network/config.go b/config/network/config.go index 912d7511b..86c0bfde9 100644 --- a/config/network/config.go +++ b/config/network/config.go @@ -5,9 +5,11 @@ package network import ( + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/crossplane/upjet/pkg/config" "github.com/crossplane/upjet/pkg/config/conversion" - "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/upbound/provider-azure/apis/rconfig" ) From 422847a16a1075883065b7994aafa5c5a08eae14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergen=20Yal=C3=A7=C4=B1n?= Date: Tue, 21 May 2024 16:23:56 +0300 Subject: [PATCH 3/4] Add synapse Configure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergen Yalçın --- apis/synapse/v1beta2/zz_generated.deepcopy.go | 36 ++-- apis/synapse/v1beta2/zz_workspace_types.go | 12 +- config/provider.go | 2 + .../synapse.azure.upbound.io_workspaces.yaml | 180 ++++++++---------- 4 files changed, 104 insertions(+), 126 deletions(-) diff --git a/apis/synapse/v1beta2/zz_generated.deepcopy.go b/apis/synapse/v1beta2/zz_generated.deepcopy.go index 6076789b3..795772511 100644 --- a/apis/synapse/v1beta2/zz_generated.deepcopy.go +++ b/apis/synapse/v1beta2/zz_generated.deepcopy.go @@ -2456,10 +2456,8 @@ func (in *WorkspaceInitParameters) DeepCopyInto(out *WorkspaceInitParameters) { *out = *in if in.AADAdmin != nil { in, out := &in.AADAdmin, &out.AADAdmin - *out = make([]AADAdminInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(AADAdminInitParameters) + (*in).DeepCopyInto(*out) } if in.AzureDevopsRepo != nil { in, out := &in.AzureDevopsRepo, &out.AzureDevopsRepo @@ -2554,10 +2552,8 @@ func (in *WorkspaceInitParameters) DeepCopyInto(out *WorkspaceInitParameters) { } if in.SQLAADAdmin != nil { in, out := &in.SQLAADAdmin, &out.SQLAADAdmin - *out = make([]SQLAADAdminInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SQLAADAdminInitParameters) + (*in).DeepCopyInto(*out) } if in.SQLAdministratorLogin != nil { in, out := &in.SQLAdministratorLogin, &out.SQLAdministratorLogin @@ -2649,10 +2645,8 @@ func (in *WorkspaceObservation) DeepCopyInto(out *WorkspaceObservation) { *out = *in if in.AADAdmin != nil { in, out := &in.AADAdmin, &out.AADAdmin - *out = make([]AADAdminObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(AADAdminObservation) + (*in).DeepCopyInto(*out) } if in.AzureDevopsRepo != nil { in, out := &in.AzureDevopsRepo, &out.AzureDevopsRepo @@ -2753,10 +2747,8 @@ func (in *WorkspaceObservation) DeepCopyInto(out *WorkspaceObservation) { } if in.SQLAADAdmin != nil { in, out := &in.SQLAADAdmin, &out.SQLAADAdmin - *out = make([]SQLAADAdminObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SQLAADAdminObservation) + (*in).DeepCopyInto(*out) } if in.SQLAdministratorLogin != nil { in, out := &in.SQLAdministratorLogin, &out.SQLAdministratorLogin @@ -2806,10 +2798,8 @@ func (in *WorkspaceParameters) DeepCopyInto(out *WorkspaceParameters) { *out = *in if in.AADAdmin != nil { in, out := &in.AADAdmin, &out.AADAdmin - *out = make([]AADAdminParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(AADAdminParameters) + (*in).DeepCopyInto(*out) } if in.AzureDevopsRepo != nil { in, out := &in.AzureDevopsRepo, &out.AzureDevopsRepo @@ -2919,10 +2909,8 @@ func (in *WorkspaceParameters) DeepCopyInto(out *WorkspaceParameters) { } if in.SQLAADAdmin != nil { in, out := &in.SQLAADAdmin, &out.SQLAADAdmin - *out = make([]SQLAADAdminParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + *out = new(SQLAADAdminParameters) + (*in).DeepCopyInto(*out) } if in.SQLAdministratorLogin != nil { in, out := &in.SQLAdministratorLogin, &out.SQLAdministratorLogin diff --git a/apis/synapse/v1beta2/zz_workspace_types.go b/apis/synapse/v1beta2/zz_workspace_types.go index 924ddaea2..48ec5b1bc 100755 --- a/apis/synapse/v1beta2/zz_workspace_types.go +++ b/apis/synapse/v1beta2/zz_workspace_types.go @@ -339,7 +339,7 @@ type SQLAADAdminParameters struct { type WorkspaceInitParameters struct { // An aad_admin block as defined below. - AADAdmin []AADAdminInitParameters `json:"aadAdmin,omitempty" tf:"aad_admin,omitempty"` + AADAdmin *AADAdminInitParameters `json:"aadAdmin,omitempty" tf:"aad_admin,omitempty"` // An azure_devops_repo block as defined below. AzureDevopsRepo *AzureDevopsRepoInitParameters `json:"azureDevopsRepo,omitempty" tf:"azure_devops_repo,omitempty"` @@ -400,7 +400,7 @@ type WorkspaceInitParameters struct { PurviewID *string `json:"purviewId,omitempty" tf:"purview_id,omitempty"` // An sql_aad_admin block as defined below. - SQLAADAdmin []SQLAADAdminInitParameters `json:"sqlAadAdmin,omitempty" tf:"sql_aad_admin,omitempty"` + SQLAADAdmin *SQLAADAdminInitParameters `json:"sqlAadAdmin,omitempty" tf:"sql_aad_admin,omitempty"` // Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is not provided aad_admin or customer_managed_key must be provided. SQLAdministratorLogin *string `json:"sqlAdministratorLogin,omitempty" tf:"sql_administrator_login,omitempty"` @@ -429,7 +429,7 @@ type WorkspaceInitParameters struct { type WorkspaceObservation struct { // An aad_admin block as defined below. - AADAdmin []AADAdminObservation `json:"aadAdmin,omitempty" tf:"aad_admin,omitempty"` + AADAdmin *AADAdminObservation `json:"aadAdmin,omitempty" tf:"aad_admin,omitempty"` // An azure_devops_repo block as defined below. AzureDevopsRepo *AzureDevopsRepoObservation `json:"azureDevopsRepo,omitempty" tf:"azure_devops_repo,omitempty"` @@ -481,7 +481,7 @@ type WorkspaceObservation struct { ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"` // An sql_aad_admin block as defined below. - SQLAADAdmin []SQLAADAdminObservation `json:"sqlAadAdmin,omitempty" tf:"sql_aad_admin,omitempty"` + SQLAADAdmin *SQLAADAdminObservation `json:"sqlAadAdmin,omitempty" tf:"sql_aad_admin,omitempty"` // Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is not provided aad_admin or customer_managed_key must be provided. SQLAdministratorLogin *string `json:"sqlAdministratorLogin,omitempty" tf:"sql_administrator_login,omitempty"` @@ -501,7 +501,7 @@ type WorkspaceParameters struct { // An aad_admin block as defined below. // +kubebuilder:validation:Optional - AADAdmin []AADAdminParameters `json:"aadAdmin,omitempty" tf:"aad_admin,omitempty"` + AADAdmin *AADAdminParameters `json:"aadAdmin,omitempty" tf:"aad_admin,omitempty"` // An azure_devops_repo block as defined below. // +kubebuilder:validation:Optional @@ -589,7 +589,7 @@ type WorkspaceParameters struct { // An sql_aad_admin block as defined below. // +kubebuilder:validation:Optional - SQLAADAdmin []SQLAADAdminParameters `json:"sqlAadAdmin,omitempty" tf:"sql_aad_admin,omitempty"` + SQLAADAdmin *SQLAADAdminParameters `json:"sqlAadAdmin,omitempty" tf:"sql_aad_admin,omitempty"` // Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is not provided aad_admin or customer_managed_key must be provided. // +kubebuilder:validation:Optional diff --git a/config/provider.go b/config/provider.go index 2c1edb77a..34a46f5ae 100644 --- a/config/provider.go +++ b/config/provider.go @@ -53,6 +53,7 @@ import ( "github.com/upbound/provider-azure/config/storagecache" "github.com/upbound/provider-azure/config/storagesync" "github.com/upbound/provider-azure/config/streamanalytics" + "github.com/upbound/provider-azure/config/synapse" "github.com/upbound/provider-azure/config/web" ) @@ -106,4 +107,5 @@ func init() { ProviderConfiguration.AddConfig(orbital.Configure) ProviderConfiguration.AddConfig(appplatform.Configure) ProviderConfiguration.AddConfig(databricks.Configure) + ProviderConfiguration.AddConfig(synapse.Configure) } diff --git a/package/crds/synapse.azure.upbound.io_workspaces.yaml b/package/crds/synapse.azure.upbound.io_workspaces.yaml index f2c07d573..0e5ac45eb 100644 --- a/package/crds/synapse.azure.upbound.io_workspaces.yaml +++ b/package/crds/synapse.azure.upbound.io_workspaces.yaml @@ -1679,22 +1679,20 @@ spec: properties: aadAdmin: description: An aad_admin block as defined below. - items: - properties: - login: - description: The login name of the Azure AD Administrator - of this Synapse Workspace. - type: string - objectId: - description: The object id of the Azure AD Administrator - of this Synapse Workspace. - type: string - tenantId: - description: The tenant id of the Azure AD Administrator - of this Synapse Workspace. - type: string - type: object - type: array + properties: + login: + description: The login name of the Azure AD Administrator + of this Synapse Workspace. + type: string + objectId: + description: The object id of the Azure AD Administrator of + this Synapse Workspace. + type: string + tenantId: + description: The tenant id of the Azure AD Administrator of + this Synapse Workspace. + type: string + type: object azureDevopsRepo: description: An azure_devops_repo block as defined below. properties: @@ -2127,22 +2125,20 @@ spec: type: object sqlAadAdmin: description: An sql_aad_admin block as defined below. - items: - properties: - login: - description: The login name of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - objectId: - description: The object id of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - tenantId: - description: The tenant id of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - type: object - type: array + properties: + login: + description: The login name of the Azure AD Administrator + of this Synapse Workspace SQL. + type: string + objectId: + description: The object id of the Azure AD Administrator of + this Synapse Workspace SQL. + type: string + tenantId: + description: The tenant id of the Azure AD Administrator of + this Synapse Workspace SQL. + type: string + type: object sqlAdministratorLogin: description: Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is @@ -2274,22 +2270,20 @@ spec: properties: aadAdmin: description: An aad_admin block as defined below. - items: - properties: - login: - description: The login name of the Azure AD Administrator - of this Synapse Workspace. - type: string - objectId: - description: The object id of the Azure AD Administrator - of this Synapse Workspace. - type: string - tenantId: - description: The tenant id of the Azure AD Administrator - of this Synapse Workspace. - type: string - type: object - type: array + properties: + login: + description: The login name of the Azure AD Administrator + of this Synapse Workspace. + type: string + objectId: + description: The object id of the Azure AD Administrator of + this Synapse Workspace. + type: string + tenantId: + description: The tenant id of the Azure AD Administrator of + this Synapse Workspace. + type: string + type: object azureDevopsRepo: description: An azure_devops_repo block as defined below. properties: @@ -2641,22 +2635,20 @@ spec: type: string sqlAadAdmin: description: An sql_aad_admin block as defined below. - items: - properties: - login: - description: The login name of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - objectId: - description: The object id of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - tenantId: - description: The tenant id of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - type: object - type: array + properties: + login: + description: The login name of the Azure AD Administrator + of this Synapse Workspace SQL. + type: string + objectId: + description: The object id of the Azure AD Administrator of + this Synapse Workspace SQL. + type: string + tenantId: + description: The tenant id of the Azure AD Administrator of + this Synapse Workspace SQL. + type: string + type: object sqlAdministratorLogin: description: Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is @@ -2933,22 +2925,20 @@ spec: properties: aadAdmin: description: An aad_admin block as defined below. - items: - properties: - login: - description: The login name of the Azure AD Administrator - of this Synapse Workspace. - type: string - objectId: - description: The object id of the Azure AD Administrator - of this Synapse Workspace. - type: string - tenantId: - description: The tenant id of the Azure AD Administrator - of this Synapse Workspace. - type: string - type: object - type: array + properties: + login: + description: The login name of the Azure AD Administrator + of this Synapse Workspace. + type: string + objectId: + description: The object id of the Azure AD Administrator of + this Synapse Workspace. + type: string + tenantId: + description: The tenant id of the Azure AD Administrator of + this Synapse Workspace. + type: string + type: object azureDevopsRepo: description: An azure_devops_repo block as defined below. properties: @@ -3099,22 +3089,20 @@ spec: type: string sqlAadAdmin: description: An sql_aad_admin block as defined below. - items: - properties: - login: - description: The login name of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - objectId: - description: The object id of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - tenantId: - description: The tenant id of the Azure AD Administrator - of this Synapse Workspace SQL. - type: string - type: object - type: array + properties: + login: + description: The login name of the Azure AD Administrator + of this Synapse Workspace SQL. + type: string + objectId: + description: The object id of the Azure AD Administrator of + this Synapse Workspace SQL. + type: string + tenantId: + description: The tenant id of the Azure AD Administrator of + this Synapse Workspace SQL. + type: string + type: object sqlAdministratorLogin: description: Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is From 0dc06cfb68d626d7108e8aa909a9241b1074695c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergen=20Yal=C3=A7=C4=B1n?= Date: Tue, 21 May 2024 23:09:47 +0300 Subject: [PATCH 4/4] Fix the crdPaths in configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergen Yalçın --- config/containerregistry/config.go | 6 +++--- config/eventhub/config.go | 2 +- config/synapse/config.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/containerregistry/config.go b/config/containerregistry/config.go index c5a76e0ae..2db0d486a 100644 --- a/config/containerregistry/config.go +++ b/config/containerregistry/config.go @@ -23,10 +23,10 @@ func Configure(p *config.Provider) { r.TerraformResource.Schema["encryption"].MaxItems = 1 r.TerraformResource.Schema["network_rule_set"].MaxItems = 1 - r.AddSingletonListConversion("retention_policy", "retention_policy") - r.AddSingletonListConversion("trust_policy", "trust_policy") + r.AddSingletonListConversion("retention_policy", "retentionPolicy") + r.AddSingletonListConversion("trust_policy", "trustPolicy") r.AddSingletonListConversion("encryption", "encryption") - r.AddSingletonListConversion("network_rule_set", "network_rule_set") + r.AddSingletonListConversion("network_rule_set", "networkRuleSet") }) p.AddResourceConfigurator("azurerm_container_registry_token", func(r *config.Resource) { diff --git a/config/eventhub/config.go b/config/eventhub/config.go index 9ed58115d..130f57be7 100644 --- a/config/eventhub/config.go +++ b/config/eventhub/config.go @@ -18,7 +18,7 @@ func Configure(p *config.Provider) { r.TerraformResource.Schema["network_rulesets"].MaxItems = 1 - r.AddSingletonListConversion("network_rulesets", "network_rulesets") + r.AddSingletonListConversion("network_rulesets", "networkRulesets") }) p.AddResourceConfigurator("azurerm_eventhub", func(r *config.Resource) { diff --git a/config/synapse/config.go b/config/synapse/config.go index 5ba77b7bd..e218e0086 100644 --- a/config/synapse/config.go +++ b/config/synapse/config.go @@ -12,7 +12,7 @@ func Configure(p *config.Provider) { r.TerraformResource.Schema["aad_admin"].MaxItems = 1 r.TerraformResource.Schema["sql_aad_admin"].MaxItems = 1 - r.AddSingletonListConversion("aad_admin", "aad_admin") - r.AddSingletonListConversion("sql_aad_admin", "sql_aad_admin") + r.AddSingletonListConversion("aad_admin", "aadAdmin") + r.AddSingletonListConversion("sql_aad_admin", "sqlAadAdmin") }) }