Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions lib/services/storagesyncManagement/lib/models/cloudEndpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
209 changes: 196 additions & 13 deletions lib/services/storagesyncManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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;
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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;
Expand Down
Loading