diff --git a/lib/services/automationManagement/lib/models/activity.js b/lib/services/automationManagement/lib/models/activity.js index 22d085cead..8f98103eb6 100644 --- a/lib/services/automationManagement/lib/models/activity.js +++ b/lib/services/automationManagement/lib/models/activity.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the activity. * diff --git a/lib/services/automationManagement/lib/models/activityParameter.js b/lib/services/automationManagement/lib/models/activityParameter.js index 59a28437a5..8da7831218 100644 --- a/lib/services/automationManagement/lib/models/activityParameter.js +++ b/lib/services/automationManagement/lib/models/activityParameter.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the activity parameter. * diff --git a/lib/services/automationManagement/lib/models/activityParameterSet.js b/lib/services/automationManagement/lib/models/activityParameterSet.js index 811fc74a61..6fc0969012 100644 --- a/lib/services/automationManagement/lib/models/activityParameterSet.js +++ b/lib/services/automationManagement/lib/models/activityParameterSet.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the activity parameter set. * diff --git a/lib/services/automationManagement/lib/models/advancedSchedule.js b/lib/services/automationManagement/lib/models/advancedSchedule.js index a27e6b8c7b..d90243b42d 100644 --- a/lib/services/automationManagement/lib/models/advancedSchedule.js +++ b/lib/services/automationManagement/lib/models/advancedSchedule.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The properties of the create Advanced Schedule. * diff --git a/lib/services/automationManagement/lib/models/agentRegistration.js b/lib/services/automationManagement/lib/models/agentRegistration.js index dbd1785629..cb4922904e 100644 --- a/lib/services/automationManagement/lib/models/agentRegistration.js +++ b/lib/services/automationManagement/lib/models/agentRegistration.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the agent registration infomration type. * diff --git a/lib/services/automationManagement/lib/models/automationAccountCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/automationAccountCreateOrUpdateParameters.js index 6793f6f794..e2cc5b5ddc 100644 --- a/lib/services/automationManagement/lib/models/automationAccountCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/automationAccountCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update automation account * operation. diff --git a/lib/services/automationManagement/lib/models/automationAccountUpdateParameters.js b/lib/services/automationManagement/lib/models/automationAccountUpdateParameters.js index f4917c3f5c..ef1cdad97d 100644 --- a/lib/services/automationManagement/lib/models/automationAccountUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/automationAccountUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the update automation account operation. * diff --git a/lib/services/automationManagement/lib/models/connectionCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/connectionCreateOrUpdateParameters.js index 08097d7229..6baa20a4ae 100644 --- a/lib/services/automationManagement/lib/models/connectionCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/connectionCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update connection operation. * diff --git a/lib/services/automationManagement/lib/models/connectionType.js b/lib/services/automationManagement/lib/models/connectionType.js index c0b4da0a84..427c3271d8 100644 --- a/lib/services/automationManagement/lib/models/connectionType.js +++ b/lib/services/automationManagement/lib/models/connectionType.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the connection type. * diff --git a/lib/services/automationManagement/lib/models/connectionTypeCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/connectionTypeCreateOrUpdateParameters.js index 4c8eae0138..b077e8cfc4 100644 --- a/lib/services/automationManagement/lib/models/connectionTypeCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/connectionTypeCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update connection type operation. * diff --git a/lib/services/automationManagement/lib/models/contentLink.js b/lib/services/automationManagement/lib/models/contentLink.js index 3e96458ded..2abfc0db59 100644 --- a/lib/services/automationManagement/lib/models/contentLink.js +++ b/lib/services/automationManagement/lib/models/contentLink.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the content link. * diff --git a/lib/services/automationManagement/lib/models/contentSource.js b/lib/services/automationManagement/lib/models/contentSource.js index 7c01643a28..9876b4c75d 100644 --- a/lib/services/automationManagement/lib/models/contentSource.js +++ b/lib/services/automationManagement/lib/models/contentSource.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the content source. * diff --git a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js index 7a0bc57812..05d4d21e8b 100644 --- a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js +++ b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create compilation job operation. * diff --git a/lib/services/automationManagement/lib/models/dscConfigurationCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/dscConfigurationCreateOrUpdateParameters.js index f821247894..4b320348e9 100644 --- a/lib/services/automationManagement/lib/models/dscConfigurationCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscConfigurationCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update configuration operation. * diff --git a/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js b/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js index a0fcd3d36d..0f73800e1e 100644 --- a/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update configuration operation. * diff --git a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js index 385da63714..1b545c39b8 100644 --- a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update node configuration * operation. diff --git a/lib/services/automationManagement/lib/models/dscNodeReport.js b/lib/services/automationManagement/lib/models/dscNodeReport.js index f4243dd9a2..fbb1d46cf4 100644 --- a/lib/services/automationManagement/lib/models/dscNodeReport.js +++ b/lib/services/automationManagement/lib/models/dscNodeReport.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the dsc node report type. * diff --git a/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js b/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js index b7cf090e73..b8af3806af 100644 --- a/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the update dsc node operation. * diff --git a/lib/services/automationManagement/lib/models/dscReportResource.js b/lib/services/automationManagement/lib/models/dscReportResource.js index bebb6c2111..01e110aaaf 100644 --- a/lib/services/automationManagement/lib/models/dscReportResource.js +++ b/lib/services/automationManagement/lib/models/dscReportResource.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the DSC Report Resource. * diff --git a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js index a2208e0532..0f32e75065 100644 --- a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js +++ b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of hybrid runbook worker group. * diff --git a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroupUpdateParameters.js b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroupUpdateParameters.js index daa66160b4..d9a514c551 100644 --- a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroupUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroupUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Parameters supplied to the update operation. * diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 636ac5d545..e57907fc80 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -2347,20 +2347,19 @@ export interface SoftwareUpdateConfigurationMachineRunListResult { * @constructor * Definition of the source control. * - * @member {string} [repoUrl] Gets or sets the repo url of the source control. - * @member {string} [branch] Gets or sets the repo branch of the source - * control. Include branch as empty string for VsoTfvc. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. - * @member {boolean} [autoSync] Gets or sets auto async of the source control. - * Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. + * @member {string} [repoUrl] The repo url of the source control. + * @member {string} [branch] The repo branch of the source control. Include + * branch as empty string for VsoTfvc. + * @member {string} [folderPath] The folder path of the source control. + * @member {boolean} [autoSync] The auto sync of the source control. Default is + * false. + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. * @member {string} [sourceType] The source type. Must be one of VsoGit, * VsoTfvc, GitHub. Possible values include: 'VsoGit', 'VsoTfvc', 'GitHub' - * @member {string} [description] Gets or sets the description. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] The description. + * @member {date} [creationTime] The creation time. + * @member {date} [lastModifiedTime] The last modified time. */ export interface SourceControl extends ProxyResource { repoUrl?: string; @@ -2374,31 +2373,50 @@ export interface SourceControl extends ProxyResource { lastModifiedTime?: Date; } +/** + * @class + * Initializes a new instance of the SourceControlSecurityTokenProperties class. + * @constructor + * @member {string} [accessToken] The access token. + * @member {string} [refreshToken] The refresh token. + * @member {string} [tokenType] The token type. Must be either + * PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + */ +export interface SourceControlSecurityTokenProperties { + accessToken?: string; + refreshToken?: string; + tokenType?: string; +} + /** * @class * Initializes a new instance of the SourceControlUpdateParameters class. * @constructor * The parameters supplied to the update source control operation. * - * @member {string} [branch] Gets or sets the repo branch of the source - * control. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. Path must be relative. - * @member {boolean} [autoSync] Gets or sets auto async of the source control. - * Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. - * @member {string} [securityToken] Gets or sets the authorization token for - * the repo of the source control. - * @member {string} [description] Gets or sets the user description of the + * @member {string} [branch] The repo branch of the source control. + * @member {string} [folderPath] The folder path of the source control. Path + * must be relative. + * @member {boolean} [autoSync] The auto sync of the source control. Default is + * false. + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. + * @member {object} [securityToken] The authorization token for the repo of the * source control. + * @member {string} [securityToken.accessToken] The access token. + * @member {string} [securityToken.refreshToken] The refresh token. + * @member {string} [securityToken.tokenType] The token type. Must be either + * PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * @member {string} [description] The user description of the source control. */ export interface SourceControlUpdateParameters { branch?: string; folderPath?: string; autoSync?: boolean; publishRunbook?: boolean; - securityToken?: string; + securityToken?: SourceControlSecurityTokenProperties; description?: string; } @@ -2408,22 +2426,26 @@ export interface SourceControlUpdateParameters { * @constructor * The parameters supplied to the create or update source control operation. * - * @member {string} [repoUrl] Gets or sets the repo url of the source control. - * @member {string} [branch] Gets or sets the repo branch of the source - * control. Include branch as empty string for VsoTfvc. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. Path must be relative. - * @member {boolean} [autoSync] Gets or sets auto async of the source control. - * Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. + * @member {string} [repoUrl] The repo url of the source control. + * @member {string} [branch] The repo branch of the source control. Include + * branch as empty string for VsoTfvc. + * @member {string} [folderPath] The folder path of the source control. Path + * must be relative. + * @member {boolean} [autoSync] The auto async of the source control. Default + * is false. + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. * @member {string} [sourceType] The source type. Must be one of VsoGit, * VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', * 'VsoTfvc', 'GitHub' - * @member {string} [securityToken] Gets or sets the authorization token for - * the repo of the source control. - * @member {string} [description] Gets or sets the user description of the + * @member {object} [securityToken] The authorization token for the repo of the * source control. + * @member {string} [securityToken.accessToken] The access token. + * @member {string} [securityToken.refreshToken] The refresh token. + * @member {string} [securityToken.tokenType] The token type. Must be either + * PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * @member {string} [description] The user description of the source control. */ export interface SourceControlCreateOrUpdateParameters { repoUrl?: string; @@ -2432,7 +2454,7 @@ export interface SourceControlCreateOrUpdateParameters { autoSync?: boolean; publishRunbook?: boolean; sourceType?: string; - securityToken?: string; + securityToken?: SourceControlSecurityTokenProperties; description?: string; } @@ -2445,25 +2467,25 @@ export interface SourceControlCreateOrUpdateParameters { * @member {string} [name] Resource name. * @member {string} [type] Resource type. * @member {string} [id] Resource id. - * @member {string} [syncJobId] Gets the source control sync job id. - * @member {date} [creationTime] Gets the creation time of the job. - * @member {string} [provisioningState] Gets the provisioning state of the job. + * @member {string} [sourceControlSyncJobId] The source control sync job id. + * @member {date} [creationTime] The creation time of the job. + * @member {string} [provisioningState] The provisioning state of the job. * Possible values include: 'Completed', 'Failed', 'Running' - * @member {date} [startTime] Gets the start time of the job. - * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startType] Gets the type of start for the sync job. - * Possible values include: 'AutoSync', 'ManualSync' + * @member {date} [startTime] The start time of the job. + * @member {date} [endTime] The end time of the job. + * @member {string} [syncType] The sync type. Possible values include: + * 'PartialSync', 'FullSync' */ export interface SourceControlSyncJob { readonly name?: string; readonly type?: string; readonly id?: string; - syncJobId?: string; + sourceControlSyncJobId?: string; readonly creationTime?: Date; provisioningState?: string; readonly startTime?: Date; readonly endTime?: Date; - startType?: string; + syncType?: string; } /** @@ -2472,11 +2494,11 @@ export interface SourceControlSyncJob { * @constructor * The parameters supplied to the create source control sync job operation. * - * @member {string} [commitId] Sets the commit id of the source control sync - * job. + * @member {string} commitId The commit id of the source control sync job. If + * not syncing to a commitId, enter an empty string. */ export interface SourceControlSyncJobCreateParameters { - commitId?: string; + commitId: string; } /** @@ -2485,26 +2507,26 @@ export interface SourceControlSyncJobCreateParameters { * @constructor * Definition of the source control sync job. * - * @member {string} [id] Gets the id of the job. - * @member {string} [syncJobId] Gets the source control sync job id. - * @member {date} [creationTime] Gets the creation time of the job. - * @member {string} [provisioningState] Gets the provisioning state of the job. + * @member {string} [id] The id of the job. + * @member {string} [sourceControlSyncJobId] The source control sync job id. + * @member {date} [creationTime] The creation time of the job. + * @member {string} [provisioningState] The provisioning state of the job. * Possible values include: 'Completed', 'Failed', 'Running' - * @member {date} [startTime] Gets the start time of the job. - * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startType] Gets the type of start for the sync job. - * Possible values include: 'AutoSync', 'ManualSync' - * @member {string} [exception] Gets the exceptions that occured while running - * the sync job. + * @member {date} [startTime] The start time of the job. + * @member {date} [endTime] The end time of the job. + * @member {string} [syncType] The sync type. Possible values include: + * 'PartialSync', 'FullSync' + * @member {string} [exception] The exceptions that occured while running the + * sync job. */ export interface SourceControlSyncJobById { id?: string; - syncJobId?: string; + sourceControlSyncJobId?: string; readonly creationTime?: Date; provisioningState?: string; readonly startTime?: Date; readonly endTime?: Date; - startType?: string; + syncType?: string; exception?: string; } @@ -2515,15 +2537,15 @@ export interface SourceControlSyncJobById { * Definition of the source control sync job stream. * * @member {string} [id] Resource id. - * @member {string} [syncJobStreamId] Gets the sync job stream id. - * @member {string} [summary] Gets the summary of the sync job stream. - * @member {date} [time] Gets the time of the sync job stream. - * @member {string} [streamType] Gets the type of the sync job stream. Possible + * @member {string} [sourceControlSyncJobStreamId] The sync job stream id. + * @member {string} [summary] The summary of the sync job stream. + * @member {date} [time] The time of the sync job stream. + * @member {string} [streamType] The type of the sync job stream. Possible * values include: 'Error', 'Output' */ export interface SourceControlSyncJobStream { readonly id?: string; - syncJobStreamId?: string; + sourceControlSyncJobStreamId?: string; summary?: string; readonly time?: Date; streamType?: string; @@ -2536,22 +2558,22 @@ export interface SourceControlSyncJobStream { * Definition of the source control sync job stream by id. * * @member {string} [id] Resource id. - * @member {string} [syncJobStreamId] Gets the sync job stream id. - * @member {string} [summary] Gets the summary of the sync job stream. - * @member {date} [time] Gets the time of the sync job stream. - * @member {string} [streamType] Gets the type of the sync job stream. Possible + * @member {string} [sourceControlSyncJobStreamId] The sync job stream id. + * @member {string} [summary] The summary of the sync job stream. + * @member {date} [time] The time of the sync job stream. + * @member {string} [streamType] The type of the sync job stream. Possible * values include: 'Error', 'Output' - * @member {string} [streamText] Gets the text of the sync job stream. - * @member {string} [value] Gets the value of the sync job stream. + * @member {string} [streamText] The text of the sync job stream. + * @member {object} [value] The values of the job stream. */ export interface SourceControlSyncJobStreamById { readonly id?: string; - syncJobStreamId?: string; + sourceControlSyncJobStreamId?: string; summary?: string; readonly time?: Date; streamType?: string; streamText?: string; - value?: string; + value?: { [propertyName: string]: any }; } /** @@ -3373,7 +3395,7 @@ export interface WatcherListResult extends Array { * @constructor * The response model for the list source controls operation. * - * @member {string} [nextLink] Gets or sets the next link. + * @member {string} [nextLink] The next link. */ export interface SourceControlListResult extends Array { nextLink?: string; @@ -3385,7 +3407,7 @@ export interface SourceControlListResult extends Array { * @constructor * The response model for the list source control sync jobs operation. * - * @member {string} [nextLink] Gets or sets the next link. + * @member {string} [nextLink] The next link. */ export interface SourceControlSyncJobListResult extends Array { nextLink?: string; @@ -3397,7 +3419,7 @@ export interface SourceControlSyncJobListResult extends Array { readonly nextLink?: string; diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 450c7f4b5d..26f86dea74 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -111,6 +111,7 @@ exports.JobNavigation = require('./jobNavigation'); exports.SoftwareUpdateConfigurationMachineRun = require('./softwareUpdateConfigurationMachineRun'); exports.SoftwareUpdateConfigurationMachineRunListResult = require('./softwareUpdateConfigurationMachineRunListResult'); exports.SourceControl = require('./sourceControl'); +exports.SourceControlSecurityTokenProperties = require('./sourceControlSecurityTokenProperties'); exports.SourceControlUpdateParameters = require('./sourceControlUpdateParameters'); exports.SourceControlCreateOrUpdateParameters = require('./sourceControlCreateOrUpdateParameters'); exports.SourceControlSyncJob = require('./sourceControlSyncJob'); diff --git a/lib/services/automationManagement/lib/models/jobCreateParameters.js b/lib/services/automationManagement/lib/models/jobCreateParameters.js index f62bbf6f81..5cb1e23d0f 100644 --- a/lib/services/automationManagement/lib/models/jobCreateParameters.js +++ b/lib/services/automationManagement/lib/models/jobCreateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create job operation. * diff --git a/lib/services/automationManagement/lib/models/jobSchedule.js b/lib/services/automationManagement/lib/models/jobSchedule.js index aa9031c84d..f148950931 100644 --- a/lib/services/automationManagement/lib/models/jobSchedule.js +++ b/lib/services/automationManagement/lib/models/jobSchedule.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the job schedule. * diff --git a/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js b/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js index 82bb1dd5aa..125d74f33a 100644 --- a/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js +++ b/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create job schedule operation. * diff --git a/lib/services/automationManagement/lib/models/keyListResult.js b/lib/services/automationManagement/lib/models/keyListResult.js index 80b209d443..fcd02fe980 100644 --- a/lib/services/automationManagement/lib/models/keyListResult.js +++ b/lib/services/automationManagement/lib/models/keyListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a KeyListResult. */ diff --git a/lib/services/automationManagement/lib/models/moduleCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/moduleCreateOrUpdateParameters.js index 0bbb36ad06..5fa2080d86 100644 --- a/lib/services/automationManagement/lib/models/moduleCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/moduleCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update module operation. * diff --git a/lib/services/automationManagement/lib/models/moduleUpdateParameters.js b/lib/services/automationManagement/lib/models/moduleUpdateParameters.js index c000345d7b..ce3f7a383c 100644 --- a/lib/services/automationManagement/lib/models/moduleUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/moduleUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the update module operation. * diff --git a/lib/services/automationManagement/lib/models/nodeCount.js b/lib/services/automationManagement/lib/models/nodeCount.js index 5891ea3530..ec7e55bc85 100644 --- a/lib/services/automationManagement/lib/models/nodeCount.js +++ b/lib/services/automationManagement/lib/models/nodeCount.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Number of nodes based on the Filter * diff --git a/lib/services/automationManagement/lib/models/nodeCounts.js b/lib/services/automationManagement/lib/models/nodeCounts.js index 9598ea00ca..8837c4c719 100644 --- a/lib/services/automationManagement/lib/models/nodeCounts.js +++ b/lib/services/automationManagement/lib/models/nodeCounts.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Gets the count of nodes by count type * diff --git a/lib/services/automationManagement/lib/models/operation.js b/lib/services/automationManagement/lib/models/operation.js index df47dab5dd..da8399dd3d 100644 --- a/lib/services/automationManagement/lib/models/operation.js +++ b/lib/services/automationManagement/lib/models/operation.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Automation REST API operation * diff --git a/lib/services/automationManagement/lib/models/runbookCreateOrUpdateDraftProperties.js b/lib/services/automationManagement/lib/models/runbookCreateOrUpdateDraftProperties.js index 3b1704a807..0b3023bf7a 100644 --- a/lib/services/automationManagement/lib/models/runbookCreateOrUpdateDraftProperties.js +++ b/lib/services/automationManagement/lib/models/runbookCreateOrUpdateDraftProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update dratft runbook properties. * diff --git a/lib/services/automationManagement/lib/models/runbookCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/runbookCreateOrUpdateParameters.js index ee3850caf1..9be6a093f0 100644 --- a/lib/services/automationManagement/lib/models/runbookCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/runbookCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update runbook operation. * diff --git a/lib/services/automationManagement/lib/models/runbookDraft.js b/lib/services/automationManagement/lib/models/runbookDraft.js index 7cc6d43f0e..196b7d598c 100644 --- a/lib/services/automationManagement/lib/models/runbookDraft.js +++ b/lib/services/automationManagement/lib/models/runbookDraft.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a RunbookDraft. */ diff --git a/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js index 6dc9a654f1..01a76a203f 100644 --- a/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update schedule operation. * diff --git a/lib/services/automationManagement/lib/models/scheduleProperties.js b/lib/services/automationManagement/lib/models/scheduleProperties.js index 1795e7c9b1..176032f584 100644 --- a/lib/services/automationManagement/lib/models/scheduleProperties.js +++ b/lib/services/automationManagement/lib/models/scheduleProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of schedule parameters. * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js index e5d5ded094..f16a787c48 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Software update configuration collection item properties. * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationListResult.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationListResult.js index 74f8890db3..6d333885b7 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationListResult.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * result of listing all software update configuration * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js index 7160b1314d..487ab39571 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Software update configuration machine run model. * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRunListResult.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRunListResult.js index e6411a5fec..dedd8e2525 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRunListResult.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRunListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * result of listing all software update configuration machine runs * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js index c4a762fec8..f3a93db89d 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Software update configuration Run properties. * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRunListResult.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRunListResult.js index 24ccdc2172..017f1a6d45 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRunListResult.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRunListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * result of listing all software update configuration runs * diff --git a/lib/services/automationManagement/lib/models/sourceControl.js b/lib/services/automationManagement/lib/models/sourceControl.js index 65d21d0307..f769dc0034 100644 --- a/lib/services/automationManagement/lib/models/sourceControl.js +++ b/lib/services/automationManagement/lib/models/sourceControl.js @@ -20,21 +20,19 @@ const models = require('./index'); class SourceControl extends models['ProxyResource'] { /** * Create a SourceControl. - * @member {string} [repoUrl] Gets or sets the repo url of the source - * control. - * @member {string} [branch] Gets or sets the repo branch of the source - * control. Include branch as empty string for VsoTfvc. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. - * @member {boolean} [autoSync] Gets or sets auto async of the source - * control. Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. + * @member {string} [repoUrl] The repo url of the source control. + * @member {string} [branch] The repo branch of the source control. Include + * branch as empty string for VsoTfvc. + * @member {string} [folderPath] The folder path of the source control. + * @member {boolean} [autoSync] The auto sync of the source control. Default + * is false. + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. * @member {string} [sourceType] The source type. Must be one of VsoGit, * VsoTfvc, GitHub. Possible values include: 'VsoGit', 'VsoTfvc', 'GitHub' - * @member {string} [description] Gets or sets the description. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] The description. + * @member {date} [creationTime] The creation time. + * @member {date} [lastModifiedTime] The last modified time. */ constructor() { super(); diff --git a/lib/services/automationManagement/lib/models/sourceControlCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/sourceControlCreateOrUpdateParameters.js index ebed49622d..6ce37567c7 100644 --- a/lib/services/automationManagement/lib/models/sourceControlCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/sourceControlCreateOrUpdateParameters.js @@ -17,23 +17,26 @@ class SourceControlCreateOrUpdateParameters { /** * Create a SourceControlCreateOrUpdateParameters. - * @member {string} [repoUrl] Gets or sets the repo url of the source - * control. - * @member {string} [branch] Gets or sets the repo branch of the source - * control. Include branch as empty string for VsoTfvc. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. Path must be relative. - * @member {boolean} [autoSync] Gets or sets auto async of the source - * control. Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. + * @member {string} [repoUrl] The repo url of the source control. + * @member {string} [branch] The repo branch of the source control. Include + * branch as empty string for VsoTfvc. + * @member {string} [folderPath] The folder path of the source control. Path + * must be relative. + * @member {boolean} [autoSync] The auto async of the source control. Default + * is false. + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. * @member {string} [sourceType] The source type. Must be one of VsoGit, * VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', * 'VsoTfvc', 'GitHub' - * @member {string} [securityToken] Gets or sets the authorization token for - * the repo of the source control. - * @member {string} [description] Gets or sets the user description of the - * source control. + * @member {object} [securityToken] The authorization token for the repo of + * the source control. + * @member {string} [securityToken.accessToken] The access token. + * @member {string} [securityToken.refreshToken] The refresh token. + * @member {string} [securityToken.tokenType] The token type. Must be either + * PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * @member {string} [description] The user description of the source control. */ constructor() { } @@ -106,11 +109,9 @@ class SourceControlCreateOrUpdateParameters { securityToken: { required: false, serializedName: 'properties.securityToken', - constraints: { - MaxLength: 1024 - }, type: { - name: 'String' + name: 'Composite', + className: 'SourceControlSecurityTokenProperties' } }, description: { diff --git a/lib/services/automationManagement/lib/models/sourceControlListResult.js b/lib/services/automationManagement/lib/models/sourceControlListResult.js index 18028ab656..59a050c147 100644 --- a/lib/services/automationManagement/lib/models/sourceControlListResult.js +++ b/lib/services/automationManagement/lib/models/sourceControlListResult.js @@ -16,7 +16,7 @@ class SourceControlListResult extends Array { /** * Create a SourceControlListResult. - * @member {string} [nextLink] Gets or sets the next link. + * @member {string} [nextLink] The next link. */ constructor() { super(); diff --git a/lib/services/automationManagement/lib/models/sourceControlSecurityTokenProperties.js b/lib/services/automationManagement/lib/models/sourceControlSecurityTokenProperties.js new file mode 100644 index 0000000000..40a2ccc881 --- /dev/null +++ b/lib/services/automationManagement/lib/models/sourceControlSecurityTokenProperties.js @@ -0,0 +1,75 @@ +/* + * 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'; + +/** + * Class representing a SourceControlSecurityTokenProperties. + */ +class SourceControlSecurityTokenProperties { + /** + * Create a SourceControlSecurityTokenProperties. + * @member {string} [accessToken] The access token. + * @member {string} [refreshToken] The refresh token. + * @member {string} [tokenType] The token type. Must be either + * PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + */ + constructor() { + } + + /** + * Defines the metadata of SourceControlSecurityTokenProperties + * + * @returns {object} metadata of SourceControlSecurityTokenProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'SourceControlSecurityTokenProperties', + type: { + name: 'Composite', + className: 'SourceControlSecurityTokenProperties', + modelProperties: { + accessToken: { + required: false, + serializedName: 'accessToken', + constraints: { + MaxLength: 1024 + }, + type: { + name: 'String' + } + }, + refreshToken: { + required: false, + serializedName: 'refreshToken', + constraints: { + MaxLength: 1024 + }, + type: { + name: 'String' + } + }, + tokenType: { + required: false, + serializedName: 'tokenType', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SourceControlSecurityTokenProperties; diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJob.js b/lib/services/automationManagement/lib/models/sourceControlSyncJob.js index 91ef7d3416..1804c497a0 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJob.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJob.js @@ -20,14 +20,14 @@ class SourceControlSyncJob { * @member {string} [name] Resource name. * @member {string} [type] Resource type. * @member {string} [id] Resource id. - * @member {string} [syncJobId] Gets the source control sync job id. - * @member {date} [creationTime] Gets the creation time of the job. - * @member {string} [provisioningState] Gets the provisioning state of the - * job. Possible values include: 'Completed', 'Failed', 'Running' - * @member {date} [startTime] Gets the start time of the job. - * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startType] Gets the type of start for the sync job. - * Possible values include: 'AutoSync', 'ManualSync' + * @member {string} [sourceControlSyncJobId] The source control sync job id. + * @member {date} [creationTime] The creation time of the job. + * @member {string} [provisioningState] The provisioning state of the job. + * Possible values include: 'Completed', 'Failed', 'Running' + * @member {date} [startTime] The start time of the job. + * @member {date} [endTime] The end time of the job. + * @member {string} [syncType] The sync type. Possible values include: + * 'PartialSync', 'FullSync' */ constructor() { } @@ -70,9 +70,9 @@ class SourceControlSyncJob { name: 'String' } }, - syncJobId: { + sourceControlSyncJobId: { required: false, - serializedName: 'properties.syncJobId', + serializedName: 'properties.sourceControlSyncJobId', type: { name: 'String' } @@ -111,9 +111,9 @@ class SourceControlSyncJob { name: 'DateTime' } }, - startType: { + syncType: { required: false, - serializedName: 'properties.startType', + serializedName: 'properties.syncType', type: { name: 'String' } diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js index 243b063ca4..c8910f5b72 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js @@ -17,17 +17,17 @@ class SourceControlSyncJobById { /** * Create a SourceControlSyncJobById. - * @member {string} [id] Gets the id of the job. - * @member {string} [syncJobId] Gets the source control sync job id. - * @member {date} [creationTime] Gets the creation time of the job. - * @member {string} [provisioningState] Gets the provisioning state of the - * job. Possible values include: 'Completed', 'Failed', 'Running' - * @member {date} [startTime] Gets the start time of the job. - * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startType] Gets the type of start for the sync job. - * Possible values include: 'AutoSync', 'ManualSync' - * @member {string} [exception] Gets the exceptions that occured while - * running the sync job. + * @member {string} [id] The id of the job. + * @member {string} [sourceControlSyncJobId] The source control sync job id. + * @member {date} [creationTime] The creation time of the job. + * @member {string} [provisioningState] The provisioning state of the job. + * Possible values include: 'Completed', 'Failed', 'Running' + * @member {date} [startTime] The start time of the job. + * @member {date} [endTime] The end time of the job. + * @member {string} [syncType] The sync type. Possible values include: + * 'PartialSync', 'FullSync' + * @member {string} [exception] The exceptions that occured while running the + * sync job. */ constructor() { } @@ -53,9 +53,9 @@ class SourceControlSyncJobById { name: 'String' } }, - syncJobId: { + sourceControlSyncJobId: { required: false, - serializedName: 'properties.syncJobId', + serializedName: 'properties.sourceControlSyncJobId', type: { name: 'String' } @@ -94,9 +94,9 @@ class SourceControlSyncJobById { name: 'DateTime' } }, - startType: { + syncType: { required: false, - serializedName: 'properties.startType', + serializedName: 'properties.syncType', type: { name: 'String' } diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobCreateParameters.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobCreateParameters.js index e2ec347211..d44097307b 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJobCreateParameters.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobCreateParameters.js @@ -17,8 +17,8 @@ class SourceControlSyncJobCreateParameters { /** * Create a SourceControlSyncJobCreateParameters. - * @member {string} [commitId] Sets the commit id of the source control sync - * job. + * @member {string} commitId The commit id of the source control sync job. If + * not syncing to a commitId, enter an empty string. */ constructor() { } @@ -38,8 +38,11 @@ class SourceControlSyncJobCreateParameters { className: 'SourceControlSyncJobCreateParameters', modelProperties: { commitId: { - required: false, + required: true, serializedName: 'properties.commitId', + constraints: { + MinLength: 0 + }, type: { name: 'String' } diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobListResult.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobListResult.js index 328361f520..d074cd67f9 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJobListResult.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobListResult.js @@ -16,7 +16,7 @@ class SourceControlSyncJobListResult extends Array { /** * Create a SourceControlSyncJobListResult. - * @member {string} [nextLink] Gets or sets the next link. + * @member {string} [nextLink] The next link. */ constructor() { super(); diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobStream.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobStream.js index 2c7605db40..8ec9d8d7fe 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJobStream.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobStream.js @@ -18,11 +18,11 @@ class SourceControlSyncJobStream { /** * Create a SourceControlSyncJobStream. * @member {string} [id] Resource id. - * @member {string} [syncJobStreamId] Gets the sync job stream id. - * @member {string} [summary] Gets the summary of the sync job stream. - * @member {date} [time] Gets the time of the sync job stream. - * @member {string} [streamType] Gets the type of the sync job stream. - * Possible values include: 'Error', 'Output' + * @member {string} [sourceControlSyncJobStreamId] The sync job stream id. + * @member {string} [summary] The summary of the sync job stream. + * @member {date} [time] The time of the sync job stream. + * @member {string} [streamType] The type of the sync job stream. Possible + * values include: 'Error', 'Output' */ constructor() { } @@ -49,9 +49,9 @@ class SourceControlSyncJobStream { name: 'String' } }, - syncJobStreamId: { + sourceControlSyncJobStreamId: { required: false, - serializedName: 'properties.syncJobStreamId', + serializedName: 'properties.sourceControlSyncJobStreamId', type: { name: 'String' } diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamById.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamById.js index 82cd2f7782..62f2706f2a 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamById.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamById.js @@ -18,13 +18,13 @@ class SourceControlSyncJobStreamById { /** * Create a SourceControlSyncJobStreamById. * @member {string} [id] Resource id. - * @member {string} [syncJobStreamId] Gets the sync job stream id. - * @member {string} [summary] Gets the summary of the sync job stream. - * @member {date} [time] Gets the time of the sync job stream. - * @member {string} [streamType] Gets the type of the sync job stream. - * Possible values include: 'Error', 'Output' - * @member {string} [streamText] Gets the text of the sync job stream. - * @member {string} [value] Gets the value of the sync job stream. + * @member {string} [sourceControlSyncJobStreamId] The sync job stream id. + * @member {string} [summary] The summary of the sync job stream. + * @member {date} [time] The time of the sync job stream. + * @member {string} [streamType] The type of the sync job stream. Possible + * values include: 'Error', 'Output' + * @member {string} [streamText] The text of the sync job stream. + * @member {object} [value] The values of the job stream. */ constructor() { } @@ -51,9 +51,9 @@ class SourceControlSyncJobStreamById { name: 'String' } }, - syncJobStreamId: { + sourceControlSyncJobStreamId: { required: false, - serializedName: 'properties.syncJobStreamId', + serializedName: 'properties.sourceControlSyncJobStreamId', type: { name: 'String' } @@ -92,7 +92,14 @@ class SourceControlSyncJobStreamById { required: false, serializedName: 'properties.value', type: { - name: 'String' + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } } } } diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamsListBySyncJob.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamsListBySyncJob.js index 1bd26279c6..51190d5576 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamsListBySyncJob.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamsListBySyncJob.js @@ -16,7 +16,7 @@ class SourceControlSyncJobStreamsListBySyncJob extends Array { /** * Create a SourceControlSyncJobStreamsListBySyncJob. - * @member {string} [nextLink] Gets or sets the next link. + * @member {string} [nextLink] The next link. */ constructor() { super(); diff --git a/lib/services/automationManagement/lib/models/sourceControlUpdateParameters.js b/lib/services/automationManagement/lib/models/sourceControlUpdateParameters.js index bd0062ebd6..915f56a0de 100644 --- a/lib/services/automationManagement/lib/models/sourceControlUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/sourceControlUpdateParameters.js @@ -17,18 +17,21 @@ class SourceControlUpdateParameters { /** * Create a SourceControlUpdateParameters. - * @member {string} [branch] Gets or sets the repo branch of the source - * control. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. Path must be relative. - * @member {boolean} [autoSync] Gets or sets auto async of the source - * control. Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. - * @member {string} [securityToken] Gets or sets the authorization token for - * the repo of the source control. - * @member {string} [description] Gets or sets the user description of the - * source control. + * @member {string} [branch] The repo branch of the source control. + * @member {string} [folderPath] The folder path of the source control. Path + * must be relative. + * @member {boolean} [autoSync] The auto sync of the source control. Default + * is false. + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. + * @member {object} [securityToken] The authorization token for the repo of + * the source control. + * @member {string} [securityToken.accessToken] The access token. + * @member {string} [securityToken.refreshToken] The refresh token. + * @member {string} [securityToken.tokenType] The token type. Must be either + * PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * @member {string} [description] The user description of the source control. */ constructor() { } @@ -79,7 +82,8 @@ class SourceControlUpdateParameters { required: false, serializedName: 'properties.securityToken', type: { - name: 'String' + name: 'Composite', + className: 'SourceControlSecurityTokenProperties' } }, description: { diff --git a/lib/services/automationManagement/lib/models/updateConfiguration.js b/lib/services/automationManagement/lib/models/updateConfiguration.js index 5154e25af8..e2624ad4b5 100644 --- a/lib/services/automationManagement/lib/models/updateConfiguration.js +++ b/lib/services/automationManagement/lib/models/updateConfiguration.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Update specifc properties of the software update configuration. * diff --git a/lib/services/automationManagement/lib/models/usage.js b/lib/services/automationManagement/lib/models/usage.js index e3a63db308..0809c9755c 100644 --- a/lib/services/automationManagement/lib/models/usage.js +++ b/lib/services/automationManagement/lib/models/usage.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of Usage. * diff --git a/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js index 02b7161375..3ff1845e1c 100644 --- a/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update webhook operation. * diff --git a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js index 44d5ac3d7b..c83c5861d5 100644 --- a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js +++ b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js @@ -802,7 +802,7 @@ function _update(resourceGroupName, automationAccountName, configurationName, op * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -889,28 +889,29 @@ function _getContent(resourceGroupName, automationAccountName, configurationName } httpRequest.body = null; // Send Request + httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } + let statusCode = response.statusCode; if (statusCode !== 200) { - let error = new Error(responseBody); + let error = new Error(`Unexpected status code: ${statusCode}`); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { - parsedErrorResponse = JSON.parse(responseBody); + if (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -920,33 +921,9 @@ function _getContent(resourceGroupName, automationAccountName, configurationName } return callback(error); } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } + // Create Result + let result = response; return callback(null, result, httpRequest, response); }); } @@ -1829,7 +1806,7 @@ class DscConfigurationOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1868,7 +1845,7 @@ class DscConfigurationOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1876,7 +1853,7 @@ class DscConfigurationOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index bce9979388..26b4c5d463 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -2919,11 +2919,11 @@ export interface DscConfigurationOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve the configuration script identified by configuration name. @@ -2946,7 +2946,7 @@ export interface DscConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2954,15 +2954,15 @@ export interface DscConfigurationOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {Object} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, callback: ServiceCallback): void; - getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -9218,30 +9218,37 @@ export interface SourceControlOperations { * @param {object} parameters The parameters supplied to the create or update * source control operation. * - * @param {string} [parameters.repoUrl] Gets or sets the repo url of the source - * control. + * @param {string} [parameters.repoUrl] The repo url of the source control. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. Include branch as empty string for VsoTfvc. + * @param {string} [parameters.branch] The repo branch of the source control. + * Include branch as empty string for VsoTfvc. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {boolean} [parameters.autoSync] The auto async of the source control. + * Default is false. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * * @param {string} [parameters.sourceType] The source type. Must be one of * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', * 'VsoTfvc', 'GitHub' * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. + * + * @param {string} [parameters.securityToken.accessToken] The access token. + * + * @param {string} [parameters.securityToken.refreshToken] The refresh token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -9268,30 +9275,37 @@ export interface SourceControlOperations { * @param {object} parameters The parameters supplied to the create or update * source control operation. * - * @param {string} [parameters.repoUrl] Gets or sets the repo url of the source - * control. + * @param {string} [parameters.repoUrl] The repo url of the source control. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. Include branch as empty string for VsoTfvc. + * @param {string} [parameters.branch] The repo branch of the source control. + * Include branch as empty string for VsoTfvc. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {boolean} [parameters.autoSync] The auto async of the source control. + * Default is false. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * * @param {string} [parameters.sourceType] The source type. Must be one of * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', * 'VsoTfvc', 'GitHub' * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.accessToken] The access token. + * + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -9337,23 +9351,30 @@ export interface SourceControlOperations { * @param {object} parameters The parameters supplied to the update source * control operation. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. + * @param {string} [parameters.branch] The repo branch of the source control. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] The auto sync of the source control. + * Default is false. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -9380,23 +9401,30 @@ export interface SourceControlOperations { * @param {object} parameters The parameters supplied to the update source * control operation. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. + * @param {string} [parameters.branch] The repo branch of the source control. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {boolean} [parameters.autoSync] The auto sync of the source control. + * Default is false. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -9700,8 +9728,8 @@ export interface SourceControlSyncJobOperations { * @param {object} parameters The parameters supplied to the create source * control sync job operation. * - * @param {string} [parameters.commitId] Sets the commit id of the source - * control sync job. + * @param {string} parameters.commitId The commit id of the source control sync + * job. If not syncing to a commitId, enter an empty string. * * @param {object} [options] Optional Parameters. * @@ -9730,8 +9758,8 @@ export interface SourceControlSyncJobOperations { * @param {object} parameters The parameters supplied to the create source * control sync job operation. * - * @param {string} [parameters.commitId] Sets the commit id of the source - * control sync job. + * @param {string} parameters.commitId The commit id of the source control sync + * job. If not syncing to a commitId, enter an empty string. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/sourceControlOperations.js b/lib/services/automationManagement/lib/operations/sourceControlOperations.js index 8e34846c2e..e61701cdea 100644 --- a/lib/services/automationManagement/lib/operations/sourceControlOperations.js +++ b/lib/services/automationManagement/lib/operations/sourceControlOperations.js @@ -26,30 +26,37 @@ const WebResource = msRest.WebResource; * @param {object} parameters The parameters supplied to the create or update * source control operation. * - * @param {string} [parameters.repoUrl] Gets or sets the repo url of the source - * control. + * @param {string} [parameters.repoUrl] The repo url of the source control. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. Include branch as empty string for VsoTfvc. + * @param {string} [parameters.branch] The repo branch of the source control. + * Include branch as empty string for VsoTfvc. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {boolean} [parameters.autoSync] The auto async of the source control. + * Default is false. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * * @param {string} [parameters.sourceType] The source type. Must be one of * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', * 'VsoTfvc', 'GitHub' * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. + * + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -252,23 +259,30 @@ function _createOrUpdate(resourceGroupName, automationAccountName, sourceControl * @param {object} parameters The parameters supplied to the update source * control operation. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. + * @param {string} [parameters.branch] The repo branch of the source control. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] The auto sync of the source control. + * Default is false. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -1077,30 +1091,37 @@ class SourceControlOperations { * @param {object} parameters The parameters supplied to the create or update * source control operation. * - * @param {string} [parameters.repoUrl] Gets or sets the repo url of the source - * control. + * @param {string} [parameters.repoUrl] The repo url of the source control. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. Include branch as empty string for VsoTfvc. + * @param {string} [parameters.branch] The repo branch of the source control. + * Include branch as empty string for VsoTfvc. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {boolean} [parameters.autoSync] The auto async of the source control. + * Default is false. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * * @param {string} [parameters.sourceType] The source type. Must be one of * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', * 'VsoTfvc', 'GitHub' * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. + * + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -1139,30 +1160,37 @@ class SourceControlOperations { * @param {object} parameters The parameters supplied to the create or update * source control operation. * - * @param {string} [parameters.repoUrl] Gets or sets the repo url of the source - * control. + * @param {string} [parameters.repoUrl] The repo url of the source control. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. Include branch as empty string for VsoTfvc. + * @param {string} [parameters.branch] The repo branch of the source control. + * Include branch as empty string for VsoTfvc. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {boolean} [parameters.autoSync] The auto async of the source control. + * Default is false. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * * @param {string} [parameters.sourceType] The source type. Must be one of * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', * 'VsoTfvc', 'GitHub' * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. + * + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -1223,23 +1251,30 @@ class SourceControlOperations { * @param {object} parameters The parameters supplied to the update source * control operation. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. + * @param {string} [parameters.branch] The repo branch of the source control. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] The auto sync of the source control. + * Default is false. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -1278,23 +1313,30 @@ class SourceControlOperations { * @param {object} parameters The parameters supplied to the update source * control operation. * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. + * @param {string} [parameters.branch] The repo branch of the source control. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. + * @param {boolean} [parameters.autoSync] The auto sync of the source control. + * Default is false. * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/sourceControlSyncJobOperations.js b/lib/services/automationManagement/lib/operations/sourceControlSyncJobOperations.js index 991d33318c..a1d153c72a 100644 --- a/lib/services/automationManagement/lib/operations/sourceControlSyncJobOperations.js +++ b/lib/services/automationManagement/lib/operations/sourceControlSyncJobOperations.js @@ -28,8 +28,8 @@ const WebResource = msRest.WebResource; * @param {object} parameters The parameters supplied to the create source * control sync job operation. * - * @param {string} [parameters.commitId] Sets the commit id of the source - * control sync job. + * @param {string} parameters.commitId The commit id of the source control sync + * job. If not syncing to a commitId, enter an empty string. * * @param {object} [options] Optional Parameters. * @@ -709,8 +709,8 @@ class SourceControlSyncJobOperations { * @param {object} parameters The parameters supplied to the create source * control sync job operation. * - * @param {string} [parameters.commitId] Sets the commit id of the source - * control sync job. + * @param {string} parameters.commitId The commit id of the source control sync + * job. If not syncing to a commitId, enter an empty string. * * @param {object} [options] Optional Parameters. * @@ -751,8 +751,8 @@ class SourceControlSyncJobOperations { * @param {object} parameters The parameters supplied to the create source * control sync job operation. * - * @param {string} [parameters.commitId] Sets the commit id of the source - * control sync job. + * @param {string} parameters.commitId The commit id of the source control sync + * job. If not syncing to a commitId, enter an empty string. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/package-lock.json b/lib/services/automationManagement/package-lock.json index 1b330f71a9..7eba91d17a 100644 --- a/lib/services/automationManagement/package-lock.json +++ b/lib/services/automationManagement/package-lock.json @@ -1,6 +1,6 @@ { "name": "azure-arm-automation", - "version": "5.0.0-preview", + "version": "6.0.0-preview", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/lib/services/automationManagement/package.json b/lib/services/automationManagement/package.json index 7c501d1658..558057f6ba 100644 --- a/lib/services/automationManagement/package.json +++ b/lib/services/automationManagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-automation", "author": "Microsoft Corporation", "description": "AutomationClient Library with typescript type definitions for node", - "version": "5.0.0-preview", + "version": "6.0.0-preview", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/automationClient.js", "types": "./lib/automationClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/automationManagement", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/automationManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git"