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

Commit

Permalink
Generated from 3969ccd29b11be74beb11be597e6ec60a2b10fcc (#2833)
Browse files Browse the repository at this point in the history
edit properties for SCSyncJob, update examples
  • Loading branch information
AutorestCI authored May 4, 2018
1 parent 6f39337 commit b39b05d
Show file tree
Hide file tree
Showing 18 changed files with 425 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class DscConfiguration extends models['TrackedResource'] {
* @member {boolean} [logVerbose] Gets or sets verbose log option.
* @member {date} [creationTime] Gets or sets the creation time.
* @member {date} [lastModifiedTime] Gets or sets the last modified time.
* @member {number} [nodeConfigurationCount] Gets the number of compiled node
* configurations.
* @member {string} [description] Gets or sets the description.
* @member {string} [etag] Gets or sets the etag of the resource.
*/
Expand Down Expand Up @@ -173,6 +175,13 @@ class DscConfiguration extends models['TrackedResource'] {
name: 'DateTime'
}
},
nodeConfigurationCount: {
required: false,
serializedName: 'properties.nodeConfigurationCount',
type: {
name: 'Number'
}
},
description: {
required: false,
serializedName: 'properties.description',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class DscConfigurationListResult extends Array {
/**
* Create a DscConfigurationListResult.
* @member {string} [nextLink] Gets or sets the next link.
* @member {number} [totalCount] Gets the total number of configurations
* matching filter criteria.
*/
constructor() {
super();
Expand Down Expand Up @@ -57,6 +59,13 @@ class DscConfigurationListResult extends Array {
type: {
name: 'String'
}
},
totalCount: {
required: false,
serializedName: 'totalCount',
type: {
name: 'Number'
}
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions lib/services/automationManagement/lib/models/dscNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class DscNode extends models['ProxyResource'] {
* @member {string} [status] Gets or sets the status of the node.
* @member {string} [nodeId] Gets or sets the node id.
* @member {string} [etag] Gets or sets the etag of the resource.
* @member {number} [totalCount] Gets the total number of records matching
* filter criteria.
* @member {array} [extensionHandler] Gets or sets the list of
* extensionHandler properties for a Node.
*/
Expand Down Expand Up @@ -131,6 +133,13 @@ class DscNode extends models['ProxyResource'] {
name: 'String'
}
},
totalCount: {
required: false,
serializedName: 'properties.totalCount',
type: {
name: 'Number'
}
},
extensionHandler: {
required: false,
serializedName: 'properties.extensionHandler',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class DscNodeConfigurationListResult extends Array {
/**
* Create a DscNodeConfigurationListResult.
* @member {string} [nextLink] Gets or sets the next link.
* @member {number} [totalCount] Gets or sets the total rows in query.
*/
constructor() {
super();
Expand Down Expand Up @@ -57,6 +58,13 @@ class DscNodeConfigurationListResult extends Array {
type: {
name: 'String'
}
},
totalCount: {
required: false,
serializedName: 'totalCount',
type: {
name: 'Number'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class DscNodeListResult extends Array {
/**
* Create a DscNodeListResult.
* @member {string} [nextLink] Gets or sets the next link.
* @member {number} [totalCount] Gets the total number of nodes matching
* filter criteria.
*/
constructor() {
super();
Expand Down Expand Up @@ -57,6 +59,13 @@ class DscNodeListResult extends Array {
type: {
name: 'String'
}
},
totalCount: {
required: false,
serializedName: 'totalCount',
type: {
name: 'Number'
}
}
}
}
Expand Down
80 changes: 52 additions & 28 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,8 @@ export interface DscConfigurationParameter {
* @member {boolean} [logVerbose] Gets or sets verbose log option.
* @member {date} [creationTime] Gets or sets the creation time.
* @member {date} [lastModifiedTime] Gets or sets the last modified time.
* @member {number} [nodeConfigurationCount] Gets the number of compiled node
* configurations.
* @member {string} [description] Gets or sets the description.
* @member {string} [etag] Gets or sets the etag of the resource.
*/
Expand All @@ -682,6 +684,7 @@ export interface DscConfiguration extends TrackedResource {
logVerbose?: boolean;
creationTime?: Date;
lastModifiedTime?: Date;
nodeConfigurationCount?: number;
description?: string;
etag?: string;
}
Expand Down Expand Up @@ -2399,10 +2402,16 @@ export interface JobCollectionItem extends ProxyResource {
* 'Tools', 'Updates'
* @member {array} [excludedKbNumbers] KB numbers excluded from the software
* update configuration.
* @member {array} [includedKbNumbers] KB numbers included from the software
* update configuration.
* @member {string} [rebootSetting] Reboot setting for the software update
* configuration.
*/
export interface WindowsProperties {
includedUpdateClassifications?: string;
excludedKbNumbers?: string[];
includedKbNumbers?: string[];
rebootSetting?: string;
}

/**
Expand All @@ -2416,10 +2425,16 @@ export interface WindowsProperties {
* 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [excludedPackageNameMasks] packages excluded from the
* software update configuration.
* @member {array} [includedPackageNameMasks] packages included from the
* software update configuration.
* @member {string} [rebootSetting] Reboot setting for the software update
* configuration.
*/
export interface LinuxProperties {
includedPackageClassifications?: string;
excludedPackageNameMasks?: string[];
includedPackageNameMasks?: string[];
rebootSetting?: string;
}

/**
Expand All @@ -2438,12 +2453,20 @@ export interface LinuxProperties {
* 'ServicePack', 'Definition', 'Tools', 'Updates'
* @member {array} [windows.excludedKbNumbers] KB numbers excluded from the
* software update configuration.
* @member {array} [windows.includedKbNumbers] KB numbers included from the
* software update configuration.
* @member {string} [windows.rebootSetting] Reboot setting for the software
* update configuration.
* @member {object} [linux] Linux specific update configuration.
* @member {string} [linux.includedPackageClassifications] Update
* classifications included in the software update configuration. Possible
* values include: 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [linux.excludedPackageNameMasks] packages excluded from the
* software update configuration.
* @member {array} [linux.includedPackageNameMasks] packages included from the
* software update configuration.
* @member {string} [linux.rebootSetting] Reboot setting for the software
* update configuration.
* @member {moment.duration} [duration] Maximum time allowed for the software
* update configuration run. Duration needs to be specified using the format
* PT[n]H[n]M[n]S as per ISO8601
Expand Down Expand Up @@ -2483,13 +2506,21 @@ export interface UpdateConfiguration {
* 'ServicePack', 'Definition', 'Tools', 'Updates'
* @member {array} [updateConfiguration.windows.excludedKbNumbers] KB numbers
* excluded from the software update configuration.
* @member {array} [updateConfiguration.windows.includedKbNumbers] KB numbers
* included from the software update configuration.
* @member {string} [updateConfiguration.windows.rebootSetting] Reboot setting
* for the software update configuration.
* @member {object} [updateConfiguration.linux] Linux specific update
* configuration.
* @member {string} [updateConfiguration.linux.includedPackageClassifications]
* Update classifications included in the software update configuration.
* Possible values include: 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [updateConfiguration.linux.excludedPackageNameMasks]
* packages excluded from the software update configuration.
* @member {array} [updateConfiguration.linux.includedPackageNameMasks]
* packages included from the software update configuration.
* @member {string} [updateConfiguration.linux.rebootSetting] Reboot setting
* for the software update configuration.
* @member {moment.duration} [updateConfiguration.duration] Maximum time
* allowed for the software update configuration run. Duration needs to be
* specified using the format PT[n]H[n]M[n]S as per ISO8601
Expand Down Expand Up @@ -2910,25 +2941,25 @@ export interface SourceControlUpdateParameters {
* @member {string} [name] Resource name.
* @member {string} [type] Resource type.
* @member {string} [id] Resource id.
* @member {string} [sourceControlSyncJobId] Gets the source control sync job
* 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} [startedBy] Gets the user who started the sync job.
* @member {string} [startType] Gets the type of start for the sync job.
* Possible values include: 'AutoSync', 'ManualSync'
*/
export interface SourceControlSyncJob {
readonly name?: string;
readonly type?: string;
readonly id?: string;
sourceControlSyncJobId?: string;
syncJobId?: string;
readonly creationTime?: Date;
provisioningState?: string;
readonly startTime?: Date;
readonly endTime?: Date;
startedBy?: string;
startType?: string;
}

/**
Expand All @@ -2944,48 +2975,33 @@ export interface SourceControlSyncJobCreateParameters {
commitId?: string;
}

/**
* @class
* Initializes a new instance of the SourceControlSyncJobByIdErrors class.
* @constructor
* Error details of the source control sync job.
*
* @member {string} [code] Gets the error code for the job.
* @member {string} [message] Gets the error message for the job.
*/
export interface SourceControlSyncJobByIdErrors {
code?: string;
message?: string;
}

/**
* @class
* Initializes a new instance of the SourceControlSyncJobById class.
* @constructor
* Definition of the source control sync job.
*
* @member {string} [id] Gets the id of the job.
* @member {string} [sourceControlSyncJobId] Gets the source control sync job
* 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} [startedBy] Gets the user who started the sync job.
* @member {object} [errors] Error details of the source control sync job.
* @member {string} [errors.code] Gets the error code for the job.
* @member {string} [errors.message] Gets the error message for 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.
*/
export interface SourceControlSyncJobById {
id?: string;
sourceControlSyncJobId?: string;
syncJobId?: string;
readonly creationTime?: Date;
provisioningState?: string;
readonly startTime?: Date;
readonly endTime?: Date;
startedBy?: string;
errors?: SourceControlSyncJobByIdErrors;
startType?: string;
exception?: string;
}

/**
Expand All @@ -3004,6 +3020,8 @@ export interface SourceControlSyncJobById {
* @member {string} [status] Gets or sets the status of the node.
* @member {string} [nodeId] Gets or sets the node id.
* @member {string} [etag] Gets or sets the etag of the resource.
* @member {number} [totalCount] Gets the total number of records matching
* filter criteria.
* @member {array} [extensionHandler] Gets or sets the list of extensionHandler
* properties for a Node.
*/
Expand All @@ -3016,6 +3034,7 @@ export interface DscNode extends ProxyResource {
status?: string;
nodeId?: string;
etag?: string;
totalCount?: number;
extensionHandler?: DscNodeExtensionHandlerAssociationProperty[];
}

Expand Down Expand Up @@ -3151,6 +3170,8 @@ export interface CredentialListResult extends Array<Credential> {
* The response model for the list configuration operation.
*
* @member {string} [nextLink] Gets or sets the next link.
* @member {number} [totalCount] Gets the total number of configurations
* matching filter criteria.
*/
export interface DscConfigurationListResult extends Array<DscConfiguration> {
nextLink?: string;
Expand Down Expand Up @@ -3317,6 +3338,8 @@ export interface JobListResultV2 extends Array<JobCollectionItem> {
* The response model for the list dsc nodes operation.
*
* @member {string} [nextLink] Gets or sets the next link.
* @member {number} [totalCount] Gets the total number of nodes matching filter
* criteria.
*/
export interface DscNodeListResult extends Array<DscNode> {
nextLink?: string;
Expand Down Expand Up @@ -3353,6 +3376,7 @@ export interface DscCompilationJobListResult extends Array<DscCompilationJob> {
* The response model for the list job operation.
*
* @member {string} [nextLink] Gets or sets the next link.
* @member {number} [totalCount] Gets or sets the total rows in query.
*/
export interface DscNodeConfigurationListResult extends Array<DscNodeConfiguration> {
nextLink?: string;
Expand Down
1 change: 0 additions & 1 deletion lib/services/automationManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ exports.SourceControl = require('./sourceControl');
exports.SourceControlUpdateParameters = require('./sourceControlUpdateParameters');
exports.SourceControlSyncJob = require('./sourceControlSyncJob');
exports.SourceControlSyncJobCreateParameters = require('./sourceControlSyncJobCreateParameters');
exports.SourceControlSyncJobByIdErrors = require('./sourceControlSyncJobByIdErrors');
exports.SourceControlSyncJobById = require('./sourceControlSyncJobById');
exports.DscNode = require('./dscNode');
exports.DscNodeConfiguration = require('./dscNodeConfiguration');
Expand Down
25 changes: 25 additions & 0 deletions lib/services/automationManagement/lib/models/linuxProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class LinuxProperties {
* 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [excludedPackageNameMasks] packages excluded from the
* software update configuration.
* @member {array} [includedPackageNameMasks] packages included from the
* software update configuration.
* @member {string} [rebootSetting] Reboot setting for the software update
* configuration.
*/
constructor() {
}
Expand Down Expand Up @@ -60,6 +64,27 @@ class LinuxProperties {
}
}
}
},
includedPackageNameMasks: {
required: false,
serializedName: 'includedPackageNameMasks',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
rebootSetting: {
required: false,
serializedName: 'rebootSetting',
type: {
name: 'String'
}
}
}
}
Expand Down
Loading

0 comments on commit b39b05d

Please sign in to comment.