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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Generated from ea69aa851115aefa504659edacc24fcacd9ae694
Making stream's value property an object instead of a string. Updating stream's examples.
  • Loading branch information
AutorestCI committed Aug 5, 2018
commit cb51fa0cc0dfd213680350ec63581efb68484b49
56 changes: 43 additions & 13 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,22 @@ export interface SourceControl extends ProxyResource {
lastModifiedTime?: Date;
}

/**
* @class
* Initializes a new instance of the SourceControlSecurityTokenProperties class.
* @constructor
* @member {string} [accessToken] Gets or sets the access token.
* @member {string} [refreshToken] Gets or sets 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.
Expand All @@ -2388,8 +2404,14 @@ export interface SourceControl extends ProxyResource {
* 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
* @member {object} [securityToken] Gets or sets the authorization token for
* the repo of the source control.
* @member {string} [securityToken.accessToken] Gets or sets the access token.
* @member {string} [securityToken.refreshToken] Gets or sets the refresh
* token.
* @member {string} [securityToken.tokenType] The token type. Must be either
* PersonalAccessToken or Oauth. Possible values include:
* 'PersonalAccessToken', 'Oauth'
* @member {string} [description] Gets or sets the user description of the
* source control.
*/
Expand All @@ -2398,7 +2420,7 @@ export interface SourceControlUpdateParameters {
folderPath?: string;
autoSync?: boolean;
publishRunbook?: boolean;
securityToken?: string;
securityToken?: SourceControlSecurityTokenProperties;
description?: string;
}

Expand All @@ -2420,8 +2442,14 @@ export interface SourceControlUpdateParameters {
* @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
* @member {object} [securityToken] Gets or sets the authorization token for
* the repo of the source control.
* @member {string} [securityToken.accessToken] Gets or sets the access token.
* @member {string} [securityToken.refreshToken] Gets or sets the refresh
* token.
* @member {string} [securityToken.tokenType] The token type. Must be either
* PersonalAccessToken or Oauth. Possible values include:
* 'PersonalAccessToken', 'Oauth'
* @member {string} [description] Gets or sets the user description of the
* source control.
*/
Expand All @@ -2432,7 +2460,7 @@ export interface SourceControlCreateOrUpdateParameters {
autoSync?: boolean;
publishRunbook?: boolean;
sourceType?: string;
securityToken?: string;
securityToken?: SourceControlSecurityTokenProperties;
description?: string;
}

Expand All @@ -2445,7 +2473,8 @@ 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 {string} [sourceControlSyncJobId] 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'
Expand All @@ -2458,7 +2487,7 @@ export interface SourceControlSyncJob {
readonly name?: string;
readonly type?: string;
readonly id?: string;
syncJobId?: string;
sourceControlSyncJobId?: string;
readonly creationTime?: Date;
provisioningState?: string;
readonly startTime?: Date;
Expand All @@ -2472,11 +2501,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 Sets 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;
}

/**
Expand All @@ -2486,7 +2515,8 @@ export interface SourceControlSyncJobCreateParameters {
* 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 {string} [sourceControlSyncJobId] 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'
Expand All @@ -2499,7 +2529,7 @@ export interface SourceControlSyncJobCreateParameters {
*/
export interface SourceControlSyncJobById {
id?: string;
syncJobId?: string;
sourceControlSyncJobId?: string;
readonly creationTime?: Date;
provisioningState?: string;
readonly startTime?: Date;
Expand Down Expand Up @@ -2542,7 +2572,7 @@ export interface SourceControlSyncJobStream {
* @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 {object} [value] Gets or sets the values of the job stream.
*/
export interface SourceControlSyncJobStreamById {
readonly id?: string;
Expand All @@ -2551,7 +2581,7 @@ export interface SourceControlSyncJobStreamById {
readonly time?: Date;
streamType?: string;
streamText?: string;
value?: string;
value?: { [propertyName: string]: any };
}

/**
Expand Down
1 change: 1 addition & 0 deletions lib/services/automationManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

'use strict';

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

/**
* The parameters supplied to the create or update source control operation.
*
Expand All @@ -30,8 +32,15 @@ class SourceControlCreateOrUpdateParameters {
* @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
* @member {object} [securityToken] Gets or sets the authorization token for
* the repo of the source control.
* @member {string} [securityToken.accessToken] Gets or sets the access
* token.
* @member {string} [securityToken.refreshToken] Gets or sets the refresh
* token.
* @member {string} [securityToken.tokenType] The token type. Must be either
* PersonalAccessToken or Oauth. Possible values include:
* 'PersonalAccessToken', 'Oauth'
* @member {string} [description] Gets or sets the user description of the
* source control.
*/
Expand Down Expand Up @@ -106,11 +115,9 @@ class SourceControlCreateOrUpdateParameters {
securityToken: {
required: false,
serializedName: 'properties.securityToken',
constraints: {
MaxLength: 1024
},
type: {
name: 'String'
name: 'Composite',
className: 'SourceControlSecurityTokenProperties'
}
},
description: {
Expand Down
Original file line number Diff line number Diff line change
@@ -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] Gets or sets the access token.
* @member {string} [refreshToken] Gets or sets 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;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ 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 {string} [sourceControlSyncJobId] 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'
Expand Down Expand Up @@ -70,9 +71,9 @@ class SourceControlSyncJob {
name: 'String'
}
},
syncJobId: {
sourceControlSyncJobId: {
required: false,
serializedName: 'properties.syncJobId',
serializedName: 'properties.sourceControlSyncJobId',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ 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 {string} [sourceControlSyncJobId] 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'
Expand Down Expand Up @@ -53,9 +54,9 @@ class SourceControlSyncJobById {
name: 'String'
}
},
syncJobId: {
sourceControlSyncJobId: {
required: false,
serializedName: 'properties.syncJobId',
serializedName: 'properties.sourceControlSyncJobId',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 Sets the commit id of the source control sync
* job. If not syncing to a commitId, enter an empty string.
*/
constructor() {
}
Expand All @@ -38,8 +38,11 @@ class SourceControlSyncJobCreateParameters {
className: 'SourceControlSyncJobCreateParameters',
modelProperties: {
commitId: {
required: false,
required: true,
serializedName: 'properties.commitId',
constraints: {
MinLength: 0
},
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SourceControlSyncJobStreamById {
* @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 {object} [value] Gets or sets the values of the job stream.
*/
constructor() {
}
Expand Down Expand Up @@ -92,7 +92,14 @@ class SourceControlSyncJobStreamById {
required: false,
serializedName: 'properties.value',
type: {
name: 'String'
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

'use strict';

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

/**
* The parameters supplied to the update source control operation.
*
Expand All @@ -25,8 +27,15 @@ class SourceControlUpdateParameters {
* 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
* @member {object} [securityToken] Gets or sets the authorization token for
* the repo of the source control.
* @member {string} [securityToken.accessToken] Gets or sets the access
* token.
* @member {string} [securityToken.refreshToken] Gets or sets the refresh
* token.
* @member {string} [securityToken.tokenType] The token type. Must be either
* PersonalAccessToken or Oauth. Possible values include:
* 'PersonalAccessToken', 'Oauth'
* @member {string} [description] Gets or sets the user description of the
* source control.
*/
Expand Down Expand Up @@ -79,7 +88,8 @@ class SourceControlUpdateParameters {
required: false,
serializedName: 'properties.securityToken',
type: {
name: 'String'
name: 'Composite',
className: 'SourceControlSecurityTokenProperties'
}
},
description: {
Expand Down
Loading