From b73547b303e3a8e7d395ad7b4d8378de1e52f226 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 8 Oct 2021 01:55:18 +0000 Subject: [PATCH] CodeGen from PR 16313 in Azure/azure-rest-api-specs Merge 8c75e75890e2213e5be5671841033a2253a1b463 into 23b8c3e5ecc0a90bc89f93517d7f45ca0b6881d5 --- sdk/storagecache/arm-storagecache/package.json | 2 +- .../arm-storagecache/src/models/index.ts | 13 +++++++++++++ .../arm-storagecache/src/models/mappers.ts | 6 ++++++ .../src/storageCacheManagementClientContext.ts | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/sdk/storagecache/arm-storagecache/package.json b/sdk/storagecache/arm-storagecache/package.json index 800d2b9a2f19..d09a41e986bb 100644 --- a/sdk/storagecache/arm-storagecache/package.json +++ b/sdk/storagecache/arm-storagecache/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/storagecache/arm-storagecache", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storagecache/arm-storagecache", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/storagecache/arm-storagecache/src/models/index.ts b/sdk/storagecache/arm-storagecache/src/models/index.ts index 826d0be5cc5f..211ab0a67013 100644 --- a/sdk/storagecache/arm-storagecache/src/models/index.ts +++ b/sdk/storagecache/arm-storagecache/src/models/index.ts @@ -852,6 +852,11 @@ export interface StorageTarget extends StorageTargetResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningStateType; + /** + * Storage target operational state. Possible values include: 'Ready', 'Busy', 'Suspended', + * 'Flushing' + */ + state?: OperationalStateType; /** * Properties when targetType is nfs3. */ @@ -1227,6 +1232,14 @@ export type UsernameDownloadedType = 'Yes' | 'No' | 'Error'; */ export type StorageTargetType = 'nfs3' | 'clfs' | 'unknown' | 'blobNfs'; +/** + * Defines values for OperationalStateType. + * Possible values include: 'Ready', 'Busy', 'Suspended', 'Flushing' + * @readonly + * @enum {string} + */ +export type OperationalStateType = 'Ready' | 'Busy' | 'Suspended' | 'Flushing'; + /** * Defines values for ReasonCode. * Possible values include: 'QuotaId', 'NotAvailableForSubscription' diff --git a/sdk/storagecache/arm-storagecache/src/models/mappers.ts b/sdk/storagecache/arm-storagecache/src/models/mappers.ts index af565dfda169..ece5274d329d 100644 --- a/sdk/storagecache/arm-storagecache/src/models/mappers.ts +++ b/sdk/storagecache/arm-storagecache/src/models/mappers.ts @@ -1363,6 +1363,12 @@ export const StorageTarget: msRest.CompositeMapper = { name: "String" } }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, nfs3: { serializedName: "properties.nfs3", type: { diff --git a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts index 0820e09d24b3..5534edb4bcbe 100644 --- a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts +++ b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts @@ -50,7 +50,7 @@ export class StorageCacheManagementClientContext extends msRestAzure.AzureServic super(credentials, options); - this.apiVersion = '2021-05-01'; + this.apiVersion = '2021-09-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";