Skip to content

Commit ecc2622

Browse files
authored
storagecache-track1 (Azure#18091)
* storagecache-track1 * update
1 parent 82223de commit ecc2622

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

sdk/storagecache/arm-storagecache/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-storagecache",
33
"author": "Microsoft Corporation",
44
"description": "StorageCacheManagementClient Library with typescript type definitions for node.js and browser.",
5-
"version": "4.2.0",
5+
"version": "4.3.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.1.0",
88
"@azure/ms-rest-js": "^2.2.0",

sdk/storagecache/arm-storagecache/src/models/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,11 @@ export interface StorageTarget extends StorageTargetResource {
852852
* **NOTE: This property will not be serialized. It can only be populated by the server.**
853853
*/
854854
readonly provisioningState?: ProvisioningStateType;
855+
/**
856+
* Storage target operational state. Possible values include: 'Ready', 'Busy', 'Suspended',
857+
* 'Flushing'
858+
*/
859+
state?: OperationalStateType;
855860
/**
856861
* Properties when targetType is nfs3.
857862
*/
@@ -1227,6 +1232,14 @@ export type UsernameDownloadedType = 'Yes' | 'No' | 'Error';
12271232
*/
12281233
export type StorageTargetType = 'nfs3' | 'clfs' | 'unknown' | 'blobNfs';
12291234

1235+
/**
1236+
* Defines values for OperationalStateType.
1237+
* Possible values include: 'Ready', 'Busy', 'Suspended', 'Flushing'
1238+
* @readonly
1239+
* @enum {string}
1240+
*/
1241+
export type OperationalStateType = 'Ready' | 'Busy' | 'Suspended' | 'Flushing';
1242+
12301243
/**
12311244
* Defines values for ReasonCode.
12321245
* Possible values include: 'QuotaId', 'NotAvailableForSubscription'

sdk/storagecache/arm-storagecache/src/models/mappers.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,12 @@ export const StorageTarget: msRest.CompositeMapper = {
13631363
name: "String"
13641364
}
13651365
},
1366+
state: {
1367+
serializedName: "properties.state",
1368+
type: {
1369+
name: "String"
1370+
}
1371+
},
13661372
nfs3: {
13671373
serializedName: "properties.nfs3",
13681374
type: {

sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
1313
import { TokenCredential } from "@azure/core-auth";
1414

1515
const packageName = "@azure/arm-storagecache";
16-
const packageVersion = "4.2.0";
16+
const packageVersion = "4.3.0";
1717

1818
export class StorageCacheManagementClientContext extends msRestAzure.AzureServiceClient {
1919
credentials: msRest.ServiceClientCredentials | TokenCredential;
@@ -50,7 +50,7 @@ export class StorageCacheManagementClientContext extends msRestAzure.AzureServic
5050

5151
super(credentials, options);
5252

53-
this.apiVersion = '2021-05-01';
53+
this.apiVersion = '2021-09-01';
5454
this.acceptLanguage = 'en-US';
5555
this.longRunningOperationRetryTimeout = 30;
5656
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

0 commit comments

Comments
 (0)