diff --git a/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js b/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js index e072f99069..28a4f7ec4e 100644 --- a/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js +++ b/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js @@ -20,8 +20,6 @@ const models = require('./index'); class CloudEndpoint extends models['Resource'] { /** * 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 @@ -74,20 +72,6 @@ class CloudEndpoint extends models['Resource'] { name: 'String' } }, - storageAccountKey: { - required: false, - serializedName: 'properties.storageAccountKey', - type: { - name: 'String' - } - }, - storageAccount: { - required: false, - serializedName: 'properties.storageAccount', - type: { - name: 'String' - } - }, storageAccountResourceId: { required: false, serializedName: 'properties.storageAccountResourceId', diff --git a/lib/services/storagesyncManagement/lib/models/cloudEndpointCreateParameters.js b/lib/services/storagesyncManagement/lib/models/cloudEndpointCreateParameters.js new file mode 100644 index 0000000000..44475c876c --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/cloudEndpointCreateParameters.js @@ -0,0 +1,100 @@ +/* + * 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 CloudEndpointCreateParameters { + /** + * Create a CloudEndpointCreateParameters. + * @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 {string} [storageAccountResourceId] Storage Account Resource Id + * @member {string} [storageAccountShareName] Storage Account Share name + * @member {string} [storageAccountTenantId] Storage Account Tenant Id + */ + constructor() { + } + + /** + * Defines the metadata of CloudEndpointCreateParameters + * + * @returns {object} metadata of CloudEndpointCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'CloudEndpointCreateParameters', + type: { + name: 'Composite', + className: 'CloudEndpointCreateParameters', + modelProperties: { + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + 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 4fa06f73d5..3c76db6922 100644 --- a/lib/services/storagesyncManagement/lib/models/index.d.ts +++ b/lib/services/storagesyncManagement/lib/models/index.d.ts @@ -34,23 +34,54 @@ 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 StorageSyncError class. + * @constructor + * Error type + * + * @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 StorageSyncError { + error?: StorageSyncApiError; + innererror?: StorageSyncApiError; +} + /** * @class * Initializes a new instance of the SubscriptionState class. @@ -132,8 +163,6 @@ export interface SyncGroup extends Resource { * @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 @@ -145,8 +174,6 @@ export interface SyncGroup extends Resource { * @member {string} [lastOperationName] Resource Last Operation Name */ export interface CloudEndpoint extends Resource { - storageAccountKey?: string; - storageAccount?: string; storageAccountResourceId?: string; storageAccountShareName?: string; storageAccountTenantId?: string; @@ -158,6 +185,168 @@ export interface CloudEndpoint extends Resource { 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. + */ +export interface StorageSyncServiceCreateParameters { + location?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the SyncGroupCreateParameters class. + * @constructor + * The parameters used when creating a sync group. + * + * @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] The parameters used to create the sync group + */ +export interface SyncGroupCreateParameters { + location?: string; + tags?: { [propertyName: string]: string }; + properties?: any; +} + +/** + * @class + * Initializes a new instance of the CloudEndpointCreateParameters 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 {string} [storageAccountResourceId] Storage Account Resource Id + * @member {string} [storageAccountShareName] Storage Account Share name + * @member {string} [storageAccountTenantId] Storage Account Tenant Id + */ +export interface CloudEndpointCreateParameters { + location?: string; + tags?: { [propertyName: string]: string }; + storageAccountResourceId?: string; + storageAccountShareName?: string; + storageAccountTenantId?: string; +} + +/** + * @class + * Initializes a new instance of the ServerEndpointCreateParameters 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 {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 {string} [friendlyName] Friendly Name + * @member {string} [serverResourceId] Server Resource Id. + */ +export interface ServerEndpointCreateParameters { + location?: string; + tags?: { [propertyName: string]: string }; + serverLocalPath?: string; + cloudTiering?: string; + volumeFreeSpacePercent?: number; + friendlyName?: string; + serverResourceId?: string; +} + +/** + * @class + * Initializes a new instance of the RegisteredServerCreateParameters 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 {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 { + location?: string; + tags?: { [propertyName: string]: string }; + 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. @@ -213,9 +402,6 @@ export interface ServerEndpoint extends Resource { * @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 @@ -237,10 +423,7 @@ export interface ServerEndpoint extends Resource { * @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 Resource { serverCertificate?: string; agentVersion?: string; serverOSVersion?: string; diff --git a/lib/services/storagesyncManagement/lib/models/index.js b/lib/services/storagesyncManagement/lib/models/index.js index 120c64445a..696805cb3d 100644 --- a/lib/services/storagesyncManagement/lib/models/index.js +++ b/lib/services/storagesyncManagement/lib/models/index.js @@ -19,6 +19,7 @@ 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'); @@ -26,6 +27,12 @@ exports.TrackedResource = require('./trackedResource'); exports.StorageSyncService = require('./storageSyncService'); 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.RegisteredServerCreateParameters = require('./registeredServerCreateParameters'); exports.ServerEndpointUpdateParameters = require('./serverEndpointUpdateParameters'); exports.ServerEndpoint = require('./serverEndpoint'); exports.RegisteredServer = require('./registeredServer'); 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..9847aa9b8b 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['Resource'] */ -class RegisteredServer extends models['BaseResource'] { +class RegisteredServer extends models['Resource'] { /** * 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..0bfd317a37 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/registeredServerCreateParameters.js @@ -0,0 +1,148 @@ +/* + * 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 RegisteredServerCreateParameters { + /** + * Create a RegisteredServerCreateParameters. + * @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 {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() { + } + + /** + * Defines the metadata of RegisteredServerCreateParameters + * + * @returns {object} metadata of RegisteredServerCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'RegisteredServerCreateParameters', + type: { + name: 'Composite', + className: 'RegisteredServerCreateParameters', + modelProperties: { + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + 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/serverEndpointCreateParameters.js b/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js new file mode 100644 index 0000000000..1de8c64a0e --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js @@ -0,0 +1,122 @@ +/* + * 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 ServerEndpointCreateParameters { + /** + * Create a ServerEndpointCreateParameters. + * @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 {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 {string} [friendlyName] Friendly Name + * @member {string} [serverResourceId] Server Resource Id. + */ + constructor() { + } + + /** + * Defines the metadata of ServerEndpointCreateParameters + * + * @returns {object} metadata of ServerEndpointCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'ServerEndpointCreateParameters', + type: { + name: 'Composite', + className: 'ServerEndpointCreateParameters', + modelProperties: { + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + 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' + } + }, + 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/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 b185128307..69cb149ebd 100644 --- a/lib/services/storagesyncManagement/lib/models/storageSyncError.js +++ b/lib/services/storagesyncManagement/lib/models/storageSyncError.js @@ -17,12 +17,23 @@ 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() { } @@ -41,26 +52,20 @@ class StorageSyncError { name: 'Composite', className: 'StorageSyncError', modelProperties: { - code: { + error: { required: false, - serializedName: 'code', + serializedName: 'error', type: { - name: 'String' - } - }, - message: { - required: false, - serializedName: 'message', - 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/storageSyncServiceCreateParameters.js b/lib/services/storagesyncManagement/lib/models/storageSyncServiceCreateParameters.js new file mode 100644 index 0000000000..d35819cecf --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/storageSyncServiceCreateParameters.js @@ -0,0 +1,76 @@ +/* + * 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. + */ + 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: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = StorageSyncServiceCreateParameters; diff --git a/lib/services/storagesyncManagement/lib/models/syncGroupCreateParameters.js b/lib/services/storagesyncManagement/lib/models/syncGroupCreateParameters.js new file mode 100644 index 0000000000..694015b9f5 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/syncGroupCreateParameters.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 sync group. + * + */ +class SyncGroupCreateParameters { + /** + * Create a SyncGroupCreateParameters. + * @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] The parameters used to create the sync group + */ + constructor() { + } + + /** + * Defines the metadata of SyncGroupCreateParameters + * + * @returns {object} metadata of SyncGroupCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'SyncGroupCreateParameters', + type: { + name: 'Composite', + className: 'SyncGroupCreateParameters', + modelProperties: { + location: { + required: false, + 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 = SyncGroupCreateParameters; diff --git a/lib/services/storagesyncManagement/lib/operations/cloudEndpoints.js b/lib/services/storagesyncManagement/lib/operations/cloudEndpoints.js index d7e27c4eec..d52c90fa06 100644 --- a/lib/services/storagesyncManagement/lib/operations/cloudEndpoints.js +++ b/lib/services/storagesyncManagement/lib/operations/cloudEndpoints.js @@ -30,9 +30,17 @@ 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.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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -43,17 +51,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 @@ -1088,9 +1085,17 @@ function _postRestore(resourceGroupName, storageSyncServiceName, syncGroupName, * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -1101,17 +1106,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 @@ -1235,7 +1229,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); } @@ -2323,9 +2317,17 @@ class CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -2336,17 +2338,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 @@ -2387,9 +2378,17 @@ class CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -2400,17 +2399,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 @@ -3358,9 +3346,17 @@ class CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -3371,17 +3367,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 @@ -3422,9 +3407,17 @@ class CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -3435,17 +3428,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 diff --git a/lib/services/storagesyncManagement/lib/operations/index.d.ts b/lib/services/storagesyncManagement/lib/operations/index.d.ts index 46fc980dd1..d39f996a56 100644 --- a/lib/services/storagesyncManagement/lib/operations/index.d.ts +++ b/lib/services/storagesyncManagement/lib/operations/index.d.ts @@ -217,10 +217,17 @@ export interface StorageSyncServices { * * @param {object} parameters Storage Sync Service resource name. * - * @param {object} [parameters.tags] Resource tags. + * @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 {string} parameters.location The geo-location where the resource - * lives + * @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} [options] Optional Parameters. * @@ -233,7 +240,7 @@ 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. @@ -246,10 +253,17 @@ export interface StorageSyncServices { * * @param {object} parameters Storage Sync Service resource name. * - * @param {object} [parameters.tags] Resource tags. + * @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 {string} parameters.location The geo-location where the resource - * lives + * @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} [options] Optional Parameters. * @@ -278,9 +292,9 @@ 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; /** @@ -682,7 +696,20 @@ export interface SyncGroups { * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @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] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -695,7 +722,7 @@ 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. @@ -710,7 +737,20 @@ export interface SyncGroups { * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @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] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -739,9 +779,9 @@ 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; /** @@ -901,9 +941,17 @@ export interface CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -914,17 +962,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 @@ -936,7 +973,7 @@ 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. @@ -953,9 +990,17 @@ export interface CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -966,17 +1011,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 @@ -1004,9 +1038,9 @@ 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; /** @@ -1693,9 +1727,17 @@ export interface CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -1706,17 +1748,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 @@ -1728,7 +1759,7 @@ 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. @@ -1745,9 +1776,17 @@ export interface CloudEndpoints { * * @param {object} parameters Body of Cloud Endpoint resource. * - * @param {string} [parameters.storageAccountKey] Storage Account access key. + * @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 {string} [parameters.storageAccount] Storage Account name. + * @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 {string} [parameters.storageAccountResourceId] Storage Account * Resource Id @@ -1758,17 +1797,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 @@ -1796,9 +1824,9 @@ 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; /** @@ -2286,6 +2314,18 @@ export interface ServerEndpoints { * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -2298,15 +2338,6 @@ export interface ServerEndpoints { * * @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 @@ -2318,7 +2349,7 @@ 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. @@ -2335,6 +2366,18 @@ export interface ServerEndpoints { * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -2347,15 +2390,6 @@ export interface ServerEndpoints { * * @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 @@ -2383,9 +2417,9 @@ 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; /** @@ -2704,6 +2738,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 @@ -2715,7 +2755,7 @@ 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. @@ -2730,6 +2770,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 @@ -2756,9 +2802,9 @@ 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; /** @@ -2776,6 +2822,18 @@ export interface ServerEndpoints { * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -2788,15 +2846,6 @@ export interface ServerEndpoints { * * @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 @@ -2808,7 +2857,7 @@ 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. @@ -2825,6 +2874,18 @@ export interface ServerEndpoints { * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -2837,15 +2898,6 @@ export interface ServerEndpoints { * * @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 @@ -2873,9 +2925,9 @@ 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; /** @@ -3056,6 +3108,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 @@ -3067,7 +3125,7 @@ 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. @@ -3082,6 +3140,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 @@ -3108,9 +3172,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; } /** @@ -3265,20 +3329,26 @@ export interface RegisteredServers { * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -3287,24 +3357,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 @@ -3316,7 +3370,7 @@ 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. @@ -3331,20 +3385,26 @@ export interface RegisteredServers { * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -3353,24 +3413,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 @@ -3398,9 +3442,9 @@ 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; /** @@ -3482,20 +3526,26 @@ export interface RegisteredServers { * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -3504,24 +3554,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 @@ -3533,7 +3567,7 @@ 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. @@ -3548,20 +3582,26 @@ export interface RegisteredServers { * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -3570,24 +3610,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 @@ -3615,9 +3639,9 @@ 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; /** diff --git a/lib/services/storagesyncManagement/lib/operations/registeredServers.js b/lib/services/storagesyncManagement/lib/operations/registeredServers.js index dc20961702..3e75357ffd 100644 --- a/lib/services/storagesyncManagement/lib/operations/registeredServers.js +++ b/lib/services/storagesyncManagement/lib/operations/registeredServers.js @@ -382,20 +382,26 @@ function _get(resourceGroupName, storageSyncServiceName, serverId, options, call * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -404,24 +410,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 @@ -572,20 +562,26 @@ function _deleteMethod(resourceGroupName, storageSyncServiceName, serverId, opti * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -594,24 +590,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 @@ -731,7 +711,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); } @@ -1173,20 +1153,26 @@ class RegisteredServers { * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -1195,24 +1181,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 @@ -1251,20 +1221,26 @@ class RegisteredServers { * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -1273,24 +1249,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 @@ -1444,20 +1404,26 @@ class RegisteredServers { * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -1466,24 +1432,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 @@ -1522,20 +1472,26 @@ class RegisteredServers { * * @param {object} parameters Body of Registered Server object. * + * @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 {string} [parameters.serverCertificate] Registered Server Certificate * * @param {string} [parameters.agentVersion] Registered Server Agent Version * * @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 @@ -1544,24 +1500,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 diff --git a/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js b/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js index 2b41bfad61..bfd557dcc1 100644 --- a/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js +++ b/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js @@ -30,6 +30,18 @@ const WebResource = msRest.WebResource; * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -42,15 +54,6 @@ const WebResource = msRest.WebResource; * * @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 @@ -666,6 +669,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 @@ -683,7 +692,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') { @@ -696,7 +705,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(); @@ -736,6 +745,18 @@ function _recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -748,15 +769,6 @@ function _recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, * * @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 @@ -880,7 +892,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); } @@ -1341,6 +1353,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 @@ -1358,7 +1376,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') { @@ -1414,6 +1432,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.'); } @@ -1455,7 +1476,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) { @@ -1531,6 +1566,18 @@ class ServerEndpoints { * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -1543,15 +1590,6 @@ class ServerEndpoints { * * @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 @@ -1592,6 +1630,18 @@ class ServerEndpoints { * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -1604,15 +1654,6 @@ class ServerEndpoints { * * @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 @@ -2084,6 +2125,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 @@ -2095,11 +2142,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); } @@ -2122,6 +2169,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 @@ -2148,7 +2201,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') { @@ -2157,14 +2210,14 @@ 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); } } @@ -2183,6 +2236,18 @@ class ServerEndpoints { * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -2195,15 +2260,6 @@ class ServerEndpoints { * * @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 @@ -2244,6 +2300,18 @@ class ServerEndpoints { * * @param {object} parameters Body of Server Endpoint object. * + * @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 {string} [parameters.serverLocalPath] Server Local path. * * @param {string} [parameters.cloudTiering] Cloud Tiering. Possible values @@ -2256,15 +2324,6 @@ class ServerEndpoints { * * @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 @@ -2544,6 +2603,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 @@ -2555,11 +2620,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); } @@ -2582,6 +2647,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 @@ -2608,7 +2679,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') { @@ -2617,14 +2688,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 8fdaed8c3c..5c5928460b 100644 --- a/lib/services/storagesyncManagement/lib/operations/storageSyncServices.js +++ b/lib/services/storagesyncManagement/lib/operations/storageSyncServices.js @@ -203,10 +203,17 @@ function _checkNameAvailability(locationName, parameters, options, callback) { * * @param {object} parameters Storage Sync Service resource name. * - * @param {object} [parameters.tags] Resource tags. - * - * @param {string} parameters.location The geo-location where the resource - * lives + * @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} [options] Optional Parameters. * @@ -323,7 +330,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); } @@ -1353,10 +1360,17 @@ class StorageSyncServices { * * @param {object} parameters Storage Sync Service resource name. * - * @param {object} [parameters.tags] Resource tags. + * @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 {string} parameters.location The geo-location where the resource - * lives + * @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} [options] Optional Parameters. * @@ -1394,10 +1408,17 @@ class StorageSyncServices { * * @param {object} parameters Storage Sync Service resource name. * - * @param {object} [parameters.tags] Resource tags. - * - * @param {string} parameters.location The geo-location where the resource - * lives + * @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} [options] Optional Parameters. * diff --git a/lib/services/storagesyncManagement/lib/operations/syncGroups.js b/lib/services/storagesyncManagement/lib/operations/syncGroups.js index 95834a7a79..0b52f356ef 100644 --- a/lib/services/storagesyncManagement/lib/operations/syncGroups.js +++ b/lib/services/storagesyncManagement/lib/operations/syncGroups.js @@ -201,7 +201,20 @@ function _listByStorageSyncService(resourceGroupName, storageSyncServiceName, op * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @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] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -322,7 +335,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); } @@ -848,7 +861,20 @@ class SyncGroups { * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @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] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * @@ -888,7 +914,20 @@ class SyncGroups { * * @param {object} parameters Sync Group Body * - * @param {string} [parameters.uniqueId] Unique Id + * @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] The parameters used to create the + * sync group * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/storagesyncManagement/package.json b/lib/services/storagesyncManagement/package.json index 9e5f196e2c..490015ef30 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"