From b8efe34b0e2ba040f0dc79cd6c081ba28e0c876f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 20 Aug 2018 18:21:52 +0000 Subject: [PATCH 1/3] Generated from 58073a18de0d6a648f662fa518443139f2d3a5af Update storagesync management Node.js package version to 1.0.0 --- .../storagesyncManagement/LICENSE.txt | 42 +++++----- lib/services/storagesyncManagement/README.md | 80 +++++++++---------- .../lib/models/operationEntity.js | 2 + .../lib/models/postRestoreRequest.js | 2 + .../lib/models/preRestoreRequest.js | 2 + .../lib/models/storageSyncError.js | 2 + .../lib/models/workflowArray.js | 2 + .../storagesyncManagement/package.json | 2 +- 8 files changed, 72 insertions(+), 62 deletions(-) diff --git a/lib/services/storagesyncManagement/LICENSE.txt b/lib/services/storagesyncManagement/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/storagesyncManagement/LICENSE.txt +++ b/lib/services/storagesyncManagement/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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 -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/services/storagesyncManagement/README.md b/lib/services/storagesyncManagement/README.md index 0f839bd7bd..266b0589d5 100644 --- a/lib/services/storagesyncManagement/README.md +++ b/lib/services/storagesyncManagement/README.md @@ -1,40 +1,40 @@ ---- -uid: azure-arm-storagesync -summary: *content - ---- -# Microsoft Azure SDK for Node.js - StorageSyncManagementClient -This project provides a Node.js package for accessing Azure. Right now it supports: -- **Node.js version 6.x.x or higher** - -## Features - - -## How to Install - -```bash -npm install azure-arm-storagesync -``` - -## How to use - -### Authentication, client creation and list operations as an example. - -```javascript -const msRestAzure = require("ms-rest-azure"); -const StorageSyncManagementClient = require("azure-arm-storagesync"); -msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new StorageSyncManagementClient(creds, subscriptionId); - return client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.log('An error occurred:'); - console.dir(err, {depth: null, colors: true}); -}); - -## Related projects - -- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) +--- +uid: azure-arm-storagesync +summary: *content + +--- +# Microsoft Azure SDK for Node.js - StorageSyncManagementClient +This project provides a Node.js package for accessing Azure. Right now it supports: +- **Node.js version 6.x.x or higher** + +## Features + + +## How to Install + +```bash +npm install azure-arm-storagesync +``` + +## How to use + +### Authentication, client creation and list operations as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const StorageSyncManagementClient = require("azure-arm-storagesync"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new StorageSyncManagementClient(creds, subscriptionId); + return client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.log('An error occurred:'); + console.dir(err, {depth: null, colors: true}); +}); + +## Related projects + +- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/storagesyncManagement/lib/models/operationEntity.js b/lib/services/storagesyncManagement/lib/models/operationEntity.js index e7a1b503f7..8d29602603 100644 --- a/lib/services/storagesyncManagement/lib/models/operationEntity.js +++ b/lib/services/storagesyncManagement/lib/models/operationEntity.js @@ -10,6 +10,8 @@ 'use strict'; +const models = require('./index'); + /** * The operation supported by storage sync. * diff --git a/lib/services/storagesyncManagement/lib/models/postRestoreRequest.js b/lib/services/storagesyncManagement/lib/models/postRestoreRequest.js index 32be654193..82450187a5 100644 --- a/lib/services/storagesyncManagement/lib/models/postRestoreRequest.js +++ b/lib/services/storagesyncManagement/lib/models/postRestoreRequest.js @@ -10,6 +10,8 @@ 'use strict'; +const models = require('./index'); + /** * Post Restore Request * diff --git a/lib/services/storagesyncManagement/lib/models/preRestoreRequest.js b/lib/services/storagesyncManagement/lib/models/preRestoreRequest.js index 47c2c0e206..3afda3c8b9 100644 --- a/lib/services/storagesyncManagement/lib/models/preRestoreRequest.js +++ b/lib/services/storagesyncManagement/lib/models/preRestoreRequest.js @@ -10,6 +10,8 @@ 'use strict'; +const models = require('./index'); + /** * Pre Restore request object. * diff --git a/lib/services/storagesyncManagement/lib/models/storageSyncError.js b/lib/services/storagesyncManagement/lib/models/storageSyncError.js index b185128307..509d940f23 100644 --- a/lib/services/storagesyncManagement/lib/models/storageSyncError.js +++ b/lib/services/storagesyncManagement/lib/models/storageSyncError.js @@ -10,6 +10,8 @@ 'use strict'; +const models = require('./index'); + /** * Error type * diff --git a/lib/services/storagesyncManagement/lib/models/workflowArray.js b/lib/services/storagesyncManagement/lib/models/workflowArray.js index c2c3eb737f..698149ba59 100644 --- a/lib/services/storagesyncManagement/lib/models/workflowArray.js +++ b/lib/services/storagesyncManagement/lib/models/workflowArray.js @@ -10,6 +10,8 @@ 'use strict'; +const models = require('./index'); + /** * Array of Workflow * diff --git a/lib/services/storagesyncManagement/package.json b/lib/services/storagesyncManagement/package.json index 22c93d1e4d..170b8f4ec2 100644 --- a/lib/services/storagesyncManagement/package.json +++ b/lib/services/storagesyncManagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/storageSyncManagementClient.js", "types": "./lib/storageSyncManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/storagesyncManagement", + "homepage": "https://github.com/azure/azure-sdk-for-node", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" From abd007c2ba1c3f7b063780a113fbe2b319dfa336 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 5 Oct 2018 22:08:15 +0000 Subject: [PATCH 2/3] Generated from 7d453d94ebe51a5984d7d2f742f28e7a29a1bdc6 Add storagesync/resource-manager/readme.typescript.md --- .../lib/models/azureEntityResource.js | 82 ++ .../lib/models/cloudEndpoint.js | 24 +- .../models/cloudEndpointCreateParameters.js | 96 ++ .../lib/models/index.d.ts | 300 +++++- .../storagesyncManagement/lib/models/index.js | 16 +- .../lib/models/operationEntity.js | 2 - .../lib/models/postRestoreRequest.js | 2 - .../lib/models/preRestoreRequest.js | 2 - .../lib/models/proxyResource.js | 73 ++ .../lib/models/recallActionParameters.js | 60 ++ .../lib/models/registeredServer.js | 7 +- .../registeredServerCreateParameters.js | 144 +++ .../lib/models/resource.js | 11 +- .../lib/models/serverEndpoint.js | 40 +- .../models/serverEndpointCreateParameters.js | 130 +++ .../models/serverEndpointUpdateParameters.js | 78 ++ .../lib/models/storageSyncApiError.js | 80 ++ .../lib/models/storageSyncError.js | 45 +- .../lib/models/storageSyncService.js | 49 +- .../storageSyncServiceCreateParameters.js | 84 ++ .../storageSyncServiceUpdateParameters.js | 68 ++ .../lib/models/syncGroup.js | 28 +- .../lib/models/syncGroupCreateParameters.js | 80 ++ .../lib/models/trackedResource.js | 27 +- .../lib/models/triggerRolloverRequest.js | 52 + .../lib/models/workflow.js | 28 +- .../lib/models/workflowArray.js | 9 +- .../lib/operations/cloudEndpoints.js | 380 +++---- .../lib/operations/index.d.ts | 983 +++++++++--------- .../lib/operations/operations.js | 6 + .../lib/operations/registeredServers.js | 712 ++++++++++--- .../lib/operations/serverEndpoints.js | 457 ++++---- .../lib/operations/storageSyncServices.js | 208 +++- .../lib/operations/syncGroups.js | 107 +- .../lib/operations/workflows.js | 313 +++++- .../lib/storageSyncManagementClient.d.ts | 6 +- .../lib/storageSyncManagementClient.js | 4 +- 37 files changed, 3556 insertions(+), 1237 deletions(-) create mode 100644 lib/services/storagesyncManagement/lib/models/azureEntityResource.js create mode 100644 lib/services/storagesyncManagement/lib/models/cloudEndpointCreateParameters.js create mode 100644 lib/services/storagesyncManagement/lib/models/proxyResource.js create mode 100644 lib/services/storagesyncManagement/lib/models/recallActionParameters.js create mode 100644 lib/services/storagesyncManagement/lib/models/registeredServerCreateParameters.js create mode 100644 lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js create mode 100644 lib/services/storagesyncManagement/lib/models/serverEndpointUpdateParameters.js create mode 100644 lib/services/storagesyncManagement/lib/models/storageSyncApiError.js create mode 100644 lib/services/storagesyncManagement/lib/models/storageSyncServiceCreateParameters.js create mode 100644 lib/services/storagesyncManagement/lib/models/storageSyncServiceUpdateParameters.js create mode 100644 lib/services/storagesyncManagement/lib/models/syncGroupCreateParameters.js create mode 100644 lib/services/storagesyncManagement/lib/models/triggerRolloverRequest.js diff --git a/lib/services/storagesyncManagement/lib/models/azureEntityResource.js b/lib/services/storagesyncManagement/lib/models/azureEntityResource.js new file mode 100644 index 0000000000..a87a9fe033 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/azureEntityResource.js @@ -0,0 +1,82 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The resource model definition for a Azure Resource Manager resource with an + * etag. + * + * @extends models['Resource'] + */ +class AzureEntityResource extends models['Resource'] { + /** + * Create a AzureEntityResource. + * @member {string} [etag] Resource Etag. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureEntityResource + * + * @returns {object} metadata of AzureEntityResource + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureEntityResource', + type: { + name: 'Composite', + className: 'AzureEntityResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + etag: { + required: false, + readOnly: true, + serializedName: 'etag', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = AzureEntityResource; diff --git a/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js b/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js index 8143070314..fcd8ff7b3d 100644 --- a/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js +++ b/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js @@ -15,13 +15,11 @@ const models = require('./index'); /** * Cloud Endpoint object. * - * @extends models['BaseResource'] + * @extends models['ProxyResource'] */ -class CloudEndpoint extends models['BaseResource'] { +class CloudEndpoint extends models['ProxyResource'] { /** * Create a CloudEndpoint. - * @member {string} [storageAccountKey] Storage Account access key. - * @member {string} [storageAccount] Storage Account name. * @member {string} [storageAccountResourceId] Storage Account Resource Id * @member {string} [storageAccountShareName] Storage Account Share name * @member {string} [storageAccountTenantId] Storage Account Tenant Id @@ -50,16 +48,26 @@ class CloudEndpoint extends models['BaseResource'] { name: 'Composite', className: 'CloudEndpoint', modelProperties: { - storageAccountKey: { + id: { required: false, - serializedName: 'properties.storageAccountKey', + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', type: { name: 'String' } }, - storageAccount: { + type: { required: false, - serializedName: 'properties.storageAccount', + readOnly: true, + serializedName: 'type', type: { name: 'String' } diff --git a/lib/services/storagesyncManagement/lib/models/cloudEndpointCreateParameters.js b/lib/services/storagesyncManagement/lib/models/cloudEndpointCreateParameters.js new file mode 100644 index 0000000000..f97c739114 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/cloudEndpointCreateParameters.js @@ -0,0 +1,96 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The parameters used when creating a cloud endpoint. + * + * @extends models['ProxyResource'] + */ +class CloudEndpointCreateParameters extends models['ProxyResource'] { + /** + * Create a CloudEndpointCreateParameters. + * @member {string} [storageAccountResourceId] Storage Account Resource Id + * @member {string} [storageAccountShareName] Storage Account Share name + * @member {string} [storageAccountTenantId] Storage Account Tenant Id + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CloudEndpointCreateParameters + * + * @returns {object} metadata of CloudEndpointCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'CloudEndpointCreateParameters', + type: { + name: 'Composite', + className: 'CloudEndpointCreateParameters', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + storageAccountResourceId: { + required: false, + serializedName: 'properties.storageAccountResourceId', + type: { + name: 'String' + } + }, + storageAccountShareName: { + required: false, + serializedName: 'properties.storageAccountShareName', + type: { + name: 'String' + } + }, + storageAccountTenantId: { + required: false, + serializedName: 'properties.storageAccountTenantId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CloudEndpointCreateParameters; diff --git a/lib/services/storagesyncManagement/lib/models/index.d.ts b/lib/services/storagesyncManagement/lib/models/index.d.ts index 739d5206e3..86982db10e 100644 --- a/lib/services/storagesyncManagement/lib/models/index.d.ts +++ b/lib/services/storagesyncManagement/lib/models/index.d.ts @@ -34,51 +34,52 @@ export interface StorageSyncErrorDetails { /** * @class - * Initializes a new instance of the StorageSyncError class. + * Initializes a new instance of the StorageSyncApiError class. * @constructor * Error type * * @member {string} [code] Error code of the given entry. * @member {string} [message] Error message of the given entry. + * @member {string} [target] Target of the given error entry. * @member {object} [details] Error details of the given entry. * @member {string} [details.code] Error code of the given entry. * @member {string} [details.message] Error message of the given entry. * @member {string} [details.target] Target of the given entry. */ -export interface StorageSyncError { +export interface StorageSyncApiError { code?: string; message?: string; + target?: string; details?: StorageSyncErrorDetails; } /** * @class - * Initializes a new instance of the Resource class. - * @constructor - * The Azure Resource Manager resource. - * - * @member {string} [id] The id of the resource. - * @member {string} [name] The name of the resource. - * @member {string} [type] The type of the resource - */ -export interface Resource extends BaseResource { - readonly id?: string; - readonly name?: string; - readonly type?: string; -} - -/** - * @class - * Initializes a new instance of the TrackedResource class. + * Initializes a new instance of the StorageSyncError class. * @constructor - * ARM tracked resource + * Error type * - * @member {string} [location] The location of the resource. - * @member {object} [tags] The tags of the resource. + * @member {object} [error] Error details of the given entry. + * @member {string} [error.code] Error code of the given entry. + * @member {string} [error.message] Error message of the given entry. + * @member {string} [error.target] Target of the given error entry. + * @member {object} [error.details] Error details of the given entry. + * @member {string} [error.details.code] Error code of the given entry. + * @member {string} [error.details.message] Error message of the given entry. + * @member {string} [error.details.target] Target of the given entry. + * @member {object} [innererror] Error details of the given entry. + * @member {string} [innererror.code] Error code of the given entry. + * @member {string} [innererror.message] Error message of the given entry. + * @member {string} [innererror.target] Target of the given error entry. + * @member {object} [innererror.details] Error details of the given entry. + * @member {string} [innererror.details.code] Error code of the given entry. + * @member {string} [innererror.details.message] Error message of the given + * entry. + * @member {string} [innererror.details.target] Target of the given entry. */ -export interface TrackedResource extends Resource { - location?: string; - tags?: any; +export interface StorageSyncError { + error?: StorageSyncApiError; + innererror?: StorageSyncApiError; } /** @@ -98,6 +99,36 @@ export interface SubscriptionState { properties?: any; } +/** + * @class + * Initializes a new instance of the Resource class. + * @constructor + * @member {string} [id] Fully qualified resource Id for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * @member {string} [name] The name of the resource + * @member {string} [type] The type of the resource. Ex- + * Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + */ +export interface Resource extends BaseResource { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + +/** + * @class + * Initializes a new instance of the TrackedResource class. + * @constructor + * The resource model definition for a ARM tracked top level resource + * + * @member {object} [tags] Resource tags. + * @member {string} location The geo-location where the resource lives + */ +export interface TrackedResource extends Resource { + tags?: { [propertyName: string]: string }; + location: string; +} + /** * @class * Initializes a new instance of the StorageSyncService class. @@ -107,11 +138,22 @@ export interface SubscriptionState { * @member {number} [storageSyncServiceStatus] Storage Sync service status. * @member {string} [storageSyncServiceUid] Storage Sync service Uid */ -export interface StorageSyncService extends BaseResource { +export interface StorageSyncService extends TrackedResource { readonly storageSyncServiceStatus?: number; readonly storageSyncServiceUid?: string; } +/** + * @class + * Initializes a new instance of the ProxyResource class. + * @constructor + * The resource model definition for a ARM proxy resource. It will have + * everything other than required location and tags + * + */ +export interface ProxyResource extends Resource { +} + /** * @class * Initializes a new instance of the SyncGroup class. @@ -121,7 +163,7 @@ export interface StorageSyncService extends BaseResource { * @member {string} [uniqueId] Unique Id * @member {string} [syncGroupStatus] Sync group status */ -export interface SyncGroup extends BaseResource { +export interface SyncGroup extends ProxyResource { uniqueId?: string; readonly syncGroupStatus?: string; } @@ -132,8 +174,6 @@ export interface SyncGroup extends BaseResource { * @constructor * Cloud Endpoint object. * - * @member {string} [storageAccountKey] Storage Account access key. - * @member {string} [storageAccount] Storage Account name. * @member {string} [storageAccountResourceId] Storage Account Resource Id * @member {string} [storageAccountShareName] Storage Account Share name * @member {string} [storageAccountTenantId] Storage Account Tenant Id @@ -144,9 +184,7 @@ export interface SyncGroup extends BaseResource { * @member {string} [lastWorkflowId] CloudEndpoint lastWorkflowId * @member {string} [lastOperationName] Resource Last Operation Name */ -export interface CloudEndpoint extends BaseResource { - storageAccountKey?: string; - storageAccount?: string; +export interface CloudEndpoint extends ProxyResource { storageAccountResourceId?: string; storageAccountShareName?: string; storageAccountTenantId?: string; @@ -158,6 +196,154 @@ export interface CloudEndpoint extends BaseResource { lastOperationName?: string; } +/** + * @class + * Initializes a new instance of the RecallActionParameters class. + * @constructor + * The parameters used when calling recall action on server endpoint. + * + * @member {string} [pattern] Pattern of the files. + * @member {string} [recallPath] Recall path. + */ +export interface RecallActionParameters { + pattern?: string; + recallPath?: string; +} + +/** + * @class + * Initializes a new instance of the StorageSyncServiceCreateParameters class. + * @constructor + * The parameters used when creating a storage sync service. + * + * @member {string} location Required. Gets or sets the location of the + * resource. This will be one of the supported and registered Azure Geo Regions + * (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource + * cannot be changed once it is created, but if an identical geo region is + * specified on update, the request will succeed. + * @member {object} [tags] Gets or sets a list of key value pairs that describe + * the resource. These tags can be used for viewing and grouping this resource + * (across resource groups). A maximum of 15 tags can be provided for a + * resource. Each tag must have a key with a length no greater than 128 + * characters and a value with a length no greater than 256 characters. + * @member {object} [properties] + */ +export interface StorageSyncServiceCreateParameters { + location: string; + tags?: { [propertyName: string]: string }; + properties?: any; +} + +/** + * @class + * Initializes a new instance of the SyncGroupCreateParameters class. + * @constructor + * The parameters used when creating a sync group. + * + * @member {object} [properties] The parameters used to create the sync group + */ +export interface SyncGroupCreateParameters extends ProxyResource { + properties?: any; +} + +/** + * @class + * Initializes a new instance of the CloudEndpointCreateParameters class. + * @constructor + * The parameters used when creating a cloud endpoint. + * + * @member {string} [storageAccountResourceId] Storage Account Resource Id + * @member {string} [storageAccountShareName] Storage Account Share name + * @member {string} [storageAccountTenantId] Storage Account Tenant Id + */ +export interface CloudEndpointCreateParameters extends ProxyResource { + storageAccountResourceId?: string; + storageAccountShareName?: string; + storageAccountTenantId?: string; +} + +/** + * @class + * Initializes a new instance of the ServerEndpointCreateParameters class. + * @constructor + * The parameters used when creating a server endpoint. + * + * @member {string} [serverLocalPath] Server Local path. + * @member {string} [cloudTiering] Cloud Tiering. Possible values include: + * 'on', 'off' + * @member {number} [volumeFreeSpacePercent] Level of free space to be + * maintained by Cloud Tiering if it is enabled. + * @member {number} [tierFilesOlderThanDays] Tier files older than days. + * @member {string} [friendlyName] Friendly Name + * @member {string} [serverResourceId] Server Resource Id. + */ +export interface ServerEndpointCreateParameters extends ProxyResource { + serverLocalPath?: string; + cloudTiering?: string; + volumeFreeSpacePercent?: number; + tierFilesOlderThanDays?: number; + friendlyName?: string; + serverResourceId?: string; +} + +/** + * @class + * Initializes a new instance of the TriggerRolloverRequest class. + * @constructor + * Trigger Rollover Request. + * + * @member {string} [certificateData] Certificate Data + */ +export interface TriggerRolloverRequest { + certificateData?: string; +} + +/** + * @class + * Initializes a new instance of the RegisteredServerCreateParameters class. + * @constructor + * The parameters used when creating a registered server. + * + * @member {string} [serverCertificate] Registered Server Certificate + * @member {string} [agentVersion] Registered Server Agent Version + * @member {string} [serverOSVersion] Registered Server OS Version + * @member {string} [lastHeartBeat] Registered Server last heart beat + * @member {string} [serverRole] Registered Server serverRole + * @member {string} [clusterId] Registered Server clusterId + * @member {string} [clusterName] Registered Server clusterName + * @member {string} [serverId] Registered Server serverId + * @member {string} [friendlyName] Friendly Name + */ +export interface RegisteredServerCreateParameters extends ProxyResource { + serverCertificate?: string; + agentVersion?: string; + serverOSVersion?: string; + lastHeartBeat?: string; + serverRole?: string; + clusterId?: string; + clusterName?: string; + serverId?: string; + friendlyName?: string; +} + +/** + * @class + * Initializes a new instance of the ServerEndpointUpdateParameters class. + * @constructor + * Parameters for updating an Server Endpoint. + * + * @member {string} [cloudTiering] Cloud Tiering. Possible values include: + * 'on', 'off' + * @member {number} [volumeFreeSpacePercent] Level of free space to be + * maintained by Cloud Tiering if it is enabled. + * @member {number} [tierFilesOlderThanDays] Tier files older than days. + */ +export interface ServerEndpointUpdateParameters { + cloudTiering?: string; + volumeFreeSpacePercent?: number; + tierFilesOlderThanDays?: number; +} + /** * @class * Initializes a new instance of the ServerEndpoint class. @@ -169,6 +355,7 @@ export interface CloudEndpoint extends BaseResource { * 'on', 'off' * @member {number} [volumeFreeSpacePercent] Level of free space to be * maintained by Cloud Tiering if it is enabled. + * @member {number} [tierFilesOlderThanDays] Tier files older than days. * @member {string} [friendlyName] Friendly Name * @member {string} [serverResourceId] Server Resource Id. * @member {string} [provisioningState] ServerEndpoint Provisioning State @@ -176,10 +363,11 @@ export interface CloudEndpoint extends BaseResource { * @member {string} [lastOperationName] Resource Last Operation Name * @member {object} [syncStatus] Sync Health Status */ -export interface ServerEndpoint extends BaseResource { +export interface ServerEndpoint extends ProxyResource { serverLocalPath?: string; cloudTiering?: string; volumeFreeSpacePercent?: number; + tierFilesOlderThanDays?: number; friendlyName?: string; serverResourceId?: string; provisioningState?: string; @@ -194,9 +382,6 @@ export interface ServerEndpoint extends BaseResource { * @constructor * Registered Server resource. * - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type * @member {string} [serverCertificate] Registered Server Certificate * @member {string} [agentVersion] Registered Server Agent Version * @member {string} [serverOSVersion] Registered Server OS Version @@ -218,10 +403,7 @@ export interface ServerEndpoint extends BaseResource { * @member {string} [friendlyName] Friendly Name * @member {string} [managementEndpointUri] Management Endpoint Uri */ -export interface RegisteredServer extends BaseResource { - readonly id?: string; - readonly name?: string; - readonly type?: string; +export interface RegisteredServer extends ProxyResource { serverCertificate?: string; agentVersion?: string; serverOSVersion?: string; @@ -270,7 +452,7 @@ export interface ResourcesMoveInfo { * @member {string} [steps] workflow steps * @member {string} [lastOperationId] workflow last operation identifier. */ -export interface Workflow extends BaseResource { +export interface Workflow extends ProxyResource { lastStepName?: string; status?: string; operation?: string; @@ -469,14 +651,30 @@ export interface PostBackupResponse { /** * @class - * Initializes a new instance of the WorkflowArray class. + * Initializes a new instance of the StorageSyncServiceUpdateParameters class. * @constructor - * Array of Workflow + * Parameters for updating an Storage sync service. * - * @member {array} [value] Collection of workflow items. + * @member {object} [tags] The user-specified tags associated with the storage + * sync service. + * @member {object} [properties] The properties of the storage sync service. */ -export interface WorkflowArray { - value?: Workflow[]; +export interface StorageSyncServiceUpdateParameters { + tags?: { [propertyName: string]: string }; + properties?: any; +} + +/** + * @class + * Initializes a new instance of the AzureEntityResource class. + * @constructor + * The resource model definition for a Azure Resource Manager resource with an + * etag. + * + * @member {string} [etag] Resource Etag. + */ +export interface AzureEntityResource extends Resource { + readonly etag?: string; } @@ -542,3 +740,13 @@ export interface ServerEndpointArray extends Array { */ export interface RegisteredServerArray extends Array { } + +/** + * @class + * Initializes a new instance of the WorkflowArray class. + * @constructor + * Array of Workflow + * + */ +export interface WorkflowArray extends Array { +} diff --git a/lib/services/storagesyncManagement/lib/models/index.js b/lib/services/storagesyncManagement/lib/models/index.js index e4896fad4c..0f5b9cbd94 100644 --- a/lib/services/storagesyncManagement/lib/models/index.js +++ b/lib/services/storagesyncManagement/lib/models/index.js @@ -19,13 +19,23 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; exports.StorageSyncErrorDetails = require('./storageSyncErrorDetails'); +exports.StorageSyncApiError = require('./storageSyncApiError'); exports.StorageSyncError = require('./storageSyncError'); +exports.SubscriptionState = require('./subscriptionState'); exports.Resource = require('./resource'); exports.TrackedResource = require('./trackedResource'); -exports.SubscriptionState = require('./subscriptionState'); exports.StorageSyncService = require('./storageSyncService'); +exports.ProxyResource = require('./proxyResource'); exports.SyncGroup = require('./syncGroup'); exports.CloudEndpoint = require('./cloudEndpoint'); +exports.RecallActionParameters = require('./recallActionParameters'); +exports.StorageSyncServiceCreateParameters = require('./storageSyncServiceCreateParameters'); +exports.SyncGroupCreateParameters = require('./syncGroupCreateParameters'); +exports.CloudEndpointCreateParameters = require('./cloudEndpointCreateParameters'); +exports.ServerEndpointCreateParameters = require('./serverEndpointCreateParameters'); +exports.TriggerRolloverRequest = require('./triggerRolloverRequest'); +exports.RegisteredServerCreateParameters = require('./registeredServerCreateParameters'); +exports.ServerEndpointUpdateParameters = require('./serverEndpointUpdateParameters'); exports.ServerEndpoint = require('./serverEndpoint'); exports.RegisteredServer = require('./registeredServer'); exports.ResourcesMoveInfo = require('./resourcesMoveInfo'); @@ -40,10 +50,12 @@ exports.PostRestoreRequest = require('./postRestoreRequest'); exports.PreRestoreRequest = require('./preRestoreRequest'); exports.BackupRequest = require('./backupRequest'); exports.PostBackupResponse = require('./postBackupResponse'); -exports.WorkflowArray = require('./workflowArray'); +exports.StorageSyncServiceUpdateParameters = require('./storageSyncServiceUpdateParameters'); +exports.AzureEntityResource = require('./azureEntityResource'); exports.OperationEntityListResult = require('./operationEntityListResult'); exports.StorageSyncServiceArray = require('./storageSyncServiceArray'); exports.SyncGroupArray = require('./syncGroupArray'); exports.CloudEndpointArray = require('./cloudEndpointArray'); exports.ServerEndpointArray = require('./serverEndpointArray'); exports.RegisteredServerArray = require('./registeredServerArray'); +exports.WorkflowArray = require('./workflowArray'); diff --git a/lib/services/storagesyncManagement/lib/models/operationEntity.js b/lib/services/storagesyncManagement/lib/models/operationEntity.js index 8d29602603..e7a1b503f7 100644 --- a/lib/services/storagesyncManagement/lib/models/operationEntity.js +++ b/lib/services/storagesyncManagement/lib/models/operationEntity.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The operation supported by storage sync. * diff --git a/lib/services/storagesyncManagement/lib/models/postRestoreRequest.js b/lib/services/storagesyncManagement/lib/models/postRestoreRequest.js index 82450187a5..32be654193 100644 --- a/lib/services/storagesyncManagement/lib/models/postRestoreRequest.js +++ b/lib/services/storagesyncManagement/lib/models/postRestoreRequest.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Post Restore Request * diff --git a/lib/services/storagesyncManagement/lib/models/preRestoreRequest.js b/lib/services/storagesyncManagement/lib/models/preRestoreRequest.js index 3afda3c8b9..47c2c0e206 100644 --- a/lib/services/storagesyncManagement/lib/models/preRestoreRequest.js +++ b/lib/services/storagesyncManagement/lib/models/preRestoreRequest.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Pre Restore request object. * diff --git a/lib/services/storagesyncManagement/lib/models/proxyResource.js b/lib/services/storagesyncManagement/lib/models/proxyResource.js new file mode 100644 index 0000000000..43e93ec60e --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/proxyResource.js @@ -0,0 +1,73 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The resource model definition for a ARM proxy resource. It will have + * everything other than required location and tags + * + * @extends models['Resource'] + */ +class ProxyResource extends models['Resource'] { + /** + * Create a ProxyResource. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ProxyResource + * + * @returns {object} metadata of ProxyResource + * + */ + mapper() { + return { + required: false, + serializedName: 'ProxyResource', + type: { + name: 'Composite', + className: 'ProxyResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ProxyResource; diff --git a/lib/services/storagesyncManagement/lib/models/recallActionParameters.js b/lib/services/storagesyncManagement/lib/models/recallActionParameters.js new file mode 100644 index 0000000000..96d1da2872 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/recallActionParameters.js @@ -0,0 +1,60 @@ +/* + * 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. + */ + +'use strict'; + +/** + * The parameters used when calling recall action on server endpoint. + * + */ +class RecallActionParameters { + /** + * Create a RecallActionParameters. + * @member {string} [pattern] Pattern of the files. + * @member {string} [recallPath] Recall path. + */ + constructor() { + } + + /** + * Defines the metadata of RecallActionParameters + * + * @returns {object} metadata of RecallActionParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'RecallActionParameters', + type: { + name: 'Composite', + className: 'RecallActionParameters', + modelProperties: { + pattern: { + required: false, + serializedName: 'pattern', + type: { + name: 'String' + } + }, + recallPath: { + required: false, + serializedName: 'recallPath', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = RecallActionParameters; diff --git a/lib/services/storagesyncManagement/lib/models/registeredServer.js b/lib/services/storagesyncManagement/lib/models/registeredServer.js index cfa338c603..0e89a90e8c 100644 --- a/lib/services/storagesyncManagement/lib/models/registeredServer.js +++ b/lib/services/storagesyncManagement/lib/models/registeredServer.js @@ -15,14 +15,11 @@ const models = require('./index'); /** * Registered Server resource. * - * @extends models['BaseResource'] + * @extends models['ProxyResource'] */ -class RegisteredServer extends models['BaseResource'] { +class RegisteredServer extends models['ProxyResource'] { /** * Create a RegisteredServer. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type * @member {string} [serverCertificate] Registered Server Certificate * @member {string} [agentVersion] Registered Server Agent Version * @member {string} [serverOSVersion] Registered Server OS Version diff --git a/lib/services/storagesyncManagement/lib/models/registeredServerCreateParameters.js b/lib/services/storagesyncManagement/lib/models/registeredServerCreateParameters.js new file mode 100644 index 0000000000..0aaa1045fc --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/registeredServerCreateParameters.js @@ -0,0 +1,144 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The parameters used when creating a registered server. + * + * @extends models['ProxyResource'] + */ +class RegisteredServerCreateParameters extends models['ProxyResource'] { + /** + * Create a RegisteredServerCreateParameters. + * @member {string} [serverCertificate] Registered Server Certificate + * @member {string} [agentVersion] Registered Server Agent Version + * @member {string} [serverOSVersion] Registered Server OS Version + * @member {string} [lastHeartBeat] Registered Server last heart beat + * @member {string} [serverRole] Registered Server serverRole + * @member {string} [clusterId] Registered Server clusterId + * @member {string} [clusterName] Registered Server clusterName + * @member {string} [serverId] Registered Server serverId + * @member {string} [friendlyName] Friendly Name + */ + constructor() { + super(); + } + + /** + * Defines the metadata of RegisteredServerCreateParameters + * + * @returns {object} metadata of RegisteredServerCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'RegisteredServerCreateParameters', + type: { + name: 'Composite', + className: 'RegisteredServerCreateParameters', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + serverCertificate: { + required: false, + serializedName: 'properties.serverCertificate', + type: { + name: 'String' + } + }, + agentVersion: { + required: false, + serializedName: 'properties.agentVersion', + type: { + name: 'String' + } + }, + serverOSVersion: { + required: false, + serializedName: 'properties.serverOSVersion', + type: { + name: 'String' + } + }, + lastHeartBeat: { + required: false, + serializedName: 'properties.lastHeartBeat', + type: { + name: 'String' + } + }, + serverRole: { + required: false, + serializedName: 'properties.serverRole', + type: { + name: 'String' + } + }, + clusterId: { + required: false, + serializedName: 'properties.clusterId', + type: { + name: 'String' + } + }, + clusterName: { + required: false, + serializedName: 'properties.clusterName', + type: { + name: 'String' + } + }, + serverId: { + required: false, + serializedName: 'properties.serverId', + type: { + name: 'String' + } + }, + friendlyName: { + required: false, + serializedName: 'properties.friendlyName', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = RegisteredServerCreateParameters; diff --git a/lib/services/storagesyncManagement/lib/models/resource.js b/lib/services/storagesyncManagement/lib/models/resource.js index 41b5d5e0a9..b9797bc86d 100644 --- a/lib/services/storagesyncManagement/lib/models/resource.js +++ b/lib/services/storagesyncManagement/lib/models/resource.js @@ -13,16 +13,17 @@ const models = require('./index'); /** - * The Azure Resource Manager resource. - * + * Class representing a Resource. * @extends models['BaseResource'] */ class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] The id of the resource. - * @member {string} [name] The name of the resource. - * @member {string} [type] The type of the resource + * @member {string} [id] Fully qualified resource Id for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * @member {string} [name] The name of the resource + * @member {string} [type] The type of the resource. Ex- + * Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. */ constructor() { super(); diff --git a/lib/services/storagesyncManagement/lib/models/serverEndpoint.js b/lib/services/storagesyncManagement/lib/models/serverEndpoint.js index 98554e6aa1..6a7308141f 100644 --- a/lib/services/storagesyncManagement/lib/models/serverEndpoint.js +++ b/lib/services/storagesyncManagement/lib/models/serverEndpoint.js @@ -15,9 +15,9 @@ const models = require('./index'); /** * Server Endpoint object. * - * @extends models['BaseResource'] + * @extends models['ProxyResource'] */ -class ServerEndpoint extends models['BaseResource'] { +class ServerEndpoint extends models['ProxyResource'] { /** * Create a ServerEndpoint. * @member {string} [serverLocalPath] Server Local path. @@ -25,6 +25,7 @@ class ServerEndpoint extends models['BaseResource'] { * 'on', 'off' * @member {number} [volumeFreeSpacePercent] Level of free space to be * maintained by Cloud Tiering if it is enabled. + * @member {number} [tierFilesOlderThanDays] Tier files older than days. * @member {string} [friendlyName] Friendly Name * @member {string} [serverResourceId] Server Resource Id. * @member {string} [provisioningState] ServerEndpoint Provisioning State @@ -50,6 +51,30 @@ class ServerEndpoint extends models['BaseResource'] { name: 'Composite', className: 'ServerEndpoint', modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, serverLocalPath: { required: false, serializedName: 'properties.serverLocalPath', @@ -75,6 +100,17 @@ class ServerEndpoint extends models['BaseResource'] { name: 'Number' } }, + tierFilesOlderThanDays: { + required: false, + serializedName: 'properties.tierFilesOlderThanDays', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, friendlyName: { required: false, serializedName: 'properties.friendlyName', diff --git a/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js b/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js new file mode 100644 index 0000000000..fe0c1bcd95 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js @@ -0,0 +1,130 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The parameters used when creating a server endpoint. + * + * @extends models['ProxyResource'] + */ +class ServerEndpointCreateParameters extends models['ProxyResource'] { + /** + * Create a ServerEndpointCreateParameters. + * @member {string} [serverLocalPath] Server Local path. + * @member {string} [cloudTiering] Cloud Tiering. Possible values include: + * 'on', 'off' + * @member {number} [volumeFreeSpacePercent] Level of free space to be + * maintained by Cloud Tiering if it is enabled. + * @member {number} [tierFilesOlderThanDays] Tier files older than days. + * @member {string} [friendlyName] Friendly Name + * @member {string} [serverResourceId] Server Resource Id. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ServerEndpointCreateParameters + * + * @returns {object} metadata of ServerEndpointCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'ServerEndpointCreateParameters', + type: { + name: 'Composite', + className: 'ServerEndpointCreateParameters', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + serverLocalPath: { + required: false, + serializedName: 'properties.serverLocalPath', + type: { + name: 'String' + } + }, + cloudTiering: { + required: false, + serializedName: 'properties.cloudTiering', + type: { + name: 'String' + } + }, + volumeFreeSpacePercent: { + required: false, + serializedName: 'properties.volumeFreeSpacePercent', + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, + tierFilesOlderThanDays: { + required: false, + serializedName: 'properties.tierFilesOlderThanDays', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, + friendlyName: { + required: false, + serializedName: 'properties.friendlyName', + type: { + name: 'String' + } + }, + serverResourceId: { + required: false, + serializedName: 'properties.serverResourceId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ServerEndpointCreateParameters; diff --git a/lib/services/storagesyncManagement/lib/models/serverEndpointUpdateParameters.js b/lib/services/storagesyncManagement/lib/models/serverEndpointUpdateParameters.js new file mode 100644 index 0000000000..dc2722d596 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/serverEndpointUpdateParameters.js @@ -0,0 +1,78 @@ +/* + * 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. + */ + +'use strict'; + +/** + * Parameters for updating an Server Endpoint. + * + */ +class ServerEndpointUpdateParameters { + /** + * Create a ServerEndpointUpdateParameters. + * @member {string} [cloudTiering] Cloud Tiering. Possible values include: + * 'on', 'off' + * @member {number} [volumeFreeSpacePercent] Level of free space to be + * maintained by Cloud Tiering if it is enabled. + * @member {number} [tierFilesOlderThanDays] Tier files older than days. + */ + constructor() { + } + + /** + * Defines the metadata of ServerEndpointUpdateParameters + * + * @returns {object} metadata of ServerEndpointUpdateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'ServerEndpointUpdateParameters', + type: { + name: 'Composite', + className: 'ServerEndpointUpdateParameters', + modelProperties: { + cloudTiering: { + required: false, + serializedName: 'properties.cloudTiering', + type: { + name: 'String' + } + }, + volumeFreeSpacePercent: { + required: false, + serializedName: 'properties.volumeFreeSpacePercent', + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, + tierFilesOlderThanDays: { + required: false, + serializedName: 'properties.tierFilesOlderThanDays', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = ServerEndpointUpdateParameters; diff --git a/lib/services/storagesyncManagement/lib/models/storageSyncApiError.js b/lib/services/storagesyncManagement/lib/models/storageSyncApiError.js new file mode 100644 index 0000000000..553ef6142a --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/storageSyncApiError.js @@ -0,0 +1,80 @@ +/* + * 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. + */ + +'use strict'; + +/** + * Error type + * + */ +class StorageSyncApiError { + /** + * Create a StorageSyncApiError. + * @member {string} [code] Error code of the given entry. + * @member {string} [message] Error message of the given entry. + * @member {string} [target] Target of the given error entry. + * @member {object} [details] Error details of the given entry. + * @member {string} [details.code] Error code of the given entry. + * @member {string} [details.message] Error message of the given entry. + * @member {string} [details.target] Target of the given entry. + */ + constructor() { + } + + /** + * Defines the metadata of StorageSyncApiError + * + * @returns {object} metadata of StorageSyncApiError + * + */ + mapper() { + return { + required: false, + serializedName: 'StorageSyncApiError', + type: { + name: 'Composite', + className: 'StorageSyncApiError', + modelProperties: { + code: { + required: false, + serializedName: 'code', + type: { + name: 'String' + } + }, + message: { + required: false, + serializedName: 'message', + type: { + name: 'String' + } + }, + target: { + required: false, + serializedName: 'target', + type: { + name: 'String' + } + }, + details: { + required: false, + serializedName: 'details', + type: { + name: 'Composite', + className: 'StorageSyncErrorDetails' + } + } + } + } + }; + } +} + +module.exports = StorageSyncApiError; diff --git a/lib/services/storagesyncManagement/lib/models/storageSyncError.js b/lib/services/storagesyncManagement/lib/models/storageSyncError.js index 509d940f23..69cb149ebd 100644 --- a/lib/services/storagesyncManagement/lib/models/storageSyncError.js +++ b/lib/services/storagesyncManagement/lib/models/storageSyncError.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Error type * @@ -19,12 +17,23 @@ const models = require('./index'); class StorageSyncError { /** * Create a StorageSyncError. - * @member {string} [code] Error code of the given entry. - * @member {string} [message] Error message of the given entry. - * @member {object} [details] Error details of the given entry. - * @member {string} [details.code] Error code of the given entry. - * @member {string} [details.message] Error message of the given entry. - * @member {string} [details.target] Target of the given entry. + * @member {object} [error] Error details of the given entry. + * @member {string} [error.code] Error code of the given entry. + * @member {string} [error.message] Error message of the given entry. + * @member {string} [error.target] Target of the given error entry. + * @member {object} [error.details] Error details of the given entry. + * @member {string} [error.details.code] Error code of the given entry. + * @member {string} [error.details.message] Error message of the given entry. + * @member {string} [error.details.target] Target of the given entry. + * @member {object} [innererror] Error details of the given entry. + * @member {string} [innererror.code] Error code of the given entry. + * @member {string} [innererror.message] Error message of the given entry. + * @member {string} [innererror.target] Target of the given error entry. + * @member {object} [innererror.details] Error details of the given entry. + * @member {string} [innererror.details.code] Error code of the given entry. + * @member {string} [innererror.details.message] Error message of the given + * entry. + * @member {string} [innererror.details.target] Target of the given entry. */ constructor() { } @@ -43,26 +52,20 @@ class StorageSyncError { name: 'Composite', className: 'StorageSyncError', modelProperties: { - code: { - required: false, - serializedName: 'code', - type: { - name: 'String' - } - }, - message: { + error: { required: false, - serializedName: 'message', + serializedName: 'error', type: { - name: 'String' + name: 'Composite', + className: 'StorageSyncApiError' } }, - details: { + innererror: { required: false, - serializedName: 'details', + serializedName: 'innererror', type: { name: 'Composite', - className: 'StorageSyncErrorDetails' + className: 'StorageSyncApiError' } } } diff --git a/lib/services/storagesyncManagement/lib/models/storageSyncService.js b/lib/services/storagesyncManagement/lib/models/storageSyncService.js index f6b979f943..3ec28e3fab 100644 --- a/lib/services/storagesyncManagement/lib/models/storageSyncService.js +++ b/lib/services/storagesyncManagement/lib/models/storageSyncService.js @@ -15,9 +15,9 @@ const models = require('./index'); /** * Storage Sync Service object. * - * @extends models['BaseResource'] + * @extends models['TrackedResource'] */ -class StorageSyncService extends models['BaseResource'] { +class StorageSyncService extends models['TrackedResource'] { /** * Create a StorageSyncService. * @member {number} [storageSyncServiceStatus] Storage Sync service status. @@ -41,6 +41,51 @@ class StorageSyncService extends models['BaseResource'] { name: 'Composite', className: 'StorageSyncService', modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, storageSyncServiceStatus: { required: false, readOnly: true, diff --git a/lib/services/storagesyncManagement/lib/models/storageSyncServiceCreateParameters.js b/lib/services/storagesyncManagement/lib/models/storageSyncServiceCreateParameters.js new file mode 100644 index 0000000000..776dcaf1fc --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/storageSyncServiceCreateParameters.js @@ -0,0 +1,84 @@ +/* + * 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. + */ + +'use strict'; + +/** + * The parameters used when creating a storage sync service. + * + */ +class StorageSyncServiceCreateParameters { + /** + * Create a StorageSyncServiceCreateParameters. + * @member {string} location Required. Gets or sets the location of the + * resource. This will be one of the supported and registered Azure Geo + * Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + * resource cannot be changed once it is created, but if an identical geo + * region is specified on update, the request will succeed. + * @member {object} [tags] Gets or sets a list of key value pairs that + * describe the resource. These tags can be used for viewing and grouping + * this resource (across resource groups). A maximum of 15 tags can be + * provided for a resource. Each tag must have a key with a length no greater + * than 128 characters and a value with a length no greater than 256 + * characters. + * @member {object} [properties] + */ + constructor() { + } + + /** + * Defines the metadata of StorageSyncServiceCreateParameters + * + * @returns {object} metadata of StorageSyncServiceCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'StorageSyncServiceCreateParameters', + type: { + name: 'Composite', + className: 'StorageSyncServiceCreateParameters', + modelProperties: { + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + properties: { + required: false, + serializedName: 'properties', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = StorageSyncServiceCreateParameters; diff --git a/lib/services/storagesyncManagement/lib/models/storageSyncServiceUpdateParameters.js b/lib/services/storagesyncManagement/lib/models/storageSyncServiceUpdateParameters.js new file mode 100644 index 0000000000..68506e6955 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/storageSyncServiceUpdateParameters.js @@ -0,0 +1,68 @@ +/* + * 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. + */ + +'use strict'; + +/** + * Parameters for updating an Storage sync service. + * + */ +class StorageSyncServiceUpdateParameters { + /** + * Create a StorageSyncServiceUpdateParameters. + * @member {object} [tags] The user-specified tags associated with the + * storage sync service. + * @member {object} [properties] The properties of the storage sync service. + */ + constructor() { + } + + /** + * Defines the metadata of StorageSyncServiceUpdateParameters + * + * @returns {object} metadata of StorageSyncServiceUpdateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'StorageSyncServiceUpdateParameters', + type: { + name: 'Composite', + className: 'StorageSyncServiceUpdateParameters', + modelProperties: { + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + properties: { + required: false, + serializedName: 'properties', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = StorageSyncServiceUpdateParameters; diff --git a/lib/services/storagesyncManagement/lib/models/syncGroup.js b/lib/services/storagesyncManagement/lib/models/syncGroup.js index 37720481d2..d66fe945b0 100644 --- a/lib/services/storagesyncManagement/lib/models/syncGroup.js +++ b/lib/services/storagesyncManagement/lib/models/syncGroup.js @@ -15,9 +15,9 @@ const models = require('./index'); /** * Sync Group object. * - * @extends models['BaseResource'] + * @extends models['ProxyResource'] */ -class SyncGroup extends models['BaseResource'] { +class SyncGroup extends models['ProxyResource'] { /** * Create a SyncGroup. * @member {string} [uniqueId] Unique Id @@ -41,6 +41,30 @@ class SyncGroup extends models['BaseResource'] { name: 'Composite', className: 'SyncGroup', modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, uniqueId: { required: false, serializedName: 'properties.uniqueId', diff --git a/lib/services/storagesyncManagement/lib/models/syncGroupCreateParameters.js b/lib/services/storagesyncManagement/lib/models/syncGroupCreateParameters.js new file mode 100644 index 0000000000..1dd6690814 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/syncGroupCreateParameters.js @@ -0,0 +1,80 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The parameters used when creating a sync group. + * + * @extends models['ProxyResource'] + */ +class SyncGroupCreateParameters extends models['ProxyResource'] { + /** + * Create a SyncGroupCreateParameters. + * @member {object} [properties] The parameters used to create the sync group + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SyncGroupCreateParameters + * + * @returns {object} metadata of SyncGroupCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'SyncGroupCreateParameters', + type: { + name: 'Composite', + className: 'SyncGroupCreateParameters', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + properties: { + required: false, + serializedName: 'properties', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SyncGroupCreateParameters; diff --git a/lib/services/storagesyncManagement/lib/models/trackedResource.js b/lib/services/storagesyncManagement/lib/models/trackedResource.js index 1daf584523..5c6804d7c8 100644 --- a/lib/services/storagesyncManagement/lib/models/trackedResource.js +++ b/lib/services/storagesyncManagement/lib/models/trackedResource.js @@ -13,15 +13,15 @@ const models = require('./index'); /** - * ARM tracked resource + * The resource model definition for a ARM tracked top level resource * * @extends models['Resource'] */ class TrackedResource extends models['Resource'] { /** * Create a TrackedResource. - * @member {string} [location] The location of the resource. - * @member {object} [tags] The tags of the resource. + * @member {object} [tags] Resource tags. + * @member {string} location The geo-location where the resource lives */ constructor() { super(); @@ -65,18 +65,25 @@ class TrackedResource extends models['Resource'] { name: 'String' } }, - location: { + tags: { required: false, - serializedName: 'location', + serializedName: 'tags', type: { - name: 'String' + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } } }, - tags: { - required: false, - serializedName: 'tags', + location: { + required: true, + serializedName: 'location', type: { - name: 'Object' + name: 'String' } } } diff --git a/lib/services/storagesyncManagement/lib/models/triggerRolloverRequest.js b/lib/services/storagesyncManagement/lib/models/triggerRolloverRequest.js new file mode 100644 index 0000000000..696b651e5c --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/triggerRolloverRequest.js @@ -0,0 +1,52 @@ +/* + * 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. + */ + +'use strict'; + +/** + * Trigger Rollover Request. + * + */ +class TriggerRolloverRequest { + /** + * Create a TriggerRolloverRequest. + * @member {string} [certificateData] Certificate Data + */ + constructor() { + } + + /** + * Defines the metadata of TriggerRolloverRequest + * + * @returns {object} metadata of TriggerRolloverRequest + * + */ + mapper() { + return { + required: false, + serializedName: 'TriggerRolloverRequest', + type: { + name: 'Composite', + className: 'TriggerRolloverRequest', + modelProperties: { + certificateData: { + required: false, + serializedName: 'certificateData', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = TriggerRolloverRequest; diff --git a/lib/services/storagesyncManagement/lib/models/workflow.js b/lib/services/storagesyncManagement/lib/models/workflow.js index 5e92ffff83..b6fcb81fed 100644 --- a/lib/services/storagesyncManagement/lib/models/workflow.js +++ b/lib/services/storagesyncManagement/lib/models/workflow.js @@ -15,9 +15,9 @@ const models = require('./index'); /** * Workflow resource. * - * @extends models['BaseResource'] + * @extends models['ProxyResource'] */ -class Workflow extends models['BaseResource'] { +class Workflow extends models['ProxyResource'] { /** * Create a Workflow. * @member {string} [lastStepName] last step name @@ -46,6 +46,30 @@ class Workflow extends models['BaseResource'] { name: 'Composite', className: 'Workflow', modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, lastStepName: { required: false, serializedName: 'properties.lastStepName', diff --git a/lib/services/storagesyncManagement/lib/models/workflowArray.js b/lib/services/storagesyncManagement/lib/models/workflowArray.js index 698149ba59..7e56806a47 100644 --- a/lib/services/storagesyncManagement/lib/models/workflowArray.js +++ b/lib/services/storagesyncManagement/lib/models/workflowArray.js @@ -10,18 +10,15 @@ 'use strict'; -const models = require('./index'); - /** * Array of Workflow - * */ -class WorkflowArray { +class WorkflowArray extends Array { /** * Create a WorkflowArray. - * @member {array} [value] Collection of workflow items. */ constructor() { + super(); } /** @@ -40,7 +37,7 @@ class WorkflowArray { modelProperties: { value: { required: false, - serializedName: 'value', + serializedName: '', type: { name: 'Sequence', element: { diff --git a/lib/services/storagesyncManagement/lib/operations/cloudEndpoints.js b/lib/services/storagesyncManagement/lib/operations/cloudEndpoints.js index 3227f0ef9f..d4ea73b12f 100644 --- a/lib/services/storagesyncManagement/lib/operations/cloudEndpoints.js +++ b/lib/services/storagesyncManagement/lib/operations/cloudEndpoints.js @@ -18,8 +18,8 @@ const WebResource = msRest.WebResource; /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -30,10 +30,6 @@ const WebResource = msRest.WebResource; * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -43,17 +39,6 @@ const WebResource = msRest.WebResource; * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -127,8 +112,8 @@ function _create(resourceGroupName, storageSyncServiceName, syncGroupName, cloud /** * Get a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -170,6 +155,12 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEnd if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -190,6 +181,12 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEnd if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -302,8 +299,8 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEnd /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -370,8 +367,8 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, syncGroupName, /** * Get a CloudEndpoint List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -411,6 +408,12 @@ function _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupNa if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -431,6 +434,12 @@ function _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupNa if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -539,8 +548,8 @@ function _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupNa /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -612,8 +621,8 @@ function _preBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cl /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -700,8 +709,8 @@ function _postBackup(resourceGroupName, storageSyncServiceName, syncGroupName, c /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -793,8 +802,8 @@ function _preRestore(resourceGroupName, storageSyncServiceName, syncGroupName, c /** * Restore Heartbeat a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -835,6 +844,12 @@ function _restoreheartbeat(resourceGroupName, storageSyncServiceName, syncGroupN if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -855,6 +870,12 @@ function _restoreheartbeat(resourceGroupName, storageSyncServiceName, syncGroupN if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -950,8 +971,8 @@ function _restoreheartbeat(resourceGroupName, storageSyncServiceName, syncGroupN /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1040,8 +1061,8 @@ function _postRestore(resourceGroupName, storageSyncServiceName, syncGroupName, /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1052,10 +1073,6 @@ function _postRestore(resourceGroupName, storageSyncServiceName, syncGroupName, * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -1065,17 +1082,6 @@ function _postRestore(resourceGroupName, storageSyncServiceName, syncGroupName, * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1109,6 +1115,12 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -1129,6 +1141,12 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -1187,7 +1205,7 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['CloudEndpoint']().mapper(); + let requestModelMapper = new client.models['CloudEndpointCreateParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -1257,8 +1275,8 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1299,6 +1317,12 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, syncGroup if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -1319,6 +1343,12 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, syncGroup if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -1413,8 +1443,8 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, syncGroup /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1459,6 +1489,12 @@ function _beginPreBackup(resourceGroupName, storageSyncServiceName, syncGroupNam if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -1479,6 +1515,12 @@ function _beginPreBackup(resourceGroupName, storageSyncServiceName, syncGroupNam if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -1590,8 +1632,8 @@ function _beginPreBackup(resourceGroupName, storageSyncServiceName, syncGroupNam /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1637,6 +1679,12 @@ function _beginPostBackup(resourceGroupName, storageSyncServiceName, syncGroupNa if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -1657,6 +1705,12 @@ function _beginPostBackup(resourceGroupName, storageSyncServiceName, syncGroupNa if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -1785,8 +1839,8 @@ function _beginPostBackup(resourceGroupName, storageSyncServiceName, syncGroupNa /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1852,6 +1906,12 @@ function _beginPreRestore(resourceGroupName, storageSyncServiceName, syncGroupNa if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -1872,6 +1932,12 @@ function _beginPreRestore(resourceGroupName, storageSyncServiceName, syncGroupNa if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -1983,8 +2049,8 @@ function _beginPreRestore(resourceGroupName, storageSyncServiceName, syncGroupNa /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2047,6 +2113,12 @@ function _beginPostRestore(resourceGroupName, storageSyncServiceName, syncGroupN if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -2067,6 +2139,12 @@ function _beginPostRestore(resourceGroupName, storageSyncServiceName, syncGroupN if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -2203,8 +2281,8 @@ class CloudEndpoints { /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2215,10 +2293,6 @@ class CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -2228,17 +2302,6 @@ class CloudEndpoints { * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2267,8 +2330,8 @@ class CloudEndpoints { /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2279,10 +2342,6 @@ class CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -2292,17 +2351,6 @@ class CloudEndpoints { * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2353,8 +2401,8 @@ class CloudEndpoints { /** * Get a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2391,8 +2439,8 @@ class CloudEndpoints { /** * Get a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2451,8 +2499,8 @@ class CloudEndpoints { /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2489,8 +2537,8 @@ class CloudEndpoints { /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2548,8 +2596,8 @@ class CloudEndpoints { /** * Get a CloudEndpoint List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2584,8 +2632,8 @@ class CloudEndpoints { /** * Get a CloudEndpoint List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2642,8 +2690,8 @@ class CloudEndpoints { /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2684,8 +2732,8 @@ class CloudEndpoints { /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2747,8 +2795,8 @@ class CloudEndpoints { /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2789,8 +2837,8 @@ class CloudEndpoints { /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2853,8 +2901,8 @@ class CloudEndpoints { /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2916,8 +2964,8 @@ class CloudEndpoints { /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3000,8 +3048,8 @@ class CloudEndpoints { /** * Restore Heartbeat a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3038,8 +3086,8 @@ class CloudEndpoints { /** * Restore Heartbeat a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3097,8 +3145,8 @@ class CloudEndpoints { /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3157,8 +3205,8 @@ class CloudEndpoints { /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3238,8 +3286,8 @@ class CloudEndpoints { /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3250,10 +3298,6 @@ class CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -3263,17 +3307,6 @@ class CloudEndpoints { * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3302,8 +3335,8 @@ class CloudEndpoints { /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3314,10 +3347,6 @@ class CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -3327,17 +3356,6 @@ class CloudEndpoints { * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3388,8 +3406,8 @@ class CloudEndpoints { /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3426,8 +3444,8 @@ class CloudEndpoints { /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3485,8 +3503,8 @@ class CloudEndpoints { /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3527,8 +3545,8 @@ class CloudEndpoints { /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3590,8 +3608,8 @@ class CloudEndpoints { /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3632,8 +3650,8 @@ class CloudEndpoints { /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3696,8 +3714,8 @@ class CloudEndpoints { /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3759,8 +3777,8 @@ class CloudEndpoints { /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3843,8 +3861,8 @@ class CloudEndpoints { /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3903,8 +3921,8 @@ class CloudEndpoints { /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. diff --git a/lib/services/storagesyncManagement/lib/operations/index.d.ts b/lib/services/storagesyncManagement/lib/operations/index.d.ts index 74d7e97dc0..6ba52d1801 100644 --- a/lib/services/storagesyncManagement/lib/operations/index.d.ts +++ b/lib/services/storagesyncManagement/lib/operations/index.d.ts @@ -209,14 +209,28 @@ export interface StorageSyncServices { /** * Create a new StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. * * @param {object} parameters Storage Sync Service resource name. * + * @param {string} parameters.location Required. Gets or sets the location of + * the resource. This will be one of the supported and registered Azure Geo + * Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + * resource cannot be changed once it is created, but if an identical geo + * region is specified on update, the request will succeed. + * + * @param {object} [parameters.tags] Gets or sets a list of key value pairs + * that describe the resource. These tags can be used for viewing and grouping + * this resource (across resource groups). A maximum of 15 tags can be provided + * for a resource. Each tag must have a key with a length no greater than 128 + * characters and a value with a length no greater than 256 characters. + * + * @param {object} [parameters.properties] + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -228,19 +242,33 @@ export interface StorageSyncServices { * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, parameters: models.StorageSyncService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, parameters: models.StorageSyncServiceCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create a new StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. * * @param {object} parameters Storage Sync Service resource name. * + * @param {string} parameters.location Required. Gets or sets the location of + * the resource. This will be one of the supported and registered Azure Geo + * Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + * resource cannot be changed once it is created, but if an identical geo + * region is specified on update, the request will succeed. + * + * @param {object} [parameters.tags] Gets or sets a list of key value pairs + * that describe the resource. These tags can be used for viewing and grouping + * this resource (across resource groups). A maximum of 15 tags can be provided + * for a resource. Each tag must have a key with a length no greater than 128 + * characters and a value with a length no greater than 256 characters. + * + * @param {object} [parameters.properties] + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -268,16 +296,16 @@ export interface StorageSyncServices { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, storageSyncServiceName: string, parameters: models.StorageSyncService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, storageSyncServiceName: string, parameters: models.StorageSyncService, callback: ServiceCallback): void; - create(resourceGroupName: string, storageSyncServiceName: string, parameters: models.StorageSyncService, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, parameters: models.StorageSyncServiceCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, storageSyncServiceName: string, parameters: models.StorageSyncServiceCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, parameters: models.StorageSyncServiceCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -298,8 +326,8 @@ export interface StorageSyncServices { /** * Get a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -339,8 +367,8 @@ export interface StorageSyncServices { /** * Patch a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -349,6 +377,12 @@ export interface StorageSyncServices { * * @param {object} [options.parameters] Storage Sync Service resource. * + * @param {object} [options.parameters.tags] The user-specified tags associated + * with the storage sync service. + * + * @param {object} [options.parameters.properties] The properties of the + * storage sync service. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -358,13 +392,13 @@ export interface StorageSyncServices { * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, options?: { parameters? : models.StorageSyncService, customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, options?: { parameters? : models.StorageSyncServiceUpdateParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Patch a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -373,6 +407,12 @@ export interface StorageSyncServices { * * @param {object} [options.parameters] Storage Sync Service resource. * + * @param {object} [options.parameters.tags] The user-specified tags associated + * with the storage sync service. + * + * @param {object} [options.parameters.properties] The properties of the + * storage sync service. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -398,16 +438,16 @@ export interface StorageSyncServices { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, storageSyncServiceName: string, options?: { parameters? : models.StorageSyncService, customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, storageSyncServiceName: string, options?: { parameters? : models.StorageSyncServiceUpdateParameters, customHeaders? : { [headerName: string]: string; } }): Promise; update(resourceGroupName: string, storageSyncServiceName: string, callback: ServiceCallback): void; - update(resourceGroupName: string, storageSyncServiceName: string, options: { parameters? : models.StorageSyncService, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, storageSyncServiceName: string, options: { parameters? : models.StorageSyncServiceUpdateParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Delete a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -428,8 +468,8 @@ export interface StorageSyncServices { /** * Delete a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -468,8 +508,8 @@ export interface StorageSyncServices { /** * Get a StorageSyncService list by Resource group name. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -487,8 +527,8 @@ export interface StorageSyncServices { /** * Get a StorageSyncService list by Resource group name. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -587,8 +627,8 @@ export interface SyncGroups { /** * Get a SyncGroup List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -609,8 +649,8 @@ export interface SyncGroups { /** * Get a SyncGroup List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -650,8 +690,8 @@ export interface SyncGroups { /** * Create a new SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -660,7 +700,8 @@ export interface SyncGroups { * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @param {object} [parameters.properties] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -673,13 +714,13 @@ export interface SyncGroups { * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, parameters: models.SyncGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, parameters: models.SyncGroupCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create a new SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -688,7 +729,8 @@ export interface SyncGroups { * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @param {object} [parameters.properties] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -717,16 +759,16 @@ export interface SyncGroups { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, parameters: models.SyncGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, parameters: models.SyncGroup, callback: ServiceCallback): void; - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, parameters: models.SyncGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, parameters: models.SyncGroupCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, parameters: models.SyncGroupCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, parameters: models.SyncGroupCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -749,8 +791,8 @@ export interface SyncGroups { /** * Get a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -792,8 +834,8 @@ export interface SyncGroups { /** * Delete a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -816,8 +858,8 @@ export interface SyncGroups { /** * Delete a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -867,8 +909,8 @@ export interface CloudEndpoints { /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -879,10 +921,6 @@ export interface CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -892,17 +930,6 @@ export interface CloudEndpoints { * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -914,13 +941,13 @@ export interface CloudEndpoints { * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpointCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -931,10 +958,6 @@ export interface CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -944,17 +967,6 @@ export interface CloudEndpoints { * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -982,16 +994,16 @@ export interface CloudEndpoints { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpoint, callback: ServiceCallback): void; - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpoint, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpointCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpointCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpointCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1016,8 +1028,8 @@ export interface CloudEndpoints { /** * Get a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1061,8 +1073,8 @@ export interface CloudEndpoints { /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1087,8 +1099,8 @@ export interface CloudEndpoints { /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1131,8 +1143,8 @@ export interface CloudEndpoints { /** * Get a CloudEndpoint List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1155,8 +1167,8 @@ export interface CloudEndpoints { /** * Get a CloudEndpoint List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1198,8 +1210,8 @@ export interface CloudEndpoints { /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1228,8 +1240,8 @@ export interface CloudEndpoints { /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1276,8 +1288,8 @@ export interface CloudEndpoints { /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1306,8 +1318,8 @@ export interface CloudEndpoints { /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1355,8 +1367,8 @@ export interface CloudEndpoints { /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1406,8 +1418,8 @@ export interface CloudEndpoints { /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1475,8 +1487,8 @@ export interface CloudEndpoints { /** * Restore Heartbeat a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1501,8 +1513,8 @@ export interface CloudEndpoints { /** * Restore Heartbeat a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1545,8 +1557,8 @@ export interface CloudEndpoints { /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1593,8 +1605,8 @@ export interface CloudEndpoints { /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1659,8 +1671,8 @@ export interface CloudEndpoints { /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1671,10 +1683,6 @@ export interface CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -1684,17 +1692,6 @@ export interface CloudEndpoints { * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1706,13 +1703,13 @@ export interface CloudEndpoints { * * @reject {Error|ServiceError} - The error object. */ - beginCreateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpointCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create a new CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1723,10 +1720,6 @@ export interface CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. - * - * @param {string} [parameters.storageAccount] Storage Account name. - * * @param {string} [parameters.storageAccountResourceId] Storage Account * Resource Id * @@ -1736,17 +1729,6 @@ export interface CloudEndpoints { * @param {string} [parameters.storageAccountTenantId] Storage Account Tenant * Id * - * @param {string} [parameters.partnershipId] Partnership Id - * - * @param {string} [parameters.friendlyName] Friendly Name - * - * @param {string} [parameters.provisioningState] CloudEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] CloudEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1774,16 +1756,16 @@ export interface CloudEndpoints { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpoint, callback: ServiceCallback): void; - beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpoint, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpointCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpointCreateParameters, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, cloudEndpointName: string, parameters: models.CloudEndpointCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1808,8 +1790,8 @@ export interface CloudEndpoints { /** * Delete a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1852,8 +1834,8 @@ export interface CloudEndpoints { /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1882,8 +1864,8 @@ export interface CloudEndpoints { /** * Pre Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1930,8 +1912,8 @@ export interface CloudEndpoints { /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1960,8 +1942,8 @@ export interface CloudEndpoints { /** * Post Backup a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2009,8 +1991,8 @@ export interface CloudEndpoints { /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2060,8 +2042,8 @@ export interface CloudEndpoints { /** * Pre Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2129,8 +2111,8 @@ export interface CloudEndpoints { /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2177,8 +2159,8 @@ export interface CloudEndpoints { /** * Post Restore a given CloudEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2252,8 +2234,8 @@ export interface ServerEndpoints { /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2272,19 +2254,13 @@ export interface ServerEndpoints { * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2296,13 +2272,13 @@ export interface ServerEndpoints { * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpointCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2321,19 +2297,13 @@ export interface ServerEndpoints { * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2361,16 +2331,16 @@ export interface ServerEndpoints { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpoint, callback: ServiceCallback): void; - create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpoint, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpointCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpointCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpointCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2384,28 +2354,14 @@ export interface ServerEndpoints { * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -2416,13 +2372,13 @@ export interface ServerEndpoints { * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { parameters? : models.ServerEndpoint, customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { parameters? : models.ServerEndpointUpdateParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2436,28 +2392,14 @@ export interface ServerEndpoints { * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -2484,16 +2426,16 @@ export interface ServerEndpoints { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { parameters? : models.ServerEndpoint, customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { parameters? : models.ServerEndpointUpdateParameters, customHeaders? : { [headerName: string]: string; } }): Promise; update(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, callback: ServiceCallback): void; - update(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options: { parameters? : models.ServerEndpoint, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options: { parameters? : models.ServerEndpointUpdateParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get a ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2518,8 +2460,8 @@ export interface ServerEndpoints { /** * Get a ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2563,8 +2505,8 @@ export interface ServerEndpoints { /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2589,8 +2531,8 @@ export interface ServerEndpoints { /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2633,8 +2575,8 @@ export interface ServerEndpoints { /** * Get a ServerEndpoint list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2657,8 +2599,8 @@ export interface ServerEndpoints { /** * Get a ServerEndpoint list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2700,8 +2642,8 @@ export interface ServerEndpoints { /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2710,6 +2652,12 @@ export interface ServerEndpoints { * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2721,13 +2669,13 @@ export interface ServerEndpoints { * * @reject {Error|ServiceError} - The error object. */ - recallActionWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + recallActionWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.RecallActionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2736,6 +2684,12 @@ export interface ServerEndpoints { * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2762,16 +2716,16 @@ export interface ServerEndpoints { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - recallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - recallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, callback: ServiceCallback): void; - recallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + recallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.RecallActionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + recallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.RecallActionParameters, callback: ServiceCallback): void; + recallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.RecallActionParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2790,19 +2744,13 @@ export interface ServerEndpoints { * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2814,13 +2762,13 @@ export interface ServerEndpoints { * * @reject {Error|ServiceError} - The error object. */ - beginCreateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpointCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2839,19 +2787,13 @@ export interface ServerEndpoints { * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2879,16 +2821,16 @@ export interface ServerEndpoints { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpoint, callback: ServiceCallback): void; - beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpoint, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpointCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpointCreateParameters, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.ServerEndpointCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2902,28 +2844,14 @@ export interface ServerEndpoints { * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -2934,13 +2862,13 @@ export interface ServerEndpoints { * * @reject {Error|ServiceError} - The error object. */ - beginUpdateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { parameters? : models.ServerEndpoint, customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { parameters? : models.ServerEndpointUpdateParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2954,28 +2882,14 @@ export interface ServerEndpoints { * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -3002,16 +2916,16 @@ export interface ServerEndpoints { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { parameters? : models.ServerEndpoint, customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { parameters? : models.ServerEndpointUpdateParameters, customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, callback: ServiceCallback): void; - beginUpdate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options: { parameters? : models.ServerEndpoint, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginUpdate(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options: { parameters? : models.ServerEndpointUpdateParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3036,8 +2950,8 @@ export interface ServerEndpoints { /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3080,8 +2994,8 @@ export interface ServerEndpoints { /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3090,6 +3004,12 @@ export interface ServerEndpoints { * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3101,13 +3021,13 @@ export interface ServerEndpoints { * * @reject {Error|ServiceError} - The error object. */ - beginRecallActionWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginRecallActionWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.RecallActionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3116,6 +3036,12 @@ export interface ServerEndpoints { * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3142,9 +3068,9 @@ export interface ServerEndpoints { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginRecallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginRecallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, callback: ServiceCallback): void; - beginRecallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginRecallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.RecallActionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginRecallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.RecallActionParameters, callback: ServiceCallback): void; + beginRecallAction(resourceGroupName: string, storageSyncServiceName: string, syncGroupName: string, serverEndpointName: string, parameters: models.RecallActionParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -3159,8 +3085,8 @@ export interface RegisteredServers { /** * Get a given registered server list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3181,8 +3107,8 @@ export interface RegisteredServers { /** * Get a given registered server list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3222,8 +3148,8 @@ export interface RegisteredServers { /** * Get a given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3246,8 +3172,8 @@ export interface RegisteredServers { /** * Get a given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3289,8 +3215,8 @@ export interface RegisteredServers { /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3305,14 +3231,8 @@ export interface RegisteredServers { * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -3321,24 +3241,8 @@ export interface RegisteredServers { * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3350,13 +3254,13 @@ export interface RegisteredServers { * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServerCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3371,14 +3275,8 @@ export interface RegisteredServers { * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -3387,24 +3285,8 @@ export interface RegisteredServers { * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3432,16 +3314,16 @@ export interface RegisteredServers { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServer, callback: ServiceCallback): void; - create(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServer, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServerCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServerCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServerCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3464,8 +3346,8 @@ export interface RegisteredServers { /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3503,11 +3385,85 @@ export interface RegisteredServers { deleteMethod(resourceGroupName: string, storageSyncServiceName: string, serverId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + triggerRolloverWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.TriggerRolloverRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + triggerRollover(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.TriggerRolloverRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + triggerRollover(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.TriggerRolloverRequest, callback: ServiceCallback): void; + triggerRollover(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.TriggerRolloverRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3522,14 +3478,8 @@ export interface RegisteredServers { * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -3538,24 +3488,8 @@ export interface RegisteredServers { * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3567,13 +3501,13 @@ export interface RegisteredServers { * * @reject {Error|ServiceError} - The error object. */ - beginCreateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServerCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3588,14 +3522,8 @@ export interface RegisteredServers { * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -3604,24 +3532,8 @@ export interface RegisteredServers { * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3649,16 +3561,16 @@ export interface RegisteredServers { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreate(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreate(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServer, callback: ServiceCallback): void; - beginCreate(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServer, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServerCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServerCreateParameters, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.RegisteredServerCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3681,8 +3593,8 @@ export interface RegisteredServers { /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3718,6 +3630,80 @@ export interface RegisteredServers { beginDeleteMethod(resourceGroupName: string, storageSyncServiceName: string, serverId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, storageSyncServiceName: string, serverId: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, storageSyncServiceName: string, serverId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginTriggerRolloverWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.TriggerRolloverRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginTriggerRollover(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.TriggerRolloverRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginTriggerRollover(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.TriggerRolloverRequest, callback: ServiceCallback): void; + beginTriggerRollover(resourceGroupName: string, storageSyncServiceName: string, serverId: string, parameters: models.TriggerRolloverRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -3729,11 +3715,74 @@ export interface RegisteredServers { export interface Workflows { + /** + * Get a Workflow List + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByStorageSyncServiceWithHttpOperationResponse(resourceGroupName: string, storageSyncServiceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get a Workflow List + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {WorkflowArray} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {WorkflowArray} [result] - The deserialized result object if an error did not occur. + * See {@link WorkflowArray} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, callback: ServiceCallback): void; + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Get Workflows resource * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3756,8 +3805,8 @@ export interface Workflows { /** * Get Workflows resource * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3799,8 +3848,8 @@ export interface Workflows { /** * Abort the given workflow. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -3823,8 +3872,8 @@ export interface Workflows { /** * Abort the given workflow. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. diff --git a/lib/services/storagesyncManagement/lib/operations/operations.js b/lib/services/storagesyncManagement/lib/operations/operations.js index 2fc78f7549..ff16badfe9 100644 --- a/lib/services/storagesyncManagement/lib/operations/operations.js +++ b/lib/services/storagesyncManagement/lib/operations/operations.js @@ -51,6 +51,12 @@ function _list(options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } diff --git a/lib/services/storagesyncManagement/lib/operations/registeredServers.js b/lib/services/storagesyncManagement/lib/operations/registeredServers.js index 70c88485da..c9d533adda 100644 --- a/lib/services/storagesyncManagement/lib/operations/registeredServers.js +++ b/lib/services/storagesyncManagement/lib/operations/registeredServers.js @@ -17,8 +17,8 @@ const WebResource = msRest.WebResource; /** * Get a given registered server list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -56,6 +56,12 @@ function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, op if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -76,6 +82,12 @@ function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, op if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -179,8 +191,8 @@ function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, op /** * Get a given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -220,6 +232,12 @@ function _get(resourceGroupName, storageSyncServiceName, serverId, options, call if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -240,6 +258,12 @@ function _get(resourceGroupName, storageSyncServiceName, serverId, options, call if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -348,8 +372,8 @@ function _get(resourceGroupName, storageSyncServiceName, serverId, options, call /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -364,14 +388,8 @@ function _get(resourceGroupName, storageSyncServiceName, serverId, options, call * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -380,24 +398,8 @@ function _get(resourceGroupName, storageSyncServiceName, serverId, options, call * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -472,8 +474,8 @@ function _create(resourceGroupName, storageSyncServiceName, serverId, parameters /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -535,11 +537,82 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, serverId, opti }); } + +/** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _triggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginTriggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -554,14 +627,8 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, serverId, opti * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -570,24 +637,8 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, serverId, opti * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -621,6 +672,12 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, serverId, param if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -641,6 +698,12 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, serverId, param if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -695,7 +758,7 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, serverId, param let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['RegisteredServer']().mapper(); + let requestModelMapper = new client.models['RegisteredServerCreateParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -765,8 +828,8 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, serverId, param /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -805,6 +868,12 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, serverId, if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -825,6 +894,12 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, serverId, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -912,6 +987,189 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, serverId, }); } +/** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginTriggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); + } + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } + if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { + throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); + } + if (serverId === null || serverId === undefined || typeof serverId.valueOf() !== 'string') { + throw new Error('serverId cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{storageSyncServiceName}', encodeURIComponent(storageSyncServiceName)); + requestUrl = requestUrl.replace('{serverId}', encodeURIComponent(serverId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['TriggerRolloverRequest']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 202) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['StorageSyncError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + + return callback(null, result, httpRequest, response); + }); +} + /** Class representing a RegisteredServers. */ class RegisteredServers { /** @@ -924,15 +1182,17 @@ class RegisteredServers { this._get = _get; this._create = _create; this._deleteMethod = _deleteMethod; + this._triggerRollover = _triggerRollover; this._beginCreate = _beginCreate; this._beginDeleteMethod = _beginDeleteMethod; + this._beginTriggerRollover = _beginTriggerRollover; } /** * Get a given registered server list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -965,8 +1225,8 @@ class RegisteredServers { /** * Get a given registered server list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1021,8 +1281,8 @@ class RegisteredServers { /** * Get a given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1057,8 +1317,8 @@ class RegisteredServers { /** * Get a given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1115,8 +1375,8 @@ class RegisteredServers { /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1131,14 +1391,8 @@ class RegisteredServers { * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -1147,24 +1401,8 @@ class RegisteredServers { * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1193,8 +1431,8 @@ class RegisteredServers { /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1209,14 +1447,8 @@ class RegisteredServers { * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -1225,24 +1457,8 @@ class RegisteredServers { * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1293,8 +1509,8 @@ class RegisteredServers { /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1329,8 +1545,8 @@ class RegisteredServers { /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1383,11 +1599,112 @@ class RegisteredServers { } } + /** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + triggerRolloverWithHttpOperationResponse(resourceGroupName, storageSyncServiceName, serverId, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._triggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + triggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._triggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._triggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, optionalCallback); + } + } + /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1402,14 +1719,8 @@ class RegisteredServers { * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -1418,24 +1729,8 @@ class RegisteredServers { * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1464,8 +1759,8 @@ class RegisteredServers { /** * Add a new registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1480,14 +1775,8 @@ class RegisteredServers { * * @param {string} [parameters.serverOSVersion] Registered Server OS Version * - * @param {number} [parameters.serverManagementtErrorCode] Registered Server - * Management Error Code - * * @param {string} [parameters.lastHeartBeat] Registered Server last heart beat * - * @param {string} [parameters.provisioningState] Registered Server - * Provisioning State - * * @param {string} [parameters.serverRole] Registered Server serverRole * * @param {string} [parameters.clusterId] Registered Server clusterId @@ -1496,24 +1785,8 @@ class RegisteredServers { * * @param {string} [parameters.serverId] Registered Server serverId * - * @param {string} [parameters.storageSyncServiceUid] Registered Server - * storageSyncServiceUid - * - * @param {string} [parameters.lastWorkflowId] Registered Server lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {string} [parameters.discoveryEndpointUri] Resource - * discoveryEndpointUri - * - * @param {string} [parameters.resourceLocation] Resource Location - * - * @param {string} [parameters.serviceLocation] Service Location - * * @param {string} [parameters.friendlyName] Friendly Name * - * @param {string} [parameters.managementEndpointUri] Management Endpoint Uri - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1564,8 +1837,8 @@ class RegisteredServers { /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1600,8 +1873,8 @@ class RegisteredServers { /** * Delete the given registered server. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1654,6 +1927,107 @@ class RegisteredServers { } } + /** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + beginTriggerRolloverWithHttpOperationResponse(resourceGroupName, storageSyncServiceName, serverId, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginTriggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Triggers Server certificate rollover. + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {string} serverId Server Id + * + * @param {object} parameters Body of Trigger Rollover request. + * + * @param {string} [parameters.certificateData] Certificate Data + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginTriggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginTriggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginTriggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options, optionalCallback); + } + } + } module.exports = RegisteredServers; diff --git a/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js b/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js index 020e7a6d1c..fd0a566b95 100644 --- a/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js +++ b/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js @@ -18,8 +18,8 @@ const WebResource = msRest.WebResource; /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -38,19 +38,13 @@ const WebResource = msRest.WebResource; * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -125,8 +119,8 @@ function _create(resourceGroupName, storageSyncServiceName, syncGroupName, serve /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -140,28 +134,14 @@ function _create(resourceGroupName, storageSyncServiceName, syncGroupName, serve * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -234,8 +214,8 @@ function _update(resourceGroupName, storageSyncServiceName, syncGroupName, serve /** * Get a ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -277,6 +257,12 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, serverEn if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -297,6 +283,12 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, serverEn if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -409,8 +401,8 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, serverEn /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -477,8 +469,8 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, syncGroupName, /** * Get a ServerEndpoint list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -518,6 +510,12 @@ function _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupNa if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -538,6 +536,12 @@ function _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupNa if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -646,8 +650,8 @@ function _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupNa /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -656,6 +660,12 @@ function _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupNa * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -673,7 +683,7 @@ function _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupNa * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, callback) { +function _recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -686,7 +696,7 @@ function _recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, } // Send request - this.beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, (err, parsedResult, httpRequest, response) => { + this.beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -714,8 +724,8 @@ function _recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -734,19 +744,13 @@ function _recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -780,6 +784,12 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -800,6 +810,12 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -858,7 +874,7 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['ServerEndpoint']().mapper(); + let requestModelMapper = new client.models['ServerEndpointCreateParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -928,8 +944,8 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -943,28 +959,14 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -998,6 +1000,12 @@ function _beginUpdate(resourceGroupName, storageSyncServiceName, syncGroupName, if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -1018,6 +1026,12 @@ function _beginUpdate(resourceGroupName, storageSyncServiceName, syncGroupName, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -1073,7 +1087,7 @@ function _beginUpdate(resourceGroupName, storageSyncServiceName, syncGroupName, let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['ServerEndpoint']().mapper(); + let requestModelMapper = new client.models['ServerEndpointUpdateParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -1143,8 +1157,8 @@ function _beginUpdate(resourceGroupName, storageSyncServiceName, syncGroupName, /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1185,6 +1199,12 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, syncGroup if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -1205,6 +1225,12 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, syncGroup if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -1299,8 +1325,8 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, syncGroup /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1309,6 +1335,12 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, syncGroup * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1326,7 +1358,7 @@ function _beginDeleteMethod(resourceGroupName, storageSyncServiceName, syncGroup * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, callback) { +function _beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1341,6 +1373,12 @@ function _beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroup if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -1361,6 +1399,12 @@ function _beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroup if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -1370,6 +1414,9 @@ function _beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroup if (serverEndpointName === null || serverEndpointName === undefined || typeof serverEndpointName.valueOf() !== 'string') { throw new Error('serverEndpointName cannot be null or undefined and it must be of type string.'); } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1411,7 +1458,21 @@ function _beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroup } } } - httpRequest.body = null; + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['RecallActionParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -1475,8 +1536,8 @@ class ServerEndpoints { /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1495,19 +1556,13 @@ class ServerEndpoints { * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1536,8 +1591,8 @@ class ServerEndpoints { /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1556,19 +1611,13 @@ class ServerEndpoints { * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1619,8 +1668,8 @@ class ServerEndpoints { /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1634,28 +1683,14 @@ class ServerEndpoints { * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -1683,8 +1718,8 @@ class ServerEndpoints { /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1698,28 +1733,14 @@ class ServerEndpoints { * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -1769,8 +1790,8 @@ class ServerEndpoints { /** * Get a ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1807,8 +1828,8 @@ class ServerEndpoints { /** * Get a ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1867,8 +1888,8 @@ class ServerEndpoints { /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1905,8 +1926,8 @@ class ServerEndpoints { /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1964,8 +1985,8 @@ class ServerEndpoints { /** * Get a ServerEndpoint list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2000,8 +2021,8 @@ class ServerEndpoints { /** * Get a ServerEndpoint list. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2058,8 +2079,8 @@ class ServerEndpoints { /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2068,6 +2089,12 @@ class ServerEndpoints { * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2079,11 +2106,11 @@ class ServerEndpoints { * * @reject {Error} - The error object. */ - recallActionWithHttpOperationResponse(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options) { + recallActionWithHttpOperationResponse(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, (err, result, request, response) => { + self._recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2096,8 +2123,8 @@ class ServerEndpoints { /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2106,6 +2133,12 @@ class ServerEndpoints { * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2132,7 +2165,7 @@ class ServerEndpoints { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, optionalCallback) { + recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2141,22 +2174,22 @@ class ServerEndpoints { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, (err, result, request, response) => { + self._recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, optionalCallback); + return self._recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, optionalCallback); } } /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2175,19 +2208,13 @@ class ServerEndpoints { * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2216,8 +2243,8 @@ class ServerEndpoints { /** * Create a new ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2236,19 +2263,13 @@ class ServerEndpoints { * @param {number} [parameters.volumeFreeSpacePercent] Level of free space to * be maintained by Cloud Tiering if it is enabled. * + * @param {number} [parameters.tierFilesOlderThanDays] Tier files older than + * days. + * * @param {string} [parameters.friendlyName] Friendly Name * * @param {string} [parameters.serverResourceId] Server Resource Id. * - * @param {string} [parameters.provisioningState] ServerEndpoint Provisioning - * State - * - * @param {string} [parameters.lastWorkflowId] ServerEndpoint lastWorkflowId - * - * @param {string} [parameters.lastOperationName] Resource Last Operation Name - * - * @param {object} [parameters.syncStatus] Sync Health Status - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2299,8 +2320,8 @@ class ServerEndpoints { /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2314,28 +2335,14 @@ class ServerEndpoints { * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -2363,8 +2370,8 @@ class ServerEndpoints { /** * Patch a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2378,28 +2385,14 @@ class ServerEndpoints { * @param {object} [options.parameters] Any of the properties applicable in PUT * request. * - * @param {string} [options.parameters.serverLocalPath] Server Local path. - * * @param {string} [options.parameters.cloudTiering] Cloud Tiering. Possible * values include: 'on', 'off' * * @param {number} [options.parameters.volumeFreeSpacePercent] Level of free * space to be maintained by Cloud Tiering if it is enabled. * - * @param {string} [options.parameters.friendlyName] Friendly Name - * - * @param {string} [options.parameters.serverResourceId] Server Resource Id. - * - * @param {string} [options.parameters.provisioningState] ServerEndpoint - * Provisioning State - * - * @param {string} [options.parameters.lastWorkflowId] ServerEndpoint - * lastWorkflowId - * - * @param {string} [options.parameters.lastOperationName] Resource Last - * Operation Name - * - * @param {object} [options.parameters.syncStatus] Sync Health Status + * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older + * than days. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -2449,8 +2442,8 @@ class ServerEndpoints { /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2487,8 +2480,8 @@ class ServerEndpoints { /** * Delete a given ServerEndpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2546,8 +2539,8 @@ class ServerEndpoints { /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2556,6 +2549,12 @@ class ServerEndpoints { * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2567,11 +2566,11 @@ class ServerEndpoints { * * @reject {Error} - The error object. */ - beginRecallActionWithHttpOperationResponse(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options) { + beginRecallActionWithHttpOperationResponse(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, (err, result, request, response) => { + self._beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2584,8 +2583,8 @@ class ServerEndpoints { /** * Recall a serverendpoint. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -2594,6 +2593,12 @@ class ServerEndpoints { * * @param {string} serverEndpointName Name of Server Endpoint object. * + * @param {object} parameters Body of Recall Action object. + * + * @param {string} [parameters.pattern] Pattern of the files. + * + * @param {string} [parameters.recallPath] Recall path. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2620,7 +2625,7 @@ class ServerEndpoints { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, optionalCallback) { + beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2629,14 +2634,14 @@ class ServerEndpoints { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, (err, result, request, response) => { + self._beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options, optionalCallback); + return self._beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options, optionalCallback); } } diff --git a/lib/services/storagesyncManagement/lib/operations/storageSyncServices.js b/lib/services/storagesyncManagement/lib/operations/storageSyncServices.js index 3dffc26791..eeddf3ea61 100644 --- a/lib/services/storagesyncManagement/lib/operations/storageSyncServices.js +++ b/lib/services/storagesyncManagement/lib/operations/storageSyncServices.js @@ -65,9 +65,21 @@ function _checkNameAvailability(locationName, parameters, options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (parameters === null || parameters === undefined) { throw new Error('parameters cannot be null or undefined.'); } @@ -183,14 +195,28 @@ function _checkNameAvailability(locationName, parameters, options, callback) { /** * Create a new StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. * * @param {object} parameters Storage Sync Service resource name. * + * @param {string} parameters.location Required. Gets or sets the location of + * the resource. This will be one of the supported and registered Azure Geo + * Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + * resource cannot be changed once it is created, but if an identical geo + * region is specified on update, the request will succeed. + * + * @param {object} [parameters.tags] Gets or sets a list of key value pairs + * that describe the resource. These tags can be used for viewing and grouping + * this resource (across resource groups). A maximum of 15 tags can be provided + * for a resource. Each tag must have a key with a length no greater than 128 + * characters and a value with a length no greater than 256 characters. + * + * @param {object} [parameters.properties] + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -224,6 +250,12 @@ function _create(resourceGroupName, storageSyncServiceName, parameters, options, if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -244,6 +276,12 @@ function _create(resourceGroupName, storageSyncServiceName, parameters, options, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -294,7 +332,7 @@ function _create(resourceGroupName, storageSyncServiceName, parameters, options, let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['StorageSyncService']().mapper(); + let requestModelMapper = new client.models['StorageSyncServiceCreateParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -364,8 +402,8 @@ function _create(resourceGroupName, storageSyncServiceName, parameters, options, /** * Get a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -403,6 +441,12 @@ function _get(resourceGroupName, storageSyncServiceName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -426,6 +470,12 @@ function _get(resourceGroupName, storageSyncServiceName, options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -526,8 +576,8 @@ function _get(resourceGroupName, storageSyncServiceName, options, callback) { /** * Patch a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -536,6 +586,12 @@ function _get(resourceGroupName, storageSyncServiceName, options, callback) { * * @param {object} [options.parameters] Storage Sync Service resource. * + * @param {object} [options.parameters.tags] The user-specified tags associated + * with the storage sync service. + * + * @param {object} [options.parameters.properties] The properties of the + * storage sync service. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -568,6 +624,12 @@ function _update(resourceGroupName, storageSyncServiceName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -588,6 +650,12 @@ function _update(resourceGroupName, storageSyncServiceName, options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -635,7 +703,7 @@ function _update(resourceGroupName, storageSyncServiceName, options, callback) { let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['StorageSyncService']().mapper(); + let requestModelMapper = new client.models['StorageSyncServiceUpdateParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -705,8 +773,8 @@ function _update(resourceGroupName, storageSyncServiceName, options, callback) { /** * Delete a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -743,6 +811,12 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, options, callb if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -763,6 +837,12 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, options, callb if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -849,8 +929,8 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, options, callb /** * Get a StorageSyncService list by Resource group name. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -886,6 +966,12 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -906,6 +992,12 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1039,9 +1131,21 @@ function _listBySubscription(options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1250,14 +1354,28 @@ class StorageSyncServices { /** * Create a new StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. * * @param {object} parameters Storage Sync Service resource name. * + * @param {string} parameters.location Required. Gets or sets the location of + * the resource. This will be one of the supported and registered Azure Geo + * Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + * resource cannot be changed once it is created, but if an identical geo + * region is specified on update, the request will succeed. + * + * @param {object} [parameters.tags] Gets or sets a list of key value pairs + * that describe the resource. These tags can be used for viewing and grouping + * this resource (across resource groups). A maximum of 15 tags can be provided + * for a resource. Each tag must have a key with a length no greater than 128 + * characters and a value with a length no greater than 256 characters. + * + * @param {object} [parameters.properties] + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1286,14 +1404,28 @@ class StorageSyncServices { /** * Create a new StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. * * @param {object} parameters Storage Sync Service resource name. * + * @param {string} parameters.location Required. Gets or sets the location of + * the resource. This will be one of the supported and registered Azure Geo + * Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + * resource cannot be changed once it is created, but if an identical geo + * region is specified on update, the request will succeed. + * + * @param {object} [parameters.tags] Gets or sets a list of key value pairs + * that describe the resource. These tags can be used for viewing and grouping + * this resource (across resource groups). A maximum of 15 tags can be provided + * for a resource. Each tag must have a key with a length no greater than 128 + * characters and a value with a length no greater than 256 characters. + * + * @param {object} [parameters.properties] + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1344,8 +1476,8 @@ class StorageSyncServices { /** * Get a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1378,8 +1510,8 @@ class StorageSyncServices { /** * Get a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1434,8 +1566,8 @@ class StorageSyncServices { /** * Patch a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1444,6 +1576,12 @@ class StorageSyncServices { * * @param {object} [options.parameters] Storage Sync Service resource. * + * @param {object} [options.parameters.tags] The user-specified tags associated + * with the storage sync service. + * + * @param {object} [options.parameters.properties] The properties of the + * storage sync service. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1470,8 +1608,8 @@ class StorageSyncServices { /** * Patch a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1480,6 +1618,12 @@ class StorageSyncServices { * * @param {object} [options.parameters] Storage Sync Service resource. * + * @param {object} [options.parameters.tags] The user-specified tags associated + * with the storage sync service. + * + * @param {object} [options.parameters.properties] The properties of the + * storage sync service. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1528,8 +1672,8 @@ class StorageSyncServices { /** * Delete a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1562,8 +1706,8 @@ class StorageSyncServices { /** * Delete a given StorageSyncService. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1617,8 +1761,8 @@ class StorageSyncServices { /** * Get a StorageSyncService list by Resource group name. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * @@ -1648,8 +1792,8 @@ class StorageSyncServices { /** * Get a StorageSyncService list by Resource group name. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/storagesyncManagement/lib/operations/syncGroups.js b/lib/services/storagesyncManagement/lib/operations/syncGroups.js index 5403647273..2d1f8e34e7 100644 --- a/lib/services/storagesyncManagement/lib/operations/syncGroups.js +++ b/lib/services/storagesyncManagement/lib/operations/syncGroups.js @@ -17,8 +17,8 @@ const WebResource = msRest.WebResource; /** * Get a SyncGroup List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -56,6 +56,12 @@ function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, op if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -76,6 +82,12 @@ function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, op if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -179,8 +191,8 @@ function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, op /** * Create a new SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -189,7 +201,8 @@ function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, op * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @param {object} [parameters.properties] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -224,6 +237,12 @@ function _create(resourceGroupName, storageSyncServiceName, syncGroupName, param if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -244,6 +263,12 @@ function _create(resourceGroupName, storageSyncServiceName, syncGroupName, param if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -298,7 +323,7 @@ function _create(resourceGroupName, storageSyncServiceName, syncGroupName, param let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['SyncGroup']().mapper(); + let requestModelMapper = new client.models['SyncGroupCreateParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -368,8 +393,8 @@ function _create(resourceGroupName, storageSyncServiceName, syncGroupName, param /** * Get a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -409,6 +434,12 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, options, if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -429,6 +460,12 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, options, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -536,8 +573,8 @@ function _get(resourceGroupName, storageSyncServiceName, syncGroupName, options, /** * Delete a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -576,6 +613,12 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, syncGroupName, if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -596,6 +639,12 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, syncGroupName, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -700,8 +749,8 @@ class SyncGroups { /** * Get a SyncGroup List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -734,8 +783,8 @@ class SyncGroups { /** * Get a SyncGroup List. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -790,8 +839,8 @@ class SyncGroups { /** * Create a new SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -800,7 +849,8 @@ class SyncGroups { * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @param {object} [parameters.properties] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -830,8 +880,8 @@ class SyncGroups { /** * Create a new SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -840,7 +890,8 @@ class SyncGroups { * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @param {object} [parameters.properties] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -892,8 +943,8 @@ class SyncGroups { /** * Get a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -928,8 +979,8 @@ class SyncGroups { /** * Get a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -986,8 +1037,8 @@ class SyncGroups { /** * Delete a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -1022,8 +1073,8 @@ class SyncGroups { /** * Delete a given SyncGroup. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. diff --git a/lib/services/storagesyncManagement/lib/operations/workflows.js b/lib/services/storagesyncManagement/lib/operations/workflows.js index 7786329153..3e2d71fc8b 100644 --- a/lib/services/storagesyncManagement/lib/operations/workflows.js +++ b/lib/services/storagesyncManagement/lib/operations/workflows.js @@ -14,11 +14,185 @@ const msRest = require('ms-rest'); const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; +/** + * Get a Workflow List + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link WorkflowArray} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); + } + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } + if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { + throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{storageSyncServiceName}', encodeURIComponent(storageSyncServiceName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['StorageSyncError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['WorkflowArray']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** * Get Workflows resource * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -58,6 +232,12 @@ function _get(resourceGroupName, storageSyncServiceName, workflowId, options, ca if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -78,6 +258,12 @@ function _get(resourceGroupName, storageSyncServiceName, workflowId, options, ca if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -185,8 +371,8 @@ function _get(resourceGroupName, storageSyncServiceName, workflowId, options, ca /** * Abort the given workflow. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -225,6 +411,12 @@ function _abort(resourceGroupName, storageSyncServiceName, workflowId, options, if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.subscriptionId !== null && this.client.subscriptionId !== undefined) { + if (this.client.subscriptionId.length < 1) + { + throw new Error('"this.client.subscriptionId" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -245,6 +437,12 @@ function _abort(resourceGroupName, storageSyncServiceName, workflowId, options, if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion !== null && this.client.apiVersion !== undefined) { + if (this.client.apiVersion.length < 1) + { + throw new Error('"this.client.apiVersion" should satisfy the constraint - "MinLength": 1'); + } + } if (storageSyncServiceName === null || storageSyncServiceName === undefined || typeof storageSyncServiceName.valueOf() !== 'string') { throw new Error('storageSyncServiceName cannot be null or undefined and it must be of type string.'); } @@ -340,15 +538,106 @@ class Workflows { */ constructor(client) { this.client = client; + this._listByStorageSyncService = _listByStorageSyncService; this._get = _get; this._abort = _abort; } + /** + * Get a Workflow List + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByStorageSyncServiceWithHttpOperationResponse(resourceGroupName, storageSyncServiceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get a Workflow List + * + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. + * + * @param {string} storageSyncServiceName Name of Storage Sync Service + * resource. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {WorkflowArray} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link WorkflowArray} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByStorageSyncService(resourceGroupName, storageSyncServiceName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options, optionalCallback); + } + } + /** * Get Workflows resource * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -383,8 +672,8 @@ class Workflows { /** * Get Workflows resource * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -441,8 +730,8 @@ class Workflows { /** * Abort the given workflow. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. @@ -477,8 +766,8 @@ class Workflows { /** * Abort the given workflow. * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. The name is case insensitive. + * @param {string} resourceGroupName The name of the resource group. The name + * is case insensitive. * * @param {string} storageSyncServiceName Name of Storage Sync Service * resource. diff --git a/lib/services/storagesyncManagement/lib/storageSyncManagementClient.d.ts b/lib/services/storagesyncManagement/lib/storageSyncManagementClient.d.ts index 27ea21fd0f..0377dc1a21 100644 --- a/lib/services/storagesyncManagement/lib/storageSyncManagementClient.d.ts +++ b/lib/services/storagesyncManagement/lib/storageSyncManagementClient.d.ts @@ -21,7 +21,7 @@ export default class StorageSyncManagementClient extends AzureServiceClient { * @class * @param {credentials} credentials - Credentials needed for the client to connect to Azure. * - * @param {string} subscriptionId - Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * @param {string} subscriptionId - The ID of the target subscription. * * @param {string} [baseUri] - The base URI of the service. * @@ -45,10 +45,10 @@ export default class StorageSyncManagementClient extends AzureServiceClient { credentials: ServiceClientCredentials; - subscriptionId: string; - apiVersion: string; + subscriptionId: string; + acceptLanguage: string; longRunningOperationRetryTimeout: number; diff --git a/lib/services/storagesyncManagement/lib/storageSyncManagementClient.js b/lib/services/storagesyncManagement/lib/storageSyncManagementClient.js index 2216907265..bfa8a10595 100644 --- a/lib/services/storagesyncManagement/lib/storageSyncManagementClient.js +++ b/lib/services/storagesyncManagement/lib/storageSyncManagementClient.js @@ -27,7 +27,7 @@ class StorageSyncManagementClient extends ServiceClient { /** * Create a StorageSyncManagementClient. * @param {credentials} credentials - Credentials needed for the client to connect to Azure. - * @param {string} subscriptionId - Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * @param {string} subscriptionId - The ID of the target subscription. * @param {string} [baseUri] - The base URI of the service. * @param {object} [options] - The parameter options * @param {Array} [options.filters] - Filters to be added to the request pipeline @@ -50,7 +50,7 @@ class StorageSyncManagementClient extends ServiceClient { super(credentials, options); - this.apiVersion = '2018-04-02'; + this.apiVersion = '2018-07-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; From a44f3fb05fb65b07be16d8ca9462f5870cde0ca3 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 10 Oct 2018 17:18:25 +0000 Subject: [PATCH 3/3] Generated from 1bfd0410f753dafc5303648da877c722c2f77394 Remove extra azure-sdk-for-js from swagger-to-sdk section --- lib/services/storagesyncManagement/lib/models/index.d.ts | 2 ++ .../storagesyncManagement/lib/models/registeredServer.js | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/lib/services/storagesyncManagement/lib/models/index.d.ts b/lib/services/storagesyncManagement/lib/models/index.d.ts index 86982db10e..d2f90ebefc 100644 --- a/lib/services/storagesyncManagement/lib/models/index.d.ts +++ b/lib/services/storagesyncManagement/lib/models/index.d.ts @@ -402,6 +402,7 @@ export interface ServerEndpoint extends ProxyResource { * @member {string} [serviceLocation] Service Location * @member {string} [friendlyName] Friendly Name * @member {string} [managementEndpointUri] Management Endpoint Uri + * @member {string} [monitoringConfiguration] Monitoring Configuration */ export interface RegisteredServer extends ProxyResource { serverCertificate?: string; @@ -422,6 +423,7 @@ export interface RegisteredServer extends ProxyResource { serviceLocation?: string; friendlyName?: string; managementEndpointUri?: string; + monitoringConfiguration?: string; } /** diff --git a/lib/services/storagesyncManagement/lib/models/registeredServer.js b/lib/services/storagesyncManagement/lib/models/registeredServer.js index 0e89a90e8c..eb1b371513 100644 --- a/lib/services/storagesyncManagement/lib/models/registeredServer.js +++ b/lib/services/storagesyncManagement/lib/models/registeredServer.js @@ -40,6 +40,7 @@ class RegisteredServer extends models['ProxyResource'] { * @member {string} [serviceLocation] Service Location * @member {string} [friendlyName] Friendly Name * @member {string} [managementEndpointUri] Management Endpoint Uri + * @member {string} [monitoringConfiguration] Monitoring Configuration */ constructor() { super(); @@ -208,6 +209,13 @@ class RegisteredServer extends models['ProxyResource'] { type: { name: 'String' } + }, + monitoringConfiguration: { + required: false, + serializedName: 'properties.monitoringConfiguration', + type: { + name: 'String' + } } } }