diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/CHANGELOG.md b/sdk/resourcemanager/recoveryservices/armrecoveryservices/CHANGELOG.md index 87dcdc194451..a02af6d6315d 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/CHANGELOG.md +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/CHANGELOG.md @@ -1,5 +1,14 @@ # Release History +## 1.4.0 (2023-06-23) +### Features Added + +- New enum type `CrossSubscriptionRestoreState` with values `CrossSubscriptionRestoreStateDisabled`, `CrossSubscriptionRestoreStateEnabled`, `CrossSubscriptionRestoreStatePermanentlyDisabled` +- New struct `CrossSubscriptionRestoreSettings` +- New struct `RestoreSettings` +- New field `RestoreSettings` in struct `VaultProperties` + + ## 1.3.1 (2023-04-14) ### Bug Fixes diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/assets.json b/sdk/resourcemanager/recoveryservices/armrecoveryservices/assets.json index e54eb8a05685..6ac94648a6f0 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/assets.json +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/recoveryservices/armrecoveryservices", - "Tag": "go/resourcemanager/recoveryservices/armrecoveryservices_c683d115b6" + "Tag": "go/resourcemanager/recoveryservices/armrecoveryservices_ee4ef72bd6" } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/autorest.md b/sdk/resourcemanager/recoveryservices/armrecoveryservices/autorest.md index 45df03cea848..abe7446e7f41 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/autorest.md +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.3.1 +module-version: 1.4.0 directive: - from: vaults.json where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationStatus/{operationId}"].get' @@ -18,4 +18,5 @@ directive: where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationResults/{operationId}"].get' transform: > $["operationId"] = "Operations_GetOperationResult" +tag: package-2023-02 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/client.go index 8a0a27dee7d7..10ee4bb3a254 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/client.go @@ -47,7 +47,7 @@ func NewClient(subscriptionID string, credential azcore.TokenCredential, options // Capabilities - API to get details about capabilities provided by Microsoft.RecoveryServices RP // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - location - Location of the resource // - input - Contains information about Resource type and properties to get capabilities // - options - ClientCapabilitiesOptions contains the optional parameters for the Client.Capabilities method. @@ -82,7 +82,7 @@ func (client *Client) capabilitiesCreateRequest(ctx context.Context, location st return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, input) @@ -102,7 +102,7 @@ func (client *Client) capabilitiesHandleResponse(resp *http.Response) (ClientCap // these must be GC'd and their time of deletion be more than 24 Hours Ago // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - location - Location of the resource // - input - Contains information about Resource type and Resource name @@ -142,7 +142,7 @@ func (client *Client) checkNameAvailabilityCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, input) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/client_example_test.go index 096d9b4eca40..c39c99a162c0 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/CheckNameAvailability_Available.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/CheckNameAvailability_Available.json func ExampleClient_CheckNameAvailability_availabilityStatusOfResourceNameWhenNoResourceWithSameNameTypeAndSubscriptionExistsNorHasBeenDeletedWithinLast24Hours() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -44,7 +44,7 @@ func ExampleClient_CheckNameAvailability_availabilityStatusOfResourceNameWhenNoR // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/CheckNameAvailability_NotAvailable.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/CheckNameAvailability_NotAvailable.json func ExampleClient_CheckNameAvailability_availabilityStatusOfResourceNameWhenResourceWithSameNameTypeAndSubscriptionExists() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -72,7 +72,7 @@ func ExampleClient_CheckNameAvailability_availabilityStatusOfResourceNameWhenRes // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Capabilities.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Capabilities.json func ExampleClient_Capabilities() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/constants.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/constants.go index bb464089c051..c4e3b507d297 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/constants.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/constants.go @@ -11,7 +11,7 @@ package armrecoveryservices const ( moduleName = "armrecoveryservices" - moduleVersion = "v1.3.1" + moduleVersion = "v1.4.0" ) type AlertsState string @@ -105,6 +105,23 @@ func PossibleCrossRegionRestoreValues() []CrossRegionRestore { } } +type CrossSubscriptionRestoreState string + +const ( + CrossSubscriptionRestoreStateDisabled CrossSubscriptionRestoreState = "Disabled" + CrossSubscriptionRestoreStateEnabled CrossSubscriptionRestoreState = "Enabled" + CrossSubscriptionRestoreStatePermanentlyDisabled CrossSubscriptionRestoreState = "PermanentlyDisabled" +) + +// PossibleCrossSubscriptionRestoreStateValues returns the possible values for the CrossSubscriptionRestoreState const type. +func PossibleCrossSubscriptionRestoreStateValues() []CrossSubscriptionRestoreState { + return []CrossSubscriptionRestoreState{ + CrossSubscriptionRestoreStateDisabled, + CrossSubscriptionRestoreStateEnabled, + CrossSubscriptionRestoreStatePermanentlyDisabled, + } +} + type ImmutabilityState string const ( diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/models.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/models.go index 8a3c7cbf53ec..74c84a35df8c 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/models.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/models.go @@ -151,6 +151,11 @@ type CmkKeyVaultProperties struct { KeyURI *string } +// CrossSubscriptionRestoreSettings - Settings for Cross Subscription Restore Settings +type CrossSubscriptionRestoreSettings struct { + CrossSubscriptionRestoreState *CrossSubscriptionRestoreState +} + // DNSZone information type DNSZone struct { // Subresource type for vault AzureBackup, AzureBackup_secondary or AzureSiteRecovery @@ -697,6 +702,12 @@ func (r *ResourceCertificateDetails) GetResourceCertificateDetails() *ResourceCe return r } +// RestoreSettings - Restore Settings of the vault +type RestoreSettings struct { + // Settings for CrossSubscriptionRestore + CrossSubscriptionRestoreSettings *CrossSubscriptionRestoreSettings +} + // SKU - Identifies the unique system identifier for each Azure resource. type SKU struct { // REQUIRED; Name of SKU is RS0 (Recovery Services 0th version) and the tier is standard tier. They do not have affect on @@ -937,6 +948,9 @@ type VaultProperties struct { // The redundancy Settings of a Vault RedundancySettings *VaultPropertiesRedundancySettings + // Restore Settings of the vault + RestoreSettings *RestoreSettings + // Security Settings of the vault SecuritySettings *SecuritySettings diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/models_serde.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/models_serde.go index c8071d722e11..bfdcfe85fca7 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/models_serde.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/models_serde.go @@ -505,6 +505,33 @@ func (c *CmkKeyVaultProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CrossSubscriptionRestoreSettings. +func (c CrossSubscriptionRestoreSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "crossSubscriptionRestoreState", c.CrossSubscriptionRestoreState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CrossSubscriptionRestoreSettings. +func (c *CrossSubscriptionRestoreSettings) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "crossSubscriptionRestoreState": + err = unpopulate(val, "CrossSubscriptionRestoreState", &c.CrossSubscriptionRestoreState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DNSZone. func (d DNSZone) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -1668,6 +1695,33 @@ func (r *ResourceCertificateDetails) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RestoreSettings. +func (r RestoreSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "crossSubscriptionRestoreSettings", r.CrossSubscriptionRestoreSettings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestoreSettings. +func (r *RestoreSettings) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "crossSubscriptionRestoreSettings": + err = unpopulate(val, "CrossSubscriptionRestoreSettings", &r.CrossSubscriptionRestoreSettings) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SKU. func (s SKU) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -2151,6 +2205,7 @@ func (v VaultProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "provisioningState", v.ProvisioningState) populate(objectMap, "publicNetworkAccess", v.PublicNetworkAccess) populate(objectMap, "redundancySettings", v.RedundancySettings) + populate(objectMap, "restoreSettings", v.RestoreSettings) populate(objectMap, "securitySettings", v.SecuritySettings) populate(objectMap, "upgradeDetails", v.UpgradeDetails) return json.Marshal(objectMap) @@ -2198,6 +2253,9 @@ func (v *VaultProperties) UnmarshalJSON(data []byte) error { case "redundancySettings": err = unpopulate(val, "RedundancySettings", &v.RedundancySettings) delete(rawMsg, key) + case "restoreSettings": + err = unpopulate(val, "RestoreSettings", &v.RestoreSettings) + delete(rawMsg, key) case "securitySettings": err = unpopulate(val, "SecuritySettings", &v.SecuritySettings) delete(rawMsg, key) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client.go index 2d908d0686d4..08817e7ad9b3 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client.go @@ -47,7 +47,7 @@ func NewOperationsClient(subscriptionID string, credential azcore.TokenCredentia // GetOperationResult - Gets the operation result for a resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - OperationsClientGetOperationResultOptions contains the optional parameters for the OperationsClient.GetOperationResult @@ -91,7 +91,7 @@ func (client *OperationsClient) getOperationResultCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -108,7 +108,7 @@ func (client *OperationsClient) getOperationResultHandleResponse(resp *http.Resp // NewListPager - Returns the list of available operations. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-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]{ @@ -146,7 +146,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -164,7 +164,7 @@ func (client *OperationsClient) listHandleResponse(resp *http.Response) (Operati // OperationStatusGet - Gets the operation status for a resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - OperationsClientOperationStatusGetOptions contains the optional parameters for the OperationsClient.OperationStatusGet @@ -208,7 +208,7 @@ func (client *OperationsClient) operationStatusGetCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client_example_test.go index 110b8cbd4a21..c4cd23b6e4bd 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/ListOperations.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -495,7 +495,7 @@ func ExampleOperationsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GetOperationStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/GetOperationStatus.json func ExampleOperationsClient_OperationStatusGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -522,7 +522,7 @@ func ExampleOperationsClient_OperationStatusGet() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GetOperationResult.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/GetOperationResult.json func ExampleOperationsClient_GetOperationResult() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client.go index 2e67bcc92f9c..2dabbc3a17ee 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client.go @@ -47,7 +47,7 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Returns a specified private link resource that need to be created for Backup and SiteRecovery // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get @@ -91,7 +91,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -108,7 +108,7 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) // NewListPager - Returns the list of private link resources that need to be created for Backup and SiteRecovery // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager @@ -161,7 +161,7 @@ func (client *PrivateLinkResourcesClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client_example_test.go index f73c3a81c914..e5206b0d8ce7 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/ListPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -85,7 +85,7 @@ func ExamplePrivateLinkResourcesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GetPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/GetPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client.go index 6f68b3fd152f..622e6eed591e 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client.go @@ -47,7 +47,7 @@ func NewRegisteredIdentitiesClient(subscriptionID string, credential azcore.Toke // Delete - Unregisters the given container from your Recovery Services vault. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - identityName - Name of the protection container to unregister. @@ -92,7 +92,7 @@ func (client *RegisteredIdentitiesClient) deleteCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client_example_test.go index 18dcfd8933b5..4ec6fa987518 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/DeleteRegisteredIdentities.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/DeleteRegisteredIdentities.json func ExampleRegisteredIdentitiesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client.go index d22c7974f0b3..d49923d8173d 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client.go @@ -46,7 +46,7 @@ func NewReplicationUsagesClient(subscriptionID string, credential azcore.TokenCr // NewListPager - Fetches the replication usages of the vault. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - ReplicationUsagesClientListOptions contains the optional parameters for the ReplicationUsagesClient.NewListPager @@ -93,7 +93,7 @@ func (client *ReplicationUsagesClient) listCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client_example_test.go index 30961da28a25..b9ccb4afd7f1 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListReplicationUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/ListReplicationUsages.json func ExampleReplicationUsagesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client.go index 05b50461fbfb..97ab49f9cbcb 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client.go @@ -46,7 +46,7 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o // NewListByVaultsPager - Fetches the usages of the vault. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - UsagesClientListByVaultsOptions contains the optional parameters for the UsagesClient.NewListByVaultsPager method. @@ -92,7 +92,7 @@ func (client *UsagesClient) listByVaultsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client_example_test.go index e585989830d9..ee23516f463f 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/ListUsages.json func ExampleUsagesClient_NewListByVaultsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client.go index 5f4e73dd7c92..5c2b719ae295 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client.go @@ -47,7 +47,7 @@ func NewVaultCertificatesClient(subscriptionID string, credential azcore.TokenCr // Create - Uploads a certificate for a resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - certificateName - Certificate friendly name. @@ -93,7 +93,7 @@ func (client *VaultCertificatesClient) createCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, certificateRequest) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client_example_test.go index c023e7ca141e..28487dd66bce 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVaultCred.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PUTVaultCred.json func ExampleVaultCertificatesClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client.go index bbeb31b4fe53..9b27283cd466 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client.go @@ -47,7 +47,7 @@ func NewVaultExtendedInfoClient(subscriptionID string, credential azcore.TokenCr // CreateOrUpdate - Create vault extended info. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - resourceExtendedInfoDetails - Details of ResourceExtendedInfo @@ -88,7 +88,7 @@ func (client *VaultExtendedInfoClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, resourceExtendedInfoDetails) @@ -106,7 +106,7 @@ func (client *VaultExtendedInfoClient) createOrUpdateHandleResponse(resp *http.R // Get - Get the vault extended info. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - VaultExtendedInfoClientGetOptions contains the optional parameters for the VaultExtendedInfoClient.Get method. @@ -145,7 +145,7 @@ func (client *VaultExtendedInfoClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -163,7 +163,7 @@ func (client *VaultExtendedInfoClient) getHandleResponse(resp *http.Response) (V // Update - Update vault extended info. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - resourceExtendedInfoDetails - Details of ResourceExtendedInfo @@ -204,7 +204,7 @@ func (client *VaultExtendedInfoClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, resourceExtendedInfoDetails) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client_example_test.go index 9c703fda4160..7eb9d096c9d8 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GETVaultExtendedInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/GETVaultExtendedInfo.json func ExampleVaultExtendedInfoClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -47,7 +47,7 @@ func ExampleVaultExtendedInfoClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/UpdateVaultExtendedInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/UpdateVaultExtendedInfo.json func ExampleVaultExtendedInfoClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client.go index 5e32fe14a809..92cb0c3e2e86 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client.go @@ -47,7 +47,7 @@ func NewVaultsClient(subscriptionID string, credential azcore.TokenCredential, o // BeginCreateOrUpdate - Creates or updates a Recovery Services vault. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - vault - Recovery Services Vault to be created. @@ -68,7 +68,7 @@ func (client *VaultsClient) BeginCreateOrUpdate(ctx context.Context, resourceGro // CreateOrUpdate - Creates or updates a Recovery Services vault. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 func (client *VaultsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, vault Vault, options *VaultsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vaultName, vault, options) if err != nil { @@ -104,7 +104,7 @@ func (client *VaultsClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, vault) @@ -113,7 +113,7 @@ func (client *VaultsClient) createOrUpdateCreateRequest(ctx context.Context, res // Delete - Deletes a vault. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - VaultsClientDeleteOptions contains the optional parameters for the VaultsClient.Delete method. @@ -152,7 +152,7 @@ func (client *VaultsClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -161,7 +161,7 @@ func (client *VaultsClient) deleteCreateRequest(ctx context.Context, resourceGro // Get - Get the Vault details. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - options - VaultsClientGetOptions contains the optional parameters for the VaultsClient.Get method. @@ -200,7 +200,7 @@ func (client *VaultsClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -217,7 +217,7 @@ func (client *VaultsClient) getHandleResponse(resp *http.Response) (VaultsClient // NewListByResourceGroupPager - Retrieve a list of Vaults. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - VaultsClientListByResourceGroupOptions contains the optional parameters for the VaultsClient.NewListByResourceGroupPager // method. @@ -265,7 +265,7 @@ func (client *VaultsClient) listByResourceGroupCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -282,7 +282,7 @@ func (client *VaultsClient) listByResourceGroupHandleResponse(resp *http.Respons // NewListBySubscriptionIDPager - Fetches all the resources of the specified type in the subscription. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - options - VaultsClientListBySubscriptionIDOptions contains the optional parameters for the VaultsClient.NewListBySubscriptionIDPager // method. func (client *VaultsClient) NewListBySubscriptionIDPager(options *VaultsClientListBySubscriptionIDOptions) *runtime.Pager[VaultsClientListBySubscriptionIDResponse] { @@ -325,7 +325,7 @@ func (client *VaultsClient) listBySubscriptionIDCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -343,7 +343,7 @@ func (client *VaultsClient) listBySubscriptionIDHandleResponse(resp *http.Respon // BeginUpdate - Updates the vault. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - vaultName - The name of the recovery services vault. // - vault - Recovery Services Vault to be created. @@ -363,7 +363,7 @@ func (client *VaultsClient) BeginUpdate(ctx context.Context, resourceGroupName s // Update - Updates the vault. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2023-02-01 func (client *VaultsClient) update(ctx context.Context, resourceGroupName string, vaultName string, vault PatchVault, options *VaultsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, vaultName, vault, options) if err != nil { @@ -399,7 +399,7 @@ func (client *VaultsClient) updateCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2023-02-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, vault) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client_example_test.go index 6eff149f8b02..1686d59cc21c 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListBySubscriptionIds.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/ListBySubscriptionIds.json func ExampleVaultsClient_NewListBySubscriptionIDPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -94,7 +94,7 @@ func ExampleVaultsClient_NewListBySubscriptionIDPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/ListResources.json func ExampleVaultsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -170,7 +170,7 @@ func ExampleVaultsClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GETVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/GETVault.json func ExampleVaultsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -243,7 +243,7 @@ func ExampleVaultsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PUTVault.json func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateRecoveryServicesVault() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -301,7 +301,7 @@ func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateRecoveryServicesVault // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVault_WithMonitoringSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PUTVault_WithMonitoringSettings.json func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithMonitoringSetting() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -375,7 +375,7 @@ func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithMonitoringSe // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVault_WithCMK.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PUTVault_WithCMK.json func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithCustomerManagedKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -458,7 +458,7 @@ func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithCustomerMana // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVault_WithUserAssignedIdentity.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PUTVault_WithUserAssignedIdentity.json func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithUserAssignedIdentity() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -522,7 +522,7 @@ func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithUserAssigned // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/DeleteVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/DeleteVault.json func ExampleVaultsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -539,7 +539,7 @@ func ExampleVaultsClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PATCHVault.json func ExampleVaultsClient_BeginUpdate_updateResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -584,7 +584,7 @@ func ExampleVaultsClient_BeginUpdate_updateResource() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault_WithCMK.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PATCHVault_WithCMK.json func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -665,7 +665,7 @@ func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PatchVault_WithCMK2.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PatchVault_WithCMK2.json func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys2() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -738,7 +738,7 @@ func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys2() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault_WithCMK3.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PATCHVault_WithCMK3.json func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys3() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -815,7 +815,7 @@ func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys3() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault_WithUserAssignedIdentity.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PATCHVault_WithUserAssignedIdentity.json func ExampleVaultsClient_BeginUpdate_updateResourceWithUserAssignedIdentity() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -875,7 +875,7 @@ func ExampleVaultsClient_BeginUpdate_updateResourceWithUserAssignedIdentity() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault_WithMonitoringSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/PATCHVault_WithMonitoringSettings.json func ExampleVaultsClient_BeginUpdate_updateVaultWithMonitoringSetting() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {