From 24752d896885c397e30e431ea770366edddafd78 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Wed, 26 Jul 2023 10:49:49 +0800 Subject: [PATCH] [Release] sdk/resourcemanager/batch/armbatch/2.0.0 generation from spec commit: 310a0100f5b020c1900c527a6aa70d21992f078a (#21111) --- .../batch/armbatch/CHANGELOG.md | 12 + .../batch/armbatch/account_client.go | 52 ++-- .../armbatch/account_client_example_test.go | 36 +-- .../batch/armbatch/application_client.go | 20 +- .../application_client_example_test.go | 12 +- .../armbatch/applicationpackage_client.go | 20 +- .../applicationpackage_client_example_test.go | 12 +- .../batch/armbatch/autorest.md | 7 +- .../batch/armbatch/certificate_client.go | 26 +- .../certificate_client_example_test.go | 22 +- .../batch/armbatch/constants.go | 20 +- sdk/resourcemanager/batch/armbatch/go.mod | 3 +- sdk/resourcemanager/batch/armbatch/go.sum | 2 + .../batch/armbatch/location_client.go | 16 +- .../armbatch/location_client_example_test.go | 12 +- sdk/resourcemanager/batch/armbatch/models.go | 19 +- .../batch/armbatch/models_serde.go | 10 +- .../batch/armbatch/operations_client.go | 4 +- .../operations_client_example_test.go | 4 +- .../batch/armbatch/pool_client.go | 30 +-- .../armbatch/pool_client_example_test.go | 245 +++++++++++++++--- .../privateendpointconnection_client.go | 20 +- ...eendpointconnection_client_example_test.go | 10 +- .../armbatch/privatelinkresource_client.go | 8 +- ...privatelinkresource_client_example_test.go | 6 +- 25 files changed, 426 insertions(+), 202 deletions(-) diff --git a/sdk/resourcemanager/batch/armbatch/CHANGELOG.md b/sdk/resourcemanager/batch/armbatch/CHANGELOG.md index 54a1ab82aec9..904841cf04c9 100644 --- a/sdk/resourcemanager/batch/armbatch/CHANGELOG.md +++ b/sdk/resourcemanager/batch/armbatch/CHANGELOG.md @@ -1,5 +1,17 @@ # Release History +## 2.0.0 (2023-07-28) +### Breaking Changes + +- Type of `ContainerConfiguration.Type` has been changed from `*string` to `*ContainerType` + +### Features Added + +- New enum type `ContainerType` with values `ContainerTypeCriCompatible`, `ContainerTypeDockerCompatible` +- New field `EnableAcceleratedNetworking` in struct `NetworkConfiguration` +- New field `EnableAutomaticUpgrade` in struct `VMExtension` + + ## 1.2.1 (2023-04-14) ### Bug Fixes diff --git a/sdk/resourcemanager/batch/armbatch/account_client.go b/sdk/resourcemanager/batch/armbatch/account_client.go index 4f706aa8533a..bc7e0d12a7e2 100644 --- a/sdk/resourcemanager/batch/armbatch/account_client.go +++ b/sdk/resourcemanager/batch/armbatch/account_client.go @@ -48,7 +48,7 @@ func NewAccountClient(subscriptionID string, credential azcore.TokenCredential, // API and should instead be updated with the Update Batch Account API. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - A name for the Batch account which must be unique within the region. Batch account names must be between // 3 and 24 characters in length and must use only numbers and lowercase letters. This name is @@ -74,7 +74,7 @@ func (client *AccountClient) BeginCreate(ctx context.Context, resourceGroupName // should instead be updated with the Update Batch Account API. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 func (client *AccountClient) create(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters, options *AccountClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, accountName, parameters, options) if err != nil { @@ -110,7 +110,7 @@ func (client *AccountClient) createCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -119,7 +119,7 @@ func (client *AccountClient) createCreateRequest(ctx context.Context, resourceGr // BeginDelete - Deletes the specified Batch account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - AccountClientBeginDeleteOptions contains the optional parameters for the AccountClient.BeginDelete method. @@ -140,7 +140,7 @@ func (client *AccountClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes the specified Batch account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 func (client *AccountClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, options *AccountClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -176,7 +176,7 @@ func (client *AccountClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -185,7 +185,7 @@ func (client *AccountClient) deleteCreateRequest(ctx context.Context, resourceGr // Get - Gets information about the specified Batch account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - AccountClientGetOptions contains the optional parameters for the AccountClient.Get method. @@ -224,7 +224,7 @@ func (client *AccountClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -242,7 +242,7 @@ func (client *AccountClient) getHandleResponse(resp *http.Response) (AccountClie // GetDetector - Gets information about the given detector for a given Batch account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - detectorID - The name of the detector. @@ -286,7 +286,7 @@ func (client *AccountClient) getDetectorCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -307,7 +307,7 @@ func (client *AccountClient) getDetectorHandleResponse(resp *http.Response) (Acc // will fail. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - AccountClientGetKeysOptions contains the optional parameters for the AccountClient.GetKeys method. @@ -346,7 +346,7 @@ func (client *AccountClient) getKeysCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -363,7 +363,7 @@ func (client *AccountClient) getKeysHandleResponse(resp *http.Response) (Account // NewListPager - Gets information about the Batch accounts associated with the subscription. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - options - AccountClientListOptions contains the optional parameters for the AccountClient.NewListPager method. func (client *AccountClient) NewListPager(options *AccountClientListOptions) *runtime.Pager[AccountClientListResponse] { return runtime.NewPager(runtime.PagingHandler[AccountClientListResponse]{ @@ -405,7 +405,7 @@ func (client *AccountClient) listCreateRequest(ctx context.Context, options *Acc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -422,7 +422,7 @@ func (client *AccountClient) listHandleResponse(resp *http.Response) (AccountCli // NewListByResourceGroupPager - Gets information about the Batch accounts associated with the specified resource group. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - options - AccountClientListByResourceGroupOptions contains the optional parameters for the AccountClient.NewListByResourceGroupPager // method. @@ -470,7 +470,7 @@ func (client *AccountClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -487,7 +487,7 @@ func (client *AccountClient) listByResourceGroupHandleResponse(resp *http.Respon // NewListDetectorsPager - Gets information about the detectors available for a given Batch account. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - AccountClientListDetectorsOptions contains the optional parameters for the AccountClient.NewListDetectorsPager @@ -540,7 +540,7 @@ func (client *AccountClient) listDetectorsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -562,7 +562,7 @@ func (client *AccountClient) listDetectorsHandleResponse(resp *http.Response) (A // Batch to mark the affected nodes as unusable. For more information about // creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - AccountClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the AccountClient.NewListOutboundNetworkDependenciesEndpointsPager @@ -615,7 +615,7 @@ func (client *AccountClient) listOutboundNetworkDependenciesEndpointsCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -636,7 +636,7 @@ func (client *AccountClient) listOutboundNetworkDependenciesEndpointsHandleRespo // keys will fail. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - parameters - The type of key to regenerate. @@ -676,7 +676,7 @@ func (client *AccountClient) regenerateKeyCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -695,7 +695,7 @@ func (client *AccountClient) regenerateKeyHandleResponse(resp *http.Response) (A // only if storage key authentication is being used. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - AccountClientSynchronizeAutoStorageKeysOptions contains the optional parameters for the AccountClient.SynchronizeAutoStorageKeys @@ -735,7 +735,7 @@ func (client *AccountClient) synchronizeAutoStorageKeysCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -744,7 +744,7 @@ func (client *AccountClient) synchronizeAutoStorageKeysCreateRequest(ctx context // Update - Updates the properties of an existing Batch account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - parameters - Additional parameters for account update. @@ -784,7 +784,7 @@ func (client *AccountClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/batch/armbatch/account_client_example_test.go b/sdk/resourcemanager/batch/armbatch/account_client_example_test.go index e472885d4c0e..f017801f5d85 100644 --- a/sdk/resourcemanager/batch/armbatch/account_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/account_client_example_test.go @@ -15,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountCreate_BYOS.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountCreate_BYOS.json func ExampleAccountClient_BeginCreate_batchAccountCreateByos() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -81,7 +81,7 @@ func ExampleAccountClient_BeginCreate_batchAccountCreateByos() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountCreate_Default.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountCreate_Default.json func ExampleAccountClient_BeginCreate_batchAccountCreateDefault() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -135,7 +135,7 @@ func ExampleAccountClient_BeginCreate_batchAccountCreateDefault() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountCreate_SystemAssignedIdentity.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountCreate_SystemAssignedIdentity.json func ExampleAccountClient_BeginCreate_batchAccountCreateSystemAssignedIdentity() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -194,7 +194,7 @@ func ExampleAccountClient_BeginCreate_batchAccountCreateSystemAssignedIdentity() // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountCreate_UserAssignedIdentity.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountCreate_UserAssignedIdentity.json func ExampleAccountClient_BeginCreate_batchAccountCreateUserAssignedIdentity() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -260,7 +260,7 @@ func ExampleAccountClient_BeginCreate_batchAccountCreateUserAssignedIdentity() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PrivateBatchAccountCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PrivateBatchAccountCreate.json func ExampleAccountClient_BeginCreate_privateBatchAccountCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -323,7 +323,7 @@ func ExampleAccountClient_BeginCreate_privateBatchAccountCreate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountUpdate.json func ExampleAccountClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -372,7 +372,7 @@ func ExampleAccountClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountDelete.json func ExampleAccountClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -393,7 +393,7 @@ func ExampleAccountClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountGet.json func ExampleAccountClient_Get_batchAccountGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -436,7 +436,7 @@ func ExampleAccountClient_Get_batchAccountGet() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PrivateBatchAccountGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PrivateBatchAccountGet.json func ExampleAccountClient_Get_privateBatchAccountGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -491,7 +491,7 @@ func ExampleAccountClient_Get_privateBatchAccountGet() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountList.json func ExampleAccountClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -542,7 +542,7 @@ func ExampleAccountClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountListByResourceGroup.json func ExampleAccountClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -593,7 +593,7 @@ func ExampleAccountClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountSynchronizeAutoStorageKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountSynchronizeAutoStorageKeys.json func ExampleAccountClient_SynchronizeAutoStorageKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -610,7 +610,7 @@ func ExampleAccountClient_SynchronizeAutoStorageKeys() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountRegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountRegenerateKey.json func ExampleAccountClient_RegenerateKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -637,7 +637,7 @@ func ExampleAccountClient_RegenerateKey() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountGetKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountGetKeys.json func ExampleAccountClient_GetKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -662,7 +662,7 @@ func ExampleAccountClient_GetKeys() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/DetectorList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/DetectorList.json func ExampleAccountClient_NewListDetectorsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -698,7 +698,7 @@ func ExampleAccountClient_NewListDetectorsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/DetectorGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/DetectorGet.json func ExampleAccountClient_GetDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -726,7 +726,7 @@ func ExampleAccountClient_GetDetector() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json func ExampleAccountClient_NewListOutboundNetworkDependenciesEndpointsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/batch/armbatch/application_client.go b/sdk/resourcemanager/batch/armbatch/application_client.go index d788e4cbea1a..e9bfb455e6c1 100644 --- a/sdk/resourcemanager/batch/armbatch/application_client.go +++ b/sdk/resourcemanager/batch/armbatch/application_client.go @@ -48,7 +48,7 @@ func NewApplicationClient(subscriptionID string, credential azcore.TokenCredenti // Create - Adds an application to the specified Batch account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -92,7 +92,7 @@ func (client *ApplicationClient) createCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { @@ -113,7 +113,7 @@ func (client *ApplicationClient) createHandleResponse(resp *http.Response) (Appl // Delete - Deletes an application. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -157,7 +157,7 @@ func (client *ApplicationClient) deleteCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -166,7 +166,7 @@ func (client *ApplicationClient) deleteCreateRequest(ctx context.Context, resour // Get - Gets information about the specified application. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -210,7 +210,7 @@ func (client *ApplicationClient) getCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -227,7 +227,7 @@ func (client *ApplicationClient) getHandleResponse(resp *http.Response) (Applica // NewListPager - Lists all of the applications in the specified account. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - ApplicationClientListOptions contains the optional parameters for the ApplicationClient.NewListPager method. @@ -282,7 +282,7 @@ func (client *ApplicationClient) listCreateRequest(ctx context.Context, resource if options != nil && options.Maxresults != nil { reqQP.Set("maxresults", strconv.FormatInt(int64(*options.Maxresults), 10)) } - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -300,7 +300,7 @@ func (client *ApplicationClient) listHandleResponse(resp *http.Response) (Applic // Update - Updates settings for the specified application. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -345,7 +345,7 @@ func (client *ApplicationClient) updateCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/batch/armbatch/application_client_example_test.go b/sdk/resourcemanager/batch/armbatch/application_client_example_test.go index 920cf98c32d6..8e1aa8ac03e4 100644 --- a/sdk/resourcemanager/batch/armbatch/application_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/application_client_example_test.go @@ -15,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationCreate.json func ExampleApplicationClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,7 +54,7 @@ func ExampleApplicationClient_Create() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationDelete.json func ExampleApplicationClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -71,7 +71,7 @@ func ExampleApplicationClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationGet.json func ExampleApplicationClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -101,7 +101,7 @@ func ExampleApplicationClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationUpdate.json func ExampleApplicationClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -138,7 +138,7 @@ func ExampleApplicationClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationList.json func ExampleApplicationClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/batch/armbatch/applicationpackage_client.go b/sdk/resourcemanager/batch/armbatch/applicationpackage_client.go index 2e0806d30281..5bec4783ca78 100644 --- a/sdk/resourcemanager/batch/armbatch/applicationpackage_client.go +++ b/sdk/resourcemanager/batch/armbatch/applicationpackage_client.go @@ -50,7 +50,7 @@ func NewApplicationPackageClient(subscriptionID string, credential azcore.TokenC // Tasks. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -101,7 +101,7 @@ func (client *ApplicationPackageClient) activateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -122,7 +122,7 @@ func (client *ApplicationPackageClient) activateHandleResponse(resp *http.Respon // returned will contain a SAS. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -172,7 +172,7 @@ func (client *ApplicationPackageClient) createCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { @@ -193,7 +193,7 @@ func (client *ApplicationPackageClient) createHandleResponse(resp *http.Response // Delete - Deletes an application package record and its associated binary file. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -243,7 +243,7 @@ func (client *ApplicationPackageClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -252,7 +252,7 @@ func (client *ApplicationPackageClient) deleteCreateRequest(ctx context.Context, // Get - Gets information about the specified application package. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -301,7 +301,7 @@ func (client *ApplicationPackageClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -318,7 +318,7 @@ func (client *ApplicationPackageClient) getHandleResponse(resp *http.Response) ( // NewListPager - Lists all of the application packages in the specified application. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - applicationName - The name of the application. This must be unique within the account. @@ -379,7 +379,7 @@ func (client *ApplicationPackageClient) listCreateRequest(ctx context.Context, r if options != nil && options.Maxresults != nil { reqQP.Set("maxresults", strconv.FormatInt(int64(*options.Maxresults), 10)) } - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/batch/armbatch/applicationpackage_client_example_test.go b/sdk/resourcemanager/batch/armbatch/applicationpackage_client_example_test.go index baf480297ff2..653e487058f1 100644 --- a/sdk/resourcemanager/batch/armbatch/applicationpackage_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/applicationpackage_client_example_test.go @@ -15,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationPackageActivate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationPackageActivate.json func ExampleApplicationPackageClient_Activate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -51,7 +51,7 @@ func ExampleApplicationPackageClient_Activate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationPackageCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationPackageCreate.json func ExampleApplicationPackageClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -82,7 +82,7 @@ func ExampleApplicationPackageClient_Create() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationPackageDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationPackageDelete.json func ExampleApplicationPackageClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -99,7 +99,7 @@ func ExampleApplicationPackageClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationPackageGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationPackageGet.json func ExampleApplicationPackageClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -130,7 +130,7 @@ func ExampleApplicationPackageClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationPackageList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationPackageList.json func ExampleApplicationPackageClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/batch/armbatch/autorest.md b/sdk/resourcemanager/batch/armbatch/autorest.md index 2c508d269c95..b653296672ee 100644 --- a/sdk/resourcemanager/batch/armbatch/autorest.md +++ b/sdk/resourcemanager/batch/armbatch/autorest.md @@ -5,8 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.2.1 +module-version: 2.0.0 +tag: package-2023-05 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/batch/armbatch/certificate_client.go b/sdk/resourcemanager/batch/armbatch/certificate_client.go index 315de73bc1b4..a865045ecdb3 100644 --- a/sdk/resourcemanager/batch/armbatch/certificate_client.go +++ b/sdk/resourcemanager/batch/armbatch/certificate_client.go @@ -55,7 +55,7 @@ func NewCertificateClient(subscriptionID string, credential azcore.TokenCredenti // instead. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - certificateName - The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, @@ -101,7 +101,7 @@ func (client *CertificateClient) cancelDeletionCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -124,7 +124,7 @@ func (client *CertificateClient) cancelDeletionHandleResponse(resp *http.Respons // instead. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - certificateName - The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, @@ -170,7 +170,7 @@ func (client *CertificateClient) createCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} @@ -199,7 +199,7 @@ func (client *CertificateClient) createHandleResponse(resp *http.Response) (Cert // instead. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - certificateName - The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, @@ -224,7 +224,7 @@ func (client *CertificateClient) BeginDelete(ctx context.Context, resourceGroupN // instead. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 func (client *CertificateClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, certificateName string, options *CertificateClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, certificateName, options) if err != nil { @@ -264,7 +264,7 @@ func (client *CertificateClient) deleteCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -275,7 +275,7 @@ func (client *CertificateClient) deleteCreateRequest(ctx context.Context, resour // instead. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - certificateName - The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, @@ -320,7 +320,7 @@ func (client *CertificateClient) getCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -342,7 +342,7 @@ func (client *CertificateClient) getHandleResponse(resp *http.Response) (Certifi // the Azure KeyVault Extension [https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide] // instead. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - CertificateClientListByBatchAccountOptions contains the optional parameters for the CertificateClient.NewListByBatchAccountPager @@ -404,7 +404,7 @@ func (client *CertificateClient) listByBatchAccountCreateRequest(ctx context.Con if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -424,7 +424,7 @@ func (client *CertificateClient) listByBatchAccountHandleResponse(resp *http.Res // instead. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - certificateName - The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, @@ -470,7 +470,7 @@ func (client *CertificateClient) updateCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} diff --git a/sdk/resourcemanager/batch/armbatch/certificate_client_example_test.go b/sdk/resourcemanager/batch/armbatch/certificate_client_example_test.go index f568c1d924b4..0a9321af54c6 100644 --- a/sdk/resourcemanager/batch/armbatch/certificate_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/certificate_client_example_test.go @@ -15,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateList.json func ExampleCertificateClient_NewListByBatchAccountPager_listCertificates() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -63,7 +63,7 @@ func ExampleCertificateClient_NewListByBatchAccountPager_listCertificates() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateListWithFilter.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateListWithFilter.json func ExampleCertificateClient_NewListByBatchAccountPager_listCertificatesFilterAndSelect() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -114,7 +114,7 @@ func ExampleCertificateClient_NewListByBatchAccountPager_listCertificatesFilterA } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateCreate_Full.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateCreate_Full.json func ExampleCertificateClient_Create_createCertificateFull() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -158,7 +158,7 @@ func ExampleCertificateClient_Create_createCertificateFull() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateCreate_MinimalCer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateCreate_MinimalCer.json func ExampleCertificateClient_Create_createCertificateMinimalCer() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -199,7 +199,7 @@ func ExampleCertificateClient_Create_createCertificateMinimalCer() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateCreate_Minimal.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateCreate_Minimal.json func ExampleCertificateClient_Create_createCertificateMinimalPfx() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -240,7 +240,7 @@ func ExampleCertificateClient_Create_createCertificateMinimalPfx() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateUpdate.json func ExampleCertificateClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -279,7 +279,7 @@ func ExampleCertificateClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateDelete.json func ExampleCertificateClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -300,7 +300,7 @@ func ExampleCertificateClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateGet.json func ExampleCertificateClient_Get_getCertificate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -334,7 +334,7 @@ func ExampleCertificateClient_Get_getCertificate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateGetWithDeletionError.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateGetWithDeletionError.json func ExampleCertificateClient_Get_getCertificateWithDeletionError() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -380,7 +380,7 @@ func ExampleCertificateClient_Get_getCertificateWithDeletionError() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateCancelDeletion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateCancelDeletion.json func ExampleCertificateClient_CancelDeletion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/batch/armbatch/constants.go b/sdk/resourcemanager/batch/armbatch/constants.go index a0625d6fffc1..839fe6895faf 100644 --- a/sdk/resourcemanager/batch/armbatch/constants.go +++ b/sdk/resourcemanager/batch/armbatch/constants.go @@ -11,7 +11,7 @@ package armbatch const ( moduleName = "armbatch" - moduleVersion = "v1.2.1" + moduleVersion = "v2.0.0" ) // AccountKeyType - The type of account key to regenerate. @@ -277,6 +277,24 @@ func PossibleComputeNodeFillTypeValues() []ComputeNodeFillType { } } +// ContainerType - The container technology to be used. +type ContainerType string + +const ( + // ContainerTypeCriCompatible - A CRI based technology will be used to launch the containers. + ContainerTypeCriCompatible ContainerType = "CriCompatible" + // ContainerTypeDockerCompatible - A Docker compatible container technology will be used to launch the containers. + ContainerTypeDockerCompatible ContainerType = "DockerCompatible" +) + +// PossibleContainerTypeValues returns the possible values for the ContainerType const type. +func PossibleContainerTypeValues() []ContainerType { + return []ContainerType{ + ContainerTypeCriCompatible, + ContainerTypeDockerCompatible, + } +} + // ContainerWorkingDirectory - A flag to indicate where the container task working directory is. The default is 'taskWorkingDirectory'. type ContainerWorkingDirectory string diff --git a/sdk/resourcemanager/batch/armbatch/go.mod b/sdk/resourcemanager/batch/armbatch/go.mod index 94b510f81c9b..368de1194c68 100644 --- a/sdk/resourcemanager/batch/armbatch/go.mod +++ b/sdk/resourcemanager/batch/armbatch/go.mod @@ -1,4 +1,4 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2 go 1.18 @@ -6,6 +6,7 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch v1.2.1 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 diff --git a/sdk/resourcemanager/batch/armbatch/go.sum b/sdk/resourcemanager/batch/armbatch/go.sum index 6e2c77825a2c..9ae86ff6d44f 100644 --- a/sdk/resourcemanager/batch/armbatch/go.sum +++ b/sdk/resourcemanager/batch/armbatch/go.sum @@ -4,6 +4,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2/go.mod h1:twTKAa1E6hLmSDjLhaCkbTMQKc7p/rNLU40rLxGEOCI= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 h1:leh5DwKv6Ihwi+h60uHtn6UWAxBbZ0q8DwQVMzf61zw= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch v1.2.1 h1:IdXgoDe3cTMEGXpaW1Y9sLNRhY4iy0Ul2rXGRfMlWLI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch v1.2.1/go.mod h1:CHiiIYxbQfbFdCvAgmJ5/Ivp+s4tz+dQ9nO0Z7InRZY= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= diff --git a/sdk/resourcemanager/batch/armbatch/location_client.go b/sdk/resourcemanager/batch/armbatch/location_client.go index 17dda227e31c..2fc944f517ff 100644 --- a/sdk/resourcemanager/batch/armbatch/location_client.go +++ b/sdk/resourcemanager/batch/armbatch/location_client.go @@ -48,7 +48,7 @@ func NewLocationClient(subscriptionID string, credential azcore.TokenCredential, // CheckNameAvailability - Checks whether the Batch account name is available in the specified region. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - locationName - The desired region for the name check. // - parameters - Properties needed to check the availability of a name. // - options - LocationClientCheckNameAvailabilityOptions contains the optional parameters for the LocationClient.CheckNameAvailability @@ -84,7 +84,7 @@ func (client *LocationClient) checkNameAvailabilityCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -102,7 +102,7 @@ func (client *LocationClient) checkNameAvailabilityHandleResponse(resp *http.Res // GetQuotas - Gets the Batch service quotas for the specified subscription at the given location. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - locationName - The region for which to retrieve Batch service quotas. // - options - LocationClientGetQuotasOptions contains the optional parameters for the LocationClient.GetQuotas method. func (client *LocationClient) GetQuotas(ctx context.Context, locationName string, options *LocationClientGetQuotasOptions) (LocationClientGetQuotasResponse, error) { @@ -136,7 +136,7 @@ func (client *LocationClient) getQuotasCreateRequest(ctx context.Context, locati return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -154,7 +154,7 @@ func (client *LocationClient) getQuotasHandleResponse(resp *http.Response) (Loca // NewListSupportedCloudServiceSKUsPager - Gets the list of Batch supported Cloud Service VM sizes available at the given // location. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - locationName - The region for which to retrieve Batch service supported SKUs. // - options - LocationClientListSupportedCloudServiceSKUsOptions contains the optional parameters for the LocationClient.NewListSupportedCloudServiceSKUsPager // method. @@ -208,7 +208,7 @@ func (client *LocationClient) listSupportedCloudServiceSKUsCreateRequest(ctx con if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *LocationClient) listSupportedCloudServiceSKUsHandleResponse(resp * // NewListSupportedVirtualMachineSKUsPager - Gets the list of Batch supported Virtual Machine VM sizes available at the given // location. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - locationName - The region for which to retrieve Batch service supported SKUs. // - options - LocationClientListSupportedVirtualMachineSKUsOptions contains the optional parameters for the LocationClient.NewListSupportedVirtualMachineSKUsPager // method. @@ -280,7 +280,7 @@ func (client *LocationClient) listSupportedVirtualMachineSKUsCreateRequest(ctx c if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/batch/armbatch/location_client_example_test.go b/sdk/resourcemanager/batch/armbatch/location_client_example_test.go index 1aad616aff04..fcd150bdd2b8 100644 --- a/sdk/resourcemanager/batch/armbatch/location_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/location_client_example_test.go @@ -15,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationGetQuotas.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationGetQuotas.json func ExampleLocationClient_GetQuotas() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -41,7 +41,7 @@ func ExampleLocationClient_GetQuotas() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationListVirtualMachineSkus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationListVirtualMachineSkus.json func ExampleLocationClient_NewListSupportedVirtualMachineSKUsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -104,7 +104,7 @@ func ExampleLocationClient_NewListSupportedVirtualMachineSKUsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationListCloudServiceSkus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationListCloudServiceSkus.json func ExampleLocationClient_NewListSupportedCloudServiceSKUsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -167,7 +167,7 @@ func ExampleLocationClient_NewListSupportedCloudServiceSKUsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationCheckNameAvailability_AlreadyExists.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationCheckNameAvailability_AlreadyExists.json func ExampleLocationClient_CheckNameAvailability_locationCheckNameAvailabilityAlreadyExists() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -195,7 +195,7 @@ func ExampleLocationClient_CheckNameAvailability_locationCheckNameAvailabilityAl // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationCheckNameAvailability_Available.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationCheckNameAvailability_Available.json func ExampleLocationClient_CheckNameAvailability_locationCheckNameAvailabilityAvailable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/batch/armbatch/models.go b/sdk/resourcemanager/batch/armbatch/models.go index 4f989fde4cf4..c820a457fb4e 100644 --- a/sdk/resourcemanager/batch/armbatch/models.go +++ b/sdk/resourcemanager/batch/armbatch/models.go @@ -774,9 +774,8 @@ type ComputeNodeIdentityReference struct { // ContainerConfiguration - The configuration for container-enabled pools. type ContainerConfiguration struct { - // CONSTANT; The container technology to be used. - // Field has constant value "DockerCompatible", any specified value is ignored. - Type *string + // REQUIRED; The container technology to be used. + Type *ContainerType // This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker // registry unless the image is fully qualified with an alternative registry. @@ -1030,8 +1029,9 @@ type InboundNatPool struct { // KeyVaultProperties - KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault. type KeyVaultProperties struct { - // Full path to the versioned secret. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. - // To be usable the following prerequisites must be met: + // Full path to the secret with or without version. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. + // or https://mykeyvault.vault.azure.net/keys/testkey. To be + // usable the following prerequisites must be met: // The Batch Account has a System Assigned identity The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap // permissions The KeyVault has soft-delete and purge protection enabled KeyIdentifier *string @@ -1195,6 +1195,11 @@ type NetworkConfiguration struct { // The scope of dynamic vnet assignment. DynamicVNetAssignmentScope *DynamicVNetAssignmentScope + // Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. + // For more details, see: + // https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview. + EnableAcceleratedNetworking *bool + // Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. EndpointConfiguration *PoolEndpointConfiguration @@ -1938,6 +1943,10 @@ type VMExtension struct { // with this property set to true. AutoUpgradeMinorVersion *bool + // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension + // available. + EnableAutomaticUpgrade *bool + // The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. ProtectedSettings any diff --git a/sdk/resourcemanager/batch/armbatch/models_serde.go b/sdk/resourcemanager/batch/armbatch/models_serde.go index 7926e00e5bbd..76a858b91dfd 100644 --- a/sdk/resourcemanager/batch/armbatch/models_serde.go +++ b/sdk/resourcemanager/batch/armbatch/models_serde.go @@ -1414,7 +1414,7 @@ func (c ContainerConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "containerImageNames", c.ContainerImageNames) populate(objectMap, "containerRegistries", c.ContainerRegistries) - objectMap["type"] = "DockerCompatible" + populate(objectMap, "type", c.Type) return json.Marshal(objectMap) } @@ -2477,6 +2477,7 @@ func (n *NFSMountConfiguration) UnmarshalJSON(data []byte) error { func (n NetworkConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "dynamicVnetAssignmentScope", n.DynamicVNetAssignmentScope) + populate(objectMap, "enableAcceleratedNetworking", n.EnableAcceleratedNetworking) populate(objectMap, "endpointConfiguration", n.EndpointConfiguration) populate(objectMap, "publicIPAddressConfiguration", n.PublicIPAddressConfiguration) populate(objectMap, "subnetId", n.SubnetID) @@ -2495,6 +2496,9 @@ func (n *NetworkConfiguration) UnmarshalJSON(data []byte) error { case "dynamicVnetAssignmentScope": err = unpopulate(val, "DynamicVNetAssignmentScope", &n.DynamicVNetAssignmentScope) delete(rawMsg, key) + case "enableAcceleratedNetworking": + err = unpopulate(val, "EnableAcceleratedNetworking", &n.EnableAcceleratedNetworking) + delete(rawMsg, key) case "endpointConfiguration": err = unpopulate(val, "EndpointConfiguration", &n.EndpointConfiguration) delete(rawMsg, key) @@ -3869,6 +3873,7 @@ func (u *UserIdentity) UnmarshalJSON(data []byte) error { func (v VMExtension) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "autoUpgradeMinorVersion", v.AutoUpgradeMinorVersion) + populate(objectMap, "enableAutomaticUpgrade", v.EnableAutomaticUpgrade) populate(objectMap, "name", v.Name) populateAny(objectMap, "protectedSettings", v.ProtectedSettings) populate(objectMap, "provisionAfterExtensions", v.ProvisionAfterExtensions) @@ -3891,6 +3896,9 @@ func (v *VMExtension) UnmarshalJSON(data []byte) error { case "autoUpgradeMinorVersion": err = unpopulate(val, "AutoUpgradeMinorVersion", &v.AutoUpgradeMinorVersion) delete(rawMsg, key) + case "enableAutomaticUpgrade": + err = unpopulate(val, "EnableAutomaticUpgrade", &v.EnableAutomaticUpgrade) + delete(rawMsg, key) case "name": err = unpopulate(val, "Name", &v.Name) delete(rawMsg, key) diff --git a/sdk/resourcemanager/batch/armbatch/operations_client.go b/sdk/resourcemanager/batch/armbatch/operations_client.go index 1b4ed7709882..316c4ce61de8 100644 --- a/sdk/resourcemanager/batch/armbatch/operations_client.go +++ b/sdk/resourcemanager/batch/armbatch/operations_client.go @@ -40,7 +40,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Lists available operations for the Microsoft.Batch provider // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-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]{ @@ -78,7 +78,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/batch/armbatch/operations_client_example_test.go b/sdk/resourcemanager/batch/armbatch/operations_client_example_test.go index 70b76321fc8e..b73e42ecf0d9 100644 --- a/sdk/resourcemanager/batch/armbatch/operations_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/operations_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/OperationsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/OperationsList.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/batch/armbatch/pool_client.go b/sdk/resourcemanager/batch/armbatch/pool_client.go index c91dc56a851b..a238cd98026a 100644 --- a/sdk/resourcemanager/batch/armbatch/pool_client.go +++ b/sdk/resourcemanager/batch/armbatch/pool_client.go @@ -48,7 +48,7 @@ func NewPoolClient(subscriptionID string, credential azcore.TokenCredential, opt // Create - Creates a new pool inside the specified account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - poolName - The pool name. This must be unique within the account. @@ -93,7 +93,7 @@ func (client *PoolClient) createCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} @@ -120,7 +120,7 @@ func (client *PoolClient) createHandleResponse(resp *http.Response) (PoolClientC // BeginDelete - Deletes the specified pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - poolName - The pool name. This must be unique within the account. @@ -142,7 +142,7 @@ func (client *PoolClient) BeginDelete(ctx context.Context, resourceGroupName str // Delete - Deletes the specified pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 func (client *PoolClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, poolName string, options *PoolClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, poolName, options) if err != nil { @@ -182,7 +182,7 @@ func (client *PoolClient) deleteCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -191,7 +191,7 @@ func (client *PoolClient) deleteCreateRequest(ctx context.Context, resourceGroup // DisableAutoScale - Disables automatic scaling for a pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - poolName - The pool name. This must be unique within the account. @@ -235,7 +235,7 @@ func (client *PoolClient) disableAutoScaleCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -256,7 +256,7 @@ func (client *PoolClient) disableAutoScaleHandleResponse(resp *http.Response) (P // Get - Gets information about the specified pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - poolName - The pool name. This must be unique within the account. @@ -300,7 +300,7 @@ func (client *PoolClient) getCreateRequest(ctx context.Context, resourceGroupNam return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -320,7 +320,7 @@ func (client *PoolClient) getHandleResponse(resp *http.Response) (PoolClientGetR // NewListByBatchAccountPager - Lists all of the pools in the specified account. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - PoolClientListByBatchAccountOptions contains the optional parameters for the PoolClient.NewListByBatchAccountPager @@ -382,7 +382,7 @@ func (client *PoolClient) listByBatchAccountCreateRequest(ctx context.Context, r if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -404,7 +404,7 @@ func (client *PoolClient) listByBatchAccountHandleResponse(resp *http.Response) // not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - poolName - The pool name. This must be unique within the account. @@ -448,7 +448,7 @@ func (client *PoolClient) stopResizeCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -469,7 +469,7 @@ func (client *PoolClient) stopResizeHandleResponse(resp *http.Response) (PoolCli // Update - Updates the properties of an existing pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - poolName - The pool name. This must be unique within the account. @@ -515,7 +515,7 @@ func (client *PoolClient) updateCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} diff --git a/sdk/resourcemanager/batch/armbatch/pool_client_example_test.go b/sdk/resourcemanager/batch/armbatch/pool_client_example_test.go index f6ba6b29a450..f35f55f035ce 100644 --- a/sdk/resourcemanager/batch/armbatch/pool_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/pool_client_example_test.go @@ -15,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolList.json func ExamplePoolClient_NewListByBatchAccountPager_listPool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -180,7 +180,7 @@ func ExamplePoolClient_NewListByBatchAccountPager_listPool() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolListWithFilter.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolListWithFilter.json func ExamplePoolClient_NewListByBatchAccountPager_listPoolWithFilter() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -235,7 +235,7 @@ func ExamplePoolClient_NewListByBatchAccountPager_listPoolWithFilter() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_SharedImageGallery.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_SharedImageGallery.json func ExamplePoolClient_Create_createPoolCustomImage() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -305,7 +305,7 @@ func ExamplePoolClient_Create_createPoolCustomImage() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_CloudServiceConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_CloudServiceConfiguration.json func ExamplePoolClient_Create_createPoolFullCloudServiceConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -519,7 +519,7 @@ func ExamplePoolClient_Create_createPoolFullCloudServiceConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_VirtualMachineConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_VirtualMachineConfiguration.json func ExamplePoolClient_Create_createPoolFullVirtualMachineConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -712,7 +712,7 @@ func ExamplePoolClient_Create_createPoolFullVirtualMachineConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json func ExamplePoolClient_Create_createPoolMinimalCloudServiceConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -789,7 +789,7 @@ func ExamplePoolClient_Create_createPoolMinimalCloudServiceConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json func ExamplePoolClient_Create_createPoolMinimalVirtualMachineConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -871,7 +871,7 @@ func ExamplePoolClient_Create_createPoolMinimalVirtualMachineConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_NoPublicIPAddresses.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_NoPublicIPAddresses.json func ExamplePoolClient_Create_createPoolNoPublicIp() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -953,7 +953,7 @@ func ExamplePoolClient_Create_createPoolNoPublicIp() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_PublicIPs.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_PublicIPs.json func ExamplePoolClient_Create_createPoolPublicIPs() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1039,7 +1039,7 @@ func ExamplePoolClient_Create_createPoolPublicIPs() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_UserAssignedIdentities.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_UserAssignedIdentities.json func ExamplePoolClient_Create_createPoolUserAssignedIdentities() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1141,7 +1141,7 @@ func ExamplePoolClient_Create_createPoolUserAssignedIdentities() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json func ExamplePoolClient_Create_createPoolVirtualMachineConfigurationExtensions() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1165,16 +1165,15 @@ func ExamplePoolClient_Create_createPoolVirtualMachineConfigurationExtensions() Extensions: []*armbatch.VMExtension{ { Name: to.Ptr("batchextension1"), - Type: to.Ptr("SecurityMonitoringForLinux"), + Type: to.Ptr("KeyVaultForLinux"), AutoUpgradeMinorVersion: to.Ptr(true), - ProtectedSettings: map[string]any{ - "protectedSettingsKey": "protectedSettingsValue", - }, - Publisher: to.Ptr("Microsoft.Azure.Security.Monitoring"), + EnableAutomaticUpgrade: to.Ptr(true), + Publisher: to.Ptr("Microsoft.Azure.KeyVault"), Settings: map[string]any{ - "settingsKey": "settingsValue", + "authenticationSettingsKey": "authenticationSettingsValue", + "secretsManagementSettingsKey": "secretsManagementSettingsValue", }, - TypeHandlerVersion: to.Ptr("1.0"), + TypeHandlerVersion: to.Ptr("2.0"), }}, }, }, @@ -1218,13 +1217,15 @@ func ExamplePoolClient_Create_createPoolVirtualMachineConfigurationExtensions() // Extensions: []*armbatch.VMExtension{ // { // Name: to.Ptr("batchextension1"), - // Type: to.Ptr("SecurityMonitoringForLinux"), + // Type: to.Ptr("KeyVaultForLinux"), // AutoUpgradeMinorVersion: to.Ptr(true), - // Publisher: to.Ptr("Microsoft.Azure.Security.Monitoring"), + // EnableAutomaticUpgrade: to.Ptr(true), + // Publisher: to.Ptr("Microsoft.Azure.KeyVault"), // Settings: map[string]any{ - // "settingsKey": "settingsValue", + // "authenticationSettingsKey": "authenticationSettingsValue", + // "secretsManagementSettingsKey": "secretsManagementSettingsValue", // }, - // TypeHandlerVersion: to.Ptr("1.0"), + // TypeHandlerVersion: to.Ptr("2.0"), // }}, // }, // }, @@ -1248,7 +1249,106 @@ func ExamplePoolClient_Create_createPoolVirtualMachineConfigurationExtensions() // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolUpdate_EnableAutoScale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_AcceleratedNetworking.json +func ExamplePoolClient_Create_createPoolAcceleratedNetworking() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armbatch.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewPoolClient().Create(ctx, "default-azurebatch-japaneast", "sampleacct", "testpool", armbatch.Pool{ + Properties: &armbatch.PoolProperties{ + DeploymentConfiguration: &armbatch.DeploymentConfiguration{ + VirtualMachineConfiguration: &armbatch.VirtualMachineConfiguration{ + ImageReference: &armbatch.ImageReference{ + Offer: to.Ptr("WindowsServer"), + Publisher: to.Ptr("MicrosoftWindowsServer"), + SKU: to.Ptr("2016-datacenter-smalldisk"), + Version: to.Ptr("latest"), + }, + NodeAgentSKUID: to.Ptr("batch.node.windows amd64"), + }, + }, + NetworkConfiguration: &armbatch.NetworkConfiguration{ + EnableAcceleratedNetworking: to.Ptr(true), + SubnetID: to.Ptr("/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123"), + }, + ScaleSettings: &armbatch.ScaleSettings{ + FixedScale: &armbatch.FixedScaleSettings{ + TargetDedicatedNodes: to.Ptr[int32](1), + TargetLowPriorityNodes: to.Ptr[int32](0), + }, + }, + VMSize: to.Ptr("STANDARD_D1_V2"), + }, + }, &armbatch.PoolClientCreateOptions{IfMatch: nil, + IfNoneMatch: nil, + }) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Pool = armbatch.Pool{ + // Name: to.Ptr("testpool"), + // Type: to.Ptr("Microsoft.Batch/batchAccounts/pools"), + // Etag: to.Ptr("W/\"0x8DB46CB72A227E2\""), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool"), + // Properties: &armbatch.PoolProperties{ + // AllocationState: to.Ptr(armbatch.AllocationStateSteady), + // AllocationStateTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-27T03:00:34.0646502Z"); return t}()), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-27T02:59:41.8592226Z"); return t}()), + // CurrentDedicatedNodes: to.Ptr[int32](1), + // CurrentLowPriorityNodes: to.Ptr[int32](0), + // CurrentNodeCommunicationMode: to.Ptr(armbatch.NodeCommunicationModeClassic), + // DeploymentConfiguration: &armbatch.DeploymentConfiguration{ + // VirtualMachineConfiguration: &armbatch.VirtualMachineConfiguration{ + // ImageReference: &armbatch.ImageReference{ + // Offer: to.Ptr("WindowsServer"), + // Publisher: to.Ptr("MicrosoftWindowsServer"), + // SKU: to.Ptr("2016-datacenter-smalldisk"), + // Version: to.Ptr("latest"), + // }, + // NodeAgentSKUID: to.Ptr("batch.node.windows amd64"), + // }, + // }, + // InterNodeCommunication: to.Ptr(armbatch.InterNodeCommunicationStateDisabled), + // LastModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-27T02:59:41.8592226Z"); return t}()), + // NetworkConfiguration: &armbatch.NetworkConfiguration{ + // DynamicVNetAssignmentScope: to.Ptr(armbatch.DynamicVNetAssignmentScopeNone), + // EnableAcceleratedNetworking: to.Ptr(true), + // SubnetID: to.Ptr("/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123"), + // }, + // ProvisioningState: to.Ptr(armbatch.PoolProvisioningStateSucceeded), + // ProvisioningStateTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-27T02:59:41.8592226Z"); return t}()), + // ResizeOperationStatus: &armbatch.ResizeOperationStatus{ + // NodeDeallocationOption: to.Ptr(armbatch.ComputeNodeDeallocationOptionRequeue), + // ResizeTimeout: to.Ptr("PT15M"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-27T02:59:41.8592226Z"); return t}()), + // TargetDedicatedNodes: to.Ptr[int32](1), + // }, + // ScaleSettings: &armbatch.ScaleSettings{ + // FixedScale: &armbatch.FixedScaleSettings{ + // ResizeTimeout: to.Ptr("PT15M"), + // TargetDedicatedNodes: to.Ptr[int32](1), + // TargetLowPriorityNodes: to.Ptr[int32](0), + // }, + // }, + // TaskSchedulingPolicy: &armbatch.TaskSchedulingPolicy{ + // NodeFillType: to.Ptr(armbatch.ComputeNodeFillTypeSpread), + // }, + // TaskSlotsPerNode: to.Ptr[int32](1), + // VMSize: to.Ptr("STANDARD_D1_V2"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolUpdate_EnableAutoScale.json func ExamplePoolClient_Update_updatePoolEnableAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1320,7 +1420,7 @@ func ExamplePoolClient_Update_updatePoolEnableAutoscale() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolUpdate_OtherProperties.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolUpdate_OtherProperties.json func ExamplePoolClient_Update_updatePoolOtherProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1433,7 +1533,7 @@ func ExamplePoolClient_Update_updatePoolOtherProperties() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolUpdate_RemoveStartTask.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolUpdate_RemoveStartTask.json func ExamplePoolClient_Update_updatePoolRemoveStartTask() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1501,7 +1601,7 @@ func ExamplePoolClient_Update_updatePoolRemoveStartTask() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolUpdate_ResizePool.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolUpdate_ResizePool.json func ExamplePoolClient_Update_updatePoolResizePool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1578,7 +1678,7 @@ func ExamplePoolClient_Update_updatePoolResizePool() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolDelete.json func ExamplePoolClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1599,7 +1699,7 @@ func ExamplePoolClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolGet.json func ExamplePoolClient_Get_getPool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1746,7 +1846,78 @@ func ExamplePoolClient_Get_getPool() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolGet_AcceleratedNetworking.json +func ExamplePoolClient_Get_getPoolAcceleratedNetworking() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armbatch.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewPoolClient().Get(ctx, "default-azurebatch-japaneast", "sampleacct", "testpool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Pool = armbatch.Pool{ + // Name: to.Ptr("testpool"), + // Type: to.Ptr("Microsoft.Batch/batchAccounts/pools"), + // Etag: to.Ptr("W/\"0x8D4EDFEBFADF4AB\""), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool"), + // Properties: &armbatch.PoolProperties{ + // AllocationState: to.Ptr(armbatch.AllocationStateSteady), + // AllocationStateTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-28T02:33:40.82831Z"); return t}()), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-28T02:32:32.8696419Z"); return t}()), + // CurrentDedicatedNodes: to.Ptr[int32](1), + // CurrentLowPriorityNodes: to.Ptr[int32](0), + // CurrentNodeCommunicationMode: to.Ptr(armbatch.NodeCommunicationModeClassic), + // DeploymentConfiguration: &armbatch.DeploymentConfiguration{ + // VirtualMachineConfiguration: &armbatch.VirtualMachineConfiguration{ + // ImageReference: &armbatch.ImageReference{ + // Offer: to.Ptr("WindowsServer"), + // Publisher: to.Ptr("MicrosoftWindowsServer"), + // SKU: to.Ptr("2016-datacenter-smalldisk"), + // Version: to.Ptr("latest"), + // }, + // NodeAgentSKUID: to.Ptr("batch.node.windows amd64"), + // }, + // }, + // InterNodeCommunication: to.Ptr(armbatch.InterNodeCommunicationStateDisabled), + // LastModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-28T02:32:32.8696419Z"); return t}()), + // NetworkConfiguration: &armbatch.NetworkConfiguration{ + // DynamicVNetAssignmentScope: to.Ptr(armbatch.DynamicVNetAssignmentScopeNone), + // EnableAcceleratedNetworking: to.Ptr(true), + // }, + // ProvisioningState: to.Ptr(armbatch.PoolProvisioningStateSucceeded), + // ProvisioningStateTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-28T02:32:32.8696419Z"); return t}()), + // ResizeOperationStatus: &armbatch.ResizeOperationStatus{ + // NodeDeallocationOption: to.Ptr(armbatch.ComputeNodeDeallocationOptionRequeue), + // ResizeTimeout: to.Ptr("PT15M"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-04-28T02:32:32.8696419Z"); return t}()), + // TargetDedicatedNodes: to.Ptr[int32](1), + // }, + // ScaleSettings: &armbatch.ScaleSettings{ + // FixedScale: &armbatch.FixedScaleSettings{ + // ResizeTimeout: to.Ptr("PT15M"), + // TargetDedicatedNodes: to.Ptr[int32](1), + // TargetLowPriorityNodes: to.Ptr[int32](0), + // }, + // }, + // TaskSchedulingPolicy: &armbatch.TaskSchedulingPolicy{ + // NodeFillType: to.Ptr(armbatch.ComputeNodeFillTypeSpread), + // }, + // TaskSlotsPerNode: to.Ptr[int32](1), + // VMSize: to.Ptr("STANDARD_D1_V2"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json func ExamplePoolClient_Get_getPoolVirtualMachineConfigurationExtensions() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1787,13 +1958,15 @@ func ExamplePoolClient_Get_getPoolVirtualMachineConfigurationExtensions() { // Extensions: []*armbatch.VMExtension{ // { // Name: to.Ptr("batchextension1"), - // Type: to.Ptr("SecurityMonitoringForLinux"), + // Type: to.Ptr("KeyVaultForLinux"), // AutoUpgradeMinorVersion: to.Ptr(true), - // Publisher: to.Ptr("Microsoft.Azure.Security.Monitoring"), + // EnableAutomaticUpgrade: to.Ptr(true), + // Publisher: to.Ptr("Microsoft.Azure.KeyVault"), // Settings: map[string]any{ - // "settingsKey": "settingsValue", + // "authenticationSettingsKey": "authenticationSettingsValue", + // "secretsManagementSettingsKey": "secretsManagementSettingsValue", // }, - // TypeHandlerVersion: to.Ptr("1.0"), + // TypeHandlerVersion: to.Ptr("2.0"), // }}, // }, // }, @@ -1825,7 +1998,7 @@ func ExamplePoolClient_Get_getPoolVirtualMachineConfigurationExtensions() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolDisableAutoScale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolDisableAutoScale.json func ExamplePoolClient_DisableAutoScale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1885,7 +2058,7 @@ func ExamplePoolClient_DisableAutoScale() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolStopResize.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolStopResize.json func ExamplePoolClient_StopResize() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/batch/armbatch/privateendpointconnection_client.go b/sdk/resourcemanager/batch/armbatch/privateendpointconnection_client.go index 86dc82f761cd..7ac7b4123fac 100644 --- a/sdk/resourcemanager/batch/armbatch/privateendpointconnection_client.go +++ b/sdk/resourcemanager/batch/armbatch/privateendpointconnection_client.go @@ -48,7 +48,7 @@ func NewPrivateEndpointConnectionClient(subscriptionID string, credential azcore // BeginDelete - Deletes the specified private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - privateEndpointConnectionName - The private endpoint connection name. This must be unique within the account. @@ -71,7 +71,7 @@ func (client *PrivateEndpointConnectionClient) BeginDelete(ctx context.Context, // Delete - Deletes the specified private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 func (client *PrivateEndpointConnectionClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, privateEndpointConnectionName, options) if err != nil { @@ -111,7 +111,7 @@ func (client *PrivateEndpointConnectionClient) deleteCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -120,7 +120,7 @@ func (client *PrivateEndpointConnectionClient) deleteCreateRequest(ctx context.C // Get - Gets information about the specified private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - privateEndpointConnectionName - The private endpoint connection name. This must be unique within the account. @@ -165,7 +165,7 @@ func (client *PrivateEndpointConnectionClient) getCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -182,7 +182,7 @@ func (client *PrivateEndpointConnectionClient) getHandleResponse(resp *http.Resp // NewListByBatchAccountPager - Lists all of the private endpoint connections in the specified account. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - PrivateEndpointConnectionClientListByBatchAccountOptions contains the optional parameters for the PrivateEndpointConnectionClient.NewListByBatchAccountPager @@ -235,7 +235,7 @@ func (client *PrivateEndpointConnectionClient) listByBatchAccountCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") if options != nil && options.Maxresults != nil { reqQP.Set("maxresults", strconv.FormatInt(int64(*options.Maxresults), 10)) } @@ -256,7 +256,7 @@ func (client *PrivateEndpointConnectionClient) listByBatchAccountHandleResponse( // BeginUpdate - Updates the properties of an existing private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - privateEndpointConnectionName - The private endpoint connection name. This must be unique within the account. @@ -281,7 +281,7 @@ func (client *PrivateEndpointConnectionClient) BeginUpdate(ctx context.Context, // Update - Updates the properties of an existing private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 func (client *PrivateEndpointConnectionClient) update(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, accountName, privateEndpointConnectionName, parameters, options) if err != nil { @@ -321,7 +321,7 @@ func (client *PrivateEndpointConnectionClient) updateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} diff --git a/sdk/resourcemanager/batch/armbatch/privateendpointconnection_client_example_test.go b/sdk/resourcemanager/batch/armbatch/privateendpointconnection_client_example_test.go index 2543a4c11144..36d7a7c417ae 100644 --- a/sdk/resourcemanager/batch/armbatch/privateendpointconnection_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/privateendpointconnection_client_example_test.go @@ -15,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PrivateEndpointConnectionsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PrivateEndpointConnectionsList.json func ExamplePrivateEndpointConnectionClient_NewListByBatchAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -63,7 +63,7 @@ func ExamplePrivateEndpointConnectionClient_NewListByBatchAccountPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PrivateEndpointConnectionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PrivateEndpointConnectionGet.json func ExamplePrivateEndpointConnectionClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -100,7 +100,7 @@ func ExamplePrivateEndpointConnectionClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PrivateEndpointConnectionUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PrivateEndpointConnectionUpdate.json func ExamplePrivateEndpointConnectionClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -149,7 +149,7 @@ func ExamplePrivateEndpointConnectionClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PrivateEndpointConnectionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PrivateEndpointConnectionDelete.json func ExamplePrivateEndpointConnectionClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/batch/armbatch/privatelinkresource_client.go b/sdk/resourcemanager/batch/armbatch/privatelinkresource_client.go index ae6cb1f6a99a..7f319fce521e 100644 --- a/sdk/resourcemanager/batch/armbatch/privatelinkresource_client.go +++ b/sdk/resourcemanager/batch/armbatch/privatelinkresource_client.go @@ -48,7 +48,7 @@ func NewPrivateLinkResourceClient(subscriptionID string, credential azcore.Token // Get - Gets information about the specified private link resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - privateLinkResourceName - The private link resource name. This must be unique within the account. @@ -92,7 +92,7 @@ func (client *PrivateLinkResourceClient) getCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -109,7 +109,7 @@ func (client *PrivateLinkResourceClient) getHandleResponse(resp *http.Response) // NewListByBatchAccountPager - Lists all of the private link resources in the specified account. // -// Generated from API version 2022-10-01 +// Generated from API version 2023-05-01 // - resourceGroupName - The name of the resource group that contains the Batch account. // - accountName - The name of the Batch account. // - options - PrivateLinkResourceClientListByBatchAccountOptions contains the optional parameters for the PrivateLinkResourceClient.NewListByBatchAccountPager @@ -162,7 +162,7 @@ func (client *PrivateLinkResourceClient) listByBatchAccountCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2023-05-01") if options != nil && options.Maxresults != nil { reqQP.Set("maxresults", strconv.FormatInt(int64(*options.Maxresults), 10)) } diff --git a/sdk/resourcemanager/batch/armbatch/privatelinkresource_client_example_test.go b/sdk/resourcemanager/batch/armbatch/privatelinkresource_client_example_test.go index 6e8b65291449..b12cec365945 100644 --- a/sdk/resourcemanager/batch/armbatch/privatelinkresource_client_example_test.go +++ b/sdk/resourcemanager/batch/armbatch/privatelinkresource_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PrivateLinkResourcesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PrivateLinkResourcesList.json func ExamplePrivateLinkResourceClient_NewListByBatchAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -57,7 +57,7 @@ func ExamplePrivateLinkResourceClient_NewListByBatchAccountPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PrivateLinkResourceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/310a0100f5b020c1900c527a6aa70d21992f078a/specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PrivateLinkResourceGet.json func ExamplePrivateLinkResourceClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {