Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3761 from Azure/restapi_auto_storagesync/resource…
Browse files Browse the repository at this point in the history
…-manager

[AutoPR] storagesync/resource-manager
  • Loading branch information
Dan Schulte authored Oct 4, 2018
2 parents 3c60fc1 + 03a5691 commit a40855c
Show file tree
Hide file tree
Showing 24 changed files with 1,263 additions and 678 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const models = require('./index');
/**
* Cloud Endpoint object.
*
* @extends models['Resource']
* @extends models['ProxyResource']
*/
class CloudEndpoint extends models['Resource'] {
class CloudEndpoint extends models['ProxyResource'] {
/**
* Create a CloudEndpoint.
* @member {string} [storageAccountResourceId] Storage Account Resource Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,22 @@

'use strict';

const models = require('./index');

/**
* The parameters used when creating a storage sync service.
* The parameters used when creating a cloud endpoint.
*
* @extends models['ProxyResource']
*/
class CloudEndpointCreateParameters {
class CloudEndpointCreateParameters extends models['ProxyResource'] {
/**
* 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() {
super();
}

/**
Expand All @@ -49,25 +42,28 @@ class CloudEndpointCreateParameters {
name: 'Composite',
className: 'CloudEndpointCreateParameters',
modelProperties: {
location: {
id: {
required: false,
serializedName: 'location',
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
tags: {
name: {
required: false,
serializedName: 'tags',
readOnly: true,
serializedName: 'name',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
storageAccountResourceId: {
Expand Down
143 changes: 55 additions & 88 deletions lib/services/storagesyncManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,17 @@ export interface StorageSyncService extends TrackedResource {
readonly storageSyncServiceUid?: string;
}

/**
* @class
* Initializes a new instance of the ProxyResource class.
* @constructor
* The resource model definition for a ARM proxy resource. It will have
* everything other than required location and tags
*
*/
export interface ProxyResource extends Resource {
}

/**
* @class
* Initializes a new instance of the SyncGroup class.
Expand All @@ -152,7 +163,7 @@ export interface StorageSyncService extends TrackedResource {
* @member {string} [uniqueId] Unique Id
* @member {string} [syncGroupStatus] Sync group status
*/
export interface SyncGroup extends Resource {
export interface SyncGroup extends ProxyResource {
uniqueId?: string;
readonly syncGroupStatus?: string;
}
Expand All @@ -173,7 +184,7 @@ export interface SyncGroup extends Resource {
* @member {string} [lastWorkflowId] CloudEndpoint lastWorkflowId
* @member {string} [lastOperationName] Resource Last Operation Name
*/
export interface CloudEndpoint extends Resource {
export interface CloudEndpoint extends ProxyResource {
storageAccountResourceId?: string;
storageAccountShareName?: string;
storageAccountTenantId?: string;
Expand Down Expand Up @@ -205,7 +216,7 @@ export interface RecallActionParameters {
* @constructor
* The parameters used when creating a storage sync service.
*
* @member {string} [location] Required. Gets or sets the location of the
* @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
Expand All @@ -215,10 +226,12 @@ export interface RecallActionParameters {
* (across resource groups). A maximum of 15 tags can be provided for a
* resource. Each tag must have a key with a length no greater than 128
* characters and a value with a length no greater than 256 characters.
* @member {object} [properties]
*/
export interface StorageSyncServiceCreateParameters {
location?: string;
location: string;
tags?: { [propertyName: string]: string };
properties?: any;
}

/**
Expand All @@ -227,47 +240,23 @@ export interface StorageSyncServiceCreateParameters {
* @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 };
export interface SyncGroupCreateParameters extends ProxyResource {
properties?: any;
}

/**
* @class
* Initializes a new instance of the CloudEndpointCreateParameters class.
* @constructor
* The parameters used when creating a storage sync service.
* The parameters used when creating a cloud endpoint.
*
* @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 };
export interface CloudEndpointCreateParameters extends ProxyResource {
storageAccountResourceId?: string;
storageAccountShareName?: string;
storageAccountTenantId?: string;
Expand All @@ -277,52 +266,44 @@ export interface CloudEndpointCreateParameters {
* @class
* Initializes a new instance of the ServerEndpointCreateParameters class.
* @constructor
* The parameters used when creating a storage sync service.
* The parameters used when creating a server endpoint.
*
* @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 {number} [tierFilesOlderThanDays] Tier files older than days.
* @member {string} [friendlyName] Friendly Name
* @member {string} [serverResourceId] Server Resource Id.
*/
export interface ServerEndpointCreateParameters {
location?: string;
tags?: { [propertyName: string]: string };
export interface ServerEndpointCreateParameters extends ProxyResource {
serverLocalPath?: string;
cloudTiering?: string;
volumeFreeSpacePercent?: number;
tierFilesOlderThanDays?: number;
friendlyName?: string;
serverResourceId?: string;
}

/**
* @class
* Initializes a new instance of the TriggerRolloverRequest class.
* @constructor
* Trigger Rollover Request.
*
* @member {string} [certificateData] Certificate Data
*/
export interface TriggerRolloverRequest {
certificateData?: string;
}

/**
* @class
* Initializes a new instance of the RegisteredServerCreateParameters class.
* @constructor
* The parameters used when creating a storage sync service.
* The parameters used when creating a registered server.
*
* @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
Expand All @@ -333,9 +314,7 @@ export interface ServerEndpointCreateParameters {
* @member {string} [serverId] Registered Server serverId
* @member {string} [friendlyName] Friendly Name
*/
export interface RegisteredServerCreateParameters {
location?: string;
tags?: { [propertyName: string]: string };
export interface RegisteredServerCreateParameters extends ProxyResource {
serverCertificate?: string;
agentVersion?: string;
serverOSVersion?: string;
Expand All @@ -353,17 +332,16 @@ export interface RegisteredServerCreateParameters {
* @constructor
* Parameters for updating an Server Endpoint.
*
* @member {object} [tags] The user-specified tags associated with the server
* endpoint.
* @member {string} [cloudTiering] Cloud Tiering. Possible values include:
* 'on', 'off'
* @member {number} [volumeFreeSpacePercent] Level of free space to be
* maintained by Cloud Tiering if it is enabled.
* @member {number} [tierFilesOlderThanDays] Tier files older than days.
*/
export interface ServerEndpointUpdateParameters {
tags?: { [propertyName: string]: string };
cloudTiering?: string;
volumeFreeSpacePercent?: number;
tierFilesOlderThanDays?: number;
}

/**
Expand All @@ -377,17 +355,19 @@ export interface ServerEndpointUpdateParameters {
* 'on', 'off'
* @member {number} [volumeFreeSpacePercent] Level of free space to be
* maintained by Cloud Tiering if it is enabled.
* @member {number} [tierFilesOlderThanDays] Tier files older than days.
* @member {string} [friendlyName] Friendly Name
* @member {string} [serverResourceId] Server Resource Id.
* @member {string} [provisioningState] ServerEndpoint Provisioning State
* @member {string} [lastWorkflowId] ServerEndpoint lastWorkflowId
* @member {string} [lastOperationName] Resource Last Operation Name
* @member {object} [syncStatus] Sync Health Status
*/
export interface ServerEndpoint extends Resource {
export interface ServerEndpoint extends ProxyResource {
serverLocalPath?: string;
cloudTiering?: string;
volumeFreeSpacePercent?: number;
tierFilesOlderThanDays?: number;
friendlyName?: string;
serverResourceId?: string;
provisioningState?: string;
Expand Down Expand Up @@ -423,7 +403,7 @@ export interface ServerEndpoint extends Resource {
* @member {string} [friendlyName] Friendly Name
* @member {string} [managementEndpointUri] Management Endpoint Uri
*/
export interface RegisteredServer extends Resource {
export interface RegisteredServer extends ProxyResource {
serverCertificate?: string;
agentVersion?: string;
serverOSVersion?: string;
Expand Down Expand Up @@ -472,7 +452,7 @@ export interface ResourcesMoveInfo {
* @member {string} [steps] workflow steps
* @member {string} [lastOperationId] workflow last operation identifier.
*/
export interface Workflow extends Resource {
export interface Workflow extends ProxyResource {
lastStepName?: string;
status?: string;
operation?: string;
Expand Down Expand Up @@ -669,18 +649,6 @@ export interface PostBackupResponse {
readonly cloudEndpointName?: string;
}

/**
* @class
* Initializes a new instance of the WorkflowArray class.
* @constructor
* Array of Workflow
*
* @member {array} [value] Collection of workflow items.
*/
export interface WorkflowArray {
value?: Workflow[];
}

/**
* @class
* Initializes a new instance of the StorageSyncServiceUpdateParameters class.
Expand All @@ -696,17 +664,6 @@ export interface StorageSyncServiceUpdateParameters {
properties?: any;
}

/**
* @class
* Initializes a new instance of the ProxyResource class.
* @constructor
* The resource model definition for a ARM proxy resource. It will have
* everything other than required location and tags
*
*/
export interface ProxyResource extends Resource {
}

/**
* @class
* Initializes a new instance of the AzureEntityResource class.
Expand Down Expand Up @@ -783,3 +740,13 @@ export interface ServerEndpointArray extends Array<ServerEndpoint> {
*/
export interface RegisteredServerArray extends Array<RegisteredServer> {
}

/**
* @class
* Initializes a new instance of the WorkflowArray class.
* @constructor
* Array of Workflow
*
*/
export interface WorkflowArray extends Array<Workflow> {
}
Loading

0 comments on commit a40855c

Please sign in to comment.