diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/CHANGELOG.md b/sdk/resourcemanager/networkcloud/armnetworkcloud/CHANGELOG.md index 91f4ba98d0c4..017c1de3b072 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/CHANGELOG.md +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.4.0-beta.1 (2025-11-11) +## 1.4.0 (2025-12-26) ### Features Added - New value `BareMetalMachineKeySetPrivilegeLevelOther` added to enum type `BareMetalMachineKeySetPrivilegeLevel` @@ -9,12 +9,12 @@ - New enum type `BareMetalMachineReplaceStoragePolicy` with values `BareMetalMachineReplaceStoragePolicyDiscardAll`, `BareMetalMachineReplaceStoragePolicyPreserve` - New enum type `CloudServicesNetworkStorageMode` with values `CloudServicesNetworkStorageModeNone`, `CloudServicesNetworkStorageModeStandard` - New enum type `CloudServicesNetworkStorageStatusStatus` with values `CloudServicesNetworkStorageStatusStatusAvailable`, `CloudServicesNetworkStorageStatusStatusExpandingVolume`, `CloudServicesNetworkStorageStatusStatusExpansionFailed` -- New enum type `CommandOutputType` with values `CommandOutputTypeBareMetalMachineRunCommand`, `CommandOutputTypeBareMetalMachineRunDataExtracts`, `CommandOutputTypeBareMetalMachineRunReadCommands`, `CommandOutputTypeStorageRunReadCommands` +- New enum type `CommandOutputType` with values `CommandOutputTypeBareMetalMachineRunCommand`, `CommandOutputTypeBareMetalMachineRunDataExtracts`, `CommandOutputTypeBareMetalMachineRunDataExtractsRestricted`, `CommandOutputTypeBareMetalMachineRunReadCommands`, `CommandOutputTypeStorageRunReadCommands` - New enum type `RelayType` with values `RelayTypePlatform`, `RelayTypePublic` - New enum type `StepStateStatus` with values `StepStateStatusCompleted`, `StepStateStatusFailed`, `StepStateStatusInProgress`, `StepStateStatusNotStarted` -- New function `*BareMetalMachinesClient.BeginRunDataExtractsRestricted(context.Context, string, string, BareMetalMachineRunDataExtractsParameters, *BareMetalMachinesClientBeginRunDataExtractsRestrictedOptions) (*runtime.Poller[BareMetalMachinesClientRunDataExtractsRestrictedResponse], error)` -- New function `*StorageAppliancesClient.BeginRunReadCommands(context.Context, string, string, StorageApplianceRunReadCommandsParameters, *StorageAppliancesClientBeginRunReadCommandsOptions) (*runtime.Poller[StorageAppliancesClientRunReadCommandsResponse], error)` -- New function `*VirtualMachinesClient.BeginAssignRelay(context.Context, string, string, *VirtualMachinesClientBeginAssignRelayOptions) (*runtime.Poller[VirtualMachinesClientAssignRelayResponse], error)` +- New function `*BareMetalMachinesClient.BeginRunDataExtractsRestricted(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunDataExtractsRestrictedParameters BareMetalMachineRunDataExtractsParameters, options *BareMetalMachinesClientBeginRunDataExtractsRestrictedOptions) (*runtime.Poller[BareMetalMachinesClientRunDataExtractsRestrictedResponse], error)` +- New function `*StorageAppliancesClient.BeginRunReadCommands(ctx context.Context, resourceGroupName string, storageApplianceName string, storageApplianceRunReadCommandsParameters StorageApplianceRunReadCommandsParameters, options *StorageAppliancesClientBeginRunReadCommandsOptions) (*runtime.Poller[StorageAppliancesClientRunReadCommandsResponse], error)` +- New function `*VirtualMachinesClient.BeginAssignRelay(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginAssignRelayOptions) (*runtime.Poller[VirtualMachinesClientAssignRelayResponse], error)` - New struct `ActionState` - New struct `CertificateInfo` - New struct `CloudServicesNetworkStorageOptions` diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client.go index 2c668971eaa2..1a6aaeff25b5 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client.go @@ -44,7 +44,7 @@ func NewAgentPoolsClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Create a new Kubernetes cluster agent pool or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - agentPoolName - The name of the Kubernetes cluster agent pool. @@ -72,7 +72,7 @@ func (client *AgentPoolsClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Create a new Kubernetes cluster agent pool or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *AgentPoolsClient) createOrUpdate(ctx context.Context, resourceGroupName string, kubernetesClusterName string, agentPoolName string, agentPoolParameters AgentPool, options *AgentPoolsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "AgentPoolsClient.BeginCreateOrUpdate" @@ -118,7 +118,7 @@ func (client *AgentPoolsClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -136,7 +136,7 @@ func (client *AgentPoolsClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete the provided Kubernetes cluster agent pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - agentPoolName - The name of the Kubernetes cluster agent pool. @@ -162,7 +162,7 @@ func (client *AgentPoolsClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Delete the provided Kubernetes cluster agent pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *AgentPoolsClient) deleteOperation(ctx context.Context, resourceGroupName string, kubernetesClusterName string, agentPoolName string, options *AgentPoolsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "AgentPoolsClient.BeginDelete" @@ -208,7 +208,7 @@ func (client *AgentPoolsClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -223,7 +223,7 @@ func (client *AgentPoolsClient) deleteCreateRequest(ctx context.Context, resourc // Get - Get properties of the provided Kubernetes cluster agent pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - agentPoolName - The name of the Kubernetes cluster agent pool. @@ -274,7 +274,7 @@ func (client *AgentPoolsClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -291,7 +291,7 @@ func (client *AgentPoolsClient) getHandleResponse(resp *http.Response) (AgentPoo // NewListByKubernetesClusterPager - Get a list of agent pools for the provided Kubernetes cluster. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - options - AgentPoolsClientListByKubernetesClusterOptions contains the optional parameters for the AgentPoolsClient.NewListByKubernetesClusterPager @@ -345,7 +345,7 @@ func (client *AgentPoolsClient) listByKubernetesClusterCreateRequest(ctx context if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -364,7 +364,7 @@ func (client *AgentPoolsClient) listByKubernetesClusterHandleResponse(resp *http // Kubernetes cluster agent pool. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - agentPoolName - The name of the Kubernetes cluster agent pool. @@ -392,7 +392,7 @@ func (client *AgentPoolsClient) BeginUpdate(ctx context.Context, resourceGroupNa // cluster agent pool. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *AgentPoolsClient) update(ctx context.Context, resourceGroupName string, kubernetesClusterName string, agentPoolName string, agentPoolUpdateParameters AgentPoolPatchParameters, options *AgentPoolsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "AgentPoolsClient.BeginUpdate" @@ -438,7 +438,7 @@ func (client *AgentPoolsClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client_example_test.go index f843e3477104..e4ad659c173e 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_ListByKubernetesCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_ListByKubernetesCluster.json func ExampleAgentPoolsClient_NewListByKubernetesClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -125,7 +122,7 @@ func ExampleAgentPoolsClient_NewListByKubernetesClusterPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_Get.json func ExampleAgentPoolsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -222,7 +219,7 @@ func ExampleAgentPoolsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_Create.json func ExampleAgentPoolsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -386,7 +383,7 @@ func ExampleAgentPoolsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_Delete.json func ExampleAgentPoolsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -409,7 +406,7 @@ func ExampleAgentPoolsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/AgentPools_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_Patch.json func ExampleAgentPoolsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/autorest.md b/sdk/resourcemanager/networkcloud/armnetworkcloud/autorest.md index 9a09d5271255..aae693302132 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/autorest.md +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.4.0-beta.1 -tag: package-2025-07-01-preview +module-version: 1.4.0 +tag: package-2025-09-01 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client.go index 5955f89f4bd4..6ad2ce7927ac 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client.go @@ -44,7 +44,7 @@ func NewBareMetalMachineKeySetsClient(subscriptionID string, credential azcore.T // BeginCreateOrUpdate - Create a new bare metal machine key set or update the existing one for the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bareMetalMachineKeySetName - The name of the bare metal machine key set. @@ -72,7 +72,7 @@ func (client *BareMetalMachineKeySetsClient) BeginCreateOrUpdate(ctx context.Con // CreateOrUpdate - Create a new bare metal machine key set or update the existing one for the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachineKeySetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, bareMetalMachineKeySetName string, bareMetalMachineKeySetParameters BareMetalMachineKeySet, options *BareMetalMachineKeySetsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachineKeySetsClient.BeginCreateOrUpdate" @@ -118,7 +118,7 @@ func (client *BareMetalMachineKeySetsClient) createOrUpdateCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -136,7 +136,7 @@ func (client *BareMetalMachineKeySetsClient) createOrUpdateCreateRequest(ctx con // BeginDelete - Delete the bare metal machine key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bareMetalMachineKeySetName - The name of the bare metal machine key set. @@ -163,7 +163,7 @@ func (client *BareMetalMachineKeySetsClient) BeginDelete(ctx context.Context, re // Delete - Delete the bare metal machine key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachineKeySetsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, bareMetalMachineKeySetName string, options *BareMetalMachineKeySetsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachineKeySetsClient.BeginDelete" @@ -209,7 +209,7 @@ func (client *BareMetalMachineKeySetsClient) deleteCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -224,7 +224,7 @@ func (client *BareMetalMachineKeySetsClient) deleteCreateRequest(ctx context.Con // Get - Get bare metal machine key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bareMetalMachineKeySetName - The name of the bare metal machine key set. @@ -276,7 +276,7 @@ func (client *BareMetalMachineKeySetsClient) getCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -293,7 +293,7 @@ func (client *BareMetalMachineKeySetsClient) getHandleResponse(resp *http.Respon // NewListByClusterPager - Get a list of bare metal machine key sets for the provided cluster. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - BareMetalMachineKeySetsClientListByClusterOptions contains the optional parameters for the BareMetalMachineKeySetsClient.NewListByClusterPager @@ -347,7 +347,7 @@ func (client *BareMetalMachineKeySetsClient) listByClusterCreateRequest(ctx cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -366,7 +366,7 @@ func (client *BareMetalMachineKeySetsClient) listByClusterHandleResponse(resp *h // it. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bareMetalMachineKeySetName - The name of the bare metal machine key set. @@ -395,7 +395,7 @@ func (client *BareMetalMachineKeySetsClient) BeginUpdate(ctx context.Context, re // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachineKeySetsClient) update(ctx context.Context, resourceGroupName string, clusterName string, bareMetalMachineKeySetName string, bareMetalMachineKeySetUpdateParameters BareMetalMachineKeySetPatchParameters, options *BareMetalMachineKeySetsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachineKeySetsClient.BeginUpdate" @@ -441,7 +441,7 @@ func (client *BareMetalMachineKeySetsClient) updateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client_example_test.go index 5964cdacf009..d33ccc2c9785 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -20,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_ListByCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachineKeySets_ListByCluster.json func ExampleBareMetalMachineKeySetsClient_NewListByClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -169,7 +166,7 @@ func ExampleBareMetalMachineKeySetsClient_NewListByClusterPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachineKeySets_Get.json func ExampleBareMetalMachineKeySetsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -252,7 +249,7 @@ func ExampleBareMetalMachineKeySetsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachineKeySets_Create.json func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -371,7 +368,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachineKeySets_Delete.json func ExampleBareMetalMachineKeySetsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -394,7 +391,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachineKeySets_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachineKeySets_Patch.json func ExampleBareMetalMachineKeySetsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client.go index 8f661d963f89..5bfa7617703e 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client.go @@ -44,7 +44,7 @@ func NewBareMetalMachinesClient(subscriptionID string, credential azcore.TokenCr // BeginCordon - Cordon the provided bare metal machine's Kubernetes node. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginCordonOptions contains the optional parameters for the BareMetalMachinesClient.BeginCordon @@ -70,7 +70,7 @@ func (client *BareMetalMachinesClient) BeginCordon(ctx context.Context, resource // Cordon - Cordon the provided bare metal machine's Kubernetes node. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) cordon(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginCordonOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginCordon" @@ -112,7 +112,7 @@ func (client *BareMetalMachinesClient) cordonCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.BareMetalMachineCordonParameters != nil { @@ -128,7 +128,7 @@ func (client *BareMetalMachinesClient) cordonCreateRequest(ctx context.Context, // requests will be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineParameters - The request body. @@ -156,7 +156,7 @@ func (client *BareMetalMachinesClient) BeginCreateOrUpdate(ctx context.Context, // will be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineParameters BareMetalMachine, options *BareMetalMachinesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginCreateOrUpdate" @@ -198,7 +198,7 @@ func (client *BareMetalMachinesClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -217,7 +217,7 @@ func (client *BareMetalMachinesClient) createOrUpdateCreateRequest(ctx context.C // of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginDeleteOptions contains the optional parameters for the BareMetalMachinesClient.BeginDelete @@ -244,7 +244,7 @@ func (client *BareMetalMachinesClient) BeginDelete(ctx context.Context, resource // this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) deleteOperation(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginDelete" @@ -286,7 +286,7 @@ func (client *BareMetalMachinesClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -301,7 +301,7 @@ func (client *BareMetalMachinesClient) deleteCreateRequest(ctx context.Context, // Get - Get properties of the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientGetOptions contains the optional parameters for the BareMetalMachinesClient.Get method. @@ -347,7 +347,7 @@ func (client *BareMetalMachinesClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -364,7 +364,7 @@ func (client *BareMetalMachinesClient) getHandleResponse(resp *http.Response) (B // NewListByResourceGroupPager - Get a list of bare metal machines in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - BareMetalMachinesClientListByResourceGroupOptions contains the optional parameters for the BareMetalMachinesClient.NewListByResourceGroupPager // method. @@ -413,7 +413,7 @@ func (client *BareMetalMachinesClient) listByResourceGroupCreateRequest(ctx cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -430,7 +430,7 @@ func (client *BareMetalMachinesClient) listByResourceGroupHandleResponse(resp *h // NewListBySubscriptionPager - Get a list of bare metal machines in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - BareMetalMachinesClientListBySubscriptionOptions contains the optional parameters for the BareMetalMachinesClient.NewListBySubscriptionPager // method. func (client *BareMetalMachinesClient) NewListBySubscriptionPager(options *BareMetalMachinesClientListBySubscriptionOptions) *runtime.Pager[BareMetalMachinesClientListBySubscriptionResponse] { @@ -474,7 +474,7 @@ func (client *BareMetalMachinesClient) listBySubscriptionCreateRequest(ctx conte if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -492,7 +492,7 @@ func (client *BareMetalMachinesClient) listBySubscriptionHandleResponse(resp *ht // BeginPowerOff - Power off the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginPowerOffOptions contains the optional parameters for the BareMetalMachinesClient.BeginPowerOff @@ -518,7 +518,7 @@ func (client *BareMetalMachinesClient) BeginPowerOff(ctx context.Context, resour // PowerOff - Power off the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) powerOff(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginPowerOffOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginPowerOff" @@ -560,7 +560,7 @@ func (client *BareMetalMachinesClient) powerOffCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.BareMetalMachinePowerOffParameters != nil { @@ -575,7 +575,7 @@ func (client *BareMetalMachinesClient) powerOffCreateRequest(ctx context.Context // BeginReimage - Reimage the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginReimageOptions contains the optional parameters for the BareMetalMachinesClient.BeginReimage @@ -601,7 +601,7 @@ func (client *BareMetalMachinesClient) BeginReimage(ctx context.Context, resourc // Reimage - Reimage the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) reimage(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginReimageOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginReimage" @@ -643,7 +643,7 @@ func (client *BareMetalMachinesClient) reimageCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -652,7 +652,7 @@ func (client *BareMetalMachinesClient) reimageCreateRequest(ctx context.Context, // BeginReplace - Replace the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginReplaceOptions contains the optional parameters for the BareMetalMachinesClient.BeginReplace @@ -678,7 +678,7 @@ func (client *BareMetalMachinesClient) BeginReplace(ctx context.Context, resourc // Replace - Replace the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) replace(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginReplaceOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginReplace" @@ -720,7 +720,7 @@ func (client *BareMetalMachinesClient) replaceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.BareMetalMachineReplaceParameters != nil { @@ -735,7 +735,7 @@ func (client *BareMetalMachinesClient) replaceCreateRequest(ctx context.Context, // BeginRestart - Restart the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginRestartOptions contains the optional parameters for the BareMetalMachinesClient.BeginRestart @@ -761,7 +761,7 @@ func (client *BareMetalMachinesClient) BeginRestart(ctx context.Context, resourc // Restart - Restart the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) restart(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginRestartOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRestart" @@ -803,7 +803,7 @@ func (client *BareMetalMachinesClient) restartCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -814,7 +814,7 @@ func (client *BareMetalMachinesClient) restartCreateRequest(ctx context.Context, // once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineRunCommandParameters - The request body. @@ -843,7 +843,7 @@ func (client *BareMetalMachinesClient) BeginRunCommand(ctx context.Context, reso // once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) runCommand(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunCommandParameters BareMetalMachineRunCommandParameters, options *BareMetalMachinesClientBeginRunCommandOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRunCommand" @@ -885,7 +885,7 @@ func (client *BareMetalMachinesClient) runCommandCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineRunCommandParameters); err != nil { @@ -899,7 +899,7 @@ func (client *BareMetalMachinesClient) runCommandCreateRequest(ctx context.Conte // API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineRunDataExtractsParameters - The request body. @@ -928,7 +928,7 @@ func (client *BareMetalMachinesClient) BeginRunDataExtracts(ctx context.Context, // API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) runDataExtracts(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunDataExtractsParameters BareMetalMachineRunDataExtractsParameters, options *BareMetalMachinesClientBeginRunDataExtractsOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRunDataExtracts" @@ -970,7 +970,7 @@ func (client *BareMetalMachinesClient) runDataExtractsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineRunDataExtractsParameters); err != nil { @@ -984,7 +984,7 @@ func (client *BareMetalMachinesClient) runDataExtractsCreateRequest(ctx context. // operation status API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineRunDataExtractsRestrictedParameters - The request body. @@ -1013,7 +1013,7 @@ func (client *BareMetalMachinesClient) BeginRunDataExtractsRestricted(ctx contex // operation status API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) runDataExtractsRestricted(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunDataExtractsRestrictedParameters BareMetalMachineRunDataExtractsParameters, options *BareMetalMachinesClientBeginRunDataExtractsRestrictedOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRunDataExtractsRestricted" @@ -1055,7 +1055,7 @@ func (client *BareMetalMachinesClient) runDataExtractsRestrictedCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineRunDataExtractsRestrictedParameters); err != nil { @@ -1069,7 +1069,7 @@ func (client *BareMetalMachinesClient) runDataExtractsRestrictedCreateRequest(ct // status API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineRunReadCommandsParameters - The request body. @@ -1098,7 +1098,7 @@ func (client *BareMetalMachinesClient) BeginRunReadCommands(ctx context.Context, // status API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) runReadCommands(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunReadCommandsParameters BareMetalMachineRunReadCommandsParameters, options *BareMetalMachinesClientBeginRunReadCommandsOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRunReadCommands" @@ -1140,7 +1140,7 @@ func (client *BareMetalMachinesClient) runReadCommandsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineRunReadCommandsParameters); err != nil { @@ -1152,7 +1152,7 @@ func (client *BareMetalMachinesClient) runReadCommandsCreateRequest(ctx context. // BeginStart - Start the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginStartOptions contains the optional parameters for the BareMetalMachinesClient.BeginStart @@ -1178,7 +1178,7 @@ func (client *BareMetalMachinesClient) BeginStart(ctx context.Context, resourceG // Start - Start the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) start(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginStartOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginStart" @@ -1220,7 +1220,7 @@ func (client *BareMetalMachinesClient) startCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1229,7 +1229,7 @@ func (client *BareMetalMachinesClient) startCreateRequest(ctx context.Context, r // BeginUncordon - Uncordon the provided bare metal machine's Kubernetes node. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginUncordonOptions contains the optional parameters for the BareMetalMachinesClient.BeginUncordon @@ -1255,7 +1255,7 @@ func (client *BareMetalMachinesClient) BeginUncordon(ctx context.Context, resour // Uncordon - Uncordon the provided bare metal machine's Kubernetes node. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) uncordon(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginUncordonOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginUncordon" @@ -1297,7 +1297,7 @@ func (client *BareMetalMachinesClient) uncordonCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1307,7 +1307,7 @@ func (client *BareMetalMachinesClient) uncordonCreateRequest(ctx context.Context // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineUpdateParameters - The request body. @@ -1335,7 +1335,7 @@ func (client *BareMetalMachinesClient) BeginUpdate(ctx context.Context, resource // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BareMetalMachinesClient) update(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineUpdateParameters BareMetalMachinePatchParameters, options *BareMetalMachinesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginUpdate" @@ -1377,7 +1377,7 @@ func (client *BareMetalMachinesClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client_example_test.go index 0a9ef857f49c..dbc9430d0ad3 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_ListBySubscription.json func ExampleBareMetalMachinesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -163,7 +160,7 @@ func ExampleBareMetalMachinesClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_ListByResourceGroup.json func ExampleBareMetalMachinesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -308,7 +305,7 @@ func ExampleBareMetalMachinesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Get.json func ExampleBareMetalMachinesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -443,7 +440,7 @@ func ExampleBareMetalMachinesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Create.json func ExampleBareMetalMachinesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -609,7 +606,7 @@ func ExampleBareMetalMachinesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Delete.json func ExampleBareMetalMachinesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -632,7 +629,7 @@ func ExampleBareMetalMachinesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Patch.json func ExampleBareMetalMachinesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -781,7 +778,7 @@ func ExampleBareMetalMachinesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Cordon.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Cordon.json func ExampleBareMetalMachinesClient_BeginCordon() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -805,7 +802,7 @@ func ExampleBareMetalMachinesClient_BeginCordon() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_PowerOff.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_PowerOff.json func ExampleBareMetalMachinesClient_BeginPowerOff() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -829,7 +826,7 @@ func ExampleBareMetalMachinesClient_BeginPowerOff() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Reimage.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Reimage.json func ExampleBareMetalMachinesClient_BeginReimage() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -850,7 +847,7 @@ func ExampleBareMetalMachinesClient_BeginReimage() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Replace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Replace.json func ExampleBareMetalMachinesClient_BeginReplace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -883,7 +880,7 @@ func ExampleBareMetalMachinesClient_BeginReplace() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Restart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Restart.json func ExampleBareMetalMachinesClient_BeginRestart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -904,7 +901,7 @@ func ExampleBareMetalMachinesClient_BeginRestart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunCommand.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_RunCommand.json func ExampleBareMetalMachinesClient_BeginRunCommand() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -931,7 +928,7 @@ func ExampleBareMetalMachinesClient_BeginRunCommand() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunDataExtracts.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_RunDataExtracts.json func ExampleBareMetalMachinesClient_BeginRunDataExtracts() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -961,7 +958,7 @@ func ExampleBareMetalMachinesClient_BeginRunDataExtracts() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunDataExtractsRestricted.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_RunDataExtractsRestricted.json func ExampleBareMetalMachinesClient_BeginRunDataExtractsRestricted() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -990,7 +987,7 @@ func ExampleBareMetalMachinesClient_BeginRunDataExtractsRestricted() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunReadCommands_Hostname.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_RunReadCommands_Hostname.json func ExampleBareMetalMachinesClient_BeginRunReadCommands_runAndRetrieveOutputFromASingleReadOnlyCommandOnBareMetalMachine() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1017,7 +1014,7 @@ func ExampleBareMetalMachinesClient_BeginRunReadCommands_runAndRetrieveOutputFro } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_RunReadCommands_Multiple.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_RunReadCommands_Multiple.json func ExampleBareMetalMachinesClient_BeginRunReadCommands_runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1054,7 +1051,7 @@ func ExampleBareMetalMachinesClient_BeginRunReadCommands_runAndRetrieveOutputFro } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Start.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Start.json func ExampleBareMetalMachinesClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1075,7 +1072,7 @@ func ExampleBareMetalMachinesClient_BeginStart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BareMetalMachines_Uncordon.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BareMetalMachines_Uncordon.json func ExampleBareMetalMachinesClient_BeginUncordon() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client.go index 45ef831f3c04..519609ca74ec 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client.go @@ -45,7 +45,7 @@ func NewBmcKeySetsClient(subscriptionID string, credential azcore.TokenCredentia // cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bmcKeySetName - The name of the baseboard management controller key set. @@ -73,7 +73,7 @@ func (client *BmcKeySetsClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Create a new baseboard management controller key set or update the existing one for the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BmcKeySetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, bmcKeySetName string, bmcKeySetParameters BmcKeySet, options *BmcKeySetsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "BmcKeySetsClient.BeginCreateOrUpdate" @@ -119,7 +119,7 @@ func (client *BmcKeySetsClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -137,7 +137,7 @@ func (client *BmcKeySetsClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete the baseboard management controller key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bmcKeySetName - The name of the baseboard management controller key set. @@ -163,7 +163,7 @@ func (client *BmcKeySetsClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Delete the baseboard management controller key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BmcKeySetsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, bmcKeySetName string, options *BmcKeySetsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "BmcKeySetsClient.BeginDelete" @@ -209,7 +209,7 @@ func (client *BmcKeySetsClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -224,7 +224,7 @@ func (client *BmcKeySetsClient) deleteCreateRequest(ctx context.Context, resourc // Get - Get baseboard management controller key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bmcKeySetName - The name of the baseboard management controller key set. @@ -275,7 +275,7 @@ func (client *BmcKeySetsClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -292,7 +292,7 @@ func (client *BmcKeySetsClient) getHandleResponse(resp *http.Response) (BmcKeySe // NewListByClusterPager - Get a list of baseboard management controller key sets for the provided cluster. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - BmcKeySetsClientListByClusterOptions contains the optional parameters for the BmcKeySetsClient.NewListByClusterPager @@ -346,7 +346,7 @@ func (client *BmcKeySetsClient) listByClusterCreateRequest(ctx context.Context, if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -365,7 +365,7 @@ func (client *BmcKeySetsClient) listByClusterHandleResponse(resp *http.Response) // associated with it. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bmcKeySetName - The name of the baseboard management controller key set. @@ -393,7 +393,7 @@ func (client *BmcKeySetsClient) BeginUpdate(ctx context.Context, resourceGroupNa // with it. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *BmcKeySetsClient) update(ctx context.Context, resourceGroupName string, clusterName string, bmcKeySetName string, bmcKeySetUpdateParameters BmcKeySetPatchParameters, options *BmcKeySetsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "BmcKeySetsClient.BeginUpdate" @@ -439,7 +439,7 @@ func (client *BmcKeySetsClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client_example_test.go index b4940b9ae0be..31f62cd1dcb5 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -20,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_ListByCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_ListByCluster.json func ExampleBmcKeySetsClient_NewListByClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -109,7 +106,7 @@ func ExampleBmcKeySetsClient_NewListByClusterPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_Get.json func ExampleBmcKeySetsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -188,7 +185,7 @@ func ExampleBmcKeySetsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_Create.json func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -305,7 +302,7 @@ func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_Delete.json func ExampleBmcKeySetsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -328,7 +325,7 @@ func ExampleBmcKeySetsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/BmcKeySets_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_Patch.json func ExampleBmcKeySetsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client.go index 6c9c4e6b7908..79ebab1d97dc 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client.go @@ -44,7 +44,7 @@ func NewCloudServicesNetworksClient(subscriptionID string, credential azcore.Tok // BeginCreateOrUpdate - Create a new cloud services network or update the properties of the existing cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - cloudServicesNetworkName - The name of the cloud services network. // - cloudServicesNetworkParameters - The request body. @@ -71,7 +71,7 @@ func (client *CloudServicesNetworksClient) BeginCreateOrUpdate(ctx context.Conte // CreateOrUpdate - Create a new cloud services network or update the properties of the existing cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *CloudServicesNetworksClient) createOrUpdate(ctx context.Context, resourceGroupName string, cloudServicesNetworkName string, cloudServicesNetworkParameters CloudServicesNetwork, options *CloudServicesNetworksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "CloudServicesNetworksClient.BeginCreateOrUpdate" @@ -113,7 +113,7 @@ func (client *CloudServicesNetworksClient) createOrUpdateCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -131,7 +131,7 @@ func (client *CloudServicesNetworksClient) createOrUpdateCreateRequest(ctx conte // BeginDelete - Delete the provided cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - cloudServicesNetworkName - The name of the cloud services network. // - options - CloudServicesNetworksClientBeginDeleteOptions contains the optional parameters for the CloudServicesNetworksClient.BeginDelete @@ -157,7 +157,7 @@ func (client *CloudServicesNetworksClient) BeginDelete(ctx context.Context, reso // Delete - Delete the provided cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *CloudServicesNetworksClient) deleteOperation(ctx context.Context, resourceGroupName string, cloudServicesNetworkName string, options *CloudServicesNetworksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "CloudServicesNetworksClient.BeginDelete" @@ -199,7 +199,7 @@ func (client *CloudServicesNetworksClient) deleteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -214,7 +214,7 @@ func (client *CloudServicesNetworksClient) deleteCreateRequest(ctx context.Conte // Get - Get properties of the provided cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - cloudServicesNetworkName - The name of the cloud services network. // - options - CloudServicesNetworksClientGetOptions contains the optional parameters for the CloudServicesNetworksClient.Get @@ -261,7 +261,7 @@ func (client *CloudServicesNetworksClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -278,7 +278,7 @@ func (client *CloudServicesNetworksClient) getHandleResponse(resp *http.Response // NewListByResourceGroupPager - Get a list of cloud services networks in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - CloudServicesNetworksClientListByResourceGroupOptions contains the optional parameters for the CloudServicesNetworksClient.NewListByResourceGroupPager // method. @@ -327,7 +327,7 @@ func (client *CloudServicesNetworksClient) listByResourceGroupCreateRequest(ctx if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -344,7 +344,7 @@ func (client *CloudServicesNetworksClient) listByResourceGroupHandleResponse(res // NewListBySubscriptionPager - Get a list of cloud services networks in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - CloudServicesNetworksClientListBySubscriptionOptions contains the optional parameters for the CloudServicesNetworksClient.NewListBySubscriptionPager // method. func (client *CloudServicesNetworksClient) NewListBySubscriptionPager(options *CloudServicesNetworksClientListBySubscriptionOptions) *runtime.Pager[CloudServicesNetworksClientListBySubscriptionResponse] { @@ -388,7 +388,7 @@ func (client *CloudServicesNetworksClient) listBySubscriptionCreateRequest(ctx c if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -407,7 +407,7 @@ func (client *CloudServicesNetworksClient) listBySubscriptionHandleResponse(resp // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - cloudServicesNetworkName - The name of the cloud services network. // - cloudServicesNetworkUpdateParameters - The request body. @@ -435,7 +435,7 @@ func (client *CloudServicesNetworksClient) BeginUpdate(ctx context.Context, reso // tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *CloudServicesNetworksClient) update(ctx context.Context, resourceGroupName string, cloudServicesNetworkName string, cloudServicesNetworkUpdateParameters CloudServicesNetworkPatchParameters, options *CloudServicesNetworksClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "CloudServicesNetworksClient.BeginUpdate" @@ -477,7 +477,7 @@ func (client *CloudServicesNetworksClient) updateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client_example_test.go index c8ef56c93890..640cd6d47ecc 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/CloudServicesNetworks_ListBySubscription.json func ExampleCloudServicesNetworksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -110,7 +107,7 @@ func ExampleCloudServicesNetworksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/CloudServicesNetworks_ListByResourceGroup.json func ExampleCloudServicesNetworksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -202,7 +199,7 @@ func ExampleCloudServicesNetworksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/CloudServicesNetworks_Get.json func ExampleCloudServicesNetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -284,7 +281,7 @@ func ExampleCloudServicesNetworksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/CloudServicesNetworks_Create.json func ExampleCloudServicesNetworksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -399,7 +396,7 @@ func ExampleCloudServicesNetworksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/CloudServicesNetworks_Delete.json func ExampleCloudServicesNetworksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -422,7 +419,7 @@ func ExampleCloudServicesNetworksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/CloudServicesNetworks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/CloudServicesNetworks_Patch.json func ExampleCloudServicesNetworksClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client.go index 7ce630c31c52..6f95d4b33e3b 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client.go @@ -44,7 +44,7 @@ func NewClusterManagersClient(subscriptionID string, credential azcore.TokenCred // BeginCreateOrUpdate - Create a new cluster manager or update properties of the cluster manager if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterManagerName - The name of the cluster manager. // - clusterManagerParameters - The request body. @@ -71,7 +71,7 @@ func (client *ClusterManagersClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Create a new cluster manager or update properties of the cluster manager if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClusterManagersClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterManagerName string, clusterManagerParameters ClusterManager, options *ClusterManagersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "ClusterManagersClient.BeginCreateOrUpdate" @@ -113,7 +113,7 @@ func (client *ClusterManagersClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -131,7 +131,7 @@ func (client *ClusterManagersClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - Delete the provided cluster manager. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterManagerName - The name of the cluster manager. // - options - ClusterManagersClientBeginDeleteOptions contains the optional parameters for the ClusterManagersClient.BeginDelete @@ -157,7 +157,7 @@ func (client *ClusterManagersClient) BeginDelete(ctx context.Context, resourceGr // Delete - Delete the provided cluster manager. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClusterManagersClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterManagerName string, options *ClusterManagersClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ClusterManagersClient.BeginDelete" @@ -199,7 +199,7 @@ func (client *ClusterManagersClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -214,7 +214,7 @@ func (client *ClusterManagersClient) deleteCreateRequest(ctx context.Context, re // Get - Get the properties of the provided cluster manager. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterManagerName - The name of the cluster manager. // - options - ClusterManagersClientGetOptions contains the optional parameters for the ClusterManagersClient.Get method. @@ -260,7 +260,7 @@ func (client *ClusterManagersClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -277,7 +277,7 @@ func (client *ClusterManagersClient) getHandleResponse(resp *http.Response) (Clu // NewListByResourceGroupPager - Get a list of cluster managers in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - ClusterManagersClientListByResourceGroupOptions contains the optional parameters for the ClusterManagersClient.NewListByResourceGroupPager // method. @@ -326,7 +326,7 @@ func (client *ClusterManagersClient) listByResourceGroupCreateRequest(ctx contex if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -343,7 +343,7 @@ func (client *ClusterManagersClient) listByResourceGroupHandleResponse(resp *htt // NewListBySubscriptionPager - Get a list of cluster managers in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - ClusterManagersClientListBySubscriptionOptions contains the optional parameters for the ClusterManagersClient.NewListBySubscriptionPager // method. func (client *ClusterManagersClient) NewListBySubscriptionPager(options *ClusterManagersClientListBySubscriptionOptions) *runtime.Pager[ClusterManagersClientListBySubscriptionResponse] { @@ -387,7 +387,7 @@ func (client *ClusterManagersClient) listBySubscriptionCreateRequest(ctx context if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -406,7 +406,7 @@ func (client *ClusterManagersClient) listBySubscriptionHandleResponse(resp *http // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterManagerName - The name of the cluster manager. // - clusterManagerUpdateParameters - The request body. @@ -453,7 +453,7 @@ func (client *ClusterManagersClient) updateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client_example_test.go index d8df60c447a6..31e72b29ff22 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterManagers_ListBySubscription.json func ExampleClusterManagersClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -99,7 +96,7 @@ func ExampleClusterManagersClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterManagers_ListByResourceGroup.json func ExampleClusterManagersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -180,7 +177,7 @@ func ExampleClusterManagersClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterManagers_Get.json func ExampleClusterManagersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -251,7 +248,7 @@ func ExampleClusterManagersClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterManagers_Create.json func ExampleClusterManagersClient_BeginCreateOrUpdate_createOrUpdateClusterManager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -345,7 +342,7 @@ func ExampleClusterManagersClient_BeginCreateOrUpdate_createOrUpdateClusterManag // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Create_Uami.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterManagers_Create_Uami.json func ExampleClusterManagersClient_BeginCreateOrUpdate_createOrUpdateClusterManagerWithUserAssignedIdentity() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -446,7 +443,7 @@ func ExampleClusterManagersClient_BeginCreateOrUpdate_createOrUpdateClusterManag // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterManagers_Delete.json func ExampleClusterManagersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -469,7 +466,7 @@ func ExampleClusterManagersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterManagers_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterManagers_Patch.json func ExampleClusterManagersClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client.go index 31d344f30d8a..8cde97a4e593 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client.go @@ -45,7 +45,7 @@ func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, // paused after completing a segment of the update. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - clusterContinueUpdateVersionParameters - The request body. @@ -73,7 +73,7 @@ func (client *ClustersClient) BeginContinueUpdateVersion(ctx context.Context, re // after completing a segment of the update. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClustersClient) continueUpdateVersion(ctx context.Context, resourceGroupName string, clusterName string, clusterContinueUpdateVersionParameters ClusterContinueUpdateVersionParameters, options *ClustersClientBeginContinueUpdateVersionOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginContinueUpdateVersion" @@ -115,7 +115,7 @@ func (client *ClustersClient) continueUpdateVersionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, clusterContinueUpdateVersionParameters); err != nil { @@ -127,7 +127,7 @@ func (client *ClustersClient) continueUpdateVersionCreateRequest(ctx context.Con // BeginCreateOrUpdate - Create a new cluster or update the properties of the cluster if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - clusterParameters - The request body. @@ -154,7 +154,7 @@ func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceG // CreateOrUpdate - Create a new cluster or update the properties of the cluster if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClustersClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, clusterParameters Cluster, options *ClustersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginCreateOrUpdate" @@ -196,7 +196,7 @@ func (client *ClustersClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -214,7 +214,7 @@ func (client *ClustersClient) createOrUpdateCreateRequest(ctx context.Context, r // BeginDelete - Delete the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method. @@ -239,7 +239,7 @@ func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClustersClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginDelete" @@ -281,7 +281,7 @@ func (client *ClustersClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -296,7 +296,7 @@ func (client *ClustersClient) deleteCreateRequest(ctx context.Context, resourceG // BeginDeploy - Deploy the cluster using the rack configuration provided during creation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - ClustersClientBeginDeployOptions contains the optional parameters for the ClustersClient.BeginDeploy method. @@ -321,7 +321,7 @@ func (client *ClustersClient) BeginDeploy(ctx context.Context, resourceGroupName // Deploy - Deploy the cluster using the rack configuration provided during creation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClustersClient) deploy(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeployOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginDeploy" @@ -363,7 +363,7 @@ func (client *ClustersClient) deployCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.ClusterDeployParameters != nil { @@ -378,7 +378,7 @@ func (client *ClustersClient) deployCreateRequest(ctx context.Context, resourceG // Get - Get properties of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method. @@ -424,7 +424,7 @@ func (client *ClustersClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -441,7 +441,7 @@ func (client *ClustersClient) getHandleResponse(resp *http.Response) (ClustersCl // NewListByResourceGroupPager - Get a list of clusters in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager // method. @@ -490,7 +490,7 @@ func (client *ClustersClient) listByResourceGroupCreateRequest(ctx context.Conte if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -507,7 +507,7 @@ func (client *ClustersClient) listByResourceGroupHandleResponse(resp *http.Respo // NewListBySubscriptionPager - Get a list of clusters in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - ClustersClientListBySubscriptionOptions contains the optional parameters for the ClustersClient.NewListBySubscriptionPager // method. func (client *ClustersClient) NewListBySubscriptionPager(options *ClustersClientListBySubscriptionOptions) *runtime.Pager[ClustersClientListBySubscriptionResponse] { @@ -551,7 +551,7 @@ func (client *ClustersClient) listBySubscriptionCreateRequest(ctx context.Contex if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -570,7 +570,7 @@ func (client *ClustersClient) listBySubscriptionHandleResponse(resp *http.Respon // with the cluster configuration. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - ClustersClientBeginScanRuntimeOptions contains the optional parameters for the ClustersClient.BeginScanRuntime @@ -597,7 +597,7 @@ func (client *ClustersClient) BeginScanRuntime(ctx context.Context, resourceGrou // with the cluster configuration. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClustersClient) scanRuntime(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginScanRuntimeOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginScanRuntime" @@ -639,7 +639,7 @@ func (client *ClustersClient) scanRuntimeCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.ClusterScanRuntimeParameters != nil { @@ -655,7 +655,7 @@ func (client *ClustersClient) scanRuntimeCreateRequest(ctx context.Context, reso // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - clusterUpdateParameters - The request body. @@ -682,7 +682,7 @@ func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName // updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClustersClient) update(ctx context.Context, resourceGroupName string, clusterName string, clusterUpdateParameters ClusterPatchParameters, options *ClustersClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginUpdate" @@ -724,7 +724,7 @@ func (client *ClustersClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -742,7 +742,7 @@ func (client *ClustersClient) updateCreateRequest(ctx context.Context, resourceG // BeginUpdateVersion - Update the version of the provided cluster to one of the available supported versions. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - clusterUpdateVersionParameters - The request body. @@ -769,7 +769,7 @@ func (client *ClustersClient) BeginUpdateVersion(ctx context.Context, resourceGr // UpdateVersion - Update the version of the provided cluster to one of the available supported versions. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ClustersClient) updateVersion(ctx context.Context, resourceGroupName string, clusterName string, clusterUpdateVersionParameters ClusterUpdateVersionParameters, options *ClustersClientBeginUpdateVersionOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginUpdateVersion" @@ -811,7 +811,7 @@ func (client *ClustersClient) updateVersionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, clusterUpdateVersionParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client_example_test.go index 66667e206cb7..1f79a5c96bf5 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_ListBySubscription.json func ExampleClustersClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -266,7 +263,7 @@ func ExampleClustersClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_ListByResourceGroup.json func ExampleClustersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -514,7 +511,7 @@ func ExampleClustersClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Get.json func ExampleClustersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -752,7 +749,7 @@ func ExampleClustersClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Create.json func ExampleClustersClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1153,7 +1150,7 @@ func ExampleClustersClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Delete.json func ExampleClustersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1176,7 +1173,7 @@ func ExampleClustersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json func ExampleClustersClient_BeginUpdate_patchClusterAggregatorOrSingleRackDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1473,7 +1470,7 @@ func ExampleClustersClient_BeginUpdate_patchClusterAggregatorOrSingleRackDefinit // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_AnalyticsOutput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Patch_AnalyticsOutput.json func ExampleClustersClient_BeginUpdate_patchClusterAnalyticsOutput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1740,7 +1737,7 @@ func ExampleClustersClient_BeginUpdate_patchClusterAnalyticsOutput() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_CommandOutput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Patch_CommandOutput.json func ExampleClustersClient_BeginUpdate_patchClusterCommandOutput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2016,7 +2013,7 @@ func ExampleClustersClient_BeginUpdate_patchClusterCommandOutput() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_Location.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Patch_Location.json func ExampleClustersClient_BeginUpdate_patchClusterLocation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2268,7 +2265,7 @@ func ExampleClustersClient_BeginUpdate_patchClusterLocation() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_RuntimeProtectionConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Patch_RuntimeProtectionConfiguration.json func ExampleClustersClient_BeginUpdate_patchRuntimeProtectionConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2522,7 +2519,7 @@ func ExampleClustersClient_BeginUpdate_patchRuntimeProtectionConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_SecretArchive.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Patch_SecretArchive.json func ExampleClustersClient_BeginUpdate_patchSecretArchive() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2780,7 +2777,7 @@ func ExampleClustersClient_BeginUpdate_patchSecretArchive() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_UpdateStrategy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Patch_UpdateStrategy.json func ExampleClustersClient_BeginUpdate_patchUpdateStrategy() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3038,7 +3035,7 @@ func ExampleClustersClient_BeginUpdate_patchUpdateStrategy() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Patch_VulnerabilityScanning.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Patch_VulnerabilityScanning.json func ExampleClustersClient_BeginUpdate_patchVulnerabilityScanning() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3292,7 +3289,7 @@ func ExampleClustersClient_BeginUpdate_patchVulnerabilityScanning() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_ContinueUpdateVersion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_ContinueUpdateVersion.json func ExampleClustersClient_BeginContinueUpdateVersion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3315,7 +3312,7 @@ func ExampleClustersClient_BeginContinueUpdateVersion() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Deploy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Deploy.json func ExampleClustersClient_BeginDeploy_deployCluster() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3336,7 +3333,7 @@ func ExampleClustersClient_BeginDeploy_deployCluster() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_Deploy_SkipValidation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Deploy_SkipValidation.json func ExampleClustersClient_BeginDeploy_deployClusterSkippingValidation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3361,7 +3358,7 @@ func ExampleClustersClient_BeginDeploy_deployClusterSkippingValidation() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_ScanRuntime.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_ScanRuntime.json func ExampleClustersClient_BeginScanRuntime() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3385,7 +3382,7 @@ func ExampleClustersClient_BeginScanRuntime() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Clusters_UpdateVersion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_UpdateVersion.json func ExampleClustersClient_BeginUpdateVersion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client.go index 3db90399cbe8..be9b484e4ea4 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client.go @@ -44,7 +44,7 @@ func NewConsolesClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreateOrUpdate - Create a new virtual machine console or update the properties of the existing virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - consoleName - The name of the virtual machine console. @@ -72,7 +72,7 @@ func (client *ConsolesClient) BeginCreateOrUpdate(ctx context.Context, resourceG // CreateOrUpdate - Create a new virtual machine console or update the properties of the existing virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ConsolesClient) createOrUpdate(ctx context.Context, resourceGroupName string, virtualMachineName string, consoleName string, consoleParameters Console, options *ConsolesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "ConsolesClient.BeginCreateOrUpdate" @@ -118,7 +118,7 @@ func (client *ConsolesClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -136,7 +136,7 @@ func (client *ConsolesClient) createOrUpdateCreateRequest(ctx context.Context, r // BeginDelete - Delete the provided virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - consoleName - The name of the virtual machine console. @@ -162,7 +162,7 @@ func (client *ConsolesClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete the provided virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ConsolesClient) deleteOperation(ctx context.Context, resourceGroupName string, virtualMachineName string, consoleName string, options *ConsolesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ConsolesClient.BeginDelete" @@ -208,7 +208,7 @@ func (client *ConsolesClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -223,7 +223,7 @@ func (client *ConsolesClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Get properties of the provided virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - consoleName - The name of the virtual machine console. @@ -274,7 +274,7 @@ func (client *ConsolesClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -291,7 +291,7 @@ func (client *ConsolesClient) getHandleResponse(resp *http.Response) (ConsolesCl // NewListByVirtualMachinePager - Get a list of consoles for the provided virtual machine. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - ConsolesClientListByVirtualMachineOptions contains the optional parameters for the ConsolesClient.NewListByVirtualMachinePager @@ -345,7 +345,7 @@ func (client *ConsolesClient) listByVirtualMachineCreateRequest(ctx context.Cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -364,7 +364,7 @@ func (client *ConsolesClient) listByVirtualMachineHandleResponse(resp *http.Resp // machine console. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - consoleName - The name of the virtual machine console. @@ -392,7 +392,7 @@ func (client *ConsolesClient) BeginUpdate(ctx context.Context, resourceGroupName // console. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *ConsolesClient) update(ctx context.Context, resourceGroupName string, virtualMachineName string, consoleName string, consoleUpdateParameters ConsolePatchParameters, options *ConsolesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "ConsolesClient.BeginUpdate" @@ -438,7 +438,7 @@ func (client *ConsolesClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client_example_test.go index e6befb17fea2..4605cc65ff13 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -20,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_ListByVirtualMachine.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_ListByVirtualMachine.json func ExampleConsolesClient_NewListByVirtualMachinePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -84,7 +81,7 @@ func ExampleConsolesClient_NewListByVirtualMachinePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_Get.json func ExampleConsolesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -138,7 +135,7 @@ func ExampleConsolesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_Create.json func ExampleConsolesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -215,7 +212,7 @@ func ExampleConsolesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_Delete.json func ExampleConsolesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -238,7 +235,7 @@ func ExampleConsolesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Consoles_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_Patch.json func ExampleConsolesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/constants.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/constants.go index e64b42016f25..016c6f17448d 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/constants.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/constants.go @@ -844,10 +844,11 @@ func PossibleClusterUpdateStrategyTypeValues() []ClusterUpdateStrategyType { type CommandOutputType string const ( - CommandOutputTypeBareMetalMachineRunCommand CommandOutputType = "BareMetalMachineRunCommand" - CommandOutputTypeBareMetalMachineRunDataExtracts CommandOutputType = "BareMetalMachineRunDataExtracts" - CommandOutputTypeBareMetalMachineRunReadCommands CommandOutputType = "BareMetalMachineRunReadCommands" - CommandOutputTypeStorageRunReadCommands CommandOutputType = "StorageRunReadCommands" + CommandOutputTypeBareMetalMachineRunCommand CommandOutputType = "BareMetalMachineRunCommand" + CommandOutputTypeBareMetalMachineRunDataExtracts CommandOutputType = "BareMetalMachineRunDataExtracts" + CommandOutputTypeBareMetalMachineRunDataExtractsRestricted CommandOutputType = "BareMetalMachineRunDataExtractsRestricted" + CommandOutputTypeBareMetalMachineRunReadCommands CommandOutputType = "BareMetalMachineRunReadCommands" + CommandOutputTypeStorageRunReadCommands CommandOutputType = "StorageRunReadCommands" ) // PossibleCommandOutputTypeValues returns the possible values for the CommandOutputType const type. @@ -855,6 +856,7 @@ func PossibleCommandOutputTypeValues() []CommandOutputType { return []CommandOutputType{ CommandOutputTypeBareMetalMachineRunCommand, CommandOutputTypeBareMetalMachineRunDataExtracts, + CommandOutputTypeBareMetalMachineRunDataExtractsRestricted, CommandOutputTypeBareMetalMachineRunReadCommands, CommandOutputTypeStorageRunReadCommands, } diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client.go index 518af41d8f80..af92cff7e681 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client.go @@ -45,7 +45,7 @@ func NewKubernetesClusterFeaturesClient(subscriptionID string, credential azcore // it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - featureName - The name of the feature. @@ -73,7 +73,7 @@ func (client *KubernetesClusterFeaturesClient) BeginCreateOrUpdate(ctx context.C // CreateOrUpdate - Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *KubernetesClusterFeaturesClient) createOrUpdate(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureParameters KubernetesClusterFeature, options *KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "KubernetesClusterFeaturesClient.BeginCreateOrUpdate" @@ -119,7 +119,7 @@ func (client *KubernetesClusterFeaturesClient) createOrUpdateCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -137,7 +137,7 @@ func (client *KubernetesClusterFeaturesClient) createOrUpdateCreateRequest(ctx c // BeginDelete - Delete the provided Kubernetes cluster feature. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - featureName - The name of the feature. @@ -164,7 +164,7 @@ func (client *KubernetesClusterFeaturesClient) BeginDelete(ctx context.Context, // Delete - Delete the provided Kubernetes cluster feature. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *KubernetesClusterFeaturesClient) deleteOperation(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, options *KubernetesClusterFeaturesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "KubernetesClusterFeaturesClient.BeginDelete" @@ -210,7 +210,7 @@ func (client *KubernetesClusterFeaturesClient) deleteCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -225,7 +225,7 @@ func (client *KubernetesClusterFeaturesClient) deleteCreateRequest(ctx context.C // Get - Get properties of the provided the Kubernetes cluster feature. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - featureName - The name of the feature. @@ -277,7 +277,7 @@ func (client *KubernetesClusterFeaturesClient) getCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -294,7 +294,7 @@ func (client *KubernetesClusterFeaturesClient) getHandleResponse(resp *http.Resp // NewListByKubernetesClusterPager - Get a list of features for the provided Kubernetes cluster. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - options - KubernetesClusterFeaturesClientListByKubernetesClusterOptions contains the optional parameters for the KubernetesClusterFeaturesClient.NewListByKubernetesClusterPager @@ -348,7 +348,7 @@ func (client *KubernetesClusterFeaturesClient) listByKubernetesClusterCreateRequ if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -366,7 +366,7 @@ func (client *KubernetesClusterFeaturesClient) listByKubernetesClusterHandleResp // BeginUpdate - Patch properties of the provided Kubernetes cluster feature. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - featureName - The name of the feature. @@ -394,7 +394,7 @@ func (client *KubernetesClusterFeaturesClient) BeginUpdate(ctx context.Context, // Update - Patch properties of the provided Kubernetes cluster feature. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *KubernetesClusterFeaturesClient) update(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureUpdateParameters KubernetesClusterFeaturePatchParameters, options *KubernetesClusterFeaturesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "KubernetesClusterFeaturesClient.BeginUpdate" @@ -440,7 +440,7 @@ func (client *KubernetesClusterFeaturesClient) updateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client_example_test.go index dda15faff654..79b937cdc027 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json func ExampleKubernetesClusterFeaturesClient_NewListByKubernetesClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -79,7 +76,7 @@ func ExampleKubernetesClusterFeaturesClient_NewListByKubernetesClusterPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusterFeatures_Get.json func ExampleKubernetesClusterFeaturesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -130,7 +127,7 @@ func ExampleKubernetesClusterFeaturesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusterFeatures_Create.json func ExampleKubernetesClusterFeaturesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -200,7 +197,7 @@ func ExampleKubernetesClusterFeaturesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusterFeatures_Delete.json func ExampleKubernetesClusterFeaturesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -223,7 +220,7 @@ func ExampleKubernetesClusterFeaturesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusterFeatures_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusterFeatures_Patch.json func ExampleKubernetesClusterFeaturesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client.go index 51145227aa3f..edd1da581d92 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client.go @@ -44,7 +44,7 @@ func NewKubernetesClustersClient(subscriptionID string, credential azcore.TokenC // BeginCreateOrUpdate - Create a new Kubernetes cluster or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - kubernetesClusterParameters - The request body. @@ -71,7 +71,7 @@ func (client *KubernetesClustersClient) BeginCreateOrUpdate(ctx context.Context, // CreateOrUpdate - Create a new Kubernetes cluster or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *KubernetesClustersClient) createOrUpdate(ctx context.Context, resourceGroupName string, kubernetesClusterName string, kubernetesClusterParameters KubernetesCluster, options *KubernetesClustersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "KubernetesClustersClient.BeginCreateOrUpdate" @@ -113,7 +113,7 @@ func (client *KubernetesClustersClient) createOrUpdateCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -131,7 +131,7 @@ func (client *KubernetesClustersClient) createOrUpdateCreateRequest(ctx context. // BeginDelete - Delete the provided Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - options - KubernetesClustersClientBeginDeleteOptions contains the optional parameters for the KubernetesClustersClient.BeginDelete @@ -157,7 +157,7 @@ func (client *KubernetesClustersClient) BeginDelete(ctx context.Context, resourc // Delete - Delete the provided Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *KubernetesClustersClient) deleteOperation(ctx context.Context, resourceGroupName string, kubernetesClusterName string, options *KubernetesClustersClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "KubernetesClustersClient.BeginDelete" @@ -199,7 +199,7 @@ func (client *KubernetesClustersClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -214,7 +214,7 @@ func (client *KubernetesClustersClient) deleteCreateRequest(ctx context.Context, // Get - Get properties of the provided the Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - options - KubernetesClustersClientGetOptions contains the optional parameters for the KubernetesClustersClient.Get method. @@ -260,7 +260,7 @@ func (client *KubernetesClustersClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -277,7 +277,7 @@ func (client *KubernetesClustersClient) getHandleResponse(resp *http.Response) ( // NewListByResourceGroupPager - Get a list of Kubernetes clusters in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - KubernetesClustersClientListByResourceGroupOptions contains the optional parameters for the KubernetesClustersClient.NewListByResourceGroupPager // method. @@ -326,7 +326,7 @@ func (client *KubernetesClustersClient) listByResourceGroupCreateRequest(ctx con if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -343,7 +343,7 @@ func (client *KubernetesClustersClient) listByResourceGroupHandleResponse(resp * // NewListBySubscriptionPager - Get a list of Kubernetes clusters in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - KubernetesClustersClientListBySubscriptionOptions contains the optional parameters for the KubernetesClustersClient.NewListBySubscriptionPager // method. func (client *KubernetesClustersClient) NewListBySubscriptionPager(options *KubernetesClustersClientListBySubscriptionOptions) *runtime.Pager[KubernetesClustersClientListBySubscriptionResponse] { @@ -387,7 +387,7 @@ func (client *KubernetesClustersClient) listBySubscriptionCreateRequest(ctx cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -405,7 +405,7 @@ func (client *KubernetesClustersClient) listBySubscriptionHandleResponse(resp *h // BeginRestartNode - Restart a targeted node of a Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - kubernetesClusterRestartNodeParameters - The request body. @@ -432,7 +432,7 @@ func (client *KubernetesClustersClient) BeginRestartNode(ctx context.Context, re // RestartNode - Restart a targeted node of a Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *KubernetesClustersClient) restartNode(ctx context.Context, resourceGroupName string, kubernetesClusterName string, kubernetesClusterRestartNodeParameters KubernetesClusterRestartNodeParameters, options *KubernetesClustersClientBeginRestartNodeOptions) (*http.Response, error) { var err error const operationName = "KubernetesClustersClient.BeginRestartNode" @@ -474,7 +474,7 @@ func (client *KubernetesClustersClient) restartNodeCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, kubernetesClusterRestartNodeParameters); err != nil { @@ -487,7 +487,7 @@ func (client *KubernetesClustersClient) restartNodeCreateRequest(ctx context.Con // cluster. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - kubernetesClusterUpdateParameters - The request body. @@ -515,7 +515,7 @@ func (client *KubernetesClustersClient) BeginUpdate(ctx context.Context, resourc // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *KubernetesClustersClient) update(ctx context.Context, resourceGroupName string, kubernetesClusterName string, kubernetesClusterUpdateParameters KubernetesClusterPatchParameters, options *KubernetesClustersClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "KubernetesClustersClient.BeginUpdate" @@ -557,7 +557,7 @@ func (client *KubernetesClustersClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client_example_test.go index f34503f09401..4c3017dc8f99 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusters_ListBySubscription.json func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -316,7 +313,7 @@ func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusters_ListByResourceGroup.json func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -614,7 +611,7 @@ func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusters_Get.json func ExampleKubernetesClustersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -902,7 +899,7 @@ func ExampleKubernetesClustersClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusters_Create.json func ExampleKubernetesClustersClient_BeginCreateOrUpdate_createOrUpdateKubernetesCluster() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1352,7 +1349,7 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate_createOrUpdateKubernete // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_L2LoadBalancer_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusters_L2LoadBalancer_Create.json func ExampleKubernetesClustersClient_BeginCreateOrUpdate_createOrUpdateKubernetesClusterWithALayer2LoadBalancer() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1754,7 +1751,7 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate_createOrUpdateKubernete // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusters_Delete.json func ExampleKubernetesClustersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1777,7 +1774,7 @@ func ExampleKubernetesClustersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusters_Patch.json func ExampleKubernetesClustersClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2094,7 +2091,7 @@ func ExampleKubernetesClustersClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/KubernetesClusters_RestartNode.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/KubernetesClusters_RestartNode.json func ExampleKubernetesClustersClient_BeginRestartNode() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client.go index 5e8239af8243..13092186518c 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client.go @@ -44,7 +44,7 @@ func NewL2NetworksClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Create a new layer 2 (L2) network or update the properties of the existing network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l2NetworkName - The name of the L2 network. // - l2NetworkParameters - The request body. @@ -71,7 +71,7 @@ func (client *L2NetworksClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Create a new layer 2 (L2) network or update the properties of the existing network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *L2NetworksClient) createOrUpdate(ctx context.Context, resourceGroupName string, l2NetworkName string, l2NetworkParameters L2Network, options *L2NetworksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "L2NetworksClient.BeginCreateOrUpdate" @@ -113,7 +113,7 @@ func (client *L2NetworksClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -131,7 +131,7 @@ func (client *L2NetworksClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete the provided layer 2 (L2) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l2NetworkName - The name of the L2 network. // - options - L2NetworksClientBeginDeleteOptions contains the optional parameters for the L2NetworksClient.BeginDelete method. @@ -156,7 +156,7 @@ func (client *L2NetworksClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Delete the provided layer 2 (L2) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *L2NetworksClient) deleteOperation(ctx context.Context, resourceGroupName string, l2NetworkName string, options *L2NetworksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "L2NetworksClient.BeginDelete" @@ -198,7 +198,7 @@ func (client *L2NetworksClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -213,7 +213,7 @@ func (client *L2NetworksClient) deleteCreateRequest(ctx context.Context, resourc // Get - Get properties of the provided layer 2 (L2) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l2NetworkName - The name of the L2 network. // - options - L2NetworksClientGetOptions contains the optional parameters for the L2NetworksClient.Get method. @@ -259,7 +259,7 @@ func (client *L2NetworksClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -276,7 +276,7 @@ func (client *L2NetworksClient) getHandleResponse(resp *http.Response) (L2Networ // NewListByResourceGroupPager - Get a list of layer 2 (L2) networks in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - L2NetworksClientListByResourceGroupOptions contains the optional parameters for the L2NetworksClient.NewListByResourceGroupPager // method. @@ -325,7 +325,7 @@ func (client *L2NetworksClient) listByResourceGroupCreateRequest(ctx context.Con if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -342,7 +342,7 @@ func (client *L2NetworksClient) listByResourceGroupHandleResponse(resp *http.Res // NewListBySubscriptionPager - Get a list of layer 2 (L2) networks in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - L2NetworksClientListBySubscriptionOptions contains the optional parameters for the L2NetworksClient.NewListBySubscriptionPager // method. func (client *L2NetworksClient) NewListBySubscriptionPager(options *L2NetworksClientListBySubscriptionOptions) *runtime.Pager[L2NetworksClientListBySubscriptionResponse] { @@ -386,7 +386,7 @@ func (client *L2NetworksClient) listBySubscriptionCreateRequest(ctx context.Cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -404,7 +404,7 @@ func (client *L2NetworksClient) listBySubscriptionHandleResponse(resp *http.Resp // Update - Update tags associated with the provided layer 2 (L2) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l2NetworkName - The name of the L2 network. // - l2NetworkUpdateParameters - The request body. @@ -451,7 +451,7 @@ func (client *L2NetworksClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client_example_test.go index 8d194d7125a6..8913e5f72d73 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_ListBySubscription.json func ExampleL2NetworksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -80,7 +77,7 @@ func ExampleL2NetworksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_ListByResourceGroup.json func ExampleL2NetworksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -142,7 +139,7 @@ func ExampleL2NetworksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_Get.json func ExampleL2NetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -194,7 +191,7 @@ func ExampleL2NetworksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_Create.json func ExampleL2NetworksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -267,7 +264,7 @@ func ExampleL2NetworksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_Delete.json func ExampleL2NetworksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -290,7 +287,7 @@ func ExampleL2NetworksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L2Networks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_Patch.json func ExampleL2NetworksClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client.go index 1d432ce6f347..830b64ec9c9f 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client.go @@ -44,7 +44,7 @@ func NewL3NetworksClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Create a new layer 3 (L3) network or update the properties of the existing network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l3NetworkName - The name of the L3 network. // - l3NetworkParameters - The request body. @@ -71,7 +71,7 @@ func (client *L3NetworksClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Create a new layer 3 (L3) network or update the properties of the existing network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *L3NetworksClient) createOrUpdate(ctx context.Context, resourceGroupName string, l3NetworkName string, l3NetworkParameters L3Network, options *L3NetworksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "L3NetworksClient.BeginCreateOrUpdate" @@ -113,7 +113,7 @@ func (client *L3NetworksClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -131,7 +131,7 @@ func (client *L3NetworksClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete the provided layer 3 (L3) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l3NetworkName - The name of the L3 network. // - options - L3NetworksClientBeginDeleteOptions contains the optional parameters for the L3NetworksClient.BeginDelete method. @@ -156,7 +156,7 @@ func (client *L3NetworksClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Delete the provided layer 3 (L3) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *L3NetworksClient) deleteOperation(ctx context.Context, resourceGroupName string, l3NetworkName string, options *L3NetworksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "L3NetworksClient.BeginDelete" @@ -198,7 +198,7 @@ func (client *L3NetworksClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -213,7 +213,7 @@ func (client *L3NetworksClient) deleteCreateRequest(ctx context.Context, resourc // Get - Get properties of the provided layer 3 (L3) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l3NetworkName - The name of the L3 network. // - options - L3NetworksClientGetOptions contains the optional parameters for the L3NetworksClient.Get method. @@ -259,7 +259,7 @@ func (client *L3NetworksClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -276,7 +276,7 @@ func (client *L3NetworksClient) getHandleResponse(resp *http.Response) (L3Networ // NewListByResourceGroupPager - Get a list of layer 3 (L3) networks in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - L3NetworksClientListByResourceGroupOptions contains the optional parameters for the L3NetworksClient.NewListByResourceGroupPager // method. @@ -325,7 +325,7 @@ func (client *L3NetworksClient) listByResourceGroupCreateRequest(ctx context.Con if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -342,7 +342,7 @@ func (client *L3NetworksClient) listByResourceGroupHandleResponse(resp *http.Res // NewListBySubscriptionPager - Get a list of layer 3 (L3) networks in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - L3NetworksClientListBySubscriptionOptions contains the optional parameters for the L3NetworksClient.NewListBySubscriptionPager // method. func (client *L3NetworksClient) NewListBySubscriptionPager(options *L3NetworksClientListBySubscriptionOptions) *runtime.Pager[L3NetworksClientListBySubscriptionResponse] { @@ -386,7 +386,7 @@ func (client *L3NetworksClient) listBySubscriptionCreateRequest(ctx context.Cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -404,7 +404,7 @@ func (client *L3NetworksClient) listBySubscriptionHandleResponse(resp *http.Resp // Update - Update tags associated with the provided layer 3 (L3) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l3NetworkName - The name of the L3 network. // - l3NetworkUpdateParameters - The request body. @@ -451,7 +451,7 @@ func (client *L3NetworksClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client_example_test.go index b362cc25ca0a..b43bbda76004 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_ListBySubscription.json func ExampleL3NetworksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -84,7 +81,7 @@ func ExampleL3NetworksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_ListByResourceGroup.json func ExampleL3NetworksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -150,7 +147,7 @@ func ExampleL3NetworksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_Get.json func ExampleL3NetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -206,7 +203,7 @@ func ExampleL3NetworksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_Create.json func ExampleL3NetworksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -286,7 +283,7 @@ func ExampleL3NetworksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_Delete.json func ExampleL3NetworksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -309,7 +306,7 @@ func ExampleL3NetworksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/L3Networks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_Patch.json func ExampleL3NetworksClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client.go index 706100f5af76..912952dd9342 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client.go @@ -44,7 +44,7 @@ func NewMetricsConfigurationsClient(subscriptionID string, credential azcore.Tok // BeginCreateOrUpdate - Create new or update the existing metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - metricsConfigurationName - The name of the metrics configuration for the cluster. @@ -72,7 +72,7 @@ func (client *MetricsConfigurationsClient) BeginCreateOrUpdate(ctx context.Conte // CreateOrUpdate - Create new or update the existing metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *MetricsConfigurationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, metricsConfigurationName string, metricsConfigurationParameters ClusterMetricsConfiguration, options *MetricsConfigurationsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "MetricsConfigurationsClient.BeginCreateOrUpdate" @@ -118,7 +118,7 @@ func (client *MetricsConfigurationsClient) createOrUpdateCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -136,7 +136,7 @@ func (client *MetricsConfigurationsClient) createOrUpdateCreateRequest(ctx conte // BeginDelete - Delete the metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - metricsConfigurationName - The name of the metrics configuration for the cluster. @@ -163,7 +163,7 @@ func (client *MetricsConfigurationsClient) BeginDelete(ctx context.Context, reso // Delete - Delete the metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *MetricsConfigurationsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, metricsConfigurationName string, options *MetricsConfigurationsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "MetricsConfigurationsClient.BeginDelete" @@ -209,7 +209,7 @@ func (client *MetricsConfigurationsClient) deleteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -224,7 +224,7 @@ func (client *MetricsConfigurationsClient) deleteCreateRequest(ctx context.Conte // Get - Get metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - metricsConfigurationName - The name of the metrics configuration for the cluster. @@ -276,7 +276,7 @@ func (client *MetricsConfigurationsClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -293,7 +293,7 @@ func (client *MetricsConfigurationsClient) getHandleResponse(resp *http.Response // NewListByClusterPager - Get a list of metrics configurations for the provided cluster. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - MetricsConfigurationsClientListByClusterOptions contains the optional parameters for the MetricsConfigurationsClient.NewListByClusterPager @@ -347,7 +347,7 @@ func (client *MetricsConfigurationsClient) listByClusterCreateRequest(ctx contex if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -366,7 +366,7 @@ func (client *MetricsConfigurationsClient) listByClusterHandleResponse(resp *htt // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - metricsConfigurationName - The name of the metrics configuration for the cluster. @@ -395,7 +395,7 @@ func (client *MetricsConfigurationsClient) BeginUpdate(ctx context.Context, reso // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *MetricsConfigurationsClient) update(ctx context.Context, resourceGroupName string, clusterName string, metricsConfigurationName string, metricsConfigurationUpdateParameters ClusterMetricsConfigurationPatchParameters, options *MetricsConfigurationsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "MetricsConfigurationsClient.BeginUpdate" @@ -441,7 +441,7 @@ func (client *MetricsConfigurationsClient) updateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client_example_test.go index 29bdab45537c..90025e718234 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_ListByCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterMetricsConfigurations_ListByCluster.json func ExampleMetricsConfigurationsClient_NewListByClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -82,7 +79,7 @@ func ExampleMetricsConfigurationsClient_NewListByClusterPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterMetricsConfigurations_Get.json func ExampleMetricsConfigurationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,7 +133,7 @@ func ExampleMetricsConfigurationsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterMetricsConfigurations_Create.json func ExampleMetricsConfigurationsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -212,7 +209,7 @@ func ExampleMetricsConfigurationsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterMetricsConfigurations_Delete.json func ExampleMetricsConfigurationsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -235,7 +232,7 @@ func ExampleMetricsConfigurationsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/ClusterMetricsConfigurations_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterMetricsConfigurations_Patch.json func ExampleMetricsConfigurationsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/models.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/models.go index cbc5c0c4a42a..73c230711d49 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/models.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/models.go @@ -1196,7 +1196,7 @@ type ClusterPatchProperties struct { // The customer-provided location information to identify where the cluster resides. ClusterLocation *string - // Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during + // Field Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during // Arc Appliance installation. ClusterServicePrincipal *ServicePrincipalInformation @@ -1249,7 +1249,7 @@ type ClusterProperties struct { // The customer-provided location information to identify where the cluster resides. ClusterLocation *string - // Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during + // Field Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during // Arc Appliance installation. ClusterServicePrincipal *ServicePrincipalInformation @@ -2326,18 +2326,18 @@ type NetworkAttachment struct { // attachment) for a single machine may be specified as True. DefaultGateway *DefaultGateway - // The IPv4 address of the virtual machine. - // This field is used only if the attached network has IPAllocationType of IPV4 or DualStack. - // If IPAllocationMethod is: Static - this field must contain a user specified IPv4 address from within the subnet specified - // in the attached network. Dynamic - this field is read-only, but will be - // populated with an address from within the subnet specified in the attached network. Disabled - this field will be empty. + // The IPv4 address of the virtual machine. This field is used only if the attached network has IPAllocationType of IPV4 or + // DualStack. If IPAllocationMethod is: Static - this field must contain a user + // specified IPv4 address from within the subnet specified in the attached network. Dynamic - this field is read-only, but + // will be populated with an address from within the subnet specified in the + // attached network. Disabled - this field will be empty. IPv4Address *string - // The IPv6 address of the virtual machine. - // This field is used only if the attached network has IPAllocationType of IPV6 or DualStack. - // If IPAllocationMethod is: Static - this field must contain an IPv6 address range from within the range specified in the - // attached network. Dynamic - this field is read-only, but will be populated with - // an range from within the subnet specified in the attached network. Disabled - this field will be empty. + // The IPv6 address of the virtual machine. This field is used only if the attached network has IPAllocationType of IPV6 or + // DualStack. If IPAllocationMethod is: Static - this field must contain an IPv6 + // address range from within the range specified in the attached network. Dynamic - this field is read-only, but will be populated + // with an range from within the subnet specified in the attached network. + // Disabled - this field will be empty. IPv6Address *string // The associated network's interface name. If specified, the network attachment name has a maximum length of 15 characters @@ -3310,8 +3310,8 @@ type VirtualMachineProperties struct { // The list of network attachments to the virtual machine. NetworkAttachments []*NetworkAttachment - // Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference to this - // property. + // Field Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference + // to this property. NetworkData *string // The Base64 encoded cloud-init network data. @@ -3324,7 +3324,8 @@ type VirtualMachineProperties struct { // for the adminUsername. SSHPublicKeys []*SSHPublicKey - // Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this property. + // Field Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this + // property. UserData *string // The Base64 encoded cloud-init user data. diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client.go index 38214fe86d37..095cc69c205c 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client.go @@ -37,7 +37,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Get a list of all available resource provider operations. It contains a URL link to get the next set of // results. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -70,7 +70,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client_example_test.go index fba818c11aca..eee4dae20222 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -17,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Operations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Operations_List.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client.go index 50b47c4345e0..0126ed9cb262 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client.go @@ -45,7 +45,7 @@ func NewRacksClient(subscriptionID string, credential azcore.TokenCredential, op // be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - rackName - The name of the rack. // - rackParameters - The request body. @@ -73,7 +73,7 @@ func (client *RacksClient) BeginCreateOrUpdate(ctx context.Context, resourceGrou // as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *RacksClient) createOrUpdate(ctx context.Context, resourceGroupName string, rackName string, rackParameters Rack, options *RacksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "RacksClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *RacksClient) createOrUpdateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -134,7 +134,7 @@ func (client *RacksClient) createOrUpdateCreateRequest(ctx context.Context, reso // is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - rackName - The name of the rack. // - options - RacksClientBeginDeleteOptions contains the optional parameters for the RacksClient.BeginDelete method. @@ -160,7 +160,7 @@ func (client *RacksClient) BeginDelete(ctx context.Context, resourceGroupName st // is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *RacksClient) deleteOperation(ctx context.Context, resourceGroupName string, rackName string, options *RacksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "RacksClient.BeginDelete" @@ -202,7 +202,7 @@ func (client *RacksClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -217,7 +217,7 @@ func (client *RacksClient) deleteCreateRequest(ctx context.Context, resourceGrou // Get - Get properties of the provided rack. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - rackName - The name of the rack. // - options - RacksClientGetOptions contains the optional parameters for the RacksClient.Get method. @@ -263,7 +263,7 @@ func (client *RacksClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -280,7 +280,7 @@ func (client *RacksClient) getHandleResponse(resp *http.Response) (RacksClientGe // NewListByResourceGroupPager - Get a list of racks in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - RacksClientListByResourceGroupOptions contains the optional parameters for the RacksClient.NewListByResourceGroupPager // method. @@ -329,7 +329,7 @@ func (client *RacksClient) listByResourceGroupCreateRequest(ctx context.Context, if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -346,7 +346,7 @@ func (client *RacksClient) listByResourceGroupHandleResponse(resp *http.Response // NewListBySubscriptionPager - Get a list of racks in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - RacksClientListBySubscriptionOptions contains the optional parameters for the RacksClient.NewListBySubscriptionPager // method. func (client *RacksClient) NewListBySubscriptionPager(options *RacksClientListBySubscriptionOptions) *runtime.Pager[RacksClientListBySubscriptionResponse] { @@ -390,7 +390,7 @@ func (client *RacksClient) listBySubscriptionCreateRequest(ctx context.Context, if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -409,7 +409,7 @@ func (client *RacksClient) listBySubscriptionHandleResponse(resp *http.Response) // can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - rackName - The name of the rack. // - rackUpdateParameters - The request body. @@ -436,7 +436,7 @@ func (client *RacksClient) BeginUpdate(ctx context.Context, resourceGroupName st // can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *RacksClient) update(ctx context.Context, resourceGroupName string, rackName string, rackUpdateParameters RackPatchParameters, options *RacksClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "RacksClient.BeginUpdate" @@ -478,7 +478,7 @@ func (client *RacksClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client_example_test.go index b1c5bd009a03..68b814735b99 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_ListBySubscription.json func ExampleRacksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -80,7 +77,7 @@ func ExampleRacksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_ListByResourceGroup.json func ExampleRacksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -142,7 +139,7 @@ func ExampleRacksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_Get.json func ExampleRacksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -194,7 +191,7 @@ func ExampleRacksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_Create.json func ExampleRacksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -268,7 +265,7 @@ func ExampleRacksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_Delete.json func ExampleRacksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -291,7 +288,7 @@ func ExampleRacksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Racks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_Patch.json func ExampleRacksClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client.go index eccce7dc2f1a..8aab5b40307f 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client.go @@ -43,7 +43,7 @@ func NewRackSKUsClient(subscriptionID string, credential azcore.TokenCredential, // Get - Get the properties of the provided rack SKU. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - rackSKUName - The name of the rack SKU. // - options - RackSKUsClientGetOptions contains the optional parameters for the RackSKUsClient.Get method. func (client *RackSKUsClient) Get(ctx context.Context, rackSKUName string, options *RackSKUsClientGetOptions) (RackSKUsClientGetResponse, error) { @@ -84,7 +84,7 @@ func (client *RackSKUsClient) getCreateRequest(ctx context.Context, rackSKUName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -101,7 +101,7 @@ func (client *RackSKUsClient) getHandleResponse(resp *http.Response) (RackSKUsCl // NewListBySubscriptionPager - Get a list of rack SKUs in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - RackSKUsClientListBySubscriptionOptions contains the optional parameters for the RackSKUsClient.NewListBySubscriptionPager // method. func (client *RackSKUsClient) NewListBySubscriptionPager(options *RackSKUsClientListBySubscriptionOptions) *runtime.Pager[RackSKUsClientListBySubscriptionResponse] { @@ -139,7 +139,7 @@ func (client *RackSKUsClient) listBySubscriptionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client_example_test.go index f979fa7058b3..5c917d1f4521 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -17,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/RackSkus_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/RackSkus_ListBySubscription.json func ExampleRackSKUsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -134,7 +131,7 @@ func ExampleRackSKUsClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/RackSkus_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/RackSkus_Get.json func ExampleRackSKUsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/responses.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/responses.go index a8398c7969df..aa60dd31df6a 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/responses.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/responses.go @@ -199,10 +199,9 @@ type BmcKeySetsClientUpdateResponse struct { // CloudServicesNetworksClientCreateOrUpdateResponse contains the response from method CloudServicesNetworksClient.BeginCreateOrUpdate. type CloudServicesNetworksClientCreateOrUpdateResponse struct { - // Upon creation, the additional services that are provided by the platform will be allocated and - // represented in the status of this resource. All resources associated with this cloud services network will be part - // of the same layer 2 (L2) isolation domain. At least one service network must be created but may be reused across many - // virtual machines and/or Hybrid AKS clusters. + // Upon creation, the additional services that are provided by the platform will be allocated and represented in the status + // of this resource. All resources associated with this cloud services network will be part of the same layer 2 (L2) isolation + // domain. At least one service network must be created but may be reused across many virtual machines and/or Hybrid AKS clusters. CloudServicesNetwork } @@ -214,10 +213,9 @@ type CloudServicesNetworksClientDeleteResponse struct { // CloudServicesNetworksClientGetResponse contains the response from method CloudServicesNetworksClient.Get. type CloudServicesNetworksClientGetResponse struct { - // Upon creation, the additional services that are provided by the platform will be allocated and - // represented in the status of this resource. All resources associated with this cloud services network will be part - // of the same layer 2 (L2) isolation domain. At least one service network must be created but may be reused across many - // virtual machines and/or Hybrid AKS clusters. + // Upon creation, the additional services that are provided by the platform will be allocated and represented in the status + // of this resource. All resources associated with this cloud services network will be part of the same layer 2 (L2) isolation + // domain. At least one service network must be created but may be reused across many virtual machines and/or Hybrid AKS clusters. CloudServicesNetwork } @@ -235,10 +233,9 @@ type CloudServicesNetworksClientListBySubscriptionResponse struct { // CloudServicesNetworksClientUpdateResponse contains the response from method CloudServicesNetworksClient.BeginUpdate. type CloudServicesNetworksClientUpdateResponse struct { - // Upon creation, the additional services that are provided by the platform will be allocated and - // represented in the status of this resource. All resources associated with this cloud services network will be part - // of the same layer 2 (L2) isolation domain. At least one service network must be created but may be reused across many - // virtual machines and/or Hybrid AKS clusters. + // Upon creation, the additional services that are provided by the platform will be allocated and represented in the status + // of this resource. All resources associated with this cloud services network will be part of the same layer 2 (L2) isolation + // domain. At least one service network must be created but may be reused across many virtual machines and/or Hybrid AKS clusters. CloudServicesNetwork } diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client.go index fd63f8e94ec1..649b8441311d 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client.go @@ -45,7 +45,7 @@ func NewStorageAppliancesClient(subscriptionID string, credential azcore.TokenCr // requests will be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - storageApplianceParameters - The request body. @@ -73,7 +73,7 @@ func (client *StorageAppliancesClient) BeginCreateOrUpdate(ctx context.Context, // will be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *StorageAppliancesClient) createOrUpdate(ctx context.Context, resourceGroupName string, storageApplianceName string, storageApplianceParameters StorageAppliance, options *StorageAppliancesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *StorageAppliancesClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -134,7 +134,7 @@ func (client *StorageAppliancesClient) createOrUpdateCreateRequest(ctx context.C // of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - options - StorageAppliancesClientBeginDeleteOptions contains the optional parameters for the StorageAppliancesClient.BeginDelete @@ -161,7 +161,7 @@ func (client *StorageAppliancesClient) BeginDelete(ctx context.Context, resource // resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *StorageAppliancesClient) deleteOperation(ctx context.Context, resourceGroupName string, storageApplianceName string, options *StorageAppliancesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginDelete" @@ -203,7 +203,7 @@ func (client *StorageAppliancesClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -218,7 +218,7 @@ func (client *StorageAppliancesClient) deleteCreateRequest(ctx context.Context, // BeginDisableRemoteVendorManagement - Disable remote vendor management of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - options - StorageAppliancesClientBeginDisableRemoteVendorManagementOptions contains the optional parameters for the StorageAppliancesClient.BeginDisableRemoteVendorManagement @@ -244,7 +244,7 @@ func (client *StorageAppliancesClient) BeginDisableRemoteVendorManagement(ctx co // DisableRemoteVendorManagement - Disable remote vendor management of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *StorageAppliancesClient) disableRemoteVendorManagement(ctx context.Context, resourceGroupName string, storageApplianceName string, options *StorageAppliancesClientBeginDisableRemoteVendorManagementOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginDisableRemoteVendorManagement" @@ -286,7 +286,7 @@ func (client *StorageAppliancesClient) disableRemoteVendorManagementCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -295,7 +295,7 @@ func (client *StorageAppliancesClient) disableRemoteVendorManagementCreateReques // BeginEnableRemoteVendorManagement - Enable remote vendor management of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - options - StorageAppliancesClientBeginEnableRemoteVendorManagementOptions contains the optional parameters for the StorageAppliancesClient.BeginEnableRemoteVendorManagement @@ -321,7 +321,7 @@ func (client *StorageAppliancesClient) BeginEnableRemoteVendorManagement(ctx con // EnableRemoteVendorManagement - Enable remote vendor management of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *StorageAppliancesClient) enableRemoteVendorManagement(ctx context.Context, resourceGroupName string, storageApplianceName string, options *StorageAppliancesClientBeginEnableRemoteVendorManagementOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginEnableRemoteVendorManagement" @@ -363,7 +363,7 @@ func (client *StorageAppliancesClient) enableRemoteVendorManagementCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.StorageApplianceEnableRemoteVendorManagementParameters != nil { @@ -378,7 +378,7 @@ func (client *StorageAppliancesClient) enableRemoteVendorManagementCreateRequest // Get - Get properties of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - options - StorageAppliancesClientGetOptions contains the optional parameters for the StorageAppliancesClient.Get method. @@ -424,7 +424,7 @@ func (client *StorageAppliancesClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -441,7 +441,7 @@ func (client *StorageAppliancesClient) getHandleResponse(resp *http.Response) (S // NewListByResourceGroupPager - Get a list of storage appliances in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - StorageAppliancesClientListByResourceGroupOptions contains the optional parameters for the StorageAppliancesClient.NewListByResourceGroupPager // method. @@ -490,7 +490,7 @@ func (client *StorageAppliancesClient) listByResourceGroupCreateRequest(ctx cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -507,7 +507,7 @@ func (client *StorageAppliancesClient) listByResourceGroupHandleResponse(resp *h // NewListBySubscriptionPager - Get a list of storage appliances in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - StorageAppliancesClientListBySubscriptionOptions contains the optional parameters for the StorageAppliancesClient.NewListBySubscriptionPager // method. func (client *StorageAppliancesClient) NewListBySubscriptionPager(options *StorageAppliancesClientListBySubscriptionOptions) *runtime.Pager[StorageAppliancesClientListBySubscriptionResponse] { @@ -551,7 +551,7 @@ func (client *StorageAppliancesClient) listBySubscriptionCreateRequest(ctx conte if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -569,7 +569,7 @@ func (client *StorageAppliancesClient) listBySubscriptionHandleResponse(resp *ht // BeginRunReadCommands - Run one or more read-only commands on the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - storageApplianceRunReadCommandsParameters - The request body. @@ -596,7 +596,7 @@ func (client *StorageAppliancesClient) BeginRunReadCommands(ctx context.Context, // RunReadCommands - Run one or more read-only commands on the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *StorageAppliancesClient) runReadCommands(ctx context.Context, resourceGroupName string, storageApplianceName string, storageApplianceRunReadCommandsParameters StorageApplianceRunReadCommandsParameters, options *StorageAppliancesClientBeginRunReadCommandsOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginRunReadCommands" @@ -638,7 +638,7 @@ func (client *StorageAppliancesClient) runReadCommandsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, storageApplianceRunReadCommandsParameters); err != nil { @@ -651,7 +651,7 @@ func (client *StorageAppliancesClient) runReadCommandsCreateRequest(ctx context. // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - storageApplianceUpdateParameters - The request body. @@ -679,7 +679,7 @@ func (client *StorageAppliancesClient) BeginUpdate(ctx context.Context, resource // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *StorageAppliancesClient) update(ctx context.Context, resourceGroupName string, storageApplianceName string, storageApplianceUpdateParameters StorageAppliancePatchParameters, options *StorageAppliancesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginUpdate" @@ -721,7 +721,7 @@ func (client *StorageAppliancesClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client_example_test.go index 3d77605a5b81..881767790f32 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_ListBySubscription.json func ExampleStorageAppliancesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -107,7 +104,7 @@ func ExampleStorageAppliancesClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_ListByResourceGroup.json func ExampleStorageAppliancesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -196,7 +193,7 @@ func ExampleStorageAppliancesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_Get.json func ExampleStorageAppliancesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -275,7 +272,7 @@ func ExampleStorageAppliancesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_Create.json func ExampleStorageAppliancesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -380,7 +377,7 @@ func ExampleStorageAppliancesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_Delete.json func ExampleStorageAppliancesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -403,7 +400,7 @@ func ExampleStorageAppliancesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_Patch.json func ExampleStorageAppliancesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -496,7 +493,7 @@ func ExampleStorageAppliancesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_DisableRemoteVendorManagement.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_DisableRemoteVendorManagement.json func ExampleStorageAppliancesClient_BeginDisableRemoteVendorManagement() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -517,7 +514,7 @@ func ExampleStorageAppliancesClient_BeginDisableRemoteVendorManagement() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_EnableRemoteVendorManagement.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_EnableRemoteVendorManagement.json func ExampleStorageAppliancesClient_BeginEnableRemoteVendorManagement() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -542,7 +539,7 @@ func ExampleStorageAppliancesClient_BeginEnableRemoteVendorManagement() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/StorageAppliances_RunReadCommands.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/StorageAppliances_RunReadCommands.json func ExampleStorageAppliancesClient_BeginRunReadCommands() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client.go index 6d0d6022084e..07ecb3ed87e8 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client.go @@ -44,7 +44,7 @@ func NewTrunkedNetworksClient(subscriptionID string, credential azcore.TokenCred // BeginCreateOrUpdate - Create a new trunked network or update the properties of the existing trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - trunkedNetworkName - The name of the trunked network. // - trunkedNetworkParameters - The request body. @@ -71,7 +71,7 @@ func (client *TrunkedNetworksClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Create a new trunked network or update the properties of the existing trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *TrunkedNetworksClient) createOrUpdate(ctx context.Context, resourceGroupName string, trunkedNetworkName string, trunkedNetworkParameters TrunkedNetwork, options *TrunkedNetworksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "TrunkedNetworksClient.BeginCreateOrUpdate" @@ -113,7 +113,7 @@ func (client *TrunkedNetworksClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -131,7 +131,7 @@ func (client *TrunkedNetworksClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - Delete the provided trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - trunkedNetworkName - The name of the trunked network. // - options - TrunkedNetworksClientBeginDeleteOptions contains the optional parameters for the TrunkedNetworksClient.BeginDelete @@ -157,7 +157,7 @@ func (client *TrunkedNetworksClient) BeginDelete(ctx context.Context, resourceGr // Delete - Delete the provided trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *TrunkedNetworksClient) deleteOperation(ctx context.Context, resourceGroupName string, trunkedNetworkName string, options *TrunkedNetworksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "TrunkedNetworksClient.BeginDelete" @@ -199,7 +199,7 @@ func (client *TrunkedNetworksClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -214,7 +214,7 @@ func (client *TrunkedNetworksClient) deleteCreateRequest(ctx context.Context, re // Get - Get properties of the provided trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - trunkedNetworkName - The name of the trunked network. // - options - TrunkedNetworksClientGetOptions contains the optional parameters for the TrunkedNetworksClient.Get method. @@ -260,7 +260,7 @@ func (client *TrunkedNetworksClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -277,7 +277,7 @@ func (client *TrunkedNetworksClient) getHandleResponse(resp *http.Response) (Tru // NewListByResourceGroupPager - Get a list of trunked networks in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - TrunkedNetworksClientListByResourceGroupOptions contains the optional parameters for the TrunkedNetworksClient.NewListByResourceGroupPager // method. @@ -326,7 +326,7 @@ func (client *TrunkedNetworksClient) listByResourceGroupCreateRequest(ctx contex if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -343,7 +343,7 @@ func (client *TrunkedNetworksClient) listByResourceGroupHandleResponse(resp *htt // NewListBySubscriptionPager - Get a list of trunked networks in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - TrunkedNetworksClientListBySubscriptionOptions contains the optional parameters for the TrunkedNetworksClient.NewListBySubscriptionPager // method. func (client *TrunkedNetworksClient) NewListBySubscriptionPager(options *TrunkedNetworksClientListBySubscriptionOptions) *runtime.Pager[TrunkedNetworksClientListBySubscriptionResponse] { @@ -387,7 +387,7 @@ func (client *TrunkedNetworksClient) listBySubscriptionCreateRequest(ctx context if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -405,7 +405,7 @@ func (client *TrunkedNetworksClient) listBySubscriptionHandleResponse(resp *http // Update - Update tags associated with the provided trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - trunkedNetworkName - The name of the trunked network. // - trunkedNetworkUpdateParameters - The request body. @@ -452,7 +452,7 @@ func (client *TrunkedNetworksClient) updateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client_example_test.go index fe34eeec207f..e369f49dfeb2 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/TrunkedNetworks_ListBySubscription.json func ExampleTrunkedNetworksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -85,7 +82,7 @@ func ExampleTrunkedNetworksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/TrunkedNetworks_ListByResourceGroup.json func ExampleTrunkedNetworksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -152,7 +149,7 @@ func ExampleTrunkedNetworksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/TrunkedNetworks_Get.json func ExampleTrunkedNetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -209,7 +206,7 @@ func ExampleTrunkedNetworksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/TrunkedNetworks_Create.json func ExampleTrunkedNetworksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -291,7 +288,7 @@ func ExampleTrunkedNetworksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/TrunkedNetworks_Delete.json func ExampleTrunkedNetworksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -314,7 +311,7 @@ func ExampleTrunkedNetworksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/TrunkedNetworks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/TrunkedNetworks_Patch.json func ExampleTrunkedNetworksClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/version.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/version.go index 1941faa4ffd2..cbdea6e6606c 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/version.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/version.go @@ -6,5 +6,5 @@ package armnetworkcloud const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" - moduleVersion = "v1.4.0-beta.1" + moduleVersion = "v1.4.0" ) diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client.go index 48ca0344643d..0bc159410205 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client.go @@ -45,7 +45,7 @@ func NewVirtualMachinesClient(subscriptionID string, credential azcore.TokenCred // machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginAssignRelayOptions contains the optional parameters for the VirtualMachinesClient.BeginAssignRelay @@ -71,7 +71,7 @@ func (client *VirtualMachinesClient) BeginAssignRelay(ctx context.Context, resou // AssignRelay - Assigns a relay to the specified Microsoft.HybridCompute machine associated with the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VirtualMachinesClient) assignRelay(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginAssignRelayOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginAssignRelay" @@ -113,7 +113,7 @@ func (client *VirtualMachinesClient) assignRelayCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VirtualMachineAssignRelayParameters != nil { @@ -128,7 +128,7 @@ func (client *VirtualMachinesClient) assignRelayCreateRequest(ctx context.Contex // BeginCreateOrUpdate - Create a new virtual machine or update the properties of the existing virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - virtualMachineParameters - The request body. @@ -155,7 +155,7 @@ func (client *VirtualMachinesClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Create a new virtual machine or update the properties of the existing virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VirtualMachinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineParameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginCreateOrUpdate" @@ -197,7 +197,7 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -215,7 +215,7 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - Delete the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete @@ -241,7 +241,7 @@ func (client *VirtualMachinesClient) BeginDelete(ctx context.Context, resourceGr // Delete - Delete the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VirtualMachinesClient) deleteOperation(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginDelete" @@ -283,7 +283,7 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -298,7 +298,7 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re // Get - Get properties of the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method. @@ -344,7 +344,7 @@ func (client *VirtualMachinesClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -361,7 +361,7 @@ func (client *VirtualMachinesClient) getHandleResponse(resp *http.Response) (Vir // NewListByResourceGroupPager - Get a list of virtual machines in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - VirtualMachinesClientListByResourceGroupOptions contains the optional parameters for the VirtualMachinesClient.NewListByResourceGroupPager // method. @@ -410,7 +410,7 @@ func (client *VirtualMachinesClient) listByResourceGroupCreateRequest(ctx contex if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -427,7 +427,7 @@ func (client *VirtualMachinesClient) listByResourceGroupHandleResponse(resp *htt // NewListBySubscriptionPager - Get a list of virtual machines in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - VirtualMachinesClientListBySubscriptionOptions contains the optional parameters for the VirtualMachinesClient.NewListBySubscriptionPager // method. func (client *VirtualMachinesClient) NewListBySubscriptionPager(options *VirtualMachinesClientListBySubscriptionOptions) *runtime.Pager[VirtualMachinesClientListBySubscriptionResponse] { @@ -471,7 +471,7 @@ func (client *VirtualMachinesClient) listBySubscriptionCreateRequest(ctx context if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -489,7 +489,7 @@ func (client *VirtualMachinesClient) listBySubscriptionHandleResponse(resp *http // BeginPowerOff - Power off the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff @@ -515,7 +515,7 @@ func (client *VirtualMachinesClient) BeginPowerOff(ctx context.Context, resource // PowerOff - Power off the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VirtualMachinesClient) powerOff(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginPowerOffOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginPowerOff" @@ -557,7 +557,7 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VirtualMachinePowerOffParameters != nil { @@ -572,7 +572,7 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context, // BeginReimage - Reimage the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage @@ -598,7 +598,7 @@ func (client *VirtualMachinesClient) BeginReimage(ctx context.Context, resourceG // Reimage - Reimage the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VirtualMachinesClient) reimage(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginReimageOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginReimage" @@ -640,7 +640,7 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -649,7 +649,7 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r // BeginRestart - Restart the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart @@ -675,7 +675,7 @@ func (client *VirtualMachinesClient) BeginRestart(ctx context.Context, resourceG // Restart - Restart the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VirtualMachinesClient) restart(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginRestartOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginRestart" @@ -717,7 +717,7 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -726,7 +726,7 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r // BeginStart - Start the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart @@ -752,7 +752,7 @@ func (client *VirtualMachinesClient) BeginStart(ctx context.Context, resourceGro // Start - Start the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VirtualMachinesClient) start(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginStartOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginStart" @@ -794,7 +794,7 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -804,7 +804,7 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - virtualMachineUpdateParameters - The request body. @@ -832,7 +832,7 @@ func (client *VirtualMachinesClient) BeginUpdate(ctx context.Context, resourceGr // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VirtualMachinesClient) update(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineUpdateParameters VirtualMachinePatchParameters, options *VirtualMachinesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginUpdate" @@ -874,7 +874,7 @@ func (client *VirtualMachinesClient) updateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client_example_test.go index 642b57376afe..81e9dc87bc43 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_ListBySubscription.json func ExampleVirtualMachinesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,7 +133,7 @@ func ExampleVirtualMachinesClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_ListByResourceGroup.json func ExampleVirtualMachinesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -254,7 +251,7 @@ func ExampleVirtualMachinesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_Get.json func ExampleVirtualMachinesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -362,7 +359,7 @@ func ExampleVirtualMachinesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_Create.json func ExampleVirtualMachinesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -540,7 +537,7 @@ func ExampleVirtualMachinesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_Delete.json func ExampleVirtualMachinesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -563,7 +560,7 @@ func ExampleVirtualMachinesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_Patch.json func ExampleVirtualMachinesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -695,7 +692,7 @@ func ExampleVirtualMachinesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_AssignRelay.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_AssignRelay.json func ExampleVirtualMachinesClient_BeginAssignRelay() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -720,7 +717,7 @@ func ExampleVirtualMachinesClient_BeginAssignRelay() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_PowerOff.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_PowerOff.json func ExampleVirtualMachinesClient_BeginPowerOff() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -744,7 +741,7 @@ func ExampleVirtualMachinesClient_BeginPowerOff() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Reimage.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_Reimage.json func ExampleVirtualMachinesClient_BeginReimage() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -765,7 +762,7 @@ func ExampleVirtualMachinesClient_BeginReimage() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Restart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_Restart.json func ExampleVirtualMachinesClient_BeginRestart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -786,7 +783,7 @@ func ExampleVirtualMachinesClient_BeginRestart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/VirtualMachines_Start.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_Start.json func ExampleVirtualMachinesClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client.go index 69452b47be23..eb82372b162e 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client.go @@ -44,7 +44,7 @@ func NewVolumesClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreateOrUpdate - Create a new volume or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - volumeName - The name of the volume. // - volumeParameters - The request body. @@ -71,7 +71,7 @@ func (client *VolumesClient) BeginCreateOrUpdate(ctx context.Context, resourceGr // CreateOrUpdate - Create a new volume or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VolumesClient) createOrUpdate(ctx context.Context, resourceGroupName string, volumeName string, volumeParameters Volume, options *VolumesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "VolumesClient.BeginCreateOrUpdate" @@ -113,7 +113,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -131,7 +131,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, re // BeginDelete - Delete the provided volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - volumeName - The name of the volume. // - options - VolumesClientBeginDeleteOptions contains the optional parameters for the VolumesClient.BeginDelete method. @@ -156,7 +156,7 @@ func (client *VolumesClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete the provided volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 func (client *VolumesClient) deleteOperation(ctx context.Context, resourceGroupName string, volumeName string, options *VolumesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "VolumesClient.BeginDelete" @@ -198,7 +198,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { @@ -213,7 +213,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, resourceGr // Get - Get properties of the provided volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - volumeName - The name of the volume. // - options - VolumesClientGetOptions contains the optional parameters for the VolumesClient.Get method. @@ -259,7 +259,7 @@ func (client *VolumesClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -276,7 +276,7 @@ func (client *VolumesClient) getHandleResponse(resp *http.Response) (VolumesClie // NewListByResourceGroupPager - Get a list of volumes in the provided resource group. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - VolumesClientListByResourceGroupOptions contains the optional parameters for the VolumesClient.NewListByResourceGroupPager // method. @@ -325,7 +325,7 @@ func (client *VolumesClient) listByResourceGroupCreateRequest(ctx context.Contex if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -342,7 +342,7 @@ func (client *VolumesClient) listByResourceGroupHandleResponse(resp *http.Respon // NewListBySubscriptionPager - Get a list of volumes in the provided subscription. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - options - VolumesClientListBySubscriptionOptions contains the optional parameters for the VolumesClient.NewListBySubscriptionPager // method. func (client *VolumesClient) NewListBySubscriptionPager(options *VolumesClientListBySubscriptionOptions) *runtime.Pager[VolumesClientListBySubscriptionResponse] { @@ -386,7 +386,7 @@ func (client *VolumesClient) listBySubscriptionCreateRequest(ctx context.Context if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -404,7 +404,7 @@ func (client *VolumesClient) listBySubscriptionHandleResponse(resp *http.Respons // Update - Update tags associated with the provided volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2025-07-01-preview +// Generated from API version 2025-09-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - volumeName - The name of the volume. // - volumeUpdateParameters - The request body. @@ -451,7 +451,7 @@ func (client *VolumesClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2025-07-01-preview") + reqQP.Set("api-version", "2025-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client_example_test.go index b4333bf11ea3..4f4c10afee52 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client_example_test.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. @@ -18,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_ListBySubscription.json func ExampleVolumesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -81,7 +78,7 @@ func ExampleVolumesClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_ListByResourceGroup.json func ExampleVolumesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -144,7 +141,7 @@ func ExampleVolumesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_Get.json func ExampleVolumesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -197,7 +194,7 @@ func ExampleVolumesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_Create.json func ExampleVolumesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -270,7 +267,7 @@ func ExampleVolumesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_Delete.json func ExampleVolumesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -293,7 +290,7 @@ func ExampleVolumesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1d3ac611f503e05650fb85520582b06140d2599e/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2025-07-01-preview/examples/Volumes_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/46c51b03d99b113ecc3b38883e3cb2d395fe94a4/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_Patch.json func ExampleVolumesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {