From 6c782f29a90d3dfe3d71d75af3909ae265479d52 Mon Sep 17 00:00:00 2001 From: Alancere <804873052@qq.com> Date: Mon, 12 Jun 2023 13:47:35 +0800 Subject: [PATCH 1/2] [Release] sdk/resourcemanager/redis/armredis/2.3.0 generation from spec commit: 1b33e81bbdc28fcd6644a1315b8d7b1b6d030590 --- .../redis/armredis/CHANGELOG.md | 8 +++ .../armredis/asyncoperationstatus_client.go | 4 +- ...syncoperationstatus_client_example_test.go | 2 +- .../redis/armredis/autorest.md | 7 ++- sdk/resourcemanager/redis/armredis/client.go | 62 +++++++++---------- .../redis/armredis/client_example_test.go | 38 ++++++------ .../redis/armredis/constants.go | 2 +- .../redis/armredis/firewallrules_client.go | 16 ++--- .../firewallrules_client_example_test.go | 8 +-- .../redis/armredis/linkedserver_client.go | 20 +++--- .../linkedserver_client_example_test.go | 8 +-- sdk/resourcemanager/redis/armredis/models.go | 9 +++ .../redis/armredis/models_serde.go | 12 ++++ .../redis/armredis/operations_client.go | 4 +- .../operations_client_example_test.go | 2 +- .../redis/armredis/patchschedules_client.go | 16 ++--- .../patchschedules_client_example_test.go | 8 +-- .../privateendpointconnections_client.go | 18 +++--- ...endpointconnections_client_example_test.go | 8 +-- .../armredis/privatelinkresources_client.go | 4 +- ...rivatelinkresources_client_example_test.go | 2 +- 21 files changed, 145 insertions(+), 113 deletions(-) diff --git a/sdk/resourcemanager/redis/armredis/CHANGELOG.md b/sdk/resourcemanager/redis/armredis/CHANGELOG.md index 5ddeebc326e1..9aef6a1d435f 100644 --- a/sdk/resourcemanager/redis/armredis/CHANGELOG.md +++ b/sdk/resourcemanager/redis/armredis/CHANGELOG.md @@ -1,5 +1,13 @@ # Release History +## 2.3.0 (2023-06-23) +### Features Added + +- New field `StorageSubscriptionID` in struct `CommonPropertiesRedisConfiguration` +- New field `StorageSubscriptionID` in struct `ExportRDBParameters` +- New field `StorageSubscriptionID` in struct `ImportRDBParameters` + + ## 2.2.1 (2023-04-14) ### Bug Fixes diff --git a/sdk/resourcemanager/redis/armredis/asyncoperationstatus_client.go b/sdk/resourcemanager/redis/armredis/asyncoperationstatus_client.go index 2c2f89c0fe68..8442771e63b0 100644 --- a/sdk/resourcemanager/redis/armredis/asyncoperationstatus_client.go +++ b/sdk/resourcemanager/redis/armredis/asyncoperationstatus_client.go @@ -48,7 +48,7 @@ func NewAsyncOperationStatusClient(subscriptionID string, credential azcore.Toke // Get - For checking the ongoing status of an operation // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - location - The location at which operation was triggered // - operationID - The ID of asynchronous operation // - options - AsyncOperationStatusClientGetOptions contains the optional parameters for the AsyncOperationStatusClient.Get @@ -88,7 +88,7 @@ func (client *AsyncOperationStatusClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/redis/armredis/asyncoperationstatus_client_example_test.go b/sdk/resourcemanager/redis/armredis/asyncoperationstatus_client_example_test.go index f2fed4e56b92..0f91f23e3a8b 100644 --- a/sdk/resourcemanager/redis/armredis/asyncoperationstatus_client_example_test.go +++ b/sdk/resourcemanager/redis/armredis/asyncoperationstatus_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheAsyncOperationStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheAsyncOperationStatus.json func ExampleAsyncOperationStatusClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/redis/armredis/autorest.md b/sdk/resourcemanager/redis/armredis/autorest.md index db808813f5cd..8ff83810890d 100644 --- a/sdk/resourcemanager/redis/armredis/autorest.md +++ b/sdk/resourcemanager/redis/armredis/autorest.md @@ -5,8 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.2.1 +module-version: 2.3.0 +tag: package-2023-04 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/redis/armredis/client.go b/sdk/resourcemanager/redis/armredis/client.go index 647ae2cbc57a..0c6b380dea3c 100644 --- a/sdk/resourcemanager/redis/armredis/client.go +++ b/sdk/resourcemanager/redis/armredis/client.go @@ -49,7 +49,7 @@ func NewClient(subscriptionID string, credential azcore.TokenCredential, options // CheckNameAvailability - Checks that the redis cache name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - parameters - Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource type is 'Microsoft.Cache/redis' // - options - ClientCheckNameAvailabilityOptions contains the optional parameters for the Client.CheckNameAvailability method. func (client *Client) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityParameters, options *ClientCheckNameAvailabilityOptions) (ClientCheckNameAvailabilityResponse, error) { @@ -79,7 +79,7 @@ func (client *Client) checkNameAvailabilityCreateRequest(ctx context.Context, pa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -88,7 +88,7 @@ func (client *Client) checkNameAvailabilityCreateRequest(ctx context.Context, pa // BeginCreate - Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - parameters - Parameters supplied to the Create Redis operation. @@ -108,7 +108,7 @@ func (client *Client) BeginCreate(ctx context.Context, resourceGroupName string, // Create - Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 func (client *Client) create(ctx context.Context, resourceGroupName string, name string, parameters CreateParameters, options *ClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, name, parameters, options) if err != nil { @@ -144,7 +144,7 @@ func (client *Client) createCreateRequest(ctx context.Context, resourceGroupName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -153,7 +153,7 @@ func (client *Client) createCreateRequest(ctx context.Context, resourceGroupName // BeginDelete - Deletes a Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - options - ClientBeginDeleteOptions contains the optional parameters for the Client.BeginDelete method. @@ -172,7 +172,7 @@ func (client *Client) BeginDelete(ctx context.Context, resourceGroupName string, // Delete - Deletes a Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 func (client *Client) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *ClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -208,7 +208,7 @@ func (client *Client) deleteCreateRequest(ctx context.Context, resourceGroupName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -217,7 +217,7 @@ func (client *Client) deleteCreateRequest(ctx context.Context, resourceGroupName // BeginExportData - Export data from the redis cache to blobs in a container. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - parameters - Parameters for Redis export operation. @@ -237,7 +237,7 @@ func (client *Client) BeginExportData(ctx context.Context, resourceGroupName str // ExportData - Export data from the redis cache to blobs in a container. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 func (client *Client) exportData(ctx context.Context, resourceGroupName string, name string, parameters ExportRDBParameters, options *ClientBeginExportDataOptions) (*http.Response, error) { req, err := client.exportDataCreateRequest(ctx, resourceGroupName, name, parameters, options) if err != nil { @@ -273,7 +273,7 @@ func (client *Client) exportDataCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -283,7 +283,7 @@ func (client *Client) exportDataCreateRequest(ctx context.Context, resourceGroup // be potential data loss. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - parameters - Specifies which Redis node(s) to reboot. @@ -323,7 +323,7 @@ func (client *Client) forceRebootCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -341,7 +341,7 @@ func (client *Client) forceRebootHandleResponse(resp *http.Response) (ClientForc // Get - Gets a Redis cache (resource description). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - options - ClientGetOptions contains the optional parameters for the Client.Get method. @@ -380,7 +380,7 @@ func (client *Client) getCreateRequest(ctx context.Context, resourceGroupName st return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -398,7 +398,7 @@ func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, // BeginImportData - Import data into Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - parameters - Parameters for Redis import operation. @@ -418,7 +418,7 @@ func (client *Client) BeginImportData(ctx context.Context, resourceGroupName str // ImportData - Import data into Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 func (client *Client) importData(ctx context.Context, resourceGroupName string, name string, parameters ImportRDBParameters, options *ClientBeginImportDataOptions) (*http.Response, error) { req, err := client.importDataCreateRequest(ctx, resourceGroupName, name, parameters, options) if err != nil { @@ -454,7 +454,7 @@ func (client *Client) importDataCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -462,7 +462,7 @@ func (client *Client) importDataCreateRequest(ctx context.Context, resourceGroup // NewListByResourceGroupPager - Lists all Redis caches in a resource group. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - options - ClientListByResourceGroupOptions contains the optional parameters for the Client.NewListByResourceGroupPager // method. @@ -510,7 +510,7 @@ func (client *Client) listByResourceGroupCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -527,7 +527,7 @@ func (client *Client) listByResourceGroupHandleResponse(resp *http.Response) (Cl // NewListBySubscriptionPager - Gets all Redis caches in the specified subscription. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - options - ClientListBySubscriptionOptions contains the optional parameters for the Client.NewListBySubscriptionPager method. func (client *Client) NewListBySubscriptionPager(options *ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[ClientListBySubscriptionResponse]{ @@ -569,7 +569,7 @@ func (client *Client) listBySubscriptionCreateRequest(ctx context.Context, optio return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -587,7 +587,7 @@ func (client *Client) listBySubscriptionHandleResponse(resp *http.Response) (Cli // ListKeys - Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - options - ClientListKeysOptions contains the optional parameters for the Client.ListKeys method. @@ -626,7 +626,7 @@ func (client *Client) listKeysCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -643,7 +643,7 @@ func (client *Client) listKeysHandleResponse(resp *http.Response) (ClientListKey // NewListUpgradeNotificationsPager - Gets any upgrade notifications for a Redis cache. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - history - how many minutes in past to look for upgrade notifications @@ -697,7 +697,7 @@ func (client *Client) listUpgradeNotificationsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") reqQP.Set("history", strconv.FormatFloat(history, 'f', -1, 64)) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -716,7 +716,7 @@ func (client *Client) listUpgradeNotificationsHandleResponse(resp *http.Response // RegenerateKey - Regenerate Redis cache's access keys. This operation requires write permission to the cache resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - parameters - Specifies which key to regenerate. @@ -756,7 +756,7 @@ func (client *Client) regenerateKeyCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -774,7 +774,7 @@ func (client *Client) regenerateKeyHandleResponse(resp *http.Response) (ClientRe // BeginUpdate - Update an existing Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - parameters - Parameters supplied to the Update Redis operation. @@ -794,7 +794,7 @@ func (client *Client) BeginUpdate(ctx context.Context, resourceGroupName string, // Update - Update an existing Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 func (client *Client) update(ctx context.Context, resourceGroupName string, name string, parameters UpdateParameters, options *ClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, name, parameters, options) if err != nil { @@ -830,7 +830,7 @@ func (client *Client) updateCreateRequest(ctx context.Context, resourceGroupName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-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/redis/armredis/client_example_test.go b/sdk/resourcemanager/redis/armredis/client_example_test.go index e0d2a1d8946f..eeeaee00e3da 100644 --- a/sdk/resourcemanager/redis/armredis/client_example_test.go +++ b/sdk/resourcemanager/redis/armredis/client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheCheckNameAvailability.json func ExampleClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -38,7 +38,7 @@ func ExampleClient_CheckNameAvailability() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheListUpgradeNotifications.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheListUpgradeNotifications.json func ExampleClient_NewListUpgradeNotificationsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -72,7 +72,7 @@ func ExampleClient_NewListUpgradeNotificationsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheCreate.json func ExampleClient_BeginCreate_redisCacheCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -201,7 +201,7 @@ func ExampleClient_BeginCreate_redisCacheCreate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheCreateDefaultVersion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheCreateDefaultVersion.json func ExampleClient_BeginCreate_redisCacheCreateDefaultVersion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -329,7 +329,7 @@ func ExampleClient_BeginCreate_redisCacheCreateDefaultVersion() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheCreateLatestVersion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheCreateLatestVersion.json func ExampleClient_BeginCreate_redisCacheCreateLatestVersion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -458,7 +458,7 @@ func ExampleClient_BeginCreate_redisCacheCreateLatestVersion() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheUpdate.json func ExampleClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -538,7 +538,7 @@ func ExampleClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheDelete.json func ExampleClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -559,7 +559,7 @@ func ExampleClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheGet.json func ExampleClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -642,7 +642,7 @@ func ExampleClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheListByResourceGroup.json func ExampleClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -693,7 +693,7 @@ func ExampleClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheList.json func ExampleClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -765,7 +765,7 @@ func ExampleClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheListKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheListKeys.json func ExampleClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -789,7 +789,7 @@ func ExampleClient_ListKeys() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheRegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheRegenerateKey.json func ExampleClient_RegenerateKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -815,7 +815,7 @@ func ExampleClient_RegenerateKey() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheForceReboot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheForceReboot.json func ExampleClient_ForceReboot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -844,7 +844,7 @@ func ExampleClient_ForceReboot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheImport.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheImport.json func ExampleClient_BeginImportData() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -859,6 +859,7 @@ func ExampleClient_BeginImportData() { Format: to.Ptr("RDB"), Files: []*string{ to.Ptr("http://fileuris.contoso.com/pathtofile1")}, + StorageSubscriptionID: to.Ptr("storageSubId"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) @@ -869,7 +870,7 @@ func ExampleClient_BeginImportData() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheExport.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheExport.json func ExampleClient_BeginExportData() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -881,9 +882,10 @@ func ExampleClient_BeginExportData() { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewClient().BeginExportData(ctx, "rg1", "cache1", armredis.ExportRDBParameters{ - Format: to.Ptr("RDB"), - Container: to.Ptr("https://contosostorage.blob.core.window.net/urltoBlobContainer?sasKeyParameters"), - Prefix: to.Ptr("datadump1"), + Format: to.Ptr("RDB"), + Container: to.Ptr("https://contosostorage.blob.core.window.net/urltoBlobContainer?sasKeyParameters"), + Prefix: to.Ptr("datadump1"), + StorageSubscriptionID: to.Ptr("storageSubId"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) diff --git a/sdk/resourcemanager/redis/armredis/constants.go b/sdk/resourcemanager/redis/armredis/constants.go index 4e9957162fc4..d81e3fed2ad3 100644 --- a/sdk/resourcemanager/redis/armredis/constants.go +++ b/sdk/resourcemanager/redis/armredis/constants.go @@ -11,7 +11,7 @@ package armredis const ( moduleName = "armredis" - moduleVersion = "v2.2.1" + moduleVersion = "v2.3.0" ) // DayOfWeek - Day of the week when a cache can be patched. diff --git a/sdk/resourcemanager/redis/armredis/firewallrules_client.go b/sdk/resourcemanager/redis/armredis/firewallrules_client.go index 8d9dd37ed02a..153c1d432fb5 100644 --- a/sdk/resourcemanager/redis/armredis/firewallrules_client.go +++ b/sdk/resourcemanager/redis/armredis/firewallrules_client.go @@ -48,7 +48,7 @@ func NewFirewallRulesClient(subscriptionID string, credential azcore.TokenCreden // CreateOrUpdate - Create or update a redis cache firewall rule // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - ruleName - The name of the firewall rule. @@ -94,7 +94,7 @@ func (client *FirewallRulesClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -112,7 +112,7 @@ func (client *FirewallRulesClient) createOrUpdateHandleResponse(resp *http.Respo // Delete - Deletes a single firewall rule in a specified redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - ruleName - The name of the firewall rule. @@ -156,7 +156,7 @@ func (client *FirewallRulesClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -165,7 +165,7 @@ func (client *FirewallRulesClient) deleteCreateRequest(ctx context.Context, reso // Get - Gets a single firewall rule in a specified redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - ruleName - The name of the firewall rule. @@ -209,7 +209,7 @@ func (client *FirewallRulesClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *FirewallRulesClient) getHandleResponse(resp *http.Response) (Firew // NewListPager - Gets all firewall rules in the specified redis cache. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - options - FirewallRulesClientListOptions contains the optional parameters for the FirewallRulesClient.NewListPager method. @@ -278,7 +278,7 @@ func (client *FirewallRulesClient) listCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/redis/armredis/firewallrules_client_example_test.go b/sdk/resourcemanager/redis/armredis/firewallrules_client_example_test.go index 89bc4e2abf96..54e82b06528f 100644 --- a/sdk/resourcemanager/redis/armredis/firewallrules_client_example_test.go +++ b/sdk/resourcemanager/redis/armredis/firewallrules_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheFirewallRulesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheFirewallRulesList.json func ExampleFirewallRulesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -64,7 +64,7 @@ func ExampleFirewallRulesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheFirewallRuleCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheFirewallRuleCreate.json func ExampleFirewallRulesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -98,7 +98,7 @@ func ExampleFirewallRulesClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheFirewallRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheFirewallRuleGet.json func ExampleFirewallRulesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -127,7 +127,7 @@ func ExampleFirewallRulesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheFirewallRuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheFirewallRuleDelete.json func ExampleFirewallRulesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/redis/armredis/linkedserver_client.go b/sdk/resourcemanager/redis/armredis/linkedserver_client.go index c5e4c5accde0..239ace4cc4e3 100644 --- a/sdk/resourcemanager/redis/armredis/linkedserver_client.go +++ b/sdk/resourcemanager/redis/armredis/linkedserver_client.go @@ -48,7 +48,7 @@ func NewLinkedServerClient(subscriptionID string, credential azcore.TokenCredent // BeginCreate - Adds a linked server to the Redis cache (requires Premium SKU). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - linkedServerName - The name of the linked server that is being added to the Redis cache. @@ -70,7 +70,7 @@ func (client *LinkedServerClient) BeginCreate(ctx context.Context, resourceGroup // Create - Adds a linked server to the Redis cache (requires Premium SKU). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 func (client *LinkedServerClient) create(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters, options *LinkedServerClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, name, linkedServerName, parameters, options) if err != nil { @@ -110,7 +110,7 @@ func (client *LinkedServerClient) createCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-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 *LinkedServerClient) createCreateRequest(ctx context.Context, resou // BeginDelete - Deletes the linked server from a redis cache (requires Premium SKU). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the redis cache. // - linkedServerName - The name of the linked server that is being added to the Redis cache. @@ -140,7 +140,7 @@ func (client *LinkedServerClient) BeginDelete(ctx context.Context, resourceGroup // Delete - Deletes the linked server from a redis cache (requires Premium SKU). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 func (client *LinkedServerClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, linkedServerName string, options *LinkedServerClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, linkedServerName, options) if err != nil { @@ -180,7 +180,7 @@ func (client *LinkedServerClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -189,7 +189,7 @@ func (client *LinkedServerClient) deleteCreateRequest(ctx context.Context, resou // Get - Gets the detailed information about a linked server of a redis cache (requires Premium SKU). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the redis cache. // - linkedServerName - The name of the linked server. @@ -233,7 +233,7 @@ func (client *LinkedServerClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -250,7 +250,7 @@ func (client *LinkedServerClient) getHandleResponse(resp *http.Response) (Linked // NewListPager - Gets the list of linked servers associated with this redis cache (requires Premium SKU). // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the redis cache. // - options - LinkedServerClientListOptions contains the optional parameters for the LinkedServerClient.NewListPager method. @@ -302,7 +302,7 @@ func (client *LinkedServerClient) listCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/redis/armredis/linkedserver_client_example_test.go b/sdk/resourcemanager/redis/armredis/linkedserver_client_example_test.go index 6e81aa396dd3..35918814984f 100644 --- a/sdk/resourcemanager/redis/armredis/linkedserver_client_example_test.go +++ b/sdk/resourcemanager/redis/armredis/linkedserver_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheLinkedServer_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheLinkedServer_Create.json func ExampleLinkedServerClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -61,7 +61,7 @@ func ExampleLinkedServerClient_BeginCreate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheLinkedServer_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheLinkedServer_Delete.json func ExampleLinkedServerClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -82,7 +82,7 @@ func ExampleLinkedServerClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheLinkedServer_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheLinkedServer_Get.json func ExampleLinkedServerClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -115,7 +115,7 @@ func ExampleLinkedServerClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheLinkedServer_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheLinkedServer_List.json func ExampleLinkedServerClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/redis/armredis/models.go b/sdk/resourcemanager/redis/armredis/models.go index 317c2b7cb9bf..12a2f02b8391 100644 --- a/sdk/resourcemanager/redis/armredis/models.go +++ b/sdk/resourcemanager/redis/armredis/models.go @@ -152,6 +152,9 @@ type CommonPropertiesRedisConfiguration struct { // The storage account connection string for storing rdb file RdbStorageConnectionString *string + // SubscriptionId of the storage account for persistence (aof/rdb) using ManagedIdentity. + StorageSubscriptionID *string + // READ-ONLY; The max clients config Maxclients *string @@ -269,6 +272,9 @@ type ExportRDBParameters struct { // Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default // value is SAS PreferredDataArchiveAuthMethod *string + + // Subscription id of the storage container for data to be exported using ManagedIdentity. + StorageSubscriptionID *string } // FirewallRule - A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted @@ -342,6 +348,9 @@ type ImportRDBParameters struct { // Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default // value is SAS PreferredDataArchiveAuthMethod *string + + // Subscription id of the storage container containing files to import using Managed Identity. + StorageSubscriptionID *string } // InstanceDetails - Details of single instance of redis. diff --git a/sdk/resourcemanager/redis/armredis/models_serde.go b/sdk/resourcemanager/redis/armredis/models_serde.go index b7649c3ea6e4..8bf1ad0b2d4b 100644 --- a/sdk/resourcemanager/redis/armredis/models_serde.go +++ b/sdk/resourcemanager/redis/armredis/models_serde.go @@ -96,6 +96,7 @@ func (c CommonPropertiesRedisConfiguration) MarshalJSON() ([]byte, error) { populate(objectMap, "rdb-backup-frequency", c.RdbBackupFrequency) populate(objectMap, "rdb-backup-max-snapshot-count", c.RdbBackupMaxSnapshotCount) populate(objectMap, "rdb-storage-connection-string", c.RdbStorageConnectionString) + populate(objectMap, "storage-subscription-id", c.StorageSubscriptionID) populate(objectMap, "zonal-configuration", c.ZonalConfiguration) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -159,6 +160,9 @@ func (c *CommonPropertiesRedisConfiguration) UnmarshalJSON(data []byte) error { case "rdb-storage-connection-string": err = unpopulate(val, "RdbStorageConnectionString", &c.RdbStorageConnectionString) delete(rawMsg, key) + case "storage-subscription-id": + err = unpopulate(val, "StorageSubscriptionID", &c.StorageSubscriptionID) + delete(rawMsg, key) case "zonal-configuration": err = unpopulate(val, "ZonalConfiguration", &c.ZonalConfiguration) delete(rawMsg, key) @@ -375,6 +379,7 @@ func (e ExportRDBParameters) MarshalJSON() ([]byte, error) { populate(objectMap, "format", e.Format) populate(objectMap, "preferred-data-archive-auth-method", e.PreferredDataArchiveAuthMethod) populate(objectMap, "prefix", e.Prefix) + populate(objectMap, "storage-subscription-id", e.StorageSubscriptionID) return json.Marshal(objectMap) } @@ -399,6 +404,9 @@ func (e *ExportRDBParameters) UnmarshalJSON(data []byte) error { case "prefix": err = unpopulate(val, "Prefix", &e.Prefix) delete(rawMsg, key) + case "storage-subscription-id": + err = unpopulate(val, "StorageSubscriptionID", &e.StorageSubscriptionID) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", e, err) @@ -541,6 +549,7 @@ func (i ImportRDBParameters) MarshalJSON() ([]byte, error) { populate(objectMap, "files", i.Files) populate(objectMap, "format", i.Format) populate(objectMap, "preferred-data-archive-auth-method", i.PreferredDataArchiveAuthMethod) + populate(objectMap, "storage-subscription-id", i.StorageSubscriptionID) return json.Marshal(objectMap) } @@ -562,6 +571,9 @@ func (i *ImportRDBParameters) UnmarshalJSON(data []byte) error { case "preferred-data-archive-auth-method": err = unpopulate(val, "PreferredDataArchiveAuthMethod", &i.PreferredDataArchiveAuthMethod) delete(rawMsg, key) + case "storage-subscription-id": + err = unpopulate(val, "StorageSubscriptionID", &i.StorageSubscriptionID) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", i, err) diff --git a/sdk/resourcemanager/redis/armredis/operations_client.go b/sdk/resourcemanager/redis/armredis/operations_client.go index aa540529550d..71a190a4aa25 100644 --- a/sdk/resourcemanager/redis/armredis/operations_client.go +++ b/sdk/resourcemanager/redis/armredis/operations_client.go @@ -40,7 +40,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Lists all of the available REST API operations of the Microsoft.Cache provider. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-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-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/redis/armredis/operations_client_example_test.go b/sdk/resourcemanager/redis/armredis/operations_client_example_test.go index 8a9f7286e66a..6daab184fbd2 100644 --- a/sdk/resourcemanager/redis/armredis/operations_client_example_test.go +++ b/sdk/resourcemanager/redis/armredis/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheOperations.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/redis/armredis/patchschedules_client.go b/sdk/resourcemanager/redis/armredis/patchschedules_client.go index ba0c7c2e13cf..8778d15470ee 100644 --- a/sdk/resourcemanager/redis/armredis/patchschedules_client.go +++ b/sdk/resourcemanager/redis/armredis/patchschedules_client.go @@ -48,7 +48,7 @@ func NewPatchSchedulesClient(subscriptionID string, credential azcore.TokenCrede // CreateOrUpdate - Create or replace the patching schedule for Redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the Redis cache. // - defaultParam - Default string modeled as parameter for auto generation to work correctly. @@ -94,7 +94,7 @@ func (client *PatchSchedulesClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -112,7 +112,7 @@ func (client *PatchSchedulesClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Deletes the patching schedule of a redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the redis cache. // - defaultParam - Default string modeled as parameter for auto generation to work correctly. @@ -156,7 +156,7 @@ func (client *PatchSchedulesClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -165,7 +165,7 @@ func (client *PatchSchedulesClient) deleteCreateRequest(ctx context.Context, res // Get - Gets the patching schedule of a redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - name - The name of the redis cache. // - defaultParam - Default string modeled as parameter for auto generation to work correctly. @@ -209,7 +209,7 @@ func (client *PatchSchedulesClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *PatchSchedulesClient) getHandleResponse(resp *http.Response) (Patc // NewListByRedisResourcePager - Gets all patch schedules in the specified redis cache (there is only one). // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - options - PatchSchedulesClientListByRedisResourceOptions contains the optional parameters for the PatchSchedulesClient.NewListByRedisResourcePager @@ -279,7 +279,7 @@ func (client *PatchSchedulesClient) listByRedisResourceCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/redis/armredis/patchschedules_client_example_test.go b/sdk/resourcemanager/redis/armredis/patchschedules_client_example_test.go index 2e916085d581..aa407f144c03 100644 --- a/sdk/resourcemanager/redis/armredis/patchschedules_client_example_test.go +++ b/sdk/resourcemanager/redis/armredis/patchschedules_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCachePatchSchedulesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCachePatchSchedulesList.json func ExamplePatchSchedulesClient_NewListByRedisResourcePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -64,7 +64,7 @@ func ExamplePatchSchedulesClient_NewListByRedisResourcePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json func ExamplePatchSchedulesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -115,7 +115,7 @@ func ExamplePatchSchedulesClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCachePatchSchedulesDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCachePatchSchedulesDelete.json func ExamplePatchSchedulesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -132,7 +132,7 @@ func ExamplePatchSchedulesClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCachePatchSchedulesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCachePatchSchedulesGet.json func ExamplePatchSchedulesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/redis/armredis/privateendpointconnections_client.go b/sdk/resourcemanager/redis/armredis/privateendpointconnections_client.go index 69de99cc948b..59d5b96ed632 100644 --- a/sdk/resourcemanager/redis/armredis/privateendpointconnections_client.go +++ b/sdk/resourcemanager/redis/armredis/privateendpointconnections_client.go @@ -48,7 +48,7 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // Delete - Deletes the specified private endpoint connection associated with the redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -93,7 +93,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -102,7 +102,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets the specified private endpoint connection associated with the redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -147,7 +147,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -164,7 +164,7 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // NewListPager - List all the private endpoint connections associated with the redis cache. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager @@ -211,7 +211,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -229,7 +229,7 @@ func (client *PrivateEndpointConnectionsClient) listHandleResponse(resp *http.Re // BeginPut - Update the state of specified private endpoint connection associated with the redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -251,7 +251,7 @@ func (client *PrivateEndpointConnectionsClient) BeginPut(ctx context.Context, re // Put - Update the state of specified private endpoint connection associated with the redis cache. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 func (client *PrivateEndpointConnectionsClient) put(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginPutOptions) (*http.Response, error) { req, err := client.putCreateRequest(ctx, resourceGroupName, cacheName, privateEndpointConnectionName, properties, options) if err != nil { @@ -291,7 +291,7 @@ func (client *PrivateEndpointConnectionsClient) putCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, properties) diff --git a/sdk/resourcemanager/redis/armredis/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/redis/armredis/privateendpointconnections_client_example_test.go index 8ceb7f07fb3a..1b3bab1647c3 100644 --- a/sdk/resourcemanager/redis/armredis/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/redis/armredis/privateendpointconnections_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheListPrivateEndpointConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheListPrivateEndpointConnections.json func ExamplePrivateEndpointConnectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,7 +78,7 @@ func ExamplePrivateEndpointConnectionsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheGetPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheGetPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -114,7 +114,7 @@ func ExamplePrivateEndpointConnectionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCachePutPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCachePutPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_BeginPut() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -161,7 +161,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginPut() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheDeletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheDeletePrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/redis/armredis/privatelinkresources_client.go b/sdk/resourcemanager/redis/armredis/privatelinkresources_client.go index 6a0ce96008bd..196fdb6ace13 100644 --- a/sdk/resourcemanager/redis/armredis/privatelinkresources_client.go +++ b/sdk/resourcemanager/redis/armredis/privatelinkresources_client.go @@ -47,7 +47,7 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // NewListByRedisCachePager - Gets the private link resources that need to be created for a redis cache. // -// Generated from API version 2022-06-01 +// Generated from API version 2023-04-01 // - resourceGroupName - The name of the resource group. // - cacheName - The name of the Redis cache. // - options - PrivateLinkResourcesClientListByRedisCacheOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByRedisCachePager @@ -94,7 +94,7 @@ func (client *PrivateLinkResourcesClient) listByRedisCacheCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-06-01") + reqQP.Set("api-version", "2023-04-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/redis/armredis/privatelinkresources_client_example_test.go b/sdk/resourcemanager/redis/armredis/privatelinkresources_client_example_test.go index de5334b5e945..eab1c51d4279 100644 --- a/sdk/resourcemanager/redis/armredis/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/redis/armredis/privatelinkresources_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/065033d1c4087a2b009e71c0b3f0666718354ebd/specification/redis/resource-manager/Microsoft.Cache/stable/2022-06-01/examples/RedisCacheListPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1b33e81bbdc28fcd6644a1315b8d7b1b6d030590/specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheListPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_NewListByRedisCachePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { From 004301b2dded179554c81ba455f400028da819be Mon Sep 17 00:00:00 2001 From: Alancere <804873052@qq.com> Date: Mon, 12 Jun 2023 14:33:41 +0800 Subject: [PATCH 2/2] update assets --- sdk/resourcemanager/redis/armredis/assets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/resourcemanager/redis/armredis/assets.json b/sdk/resourcemanager/redis/armredis/assets.json index b474fbbe6283..3956a1f71549 100644 --- a/sdk/resourcemanager/redis/armredis/assets.json +++ b/sdk/resourcemanager/redis/armredis/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/redis/armredis", - "Tag": "go/resourcemanager/redis/armredis_8cd820752b" + "Tag": "go/resourcemanager/redis/armredis_694ca666e7" }