From 93cafe5347fcf3a6a028ca6b550fb882d8bfa18e Mon Sep 17 00:00:00 2001 From: Andrew Gazeley Date: Sun, 15 Oct 2023 09:36:39 -0700 Subject: [PATCH] Updated azurerm_nginx_deployment to support latest API changes (scaling & user_profile) Bumped API version from 2022-08-01 to 2023-04-01 --- internal/clients/client.go | 2 +- internal/services/nginx/client/client.go | 2 +- .../nginx/nginx_certificate_resource.go | 4 +- .../nginx/nginx_certificate_resource_test.go | 2 +- .../nginx/nginx_configuration_resource.go | 4 +- .../nginx_configuration_resource_test.go | 2 +- .../nginx/nginx_deployment_resource.go | 79 ++++++++++++++++++- .../nginx/nginx_deployment_resource_test.go | 31 +++++++- .../model_nginxdeploymentproperties.go | 14 ---- .../model_nginxdeploymentupdateproperties.go | 9 --- .../{2022-08-01 => 2023-04-01}/client.go | 8 +- .../nginxcertificate/README.md | 6 +- .../nginxcertificate/client.go | 0 .../nginxcertificate/constants.go | 0 .../nginxcertificate/id_certificate.go | 0 .../nginxcertificate/id_nginxdeployment.go | 0 .../method_certificatescreateorupdate.go | 0 .../method_certificatesdelete.go | 0 .../method_certificatesget.go | 0 .../method_certificateslist.go | 0 .../model_nginxcertificate.go | 1 - .../model_nginxcertificateproperties.go | 0 .../nginxcertificate/predicates.go | 0 .../nginxcertificate/version.go | 2 +- .../nginxconfiguration/README.md | 6 +- .../nginxconfiguration/client.go | 0 .../nginxconfiguration/constants.go | 0 .../nginxconfiguration/id_configuration.go | 0 .../nginxconfiguration/id_nginxdeployment.go | 0 .../method_configurationscreateorupdate.go | 0 .../method_configurationsdelete.go | 0 .../method_configurationsget.go | 0 .../method_configurationslist.go | 0 .../model_nginxconfiguration.go | 1 - .../model_nginxconfigurationfile.go | 0 .../model_nginxconfigurationpackage.go | 3 +- .../model_nginxconfigurationproperties.go | 0 .../nginxconfiguration/predicates.go | 0 .../nginxconfiguration/version.go | 2 +- .../nginxdeployment/README.md | 6 +- .../nginxdeployment/client.go | 0 .../nginxdeployment/constants.go | 0 .../nginxdeployment/id_nginxdeployment.go | 0 .../method_deploymentscreateorupdate.go | 0 .../method_deploymentsdelete.go | 0 .../nginxdeployment/method_deploymentsget.go | 0 .../nginxdeployment/method_deploymentslist.go | 0 .../method_deploymentslistbyresourcegroup.go | 0 .../method_deploymentsupdate.go | 0 .../nginxdeployment/model_nginxdeployment.go | 0 .../model_nginxdeploymentproperties.go | 16 ++++ .../model_nginxdeploymentscalingproperties.go | 8 ++ .../model_nginxdeploymentupdateparameters.go | 0 .../model_nginxdeploymentupdateproperties.go | 11 +++ .../model_nginxdeploymentuserprofile.go | 8 ++ .../model_nginxfrontendipconfiguration.go | 0 .../nginxdeployment/model_nginxlogging.go | 0 ...odel_nginxnetworkinterfaceconfiguration.go | 0 .../model_nginxnetworkprofile.go | 0 .../model_nginxprivateipaddress.go | 0 .../model_nginxpublicipaddress.go | 0 .../model_nginxstorageaccount.go | 0 .../nginxdeployment/model_resourcesku.go | 0 .../nginxdeployment/predicates.go | 0 .../nginxdeployment/version.go | 2 +- vendor/modules.txt | 8 +- website/docs/r/nginx_deployment.html.markdown | 24 ++++++ 67 files changed, 204 insertions(+), 57 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentupdateproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/client.go (83%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/id_certificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/id_nginxdeployment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/method_certificatescreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/method_certificatesdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/method_certificatesget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/method_certificateslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/model_nginxcertificate.go (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/model_nginxcertificateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxcertificate/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/id_configuration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/id_nginxdeployment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/method_configurationscreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/method_configurationsdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/method_configurationsget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/method_configurationslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/model_nginxconfiguration.go (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/model_nginxconfigurationfile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/model_nginxconfigurationpackage.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/model_nginxconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxconfiguration/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/id_nginxdeployment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/method_deploymentscreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/method_deploymentsdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/method_deploymentsget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/method_deploymentslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/method_deploymentslistbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/method_deploymentsupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxdeployment.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentscalingproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxdeploymentupdateparameters.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentupdateproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentuserprofile.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxfrontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxlogging.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxnetworkprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxprivateipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxpublicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_nginxstorageaccount.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/model_resourcesku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/{2022-08-01 => 2023-04-01}/nginxdeployment/version.go (88%) diff --git a/internal/clients/client.go b/internal/clients/client.go index e281e1130d435..454ef4f598a09 100644 --- a/internal/clients/client.go +++ b/internal/clients/client.go @@ -16,7 +16,7 @@ import ( dns_v2018_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01" eventgrid_v2022_06_15 "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15" fluidrelay_2022_05_26 "github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26" - nginx2 "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01" + nginx2 "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01" redis_v2023_04_01 "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01" servicenetworking_v2023_05_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-05-01-preview" storagecache_2023_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01" diff --git a/internal/services/nginx/client/client.go b/internal/services/nginx/client/client.go index 1ac84bd6a9ca3..0edc216663740 100644 --- a/internal/services/nginx/client/client.go +++ b/internal/services/nginx/client/client.go @@ -6,7 +6,7 @@ package client import ( "fmt" - nginx "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01" + nginx "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/nginx/nginx_certificate_resource.go b/internal/services/nginx/nginx_certificate_resource.go index 236512600fc6b..77d385106f632 100644 --- a/internal/services/nginx/nginx_certificate_resource.go +++ b/internal/services/nginx/nginx_certificate_resource.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" keyvaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/nginx/nginx_certificate_resource_test.go b/internal/services/nginx/nginx_certificate_resource_test.go index 738d03be42c45..3fd835fb90f00 100644 --- a/internal/services/nginx/nginx_certificate_resource_test.go +++ b/internal/services/nginx/nginx_certificate_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/nginx/nginx_configuration_resource.go b/internal/services/nginx/nginx_configuration_resource.go index a35b6e0a14fb9..4be17df1d77a2 100644 --- a/internal/services/nginx/nginx_configuration_resource.go +++ b/internal/services/nginx/nginx_configuration_resource.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/nginx/nginx_configuration_resource_test.go b/internal/services/nginx/nginx_configuration_resource_test.go index 3dc7e7d1c9ba1..d19eaea3acfe2 100644 --- a/internal/services/nginx/nginx_configuration_resource_test.go +++ b/internal/services/nginx/nginx_configuration_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/nginx/nginx_deployment_resource.go b/internal/services/nginx/nginx_deployment_resource.go index 879bcd48e3457..e4d8240026bd1 100644 --- a/internal/services/nginx/nginx_deployment_resource.go +++ b/internal/services/nginx/nginx_deployment_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -37,6 +37,14 @@ type NetworkInterface struct { SubnetId string `tfschema:"subnet_id"` } +type ScalingProperties struct { + Capacity int64 `tfschema:"capacity"` +} + +type UserProfile struct { + PreferredEmail string `tfschema:"preferred_email"` +} + type DeploymentModel struct { ResourceGroupName string `tfschema:"resource_group_name"` Name string `tfschema:"name"` @@ -51,7 +59,9 @@ type DeploymentModel struct { FrontendPublic []FrontendPublic `tfschema:"frontend_public"` FrontendPrivate []FrontendPrivate `tfschema:"frontend_private"` NetworkInterface []NetworkInterface `tfschema:"network_interface"` + ScalingProperties []ScalingProperties `tfschema:"scaling"` Tags map[string]string `tfschema:"tags"` + UserProfile []UserProfile `tfschema:"user_profile"` } type DeploymentResource struct{} @@ -178,8 +188,37 @@ func (m DeploymentResource) Arguments() map[string]*pluginsdk.Schema { }, }, }, + "scaling": { + Type: pluginsdk.TypeList, + Required: true, + ForceNew: false, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "capacity": { + Type: pluginsdk.TypeInt, + Required: true, + ValidateFunc: validation.IntPositive, + }, + }, + }, + }, "tags": commonschema.Tags(), + + "user_profile": { + Type: pluginsdk.TypeList, + Optional: true, + ForceNew: false, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "preferred_email": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, + }, + }, } } @@ -222,7 +261,7 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { if !response.WasNotFound(existing.HttpResponse) { if err != nil { - return fmt.Errorf("retreiving %s: %v", id, err) + return fmt.Errorf("retrieving %s: %v", id, err) } return meta.ResourceRequiresImport(m.ResourceType(), id) } @@ -282,6 +321,18 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { prop.NetworkProfile.NetworkInterfaceConfiguration.SubnetId = pointer.FromString(model.NetworkInterface[0].SubnetId) } + if len(model.ScalingProperties) > 0 { + prop.ScalingProperties = &nginxdeployment.NginxDeploymentScalingProperties{ + Capacity: pointer.FromInt64(model.ScalingProperties[0].Capacity), + } + } + + if len(model.UserProfile) > 0 && model.UserProfile[0].PreferredEmail != "" { + prop.UserProfile = &nginxdeployment.NginxDeploymentUserProfile{ + PreferredEmail: &model.UserProfile[0].PreferredEmail, + } + } + req.Properties = prop req.Identity, err = identity.ExpandSystemAndUserAssignedMapFromModel(model.Identity) @@ -377,6 +428,18 @@ func (m DeploymentResource) Read() sdk.ResourceFunc { } } + if scaling := props.ScalingProperties; scaling != nil { + output.ScalingProperties = []ScalingProperties{{ + Capacity: pointer.ToInt64(props.ScalingProperties.Capacity), + }} + } + + if userProfile := props.UserProfile; userProfile != nil && userProfile.PreferredEmail != nil { + output.UserProfile = []UserProfile{{ + PreferredEmail: pointer.ToString(props.UserProfile.PreferredEmail), + }} + } + flattenedIdentity, err := identity.FlattenSystemAndUserAssignedMapToModel(model.Identity) if err != nil { return fmt.Errorf("flattening `identity`: %v", err) @@ -434,6 +497,18 @@ func (m DeploymentResource) Update() sdk.ResourceFunc { req.Properties.EnableDiagnosticsSupport = pointer.FromBool(model.DiagnoseSupportEnabled) } + if meta.ResourceData.HasChange("scaling") && len(model.ScalingProperties) > 0 { + req.Properties.ScalingProperties = &nginxdeployment.NginxDeploymentScalingProperties{ + Capacity: pointer.FromInt64(model.ScalingProperties[0].Capacity), + } + } + + if meta.ResourceData.HasChange("user_profile") && len(model.UserProfile) > 0 { + req.Properties.UserProfile = &nginxdeployment.NginxDeploymentUserProfile{ + PreferredEmail: pointer.FromString(model.UserProfile[0].PreferredEmail), + } + } + if err := client.DeploymentsUpdateThenPoll(ctx, *id, req); err != nil { return fmt.Errorf("updating %s: %v", id, err) } diff --git a/internal/services/nginx/nginx_deployment_resource_test.go b/internal/services/nginx/nginx_deployment_resource_test.go index 92d048ca86c53..d9239faba87a3 100644 --- a/internal/services/nginx/nginx_deployment_resource_test.go +++ b/internal/services/nginx/nginx_deployment_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -39,6 +39,8 @@ func TestAccNginxDeployment_basic(t *testing.T) { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("scaling").HasValue("10"), + check.That(data.ResourceName).Key("user_profile").Exists(), ), }, data.ImportStep(), @@ -84,6 +86,8 @@ func (a DeploymentResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` + + %s resource "azurerm_nginx_deployment" "test" { @@ -100,6 +104,15 @@ resource "azurerm_nginx_deployment" "test" { network_interface { subnet_id = azurerm_subnet.test.id } + + scaling { + capacity = 10 + } + + user_profile { + preferred_email = "test@test.com" + } + tags = { foo = "bar" } @@ -111,6 +124,8 @@ func (a DeploymentResource) update(data acceptance.TestData) string { return fmt.Sprintf(` + + %s resource "azurerm_nginx_deployment" "test" { @@ -128,6 +143,14 @@ resource "azurerm_nginx_deployment" "test" { subnet_id = azurerm_subnet.test.id } + scaling { + capacity = 20 + } + + user_profile { + preferred_email = "testing@test.com" + } + tags = { foo = "bar2" } @@ -139,6 +162,8 @@ func (a DeploymentResource) identityUser(data acceptance.TestData) string { return fmt.Sprintf(` + + %s resource "azurerm_user_assigned_identity" "test" { @@ -165,6 +190,10 @@ resource "azurerm_nginx_deployment" "test" { network_interface { subnet_id = azurerm_subnet.test.id } + + scaling { + capacity = 10 + } } `, a.template(data), data.RandomInteger) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentproperties.go deleted file mode 100644 index 3e7e9fce4f31b..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentproperties.go +++ /dev/null @@ -1,14 +0,0 @@ -package nginxdeployment - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NginxDeploymentProperties struct { - EnableDiagnosticsSupport *bool `json:"enableDiagnosticsSupport,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - Logging *NginxLogging `json:"logging,omitempty"` - ManagedResourceGroup *string `json:"managedResourceGroup,omitempty"` - NetworkProfile *NginxNetworkProfile `json:"networkProfile,omitempty"` - NginxVersion *string `json:"nginxVersion,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentupdateproperties.go deleted file mode 100644 index 1ccd072a0cbcb..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentupdateproperties.go +++ /dev/null @@ -1,9 +0,0 @@ -package nginxdeployment - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NginxDeploymentUpdateProperties struct { - EnableDiagnosticsSupport *bool `json:"enableDiagnosticsSupport,omitempty"` - Logging *NginxLogging `json:"logging,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/client.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/client.go index f665969d938d4..c0bd9ca26e4f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/client.go @@ -1,4 +1,4 @@ -package v2022_08_01 +package v2023_04_01 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -6,9 +6,9 @@ package v2022_08_01 import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" ) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/README.md index 3a839aa55d245..6393b84570211 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate` Documentation -The `nginxcertificate` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2022-08-01`). +The `nginxcertificate` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate" +import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/id_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/id_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/id_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/id_nginxdeployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/id_nginxdeployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/id_nginxdeployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/method_certificatescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificatescreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/method_certificatescreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificatescreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/method_certificatesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificatesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/method_certificatesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificatesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/method_certificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificatesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/method_certificatesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificatesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/method_certificateslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificateslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/method_certificateslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificateslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/model_nginxcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/model_nginxcertificate.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/model_nginxcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/model_nginxcertificate.go index 5aae4256e7ab2..0a59d6e6aee0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/model_nginxcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/model_nginxcertificate.go @@ -13,6 +13,5 @@ type NginxCertificate struct { Name *string `json:"name,omitempty"` Properties *NginxCertificateProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/model_nginxcertificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/model_nginxcertificateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/model_nginxcertificateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/model_nginxcertificateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/version.go index b85adb4d80196..fc6fb161517e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-04-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/nginxcertificate/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/README.md index 490617aca813f..56c1305237be8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration` Documentation -The `nginxconfiguration` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2022-08-01`). +The `nginxconfiguration` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration" +import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/id_configuration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/id_configuration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/id_configuration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/id_nginxdeployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/id_nginxdeployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/id_nginxdeployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/method_configurationscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/method_configurationscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/method_configurationsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/method_configurationsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/method_configurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/method_configurationsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/method_configurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/method_configurationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfiguration.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfiguration.go index ba4b78223be53..06645eebbbad6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfiguration.go @@ -13,6 +13,5 @@ type NginxConfiguration struct { Name *string `json:"name,omitempty"` Properties *NginxConfigurationProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfigurationfile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfigurationfile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfigurationfile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfigurationfile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfigurationpackage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfigurationpackage.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfigurationpackage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfigurationpackage.go index 8dc8058f95fb5..b247778b53945 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfigurationpackage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfigurationpackage.go @@ -4,5 +4,6 @@ package nginxconfiguration // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type NginxConfigurationPackage struct { - Data *string `json:"data,omitempty"` + Data *string `json:"data,omitempty"` + ProtectedFiles *[]string `json:"protectedFiles,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/model_nginxconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/model_nginxconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/version.go index e481a7d8d2c8a..fe2596735014b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-04-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/nginxconfiguration/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/README.md index a930026d52c29..514bcc50030df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment` Documentation -The `nginxdeployment` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2022-08-01`). +The `nginxdeployment` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment" +import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/id_nginxdeployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/id_nginxdeployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/id_nginxdeployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslistbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentslistbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslistbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentsupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/method_deploymentsupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentsupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentproperties.go new file mode 100644 index 0000000000000..a74fcb9959cc5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentproperties.go @@ -0,0 +1,16 @@ +package nginxdeployment + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentProperties struct { + EnableDiagnosticsSupport *bool `json:"enableDiagnosticsSupport,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + Logging *NginxLogging `json:"logging,omitempty"` + ManagedResourceGroup *string `json:"managedResourceGroup,omitempty"` + NetworkProfile *NginxNetworkProfile `json:"networkProfile,omitempty"` + NginxVersion *string `json:"nginxVersion,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ScalingProperties *NginxDeploymentScalingProperties `json:"scalingProperties,omitempty"` + UserProfile *NginxDeploymentUserProfile `json:"userProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentscalingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentscalingproperties.go new file mode 100644 index 0000000000000..6465206f672cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentscalingproperties.go @@ -0,0 +1,8 @@ +package nginxdeployment + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentScalingProperties struct { + Capacity *int64 `json:"capacity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxdeploymentupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentupdateproperties.go new file mode 100644 index 0000000000000..14d915e59b918 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentupdateproperties.go @@ -0,0 +1,11 @@ +package nginxdeployment + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentUpdateProperties struct { + EnableDiagnosticsSupport *bool `json:"enableDiagnosticsSupport,omitempty"` + Logging *NginxLogging `json:"logging,omitempty"` + ScalingProperties *NginxDeploymentScalingProperties `json:"scalingProperties,omitempty"` + UserProfile *NginxDeploymentUserProfile `json:"userProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentuserprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentuserprofile.go new file mode 100644 index 0000000000000..153bfb0e2e1e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxdeploymentuserprofile.go @@ -0,0 +1,8 @@ +package nginxdeployment + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentUserProfile struct { + PreferredEmail *string `json:"preferredEmail,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxfrontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxfrontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxfrontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxfrontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxlogging.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxlogging.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxlogging.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxlogging.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxnetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxnetworkprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxnetworkprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxnetworkprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxprivateipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxprivateipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxprivateipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxprivateipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxpublicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxpublicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxpublicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxstorageaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxstorageaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_nginxstorageaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_nginxstorageaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_resourcesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_resourcesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/model_resourcesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/model_resourcesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/version.go index 9ad8c81149b19..4b45b7e413de4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-04-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/nginxdeployment/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index ea4bac5951573..fa2437b2226ed 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -758,10 +758,10 @@ github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/webcategor github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01 -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01 +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxcertificate +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2017-04-01/namespaces github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2017-04-01/notificationhubs github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries diff --git a/website/docs/r/nginx_deployment.html.markdown b/website/docs/r/nginx_deployment.html.markdown index 5f438ded153a3..2e1be16771d7d 100644 --- a/website/docs/r/nginx_deployment.html.markdown +++ b/website/docs/r/nginx_deployment.html.markdown @@ -68,6 +68,14 @@ resource "azurerm_nginx_deployment" "example" { network_interface { subnet_id = azurerm_subnet.example.id } + + scaling { + capacity = 20 + } + + user_profile { + preferred_email = "user@test.com" + } } ``` @@ -99,8 +107,12 @@ The following arguments are supported: * `network_interface` - (Optional) One or more `network_interface` blocks as defined below. Changing this forces a new Nginx Deployment to be created. +* `scaling` - One or more `scaling` blocks as defined below. + * `tags` - (Optional) A mapping of tags which should be assigned to the Nginx Deployment. +* `user_profile` - (Optional) One or more `user_profile` blocks as defined below. + --- A `identity` block supports the following: @@ -139,6 +151,18 @@ A `network_interface` block supports the following: * `subnet_id` - (Required) Specify The SubNet Resource ID to this Nginx Deployment. +--- + +A `scaling` block supports the following: + +* `capacity` - (Required) Specify the number of NGINX capacity units for this Nginx Deployment. + +--- + +A `user_profile` block supports the following: + +* `preferred_email` - (Required) Specify the preferred support contact email address of the user used for sending alerts and notification. + ## Attributes Reference In addition to the Arguments listed above - the following Attributes are exported: