diff --git a/internal/clients/client.go b/internal/clients/client.go index 69d254488c8c..3fdc9056510d 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" fluidrelay_2022_05_26 "github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26" hdinsight_v2021_06_01 "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01" - nginx_2024_06_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview" + nginx_2024_09_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview" redis_2024_03_01 "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01" servicenetworking_2023_11_01 "github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01" storagecache_2023_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01" @@ -241,7 +241,7 @@ type Client struct { Network *network.Client NetworkFunction *networkfunction.Client NewRelic *newrelic.Client - Nginx *nginx_2024_06_01_preview.Client + Nginx *nginx_2024_09_01_preview.Client NotificationHubs *notificationhub.Client Oracle *oracle.Client Orbital *orbital.Client diff --git a/internal/services/nginx/client/client.go b/internal/services/nginx/client/client.go index a07b92db110c..01b31c374591 100644 --- a/internal/services/nginx/client/client.go +++ b/internal/services/nginx/client/client.go @@ -6,13 +6,13 @@ package client import ( "fmt" - nginx_2024_06_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview" + nginx_2024_09_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) -func NewClient(o *common.ClientOptions) (*nginx_2024_06_01_preview.Client, error) { - client, err := nginx_2024_06_01_preview.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { +func NewClient(o *common.ClientOptions) (*nginx_2024_09_01_preview.Client, error) { + client, err := nginx_2024_09_01_preview.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { c.Authorizer = o.Authorizers.ResourceManager }) if err != nil { diff --git a/internal/services/nginx/nginx_certificate_data_source.go b/internal/services/nginx/nginx_certificate_data_source.go index 26b58b85377f..6aa2b3aa8dff 100644 --- a/internal/services/nginx/nginx_certificate_data_source.go +++ b/internal/services/nginx/nginx_certificate_data_source.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/2024-06-01-preview/nginxcertificate" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/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_certificate_resource.go b/internal/services/nginx/nginx_certificate_resource.go index 6a9f9ae57105..ebcb30cf3072 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/2024-06-01-preview/nginxcertificate" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/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 0d00bd4b79d1..110d455651a5 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/2024-06-01-preview/nginxcertificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/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_data_source.go b/internal/services/nginx/nginx_configuration_data_source.go index e9e4daf8581e..2e0b663605ac 100644 --- a/internal/services/nginx/nginx_configuration_data_source.go +++ b/internal/services/nginx/nginx_configuration_data_source.go @@ -10,18 +10,24 @@ 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/2024-06-01-preview/nginxconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) +type ProtectedFileData struct { + Content string `tfschema:"content,removedInNextMajorVersion"` + VirtualPath string `tfschema:"virtual_path"` +} + type ConfigurationDataSourceModel struct { - NginxDeploymentId string `tfschema:"nginx_deployment_id"` - ConfigFile []ConfigFile `tfschema:"config_file"` - ProtectedFile []ProtectedFile `tfschema:"protected_file"` - PackageData string `tfschema:"package_data"` - RootFile string `tfschema:"root_file"` + NginxDeploymentId string `tfschema:"nginx_deployment_id"` + ConfigFile []ConfigFile `tfschema:"config_file"` + ProtectedFile []ProtectedFileData `tfschema:"protected_file"` + PackageData string `tfschema:"package_data"` + RootFile string `tfschema:"root_file"` } type ConfigurationDataSource struct{} @@ -39,7 +45,7 @@ func (m ConfigurationDataSource) Arguments() map[string]*pluginsdk.Schema { } func (m ConfigurationDataSource) Attributes() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ + dataSource := map[string]*pluginsdk.Schema{ "config_file": { Type: pluginsdk.TypeSet, Computed: true, @@ -63,12 +69,6 @@ func (m ConfigurationDataSource) Attributes() map[string]*pluginsdk.Schema { Computed: true, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "content": { - Type: pluginsdk.TypeString, - Computed: true, - Sensitive: true, - }, - "virtual_path": { Type: pluginsdk.TypeString, Computed: true, @@ -87,6 +87,16 @@ func (m ConfigurationDataSource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, } + + if !features.FivePointOhBeta() { + dataSource["protected_file"].Elem.(*pluginsdk.Resource).Schema["content"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Computed: true, + Sensitive: true, + Deprecated: "the `content` property is deprecated and will be removed in v5.0 of the AzureRM Provider.", + } + } + return dataSource } func (m ConfigurationDataSource) ModelObject() interface{} { @@ -147,8 +157,7 @@ func (m ConfigurationDataSource) Read() sdk.ResourceFunc { if files := prop.ProtectedFiles; files != nil { for _, file := range *files { - output.ProtectedFile = append(output.ProtectedFile, ProtectedFile{ - Content: pointer.From(file.Content), + output.ProtectedFile = append(output.ProtectedFile, ProtectedFileData{ VirtualPath: pointer.From(file.VirtualPath), }) } diff --git a/internal/services/nginx/nginx_configuration_resource.go b/internal/services/nginx/nginx_configuration_resource.go index f0e83e4dba19..6765466d0883 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/2024-06-01-preview/nginxconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/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" @@ -36,8 +36,8 @@ type ProtectedFile struct { VirtualPath string `tfschema:"virtual_path"` } -func (c ProtectedFile) toSDKModel() nginxconfiguration.NginxConfigurationFile { - return nginxconfiguration.NginxConfigurationFile{ +func (c ProtectedFile) toSDKModel() nginxconfiguration.NginxConfigurationProtectedFileRequest { + return nginxconfiguration.NginxConfigurationProtectedFileRequest{ Content: pointer.To(c.Content), VirtualPath: pointer.To(c.VirtualPath), } @@ -59,12 +59,11 @@ func (c ConfigurationModel) toSDKFiles() *[]nginxconfiguration.NginxConfiguratio return &files } -func (c ConfigurationModel) toSDKProtectedFiles() *[]nginxconfiguration.NginxConfigurationFile { +func (c ConfigurationModel) toSDKProtectedFiles() *[]nginxconfiguration.NginxConfigurationProtectedFileRequest { if len(c.ProtectedFile) == 0 { return nil } - - files := make([]nginxconfiguration.NginxConfigurationFile, 0, len(c.ProtectedFile)) + files := []nginxconfiguration.NginxConfigurationProtectedFileRequest{} for _, file := range c.ProtectedFile { files = append(files, file.toSDKModel()) } @@ -72,10 +71,10 @@ func (c ConfigurationModel) toSDKProtectedFiles() *[]nginxconfiguration.NginxCon } // ToSDKModel used in both Create and Update -func (c ConfigurationModel) ToSDKModel() nginxconfiguration.NginxConfiguration { - req := nginxconfiguration.NginxConfiguration{ +func (c ConfigurationModel) ToSDKModel() nginxconfiguration.NginxConfigurationRequest { + req := nginxconfiguration.NginxConfigurationRequest{ Name: pointer.To(defaultConfigurationName), - Properties: &nginxconfiguration.NginxConfigurationProperties{ + Properties: &nginxconfiguration.NginxConfigurationRequestProperties{ RootFile: pointer.To(c.RootFile), }, } @@ -272,14 +271,17 @@ func (m ConfigurationResource) Read() sdk.ResourceFunc { if files := prop.ProtectedFiles; files != nil { configs := []ProtectedFile{} for _, file := range *files { - if pointer.From(file.Content) != "" { - configs = append(configs, ProtectedFile{ - Content: pointer.ToString(file.Content), - VirtualPath: pointer.ToString(file.VirtualPath), - }) + config := ProtectedFile{ + VirtualPath: pointer.ToString(file.VirtualPath), } + for _, protectedFile := range output.ProtectedFile { + if protectedFile.VirtualPath == pointer.ToString(file.VirtualPath) { + config.Content = protectedFile.Content + break + } + } + configs = append(configs, config) } - if len(configs) > 0 { output.ProtectedFile = configs } @@ -315,8 +317,14 @@ func (m ConfigurationResource) Update() sdk.ResourceFunc { return fmt.Errorf("retrieving as nil for %v", *id) } - upd := existing.Model - // root file is required in update + upd := nginxconfiguration.NginxConfigurationRequest{ + Name: pointer.To(defaultConfigurationName), + Properties: &nginxconfiguration.NginxConfigurationRequestProperties{ + // root file is required in update + RootFile: existing.Model.Properties.RootFile, + }, + } + if meta.ResourceData.HasChange("root_file") { upd.Properties.RootFile = pointer.To(model.RootFile) } @@ -334,7 +342,7 @@ func (m ConfigurationResource) Update() sdk.ResourceFunc { } } - if err := client.ConfigurationsCreateOrUpdateThenPoll(ctx, *id, *upd); err != nil { + if err := client.ConfigurationsCreateOrUpdateThenPoll(ctx, *id, upd); err != nil { return fmt.Errorf("updating %s: %v", id, err) } diff --git a/internal/services/nginx/nginx_configuration_resource_test.go b/internal/services/nginx/nginx_configuration_resource_test.go index 66a57309148d..1d13e4129b18 100644 --- a/internal/services/nginx/nginx_configuration_resource_test.go +++ b/internal/services/nginx/nginx_configuration_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/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_data_source.go b/internal/services/nginx/nginx_deployment_data_source.go index 9c5da8d88362..021426808a06 100644 --- a/internal/services/nginx/nginx_deployment_data_source.go +++ b/internal/services/nginx/nginx_deployment_data_source.go @@ -12,7 +12,8 @@ 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/2024-06-01-preview/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "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" @@ -24,7 +25,7 @@ type DeploymentDataSourceModel struct { NginxVersion string `tfschema:"nginx_version"` Identity []identity.ModelSystemAssignedUserAssigned `tfschema:"identity"` Sku string `tfschema:"sku"` - ManagedResourceGroup string `tfschema:"managed_resource_group"` + ManagedResourceGroup string `tfschema:"managed_resource_group,removedInNextMajorVersion"` Location string `tfschema:"location"` Capacity int64 `tfschema:"capacity"` AutoScaleProfile []AutoScaleProfile `tfschema:"auto_scale_profile"` @@ -56,7 +57,7 @@ func (m DeploymentDataSource) Arguments() map[string]*pluginsdk.Schema { } func (m DeploymentDataSource) Attributes() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ + dataSource := map[string]*pluginsdk.Schema{ "nginx_version": { Type: pluginsdk.TypeString, Computed: true, @@ -69,11 +70,6 @@ func (m DeploymentDataSource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, - "managed_resource_group": { - Type: pluginsdk.TypeString, - Computed: true, - }, - "location": commonschema.LocationComputed(), "capacity": { @@ -196,6 +192,15 @@ func (m DeploymentDataSource) Attributes() map[string]*pluginsdk.Schema { "tags": commonschema.TagsDataSource(), } + + if !features.FivePointOhBeta() { + dataSource["managed_resource_group"] = &pluginsdk.Schema{ + Deprecated: "The `managed_resource_group` field isn't supported by the API anymore and has been deprecated and will be removed in v5.0 of the AzureRM Provider.", + Type: pluginsdk.TypeString, + Computed: true, + } + } + return dataSource } func (m DeploymentDataSource) ModelObject() interface{} { @@ -245,7 +250,6 @@ func (m DeploymentDataSource) Read() sdk.ResourceFunc { output.Identity = *flattenedIdentity if props := model.Properties; props != nil { output.IpAddress = pointer.ToString(props.IPAddress) - output.ManagedResourceGroup = pointer.ToString(props.ManagedResourceGroup) output.NginxVersion = pointer.ToString(props.NginxVersion) output.DiagnoseSupportEnabled = pointer.ToBool(props.EnableDiagnosticsSupport) diff --git a/internal/services/nginx/nginx_deployment_resource.go b/internal/services/nginx/nginx_deployment_resource.go index c8516eefa725..3da6c77adcab 100644 --- a/internal/services/nginx/nginx_deployment_resource.go +++ b/internal/services/nginx/nginx_deployment_resource.go @@ -13,7 +13,8 @@ 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/2024-06-01-preview/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "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" @@ -64,7 +65,7 @@ type DeploymentModel struct { NginxVersion string `tfschema:"nginx_version"` Identity []identity.ModelSystemAssignedUserAssigned `tfschema:"identity"` Sku string `tfschema:"sku"` - ManagedResourceGroup string `tfschema:"managed_resource_group"` + ManagedResourceGroup string `tfschema:"managed_resource_group,removedInNextMajorVersion"` Location string `tfschema:"location"` Capacity int64 `tfschema:"capacity"` AutoScaleProfile []AutoScaleProfile `tfschema:"auto_scale_profile"` @@ -107,14 +108,6 @@ func (m DeploymentResource) Arguments() map[string]*pluginsdk.Schema { "identity": commonschema.SystemAssignedUserAssignedIdentityOptional(), - "managed_resource_group": { - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "location": commonschema.Location(), "capacity": { @@ -260,6 +253,16 @@ func (m DeploymentResource) Arguments() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } + if !features.FivePointOhBeta() { + resource["managed_resource_group"] = &pluginsdk.Schema{ + Deprecated: "The `managed_resource_group` field isn't supported by the API anymore and has been deprecated and will be removed in v5.0 of the AzureRM Provider.", + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: validation.StringIsNotEmpty, + } + } + return resource } @@ -318,7 +321,6 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { } prop := &nginxdeployment.NginxDeploymentProperties{} - prop.ManagedResourceGroup = pointer.To(model.ManagedResourceGroup) if len(model.LoggingStorageAccount) > 0 { prop.Logging = &nginxdeployment.NginxLogging{ @@ -457,7 +459,6 @@ func (m DeploymentResource) Read() sdk.ResourceFunc { if props := model.Properties; props != nil { output.IpAddress = pointer.ToString(props.IPAddress) - output.ManagedResourceGroup = pointer.ToString(props.ManagedResourceGroup) output.NginxVersion = pointer.ToString(props.NginxVersion) output.DiagnoseSupportEnabled = pointer.ToBool(props.EnableDiagnosticsSupport) diff --git a/internal/services/nginx/nginx_deployment_resource_test.go b/internal/services/nginx/nginx_deployment_resource_test.go index 4666851d5641..057150f78100 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/2024-06-01-preview/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/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" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfiguration.go deleted file mode 100644 index 06645eebbbad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfiguration.go +++ /dev/null @@ -1,17 +0,0 @@ -package nginxconfiguration - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NginxConfiguration struct { - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NginxConfigurationProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfigurationproperties.go deleted file mode 100644 index b68a006b58d4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package nginxconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NginxConfigurationProperties struct { - Files *[]NginxConfigurationFile `json:"files,omitempty"` - Package *NginxConfigurationPackage `json:"package,omitempty"` - ProtectedFiles *[]NginxConfigurationFile `json:"protectedFiles,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RootFile *string `json:"rootFile,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysiscreateconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysiscreateconfig.go deleted file mode 100644 index 5a84286132c8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysiscreateconfig.go +++ /dev/null @@ -1,11 +0,0 @@ -package nginxconfigurationanalysis - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AnalysisCreateConfig struct { - Files *[]NginxConfigurationFile `json:"files,omitempty"` - Package *NginxConfigurationPackage `json:"package,omitempty"` - ProtectedFiles *[]NginxConfigurationFile `json:"protectedFiles,omitempty"` - RootFile *string `json:"rootFile,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/client.go similarity index 79% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/client.go index cc6457e0b034..84a274495900 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/client.go @@ -1,4 +1,4 @@ -package v2024_06_01_preview +package v2024_09_01_preview // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -6,15 +6,17 @@ package v2024_06_01_preview import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis" + "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" ) type Client struct { + NginxApiKey *nginxapikey.NginxApiKeyClient NginxCertificate *nginxcertificate.NginxCertificateClient NginxConfiguration *nginxconfiguration.NginxConfigurationClient NginxConfigurationAnalysis *nginxconfigurationanalysis.NginxConfigurationAnalysisClient @@ -22,6 +24,12 @@ type Client struct { } func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { + nginxApiKeyClient, err := nginxapikey.NewNginxApiKeyClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NginxApiKey client: %+v", err) + } + configureFunc(nginxApiKeyClient.Client) + nginxCertificateClient, err := nginxcertificate.NewNginxCertificateClientWithBaseURI(sdkApi) if err != nil { return nil, fmt.Errorf("building NginxCertificate client: %+v", err) @@ -47,6 +55,7 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag configureFunc(nginxDeploymentClient.Client) return &Client{ + NginxApiKey: nginxApiKeyClient, NginxCertificate: nginxCertificateClient, NginxConfiguration: nginxConfigurationClient, NginxConfigurationAnalysis: nginxConfigurationAnalysisClient, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/README.md new file mode 100644 index 000000000000..1ce19cd07063 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/README.md @@ -0,0 +1,90 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey` Documentation + +The `nginxapikey` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-09-01-preview`). + +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/2024-09-01-preview/nginxapikey" +``` + + +### Client Initialization + +```go +client := nginxapikey.NewNginxApiKeyClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NginxApiKeyClient.ApiKeysCreateOrUpdate` + +```go +ctx := context.TODO() +id := nginxapikey.NewApiKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentName", "apiKeyName") + +payload := nginxapikey.NginxDeploymentApiKeyRequest{ + // ... +} + + +read, err := client.ApiKeysCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NginxApiKeyClient.ApiKeysDelete` + +```go +ctx := context.TODO() +id := nginxapikey.NewApiKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentName", "apiKeyName") + +read, err := client.ApiKeysDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NginxApiKeyClient.ApiKeysGet` + +```go +ctx := context.TODO() +id := nginxapikey.NewApiKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentName", "apiKeyName") + +read, err := client.ApiKeysGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NginxApiKeyClient.ApiKeysList` + +```go +ctx := context.TODO() +id := nginxapikey.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentName") + +// alternatively `client.ApiKeysList(ctx, id)` can be used to do batched pagination +items, err := client.ApiKeysListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/client.go new file mode 100644 index 000000000000..e06ad9076654 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/client.go @@ -0,0 +1,26 @@ +package nginxapikey + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxApiKeyClient struct { + Client *resourcemanager.Client +} + +func NewNginxApiKeyClientWithBaseURI(sdkApi sdkEnv.Api) (*NginxApiKeyClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "nginxapikey", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NginxApiKeyClient: %+v", err) + } + + return &NginxApiKeyClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/id_apikey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/id_apikey.go new file mode 100644 index 000000000000..87ef44959125 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/id_apikey.go @@ -0,0 +1,139 @@ +package nginxapikey + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ApiKeyId{}) +} + +var _ resourceids.ResourceId = &ApiKeyId{} + +// ApiKeyId is a struct representing the Resource ID for a Api Key +type ApiKeyId struct { + SubscriptionId string + ResourceGroupName string + NginxDeploymentName string + ApiKeyName string +} + +// NewApiKeyID returns a new ApiKeyId struct +func NewApiKeyID(subscriptionId string, resourceGroupName string, nginxDeploymentName string, apiKeyName string) ApiKeyId { + return ApiKeyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NginxDeploymentName: nginxDeploymentName, + ApiKeyName: apiKeyName, + } +} + +// ParseApiKeyID parses 'input' into a ApiKeyId +func ParseApiKeyID(input string) (*ApiKeyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApiKeyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApiKeyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApiKeyIDInsensitively parses 'input' case-insensitively into a ApiKeyId +// note: this method should only be used for API response data and not user input +func ParseApiKeyIDInsensitively(input string) (*ApiKeyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApiKeyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApiKeyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApiKeyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NginxDeploymentName, ok = input.Parsed["nginxDeploymentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "nginxDeploymentName", input) + } + + if id.ApiKeyName, ok = input.Parsed["apiKeyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiKeyName", input) + } + + return nil +} + +// ValidateApiKeyID checks that 'input' can be parsed as a Api Key ID +func ValidateApiKeyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseApiKeyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Api Key ID +func (id ApiKeyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Nginx.NginxPlus/nginxDeployments/%s/apiKeys/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NginxDeploymentName, id.ApiKeyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Api Key ID +func (id ApiKeyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticNginxNginxPlus", "Nginx.NginxPlus", "Nginx.NginxPlus"), + resourceids.StaticSegment("staticNginxDeployments", "nginxDeployments", "nginxDeployments"), + resourceids.UserSpecifiedSegment("nginxDeploymentName", "nginxDeploymentName"), + resourceids.StaticSegment("staticApiKeys", "apiKeys", "apiKeys"), + resourceids.UserSpecifiedSegment("apiKeyName", "apiKeyName"), + } +} + +// String returns a human-readable description of this Api Key ID +func (id ApiKeyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Nginx Deployment Name: %q", id.NginxDeploymentName), + fmt.Sprintf("Api Key Name: %q", id.ApiKeyName), + } + return fmt.Sprintf("Api Key (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/id_nginxdeployment.go new file mode 100644 index 000000000000..939b40cd3531 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/id_nginxdeployment.go @@ -0,0 +1,130 @@ +package nginxapikey + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NginxDeploymentId{}) +} + +var _ resourceids.ResourceId = &NginxDeploymentId{} + +// NginxDeploymentId is a struct representing the Resource ID for a Nginx Deployment +type NginxDeploymentId struct { + SubscriptionId string + ResourceGroupName string + NginxDeploymentName string +} + +// NewNginxDeploymentID returns a new NginxDeploymentId struct +func NewNginxDeploymentID(subscriptionId string, resourceGroupName string, nginxDeploymentName string) NginxDeploymentId { + return NginxDeploymentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NginxDeploymentName: nginxDeploymentName, + } +} + +// ParseNginxDeploymentID parses 'input' into a NginxDeploymentId +func ParseNginxDeploymentID(input string) (*NginxDeploymentId, error) { + parser := resourceids.NewParserFromResourceIdType(&NginxDeploymentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NginxDeploymentId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNginxDeploymentIDInsensitively parses 'input' case-insensitively into a NginxDeploymentId +// note: this method should only be used for API response data and not user input +func ParseNginxDeploymentIDInsensitively(input string) (*NginxDeploymentId, error) { + parser := resourceids.NewParserFromResourceIdType(&NginxDeploymentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NginxDeploymentId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NginxDeploymentId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NginxDeploymentName, ok = input.Parsed["nginxDeploymentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "nginxDeploymentName", input) + } + + return nil +} + +// ValidateNginxDeploymentID checks that 'input' can be parsed as a Nginx Deployment ID +func ValidateNginxDeploymentID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNginxDeploymentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Nginx Deployment ID +func (id NginxDeploymentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Nginx.NginxPlus/nginxDeployments/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NginxDeploymentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Nginx Deployment ID +func (id NginxDeploymentId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticNginxNginxPlus", "Nginx.NginxPlus", "Nginx.NginxPlus"), + resourceids.StaticSegment("staticNginxDeployments", "nginxDeployments", "nginxDeployments"), + resourceids.UserSpecifiedSegment("nginxDeploymentName", "nginxDeploymentName"), + } +} + +// String returns a human-readable description of this Nginx Deployment ID +func (id NginxDeploymentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Nginx Deployment Name: %q", id.NginxDeploymentName), + } + return fmt.Sprintf("Nginx Deployment (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeyscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeyscreateorupdate.go new file mode 100644 index 000000000000..6ef1ef53dd8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeyscreateorupdate.go @@ -0,0 +1,58 @@ +package nginxapikey + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiKeysCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NginxDeploymentApiKeyResponse +} + +// ApiKeysCreateOrUpdate ... +func (c NginxApiKeyClient) ApiKeysCreateOrUpdate(ctx context.Context, id ApiKeyId, input NginxDeploymentApiKeyRequest) (result ApiKeysCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NginxDeploymentApiKeyResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeysdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeysdelete.go new file mode 100644 index 000000000000..94a964d5e1fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeysdelete.go @@ -0,0 +1,47 @@ +package nginxapikey + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiKeysDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ApiKeysDelete ... +func (c NginxApiKeyClient) ApiKeysDelete(ctx context.Context, id ApiKeyId) (result ApiKeysDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeysget.go new file mode 100644 index 000000000000..864683393338 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeysget.go @@ -0,0 +1,53 @@ +package nginxapikey + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiKeysGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NginxDeploymentApiKeyResponse +} + +// ApiKeysGet ... +func (c NginxApiKeyClient) ApiKeysGet(ctx context.Context, id ApiKeyId) (result ApiKeysGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NginxDeploymentApiKeyResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeyslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeyslist.go new file mode 100644 index 000000000000..605ef0c05f4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/method_apikeyslist.go @@ -0,0 +1,105 @@ +package nginxapikey + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiKeysListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NginxDeploymentApiKeyResponse +} + +type ApiKeysListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NginxDeploymentApiKeyResponse +} + +type ApiKeysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiKeysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ApiKeysList ... +func (c NginxApiKeyClient) ApiKeysList(ctx context.Context, id NginxDeploymentId) (result ApiKeysListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ApiKeysListCustomPager{}, + Path: fmt.Sprintf("%s/apiKeys", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NginxDeploymentApiKeyResponse `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ApiKeysListComplete retrieves all the results into a single object +func (c NginxApiKeyClient) ApiKeysListComplete(ctx context.Context, id NginxDeploymentId) (ApiKeysListCompleteResult, error) { + return c.ApiKeysListCompleteMatchingPredicate(ctx, id, NginxDeploymentApiKeyResponseOperationPredicate{}) +} + +// ApiKeysListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NginxApiKeyClient) ApiKeysListCompleteMatchingPredicate(ctx context.Context, id NginxDeploymentId, predicate NginxDeploymentApiKeyResponseOperationPredicate) (result ApiKeysListCompleteResult, err error) { + items := make([]NginxDeploymentApiKeyResponse, 0) + + resp, err := c.ApiKeysList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ApiKeysListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyrequest.go new file mode 100644 index 000000000000..f6ed5124da53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyrequest.go @@ -0,0 +1,11 @@ +package nginxapikey + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentApiKeyRequest struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NginxDeploymentApiKeyRequestProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyrequestproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyrequestproperties.go new file mode 100644 index 000000000000..b731c4ed7cb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyrequestproperties.go @@ -0,0 +1,27 @@ +package nginxapikey + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentApiKeyRequestProperties struct { + EndDateTime *string `json:"endDateTime,omitempty"` + SecretText *string `json:"secretText,omitempty"` +} + +func (o *NginxDeploymentApiKeyRequestProperties) GetEndDateTimeAsTime() (*time.Time, error) { + if o.EndDateTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndDateTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *NginxDeploymentApiKeyRequestProperties) SetEndDateTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndDateTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyresponse.go new file mode 100644 index 000000000000..d09829a55834 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyresponse.go @@ -0,0 +1,11 @@ +package nginxapikey + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentApiKeyResponse struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NginxDeploymentApiKeyResponseProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyresponseproperties.go new file mode 100644 index 000000000000..3ffa73e17485 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/model_nginxdeploymentapikeyresponseproperties.go @@ -0,0 +1,27 @@ +package nginxapikey + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentApiKeyResponseProperties struct { + EndDateTime *string `json:"endDateTime,omitempty"` + Hint *string `json:"hint,omitempty"` +} + +func (o *NginxDeploymentApiKeyResponseProperties) GetEndDateTimeAsTime() (*time.Time, error) { + if o.EndDateTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndDateTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *NginxDeploymentApiKeyResponseProperties) SetEndDateTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndDateTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/predicates.go new file mode 100644 index 000000000000..c7e879faa2ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/predicates.go @@ -0,0 +1,27 @@ +package nginxapikey + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxDeploymentApiKeyResponseOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p NginxDeploymentApiKeyResponseOperationPredicate) Matches(input NginxDeploymentApiKeyResponse) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/version.go new file mode 100644 index 000000000000..4cf3a17d466b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey/version.go @@ -0,0 +1,10 @@ +package nginxapikey + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-09-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/nginxapikey/2024-09-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/README.md index 387436015c10..ebbe404e0224 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate` Documentation -The `nginxcertificate` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-06-01-preview`). +The `nginxcertificate` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-09-01-preview`). 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/2024-06-01-preview/nginxcertificate" +import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/id_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/id_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/id_nginxdeployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_nginxdeployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/id_nginxdeployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/method_certificatescreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatescreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/method_certificatescreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/method_certificatesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/method_certificatesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/method_certificatesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/method_certificatesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificateslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/method_certificateslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificateslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/method_certificateslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/model_nginxcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/model_nginxcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/model_nginxcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/model_nginxcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/model_nginxcertificateerrorresponsebody.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/model_nginxcertificateerrorresponsebody.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/model_nginxcertificateerrorresponsebody.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/model_nginxcertificateerrorresponsebody.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/model_nginxcertificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/model_nginxcertificateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/model_nginxcertificateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/model_nginxcertificateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/version.go index 55591c430fa0..30f26213b282 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate/version.go @@ -3,8 +3,8 @@ package nginxcertificate // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2024-06-01-preview" +const defaultApiVersion = "2024-09-01-preview" func userAgent() string { - return "hashicorp/go-azure-sdk/nginxcertificate/2024-06-01-preview" + return "hashicorp/go-azure-sdk/nginxcertificate/2024-09-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/README.md index 6fe2ad8ef806..4d864a70f1f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration` Documentation -The `nginxconfiguration` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-06-01-preview`). +The `nginxconfiguration` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-09-01-preview`). 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/2024-06-01-preview/nginxconfiguration" +import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration" ``` @@ -26,7 +26,7 @@ client.Client.Authorizer = authorizer ctx := context.TODO() id := nginxconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentName", "configurationName") -payload := nginxconfiguration.NginxConfiguration{ +payload := nginxconfiguration.NginxConfigurationRequest{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/id_configuration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_configuration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/id_configuration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/id_nginxdeployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_nginxdeployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/id_nginxdeployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationscreateorupdate.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationscreateorupdate.go index dea245223f05..d44e1ad3b1c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationscreateorupdate.go @@ -18,11 +18,11 @@ type ConfigurationsCreateOrUpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *NginxConfiguration + Model *NginxConfigurationResponse } // ConfigurationsCreateOrUpdate ... -func (c NginxConfigurationClient) ConfigurationsCreateOrUpdate(ctx context.Context, id ConfigurationId, input NginxConfiguration) (result ConfigurationsCreateOrUpdateOperationResponse, err error) { +func (c NginxConfigurationClient) ConfigurationsCreateOrUpdate(ctx context.Context, id ConfigurationId, input NginxConfigurationRequest) (result ConfigurationsCreateOrUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,7 +61,7 @@ func (c NginxConfigurationClient) ConfigurationsCreateOrUpdate(ctx context.Conte } // ConfigurationsCreateOrUpdateThenPoll performs ConfigurationsCreateOrUpdate then polls until it's completed -func (c NginxConfigurationClient) ConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id ConfigurationId, input NginxConfiguration) error { +func (c NginxConfigurationClient) ConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id ConfigurationId, input NginxConfigurationRequest) error { result, err := c.ConfigurationsCreateOrUpdate(ctx, id, input) if err != nil { return fmt.Errorf("performing ConfigurationsCreateOrUpdate: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationsget.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationsget.go index 581a836f57ac..6355bd259f92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationsget.go @@ -14,7 +14,7 @@ import ( type ConfigurationsGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *NginxConfiguration + Model *NginxConfigurationResponse } // ConfigurationsGet ... @@ -43,7 +43,7 @@ func (c NginxConfigurationClient) ConfigurationsGet(ctx context.Context, id Conf return } - var model NginxConfiguration + var model NginxConfigurationResponse result.Model = &model if err = resp.Unmarshal(result.Model); err != nil { return diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationslist.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationslist.go index b450e93d029c..c018c6f3f61a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/method_configurationslist.go @@ -15,12 +15,12 @@ import ( type ConfigurationsListOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]NginxConfiguration + Model *[]NginxConfigurationResponse } type ConfigurationsListCompleteResult struct { LatestHttpResponse *http.Response - Items []NginxConfiguration + Items []NginxConfigurationResponse } type ConfigurationsListCustomPager struct { @@ -63,7 +63,7 @@ func (c NginxConfigurationClient) ConfigurationsList(ctx context.Context, id Ngi } var values struct { - Values *[]NginxConfiguration `json:"value"` + Values *[]NginxConfigurationResponse `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -76,12 +76,12 @@ func (c NginxConfigurationClient) ConfigurationsList(ctx context.Context, id Ngi // ConfigurationsListComplete retrieves all the results into a single object func (c NginxConfigurationClient) ConfigurationsListComplete(ctx context.Context, id NginxDeploymentId) (ConfigurationsListCompleteResult, error) { - return c.ConfigurationsListCompleteMatchingPredicate(ctx, id, NginxConfigurationOperationPredicate{}) + return c.ConfigurationsListCompleteMatchingPredicate(ctx, id, NginxConfigurationResponseOperationPredicate{}) } // ConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NginxConfigurationClient) ConfigurationsListCompleteMatchingPredicate(ctx context.Context, id NginxDeploymentId, predicate NginxConfigurationOperationPredicate) (result ConfigurationsListCompleteResult, err error) { - items := make([]NginxConfiguration, 0) +func (c NginxConfigurationClient) ConfigurationsListCompleteMatchingPredicate(ctx context.Context, id NginxDeploymentId, predicate NginxConfigurationResponseOperationPredicate) (result ConfigurationsListCompleteResult, err error) { + items := make([]NginxConfigurationResponse, 0) resp, err := c.ConfigurationsList(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfigurationfile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationfile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfigurationfile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationfile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfigurationpackage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationpackage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/model_nginxconfigurationpackage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationpackage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationprotectedfilerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationprotectedfilerequest.go new file mode 100644 index 000000000000..656b565305f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationprotectedfilerequest.go @@ -0,0 +1,10 @@ +package nginxconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxConfigurationProtectedFileRequest struct { + Content *string `json:"content,omitempty"` + ContentHash *string `json:"contentHash,omitempty"` + VirtualPath *string `json:"virtualPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationprotectedfileresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationprotectedfileresponse.go new file mode 100644 index 000000000000..4810b0987477 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationprotectedfileresponse.go @@ -0,0 +1,9 @@ +package nginxconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxConfigurationProtectedFileResponse struct { + ContentHash *string `json:"contentHash,omitempty"` + VirtualPath *string `json:"virtualPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationrequest.go new file mode 100644 index 000000000000..711a2fabb538 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationrequest.go @@ -0,0 +1,16 @@ +package nginxconfiguration + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxConfigurationRequest struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NginxConfigurationRequestProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationrequestproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationrequestproperties.go new file mode 100644 index 000000000000..520364b8166c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationrequestproperties.go @@ -0,0 +1,12 @@ +package nginxconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxConfigurationRequestProperties struct { + Files *[]NginxConfigurationFile `json:"files,omitempty"` + Package *NginxConfigurationPackage `json:"package,omitempty"` + ProtectedFiles *[]NginxConfigurationProtectedFileRequest `json:"protectedFiles,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RootFile *string `json:"rootFile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationresponse.go new file mode 100644 index 000000000000..6af291341c63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationresponse.go @@ -0,0 +1,16 @@ +package nginxconfiguration + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxConfigurationResponse struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NginxConfigurationResponseProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationresponseproperties.go new file mode 100644 index 000000000000..9469ee5e077f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/model_nginxconfigurationresponseproperties.go @@ -0,0 +1,12 @@ +package nginxconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxConfigurationResponseProperties struct { + Files *[]NginxConfigurationFile `json:"files,omitempty"` + Package *NginxConfigurationPackage `json:"package,omitempty"` + ProtectedFiles *[]NginxConfigurationProtectedFileResponse `json:"protectedFiles,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RootFile *string `json:"rootFile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/predicates.go similarity index 59% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/predicates.go index 0958a9d2b5d5..e71118a80e06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/predicates.go @@ -3,23 +3,18 @@ package nginxconfiguration // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type NginxConfigurationOperationPredicate struct { - Id *string - Location *string - Name *string - Type *string +type NginxConfigurationResponseOperationPredicate struct { + Id *string + Name *string + Type *string } -func (p NginxConfigurationOperationPredicate) Matches(input NginxConfiguration) bool { +func (p NginxConfigurationResponseOperationPredicate) Matches(input NginxConfigurationResponse) bool { if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false } - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/version.go index c2a5408e9849..2cf2c2302530 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration/version.go @@ -3,8 +3,8 @@ package nginxconfiguration // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2024-06-01-preview" +const defaultApiVersion = "2024-09-01-preview" func userAgent() string { - return "hashicorp/go-azure-sdk/nginxconfiguration/2024-06-01-preview" + return "hashicorp/go-azure-sdk/nginxconfiguration/2024-09-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/README.md similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/README.md index 4aac6b236903..077e79a7e07d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis` Documentation -The `nginxconfigurationanalysis` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-06-01-preview`). +The `nginxconfigurationanalysis` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-09-01-preview`). 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/2024-06-01-preview/nginxconfigurationanalysis" +import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/id_configuration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/id_configuration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/id_configuration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/method_configurationsanalysis.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/method_configurationsanalysis.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/method_configurationsanalysis.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/method_configurationsanalysis.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysiscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysiscreate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysiscreate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysiscreate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysiscreateconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysiscreateconfig.go new file mode 100644 index 000000000000..486f2b5aaf96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysiscreateconfig.go @@ -0,0 +1,11 @@ +package nginxconfigurationanalysis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AnalysisCreateConfig struct { + Files *[]NginxConfigurationFile `json:"files,omitempty"` + Package *NginxConfigurationPackage `json:"package,omitempty"` + ProtectedFiles *[]NginxConfigurationProtectedFileRequest `json:"protectedFiles,omitempty"` + RootFile *string `json:"rootFile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysisdiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysisdiagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysisdiagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysisdiagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysisresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysisresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysisresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysisresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysisresultdata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysisresultdata.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_analysisresultdata.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_analysisresultdata.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_nginxconfigurationfile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_nginxconfigurationfile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_nginxconfigurationfile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_nginxconfigurationfile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_nginxconfigurationpackage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_nginxconfigurationpackage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/model_nginxconfigurationpackage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_nginxconfigurationpackage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_nginxconfigurationprotectedfilerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_nginxconfigurationprotectedfilerequest.go new file mode 100644 index 000000000000..0afc2893351d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/model_nginxconfigurationprotectedfilerequest.go @@ -0,0 +1,10 @@ +package nginxconfigurationanalysis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NginxConfigurationProtectedFileRequest struct { + Content *string `json:"content,omitempty"` + ContentHash *string `json:"contentHash,omitempty"` + VirtualPath *string `json:"virtualPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/version.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/version.go index ed68660d2961..f4a422cd8619 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis/version.go @@ -3,8 +3,8 @@ package nginxconfigurationanalysis // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2024-06-01-preview" +const defaultApiVersion = "2024-09-01-preview" func userAgent() string { - return "hashicorp/go-azure-sdk/nginxconfigurationanalysis/2024-06-01-preview" + return "hashicorp/go-azure-sdk/nginxconfigurationanalysis/2024-09-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/README.md index 47447400eb1e..c174db0013af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment` Documentation -The `nginxdeployment` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-06-01-preview`). +The `nginxdeployment` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-09-01-preview`). 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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment" +import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/id_nginxdeployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/id_nginxdeployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/id_nginxdeployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentslistbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentslistbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentslistbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentsupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/method_deploymentsupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_autoupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_autoupgradeprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_autoupgradeprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_autoupgradeprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentproperties.go index c89192b33249..e07216cd37ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentproperties.go @@ -5,10 +5,10 @@ package nginxdeployment type NginxDeploymentProperties struct { AutoUpgradeProfile *AutoUpgradeProfile `json:"autoUpgradeProfile,omitempty"` + DataplaneApiEndpoint *string `json:"dataplaneApiEndpoint,omitempty"` 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"` NginxAppProtect *NginxDeploymentPropertiesNginxAppProtect `json:"nginxAppProtect,omitempty"` NginxVersion *string `json:"nginxVersion,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentpropertiesnginxappprotect.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentpropertiesnginxappprotect.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentpropertiesnginxappprotect.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentpropertiesnginxappprotect.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentscalingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentscalingproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentscalingproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentscalingproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentscalingpropertiesautoscalesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentscalingpropertiesautoscalesettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentscalingpropertiesautoscalesettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentscalingpropertiesautoscalesettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentupdatepropertiesnginxappprotect.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentupdatepropertiesnginxappprotect.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentupdatepropertiesnginxappprotect.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentupdatepropertiesnginxappprotect.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentuserprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentuserprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxdeploymentuserprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxdeploymentuserprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxfrontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxfrontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxfrontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxfrontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxlogging.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxlogging.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxlogging.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxlogging.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxnetworkinterfaceconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxnetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxnetworkprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxnetworkprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxnetworkprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxprivateipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxprivateipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxprivateipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxprivateipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxpublicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxpublicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxpublicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxstorageaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxstorageaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_nginxstorageaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_nginxstorageaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_resourcesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_resourcesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_resourcesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_resourcesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_scaleprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_scaleprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_scaleprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_scaleprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_scaleprofilecapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_scaleprofilecapacity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_scaleprofilecapacity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_scaleprofilecapacity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_webapplicationfirewallcomponentversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_webapplicationfirewallcomponentversions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_webapplicationfirewallcomponentversions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_webapplicationfirewallcomponentversions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_webapplicationfirewallpackage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_webapplicationfirewallpackage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_webapplicationfirewallpackage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_webapplicationfirewallpackage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_webapplicationfirewallsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_webapplicationfirewallsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_webapplicationfirewallsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_webapplicationfirewallsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_webapplicationfirewallstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_webapplicationfirewallstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/model_webapplicationfirewallstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/model_webapplicationfirewallstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/version.go similarity index 65% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/version.go index c1ae933345b7..ace4c64238d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment/version.go @@ -3,8 +3,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. -const defaultApiVersion = "2024-06-01-preview" +const defaultApiVersion = "2024-09-01-preview" func userAgent() string { - return "hashicorp/go-azure-sdk/nginxdeployment/2024-06-01-preview" + return "hashicorp/go-azure-sdk/nginxdeployment/2024-09-01-preview" } diff --git a/vendor/modules.txt b/vendor/modules.txt index cabd0d189771..58be4329893c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -853,11 +853,12 @@ github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/az github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2024-03-01/monitors github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2024-03-01/tagrules -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis -github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxapikey +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxcertificate +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxconfigurationanalysis +github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-09-01-preview/nginxdeployment github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries diff --git a/website/docs/5.0-upgrade-guide.html.markdown b/website/docs/5.0-upgrade-guide.html.markdown index f97bbc624e01..369c74e553c8 100644 --- a/website/docs/5.0-upgrade-guide.html.markdown +++ b/website/docs/5.0-upgrade-guide.html.markdown @@ -118,20 +118,24 @@ Please follow the format in the example below for listing breaking changes in re * The deprecated `network_security_group_id` property has been removed in favour of the `target_resource_id` property. +### `azurerm_nginx_deployment` + +* The deprecated `managed_resource_group` property has been removed. + ### `azurerm_sentinel_alert_rule_fusion` * The deprecated `name` property has been removed. ### `azurerm_storage_account` -* The deprecated `queue_properties` block has been removed and superseded by the `azurerm_storage_account_queue_properties` resource. -* The deprecated `static_website` block has been removed and superseded by the `azurerm_storage_account_static_website` resource. +* The deprecated `queue_properties` block has been removed and superseded by the `azurerm_storage_account_queue_properties` resource. +* The deprecated `static_website` block has been removed and superseded by the `azurerm_storage_account_static_website` resource. ### `azurerm_storage_container` * The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property. * The deprecated `resource_manager_id` property has been removed in favour of the `id` property. - + ### `azurerm_storage_share` * The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property. @@ -152,11 +156,19 @@ Please follow the format in the example below for listing breaking changes in da * The deprecated `site_config.public_network_access_enabled` property has been removed and superseded by the `public_network_access` property. +### `azurerm_nginx_configuration` + +* The deprecated `protected_file.content` property has been removed. + +### `azurerm_nginx_deployment` + +* The deprecated `managed_resource_group` property has been removed. + ### `azurerm_storage_container` * The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property. * The deprecated `resource_manager_id` property has been removed in favour of the `id` property. -* + ### `azurerm_storage_share` * The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property. diff --git a/website/docs/d/nginx_configuration.html.markdown b/website/docs/d/nginx_configuration.html.markdown index f75096daa76e..941bf312dd64 100644 --- a/website/docs/d/nginx_configuration.html.markdown +++ b/website/docs/d/nginx_configuration.html.markdown @@ -36,6 +36,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `config_file` - A `config_file` block as defined below. +* `protected_file` - A `protected_file` block as defined below. + * `package_data` - The package data for this configuration. * `root_file` - The root file path of this Nginx Configuration. @@ -48,6 +50,12 @@ A `config_file` block exports the following: * `virtual_path` - The path of this configuration file. +--- + +A `protected_file` block exports the following: + +* `virtual_path` - The path of this configuration file. + ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: diff --git a/website/docs/d/nginx_deployment.html.markdown b/website/docs/d/nginx_deployment.html.markdown index 4b8d11f8bb4e..cb0e85326b06 100644 --- a/website/docs/d/nginx_deployment.html.markdown +++ b/website/docs/d/nginx_deployment.html.markdown @@ -57,8 +57,6 @@ In addition to the Arguments listed above - the following Attributes are exporte * `logging_storage_account` - A `logging_storage_account` block as defined below. -* `managed_resource_group` - Auto-generated managed resource group for the NGINX Deployment. - * `network_interface` - A `network_interface` block as defined below. * `nginx_version` - NGINX version of the Deployment. diff --git a/website/docs/r/nginx_configuration.html.markdown b/website/docs/r/nginx_configuration.html.markdown index 2d1f8dcdad19..0165bc30db8e 100644 --- a/website/docs/r/nginx_configuration.html.markdown +++ b/website/docs/r/nginx_configuration.html.markdown @@ -59,7 +59,6 @@ resource "azurerm_nginx_deployment" "example" { resource_group_name = azurerm_resource_group.example.name sku = "publicpreview_Monthly_gmz7xq9ge3py" location = azurerm_resource_group.example.location - managed_resource_group = "example" diagnose_support_enabled = true frontend_public { diff --git a/website/docs/r/nginx_deployment.html.markdown b/website/docs/r/nginx_deployment.html.markdown index 4219600cda6e..ae83afcbe3d2 100644 --- a/website/docs/r/nginx_deployment.html.markdown +++ b/website/docs/r/nginx_deployment.html.markdown @@ -59,7 +59,6 @@ resource "azurerm_nginx_deployment" "example" { resource_group_name = azurerm_resource_group.example.name sku = "standardv2_Monthly" location = azurerm_resource_group.example.location - managed_resource_group = "example" diagnose_support_enabled = true automatic_upgrade_channel = "stable" @@ -90,8 +89,6 @@ The following arguments are supported: -> **NOTE:** If you are setting the `sku` to `basic_Monthly`, you cannot specify a `capacity` or `auto_scale_profile`; basic plans do not support scaling. Other `sku`s require either `capacity` or `auto_scale_profile`. If you're using `basic_Monthly` with deployments created before v4.0, you may need to use [Terraform's `ignore_changes` functionality](https://www.terraform.io/language/meta-arguments/lifecycle#ignore_changes) to ignore changes to the `capacity` field. -* `managed_resource_group` - (Optional) Specify the managed resource group to deploy VNet injection related network resources. Changing this forces a new NGINX Deployment to be created. - --- * `capacity` - (Optional) Specify the number of NGINX capacity units for this NGINX deployment.