From b6672ca889051f32d1268d715fa7ef2c20f2e349 Mon Sep 17 00:00:00 2001 From: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> Date: Fri, 10 Jan 2020 14:28:59 +0800 Subject: [PATCH] package storagesync lik (#6897) --- sdk/storagesync/arm-storagesync/LICENSE.txt | 2 +- sdk/storagesync/arm-storagesync/README.md | 6 +- sdk/storagesync/arm-storagesync/package.json | 22 +- .../arm-storagesync/rollup.config.js | 2 +- .../src/models/cloudEndpointsMappers.ts | 11 +- .../arm-storagesync/src/models/index.ts | 247 +++++++++++++- .../arm-storagesync/src/models/mappers.ts | 319 +++++++++++++++++- .../operationStatusOperationsMappers.ts | 15 + .../arm-storagesync/src/models/parameters.ts | 10 + .../src/models/registeredServersMappers.ts | 9 +- .../src/models/serverEndpointsMappers.ts | 9 +- .../src/models/storageSyncServicesMappers.ts | 9 +- .../src/models/syncGroupsMappers.ts | 9 +- .../src/models/workflowsMappers.ts | 9 +- .../src/operations/cloudEndpoints.ts | 78 +++++ .../arm-storagesync/src/operations/index.ts | 1 + .../operations/operationStatusOperations.ts | 98 ++++++ .../src/storageSyncManagementClient.ts | 2 + .../src/storageSyncManagementClientContext.ts | 4 +- sdk/storagesync/arm-storagesync/tsconfig.json | 2 +- 20 files changed, 796 insertions(+), 68 deletions(-) create mode 100644 sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts create mode 100644 sdk/storagesync/arm-storagesync/src/operations/operationStatusOperations.ts diff --git a/sdk/storagesync/arm-storagesync/LICENSE.txt b/sdk/storagesync/arm-storagesync/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/storagesync/arm-storagesync/LICENSE.txt +++ b/sdk/storagesync/arm-storagesync/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/storagesync/arm-storagesync/README.md b/sdk/storagesync/arm-storagesync/README.md index 20875549385c..09b380bd29de 100644 --- a/sdk/storagesync/arm-storagesync/README.md +++ b/sdk/storagesync/arm-storagesync/README.md @@ -19,8 +19,9 @@ npm install @azure/arm-storagesync ##### Install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code @@ -95,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstoragesync%2Farm-storagesync%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/storagesync/arm-storagesync/README.png) diff --git a/sdk/storagesync/arm-storagesync/package.json b/sdk/storagesync/arm-storagesync/package.json index 352ff38c7a6b..cb4eb848217f 100644 --- a/sdk/storagesync/arm-storagesync/package.json +++ b/sdk/storagesync/arm-storagesync/package.json @@ -2,11 +2,11 @@ "name": "@azure/arm-storagesync", "author": "Microsoft Corporation", "description": "StorageSyncManagementClient Library with typescript type definitions for node.js and browser.", - "version": "7.0.0", + "version": "8.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.6.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,19 +20,19 @@ "module": "./esm/storageSyncManagementClient.js", "types": "./esm/storageSyncManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.4.9" + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/storagesync/arm-storagesync", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storagesync/arm-storagesync", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", diff --git a/sdk/storagesync/arm-storagesync/rollup.config.js b/sdk/storagesync/arm-storagesync/rollup.config.js index 22493de71c60..11130dc93fb6 100644 --- a/sdk/storagesync/arm-storagesync/rollup.config.js +++ b/sdk/storagesync/arm-storagesync/rollup.config.js @@ -29,7 +29,7 @@ const config = { */` }, plugins: [ - nodeResolve({ module: true }), + nodeResolve({ mainFields: ['module', 'main'] }), sourcemaps() ] }; diff --git a/sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts index 9a47ba30b393..aad2b506cb6f 100644 --- a/sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts @@ -22,7 +22,7 @@ export { CloudEndpointsPreBackupHeaders, CloudEndpointsPreRestoreHeaders, CloudEndpointsRestoreheartbeatHeaders, - FilesNotSyncingError, + CloudEndpointsTriggerChangeDetectionHeaders, PostBackupResponse, PostRestoreRequest, PreRestoreRequest, @@ -32,16 +32,21 @@ export { Resource, RestoreFileSpec, ServerEndpoint, + ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, + ServerEndpointFilesNotSyncingError, + ServerEndpointRecallError, + ServerEndpointRecallStatus, + ServerEndpointSyncActivityStatus, + ServerEndpointSyncSessionStatus, ServerEndpointSyncStatus, StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, StorageSyncService, - SyncActivityStatus, SyncGroup, SyncGroupCreateParameters, - SyncSessionStatus, TrackedResource, + TriggerChangeDetectionParameters, Workflow } from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/index.ts b/sdk/storagesync/arm-storagesync/src/models/index.ts index 2a5f8c148a38..b58aba1f343e 100644 --- a/sdk/storagesync/arm-storagesync/src/models/index.ts +++ b/sdk/storagesync/arm-storagesync/src/models/index.ts @@ -151,8 +151,9 @@ export interface ProxyResource extends Resource { export interface SyncGroup extends ProxyResource { /** * Unique Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - uniqueId?: string; + readonly uniqueId?: string; /** * Sync group status * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -203,6 +204,26 @@ export interface CloudEndpoint extends ProxyResource { lastOperationName?: string; } +/** + * The parameters used when calling trigger change detection action on cloud endpoint. + */ +export interface TriggerChangeDetectionParameters { + /** + * Relative path to a directory Azure File share for which change detection is to be performed. + */ + directoryPath?: string; + /** + * Change Detection Mode. Applies to a directory specified in directoryPath parameter. Possible + * values include: 'Default', 'Recursive' + */ + changeDetectionMode?: ChangeDetectionMode; + /** + * Array of relative paths on the Azure File share to be included in the change detection. Can be + * files and directories. + */ + paths?: string[]; +} + /** * The parameters used when calling recall action on server endpoint. */ @@ -264,6 +285,10 @@ export interface CloudEndpointCreateParameters extends ProxyResource { * Storage Account Tenant Id */ storageAccountTenantId?: string; + /** + * Friendly Name + */ + friendlyName?: string; } /** @@ -385,7 +410,7 @@ export interface ServerEndpointUpdateParameters { /** * Files not syncing error object */ -export interface FilesNotSyncingError { +export interface ServerEndpointFilesNotSyncingError { /** * Error code (HResult) * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -406,7 +431,7 @@ export interface FilesNotSyncingError { /** * Sync Session status object. */ -export interface SyncSessionStatus { +export interface ServerEndpointSyncSessionStatus { /** * Last sync result (HResult) * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -428,26 +453,26 @@ export interface SyncSessionStatus { */ readonly lastSyncPerItemErrorCount?: number; /** - * Count of persistent files not syncing. Reserved for future use. + * Count of persistent files not syncing. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly persistentFilesNotSyncingCount?: number; /** - * Count of transient files not syncing. Reserved for future use. + * Count of transient files not syncing. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly transientFilesNotSyncingCount?: number; /** - * Array of per-item errors coming from the last sync session. Reserved for future use. + * Array of per-item errors coming from the last sync session. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly filesNotSyncingErrors?: FilesNotSyncingError[]; + readonly filesNotSyncingErrors?: ServerEndpointFilesNotSyncingError[]; } /** * Sync Session status object. */ -export interface SyncActivityStatus { +export interface ServerEndpointSyncActivityStatus { /** * Timestamp when properties were updated * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -508,8 +533,7 @@ export interface ServerEndpointSyncStatus { */ readonly syncActivity?: SyncActivity; /** - * Total count of persistent files not syncing (combined upload + download). Reserved for future - * use. + * Total count of persistent files not syncing (combined upload + download). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly totalPersistentFilesNotSyncingCount?: number; @@ -522,22 +546,22 @@ export interface ServerEndpointSyncStatus { * Upload Status * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly uploadStatus?: SyncSessionStatus; + readonly uploadStatus?: ServerEndpointSyncSessionStatus; /** * Download Status * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly downloadStatus?: SyncSessionStatus; + readonly downloadStatus?: ServerEndpointSyncSessionStatus; /** * Upload sync activity * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly uploadActivity?: SyncActivityStatus; + readonly uploadActivity?: ServerEndpointSyncActivityStatus; /** * Download sync activity * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly downloadActivity?: SyncActivityStatus; + readonly downloadActivity?: ServerEndpointSyncActivityStatus; /** * Offline Data Transfer State. Possible values include: 'InProgress', 'Stopping', 'NotRunning', * 'Complete' @@ -546,6 +570,69 @@ export interface ServerEndpointSyncStatus { readonly offlineDataTransferStatus?: OfflineDataTransferStatus; } +/** + * Server endpoint cloud tiering status object. + */ +export interface ServerEndpointCloudTieringStatus { + /** + * Cloud tiering health state. Possible values include: 'Healthy', 'Error' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly health?: Health; + /** + * Last updated timestamp + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdatedTimestamp?: Date; + /** + * Last cloud tiering result (HResult) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastCloudTieringResult?: number; + /** + * Last cloud tiering success timestamp + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastSuccessTimestamp?: Date; +} + +/** + * Server endpoint recall error object + */ +export interface ServerEndpointRecallError { + /** + * Error code (HResult) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errorCode?: number; + /** + * Count of occurences of the error + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly count?: number; +} + +/** + * Server endpoint recall status object. + */ +export interface ServerEndpointRecallStatus { + /** + * Last updated timestamp + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdatedTimestamp?: Date; + /** + * Total count of recall errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalRecallErrorsCount?: number; + /** + * Array of recall errors + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly recallErrors?: ServerEndpointRecallError[]; +} + /** * Server Endpoint object. */ @@ -612,6 +699,16 @@ export interface ServerEndpoint extends ProxyResource { * Offline data transfer share name */ offlineDataTransferShareName?: string; + /** + * Cloud tiering status. Only populated if cloud tiering is enabled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cloudTieringStatus?: ServerEndpointCloudTieringStatus; + /** + * Recall status. Only populated if cloud tiering is enabled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly recallStatus?: ServerEndpointRecallStatus; } /** @@ -842,9 +939,8 @@ export interface RestoreFileSpec { path?: string; /** * Restore file spec isdir - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isdir?: boolean; + isdir?: boolean; } /** @@ -962,6 +1058,37 @@ export interface StorageSyncServiceUpdateParameters { properties?: any; } +/** + * Operation status object + */ +export interface OperationStatus { + /** + * Operation Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Operation status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * Start time of the operation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * End time of the operation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTime?: Date; + /** + * Error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: StorageSyncApiError; +} + /** * The resource model definition for a Azure Resource Manager resource with an etag. */ @@ -1316,6 +1443,24 @@ export interface CloudEndpointsPostRestoreHeaders { xMsCorrelationRequestId: string; } +/** + * Defines headers for TriggerChangeDetection operation. + */ +export interface CloudEndpointsTriggerChangeDetectionHeaders { + /** + * Operation Status Location URI + */ + location: string; + /** + * request id. + */ + xMsRequestId: string; + /** + * correlation request id. + */ + xMsCorrelationRequestId: string; +} + /** * Defines headers for Create operation. */ @@ -1556,6 +1701,20 @@ export interface WorkflowsAbortHeaders { xMsCorrelationRequestId: string; } +/** + * Defines headers for Get operation. + */ +export interface OperationStatusGetHeaders { + /** + * request id. + */ + xMsRequestId: string; + /** + * correlation request id. + */ + xMsCorrelationRequestId: string; +} + /** * @interface * The list of storage sync operations. @@ -1624,6 +1783,14 @@ export interface WorkflowArray extends Array { */ export type Reason = 'Registered' | 'Unregistered' | 'Warned' | 'Suspended' | 'Deleted'; +/** + * Defines values for ChangeDetectionMode. + * Possible values include: 'Default', 'Recursive' + * @readonly + * @enum {string} + */ +export type ChangeDetectionMode = 'Default' | 'Recursive'; + /** * Defines values for NameAvailabilityReason. * Possible values include: 'Invalid', 'AlreadyExists' @@ -1707,6 +1874,14 @@ export type SyncActivity = 'Upload' | 'Download' | 'UploadAndDownload'; */ export type OfflineDataTransferStatus = 'InProgress' | 'Stopping' | 'NotRunning' | 'Complete'; +/** + * Defines values for Health. + * Possible values include: 'Healthy', 'Error' + * @readonly + * @enum {string} + */ +export type Health = 'Healthy' | 'Error'; + /** * Defines values for CloudTiering2. * Possible values include: 'on', 'off' @@ -2184,6 +2359,21 @@ export type CloudEndpointsPostRestoreResponse = CloudEndpointsPostRestoreHeaders }; }; +/** + * Contains response data for the triggerChangeDetection operation. + */ +export type CloudEndpointsTriggerChangeDetectionResponse = CloudEndpointsTriggerChangeDetectionHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CloudEndpointsTriggerChangeDetectionHeaders; + }; +}; + /** * Contains response data for the create operation. */ @@ -2483,3 +2673,28 @@ export type WorkflowsAbortResponse = WorkflowsAbortHeaders & { parsedHeaders: WorkflowsAbortHeaders; }; }; + +/** + * Contains response data for the get operation. + */ +export type OperationStatusGetResponse = OperationStatus & OperationStatusGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OperationStatusGetHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; diff --git a/sdk/storagesync/arm-storagesync/src/models/mappers.ts b/sdk/storagesync/arm-storagesync/src/models/mappers.ts index 36eb2c180159..5a0f25e6e367 100644 --- a/sdk/storagesync/arm-storagesync/src/models/mappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/mappers.ts @@ -232,6 +232,7 @@ export const SyncGroup: msRest.CompositeMapper = { modelProperties: { ...ProxyResource.type.modelProperties, uniqueId: { + readOnly: true, serializedName: "properties.uniqueId", type: { name: "String" @@ -314,6 +315,39 @@ export const CloudEndpoint: msRest.CompositeMapper = { } }; +export const TriggerChangeDetectionParameters: msRest.CompositeMapper = { + serializedName: "TriggerChangeDetectionParameters", + type: { + name: "Composite", + className: "TriggerChangeDetectionParameters", + modelProperties: { + directoryPath: { + serializedName: "directoryPath", + type: { + name: "String" + } + }, + changeDetectionMode: { + serializedName: "changeDetectionMode", + type: { + name: "String" + } + }, + paths: { + serializedName: "paths", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const RecallActionParameters: msRest.CompositeMapper = { serializedName: "RecallActionParameters", type: { @@ -411,6 +445,12 @@ export const CloudEndpointCreateParameters: msRest.CompositeMapper = { type: { name: "String" } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } } } } @@ -612,11 +652,11 @@ export const ServerEndpointUpdateParameters: msRest.CompositeMapper = { } }; -export const FilesNotSyncingError: msRest.CompositeMapper = { - serializedName: "FilesNotSyncingError", +export const ServerEndpointFilesNotSyncingError: msRest.CompositeMapper = { + serializedName: "ServerEndpointFilesNotSyncingError", type: { name: "Composite", - className: "FilesNotSyncingError", + className: "ServerEndpointFilesNotSyncingError", modelProperties: { errorCode: { readOnly: true, @@ -628,6 +668,9 @@ export const FilesNotSyncingError: msRest.CompositeMapper = { persistentCount: { readOnly: true, serializedName: "persistentCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -635,6 +678,9 @@ export const FilesNotSyncingError: msRest.CompositeMapper = { transientCount: { readOnly: true, serializedName: "transientCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -643,11 +689,11 @@ export const FilesNotSyncingError: msRest.CompositeMapper = { } }; -export const SyncSessionStatus: msRest.CompositeMapper = { - serializedName: "SyncSessionStatus", +export const ServerEndpointSyncSessionStatus: msRest.CompositeMapper = { + serializedName: "ServerEndpointSyncSessionStatus", type: { name: "Composite", - className: "SyncSessionStatus", + className: "ServerEndpointSyncSessionStatus", modelProperties: { lastSyncResult: { readOnly: true, @@ -673,6 +719,9 @@ export const SyncSessionStatus: msRest.CompositeMapper = { lastSyncPerItemErrorCount: { readOnly: true, serializedName: "lastSyncPerItemErrorCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -680,6 +729,9 @@ export const SyncSessionStatus: msRest.CompositeMapper = { persistentFilesNotSyncingCount: { readOnly: true, serializedName: "persistentFilesNotSyncingCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -687,6 +739,9 @@ export const SyncSessionStatus: msRest.CompositeMapper = { transientFilesNotSyncingCount: { readOnly: true, serializedName: "transientFilesNotSyncingCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -699,7 +754,7 @@ export const SyncSessionStatus: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "FilesNotSyncingError" + className: "ServerEndpointFilesNotSyncingError" } } } @@ -708,11 +763,11 @@ export const SyncSessionStatus: msRest.CompositeMapper = { } }; -export const SyncActivityStatus: msRest.CompositeMapper = { - serializedName: "SyncActivityStatus", +export const ServerEndpointSyncActivityStatus: msRest.CompositeMapper = { + serializedName: "ServerEndpointSyncActivityStatus", type: { name: "Composite", - className: "SyncActivityStatus", + className: "ServerEndpointSyncActivityStatus", modelProperties: { timestamp: { readOnly: true, @@ -724,6 +779,9 @@ export const SyncActivityStatus: msRest.CompositeMapper = { perItemErrorCount: { readOnly: true, serializedName: "perItemErrorCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -731,6 +789,9 @@ export const SyncActivityStatus: msRest.CompositeMapper = { appliedItemCount: { readOnly: true, serializedName: "appliedItemCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -738,6 +799,9 @@ export const SyncActivityStatus: msRest.CompositeMapper = { totalItemCount: { readOnly: true, serializedName: "totalItemCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -745,6 +809,9 @@ export const SyncActivityStatus: msRest.CompositeMapper = { appliedBytes: { readOnly: true, serializedName: "appliedBytes", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -752,6 +819,9 @@ export const SyncActivityStatus: msRest.CompositeMapper = { totalBytes: { readOnly: true, serializedName: "totalBytes", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -797,6 +867,9 @@ export const ServerEndpointSyncStatus: msRest.CompositeMapper = { totalPersistentFilesNotSyncingCount: { readOnly: true, serializedName: "totalPersistentFilesNotSyncingCount", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } @@ -813,7 +886,7 @@ export const ServerEndpointSyncStatus: msRest.CompositeMapper = { serializedName: "uploadStatus", type: { name: "Composite", - className: "SyncSessionStatus" + className: "ServerEndpointSyncSessionStatus" } }, downloadStatus: { @@ -821,7 +894,7 @@ export const ServerEndpointSyncStatus: msRest.CompositeMapper = { serializedName: "downloadStatus", type: { name: "Composite", - className: "SyncSessionStatus" + className: "ServerEndpointSyncSessionStatus" } }, uploadActivity: { @@ -829,7 +902,7 @@ export const ServerEndpointSyncStatus: msRest.CompositeMapper = { serializedName: "uploadActivity", type: { name: "Composite", - className: "SyncActivityStatus" + className: "ServerEndpointSyncActivityStatus" } }, downloadActivity: { @@ -837,7 +910,7 @@ export const ServerEndpointSyncStatus: msRest.CompositeMapper = { serializedName: "downloadActivity", type: { name: "Composite", - className: "SyncActivityStatus" + className: "ServerEndpointSyncActivityStatus" } }, offlineDataTransferStatus: { @@ -851,6 +924,111 @@ export const ServerEndpointSyncStatus: msRest.CompositeMapper = { } }; +export const ServerEndpointCloudTieringStatus: msRest.CompositeMapper = { + serializedName: "ServerEndpointCloudTieringStatus", + type: { + name: "Composite", + className: "ServerEndpointCloudTieringStatus", + modelProperties: { + health: { + readOnly: true, + serializedName: "health", + type: { + name: "String" + } + }, + lastUpdatedTimestamp: { + readOnly: true, + serializedName: "lastUpdatedTimestamp", + type: { + name: "DateTime" + } + }, + lastCloudTieringResult: { + readOnly: true, + serializedName: "lastCloudTieringResult", + type: { + name: "Number" + } + }, + lastSuccessTimestamp: { + readOnly: true, + serializedName: "lastSuccessTimestamp", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ServerEndpointRecallError: msRest.CompositeMapper = { + serializedName: "ServerEndpointRecallError", + type: { + name: "Composite", + className: "ServerEndpointRecallError", + modelProperties: { + errorCode: { + readOnly: true, + serializedName: "errorCode", + type: { + name: "Number" + } + }, + count: { + readOnly: true, + serializedName: "count", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const ServerEndpointRecallStatus: msRest.CompositeMapper = { + serializedName: "ServerEndpointRecallStatus", + type: { + name: "Composite", + className: "ServerEndpointRecallStatus", + modelProperties: { + lastUpdatedTimestamp: { + readOnly: true, + serializedName: "lastUpdatedTimestamp", + type: { + name: "DateTime" + } + }, + totalRecallErrorsCount: { + readOnly: true, + serializedName: "totalRecallErrorsCount", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + recallErrors: { + readOnly: true, + serializedName: "recallErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerEndpointRecallError" + } + } + } + } + } + } +}; + export const ServerEndpoint: msRest.CompositeMapper = { serializedName: "ServerEndpoint", type: { @@ -956,6 +1134,22 @@ export const ServerEndpoint: msRest.CompositeMapper = { type: { name: "String" } + }, + cloudTieringStatus: { + readOnly: true, + serializedName: "properties.cloudTieringStatus", + type: { + name: "Composite", + className: "ServerEndpointCloudTieringStatus" + } + }, + recallStatus: { + readOnly: true, + serializedName: "properties.recallStatus", + type: { + name: "Composite", + className: "ServerEndpointRecallStatus" + } } } } @@ -1325,7 +1519,6 @@ export const RestoreFileSpec: msRest.CompositeMapper = { } }, isdir: { - readOnly: true, serializedName: "isdir", type: { name: "Boolean" @@ -1529,6 +1722,52 @@ export const StorageSyncServiceUpdateParameters: msRest.CompositeMapper = { } }; +export const OperationStatus: msRest.CompositeMapper = { + serializedName: "OperationStatus", + type: { + name: "Composite", + className: "OperationStatus", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + startTime: { + readOnly: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + readOnly: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "StorageSyncApiError" + } + } + } + } +}; + export const AzureEntityResource: msRest.CompositeMapper = { serializedName: "AzureEntityResource", type: { @@ -2025,6 +2264,34 @@ export const CloudEndpointsPostRestoreHeaders: msRest.CompositeMapper = { } }; +export const CloudEndpointsTriggerChangeDetectionHeaders: msRest.CompositeMapper = { + serializedName: "cloudendpoints-triggerchangedetection-headers", + type: { + name: "Composite", + className: "CloudEndpointsTriggerChangeDetectionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + xMsCorrelationRequestId: { + serializedName: "x-ms-correlation-request-id", + type: { + name: "String" + } + } + } + } +}; + export const ServerEndpointsCreateHeaders: msRest.CompositeMapper = { serializedName: "serverendpoints-create-headers", type: { @@ -2399,6 +2666,28 @@ export const WorkflowsAbortHeaders: msRest.CompositeMapper = { } }; +export const OperationStatusGetHeaders: msRest.CompositeMapper = { + serializedName: "operationstatus-get-headers", + type: { + name: "Composite", + className: "OperationStatusGetHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + xMsCorrelationRequestId: { + serializedName: "x-ms-correlation-request-id", + type: { + name: "String" + } + } + } + } +}; + export const OperationEntityListResult: msRest.CompositeMapper = { serializedName: "OperationEntityListResult", type: { diff --git a/sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts new file mode 100644 index 000000000000..4de39529d32b --- /dev/null +++ b/sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + OperationStatus, + OperationStatusGetHeaders, + StorageSyncApiError, + StorageSyncError, + StorageSyncErrorDetails +} from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/parameters.ts b/sdk/storagesync/arm-storagesync/src/models/parameters.ts index 98f424bce0df..4f73078d7bbc 100644 --- a/sdk/storagesync/arm-storagesync/src/models/parameters.ts +++ b/sdk/storagesync/arm-storagesync/src/models/parameters.ts @@ -64,6 +64,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const operationId: msRest.OperationURLParameter = { + parameterPath: "operationId", + mapper: { + required: true, + serializedName: "operationId", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { diff --git a/sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts b/sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts index 81c990ab0699..558aecd968b0 100644 --- a/sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts @@ -11,7 +11,6 @@ export { BaseResource, CloudEndpoint, CloudEndpointCreateParameters, - FilesNotSyncingError, ProxyResource, RegisteredServer, RegisteredServerArray, @@ -23,16 +22,20 @@ export { RegisteredServersTriggerRolloverHeaders, Resource, ServerEndpoint, + ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, + ServerEndpointFilesNotSyncingError, + ServerEndpointRecallError, + ServerEndpointRecallStatus, + ServerEndpointSyncActivityStatus, + ServerEndpointSyncSessionStatus, ServerEndpointSyncStatus, StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, StorageSyncService, - SyncActivityStatus, SyncGroup, SyncGroupCreateParameters, - SyncSessionStatus, TrackedResource, TriggerRolloverRequest, Workflow diff --git a/sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts index 4ed1ef144e4b..d2cf597bac5b 100644 --- a/sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts @@ -11,7 +11,6 @@ export { BaseResource, CloudEndpoint, CloudEndpointCreateParameters, - FilesNotSyncingError, ProxyResource, RecallActionParameters, RegisteredServer, @@ -19,23 +18,27 @@ export { Resource, ServerEndpoint, ServerEndpointArray, + ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, + ServerEndpointFilesNotSyncingError, + ServerEndpointRecallError, + ServerEndpointRecallStatus, ServerEndpointsCreateHeaders, ServerEndpointsDeleteHeaders, ServerEndpointsGetHeaders, ServerEndpointsListBySyncGroupHeaders, ServerEndpointsRecallActionHeaders, ServerEndpointsUpdateHeaders, + ServerEndpointSyncActivityStatus, + ServerEndpointSyncSessionStatus, ServerEndpointSyncStatus, ServerEndpointUpdateParameters, StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, StorageSyncService, - SyncActivityStatus, SyncGroup, SyncGroupCreateParameters, - SyncSessionStatus, TrackedResource, Workflow } from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts b/sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts index 26353b0c34cb..2bc4aa2c18e0 100644 --- a/sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts @@ -14,13 +14,18 @@ export { CloudEndpoint, CloudEndpointCreateParameters, CloudError, - FilesNotSyncingError, ProxyResource, RegisteredServer, RegisteredServerCreateParameters, Resource, ServerEndpoint, + ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, + ServerEndpointFilesNotSyncingError, + ServerEndpointRecallError, + ServerEndpointRecallStatus, + ServerEndpointSyncActivityStatus, + ServerEndpointSyncSessionStatus, ServerEndpointSyncStatus, StorageSyncApiError, StorageSyncError, @@ -34,10 +39,8 @@ export { StorageSyncServicesListBySubscriptionHeaders, StorageSyncServicesUpdateHeaders, StorageSyncServiceUpdateParameters, - SyncActivityStatus, SyncGroup, SyncGroupCreateParameters, - SyncSessionStatus, TrackedResource, Workflow } from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts index ad60b725da1e..f7e5c093c068 100644 --- a/sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts @@ -11,19 +11,23 @@ export { BaseResource, CloudEndpoint, CloudEndpointCreateParameters, - FilesNotSyncingError, ProxyResource, RegisteredServer, RegisteredServerCreateParameters, Resource, ServerEndpoint, + ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, + ServerEndpointFilesNotSyncingError, + ServerEndpointRecallError, + ServerEndpointRecallStatus, + ServerEndpointSyncActivityStatus, + ServerEndpointSyncSessionStatus, ServerEndpointSyncStatus, StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, StorageSyncService, - SyncActivityStatus, SyncGroup, SyncGroupArray, SyncGroupCreateParameters, @@ -31,7 +35,6 @@ export { SyncGroupsDeleteHeaders, SyncGroupsGetHeaders, SyncGroupsListByStorageSyncServiceHeaders, - SyncSessionStatus, TrackedResource, Workflow } from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts index d9e95eb1072d..cc6031cb217c 100644 --- a/sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts @@ -11,22 +11,25 @@ export { BaseResource, CloudEndpoint, CloudEndpointCreateParameters, - FilesNotSyncingError, ProxyResource, RegisteredServer, RegisteredServerCreateParameters, Resource, ServerEndpoint, + ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, + ServerEndpointFilesNotSyncingError, + ServerEndpointRecallError, + ServerEndpointRecallStatus, + ServerEndpointSyncActivityStatus, + ServerEndpointSyncSessionStatus, ServerEndpointSyncStatus, StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, StorageSyncService, - SyncActivityStatus, SyncGroup, SyncGroupCreateParameters, - SyncSessionStatus, TrackedResource, Workflow, WorkflowArray, diff --git a/sdk/storagesync/arm-storagesync/src/operations/cloudEndpoints.ts b/sdk/storagesync/arm-storagesync/src/operations/cloudEndpoints.ts index 95bc504e1f5a..0885608e307a 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/cloudEndpoints.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/cloudEndpoints.ts @@ -232,6 +232,22 @@ export class CloudEndpoints { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Triggers detection of changes performed on Azure File share connected to the specified Azure + * File Sync Cloud Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName Name of Storage Sync Service resource. + * @param syncGroupName Name of Sync Group resource. + * @param cloudEndpointName Name of Cloud Endpoint object. + * @param parameters Trigger Change Detection Action parameters. + * @param [options] The optional parameters + * @returns Promise + */ + triggerChangeDetection(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: Models.TriggerChangeDetectionParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginTriggerChangeDetection(resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Create a new CloudEndpoint. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -373,6 +389,31 @@ export class CloudEndpoints { beginPostRestoreOperationSpec, options); } + + /** + * Triggers detection of changes performed on Azure File share connected to the specified Azure + * File Sync Cloud Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName Name of Storage Sync Service resource. + * @param syncGroupName Name of Sync Group resource. + * @param cloudEndpointName Name of Cloud Endpoint object. + * @param parameters Trigger Change Detection Action parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginTriggerChangeDetection(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: Models.TriggerChangeDetectionParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + storageSyncServiceName, + syncGroupName, + cloudEndpointName, + parameters, + options + }, + beginTriggerChangeDetectionOperationSpec, + options); + } } // Operation Specifications @@ -678,3 +719,40 @@ const beginPostRestoreOperationSpec: msRest.OperationSpec = { }, serializer }; + +const beginTriggerChangeDetectionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.storageSyncServiceName, + Parameters.syncGroupName, + Parameters.cloudEndpointName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TriggerChangeDetectionParameters, + required: true + } + }, + responses: { + 200: { + headersMapper: Mappers.CloudEndpointsTriggerChangeDetectionHeaders + }, + 202: { + headersMapper: Mappers.CloudEndpointsTriggerChangeDetectionHeaders + }, + default: { + bodyMapper: Mappers.StorageSyncError + } + }, + serializer +}; diff --git a/sdk/storagesync/arm-storagesync/src/operations/index.ts b/sdk/storagesync/arm-storagesync/src/operations/index.ts index bf6362befd58..d6e1eee242fe 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/index.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/index.ts @@ -15,3 +15,4 @@ export * from "./cloudEndpoints"; export * from "./serverEndpoints"; export * from "./registeredServers"; export * from "./workflows"; +export * from "./operationStatusOperations"; diff --git a/sdk/storagesync/arm-storagesync/src/operations/operationStatusOperations.ts b/sdk/storagesync/arm-storagesync/src/operations/operationStatusOperations.ts new file mode 100644 index 000000000000..5e94dc133c06 --- /dev/null +++ b/sdk/storagesync/arm-storagesync/src/operations/operationStatusOperations.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationStatusOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { StorageSyncManagementClientContext } from "../storageSyncManagementClientContext"; + +/** Class representing a OperationStatusOperations. */ +export class OperationStatusOperations { + private readonly client: StorageSyncManagementClientContext; + + /** + * Create a OperationStatusOperations. + * @param {StorageSyncManagementClientContext} client Reference to the service client. + */ + constructor(client: StorageSyncManagementClientContext) { + this.client = client; + } + + /** + * Get Operation status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param locationName The desired region to obtain information from. + * @param workflowId workflow Id + * @param operationId operation Id + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, locationName: string, workflowId: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param locationName The desired region to obtain information from. + * @param workflowId workflow Id + * @param operationId operation Id + * @param callback The callback + */ + get(resourceGroupName: string, locationName: string, workflowId: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param locationName The desired region to obtain information from. + * @param workflowId workflow Id + * @param operationId operation Id + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, locationName: string, workflowId: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, locationName: string, workflowId: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + workflowId, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/locations/{locationName}/workflows/{workflowId}/operations/{operationId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.workflowId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus, + headersMapper: Mappers.OperationStatusGetHeaders + }, + default: { + bodyMapper: Mappers.StorageSyncError + } + }, + serializer +}; diff --git a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts index 06e1e464840d..e8507d474340 100644 --- a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts +++ b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts @@ -24,6 +24,7 @@ class StorageSyncManagementClient extends StorageSyncManagementClientContext { serverEndpoints: operations.ServerEndpoints; registeredServers: operations.RegisteredServers; workflows: operations.Workflows; + operationStatus: operations.OperationStatusOperations; /** * Initializes a new instance of the StorageSyncManagementClient class. @@ -40,6 +41,7 @@ class StorageSyncManagementClient extends StorageSyncManagementClientContext { this.serverEndpoints = new operations.ServerEndpoints(this); this.registeredServers = new operations.RegisteredServers(this); this.workflows = new operations.Workflows(this); + this.operationStatus = new operations.OperationStatusOperations(this); } } diff --git a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts index 86304ac15a06..ef8da155c09f 100644 --- a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts +++ b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-storagesync"; -const packageVersion = "7.0.0"; +const packageVersion = "8.0.0"; export class StorageSyncManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -44,7 +44,7 @@ export class StorageSyncManagementClientContext extends msRestAzure.AzureService super(credentials, options); - this.apiVersion = '2019-02-01'; + this.apiVersion = '2019-06-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/storagesync/arm-storagesync/tsconfig.json b/sdk/storagesync/arm-storagesync/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/storagesync/arm-storagesync/tsconfig.json +++ b/sdk/storagesync/arm-storagesync/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true