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

Commit

Permalink
Generated from ff4ef35bec35df647ad4e2f0d73f2f94f549df21 (#2875)
Browse files Browse the repository at this point in the history
Fixing responses for update management swagger
  • Loading branch information
AutorestCI authored May 21, 2018
1 parent b39b05d commit 742f07d
Show file tree
Hide file tree
Showing 16 changed files with 1,534 additions and 359 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default class AutomationClient extends AzureServiceClient {
softwareUpdateConfigurationMachineRuns: operations.SoftwareUpdateConfigurationMachineRuns;
sourceControlOperations: operations.SourceControlOperations;
sourceControlSyncJobOperations: operations.SourceControlSyncJobOperations;
sourceControlSyncJobStreams: operations.SourceControlSyncJobStreams;
jobOperations: operations.JobOperations;
jobStreamOperations: operations.JobStreamOperations;
agentRegistrationInformation: operations.AgentRegistrationInformation;
Expand Down
1 change: 1 addition & 0 deletions lib/services/automationManagement/lib/automationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class AutomationClient extends ServiceClient {
this.softwareUpdateConfigurationMachineRuns = new operations.SoftwareUpdateConfigurationMachineRuns(this);
this.sourceControlOperations = new operations.SourceControlOperations(this);
this.sourceControlSyncJobOperations = new operations.SourceControlSyncJobOperations(this);
this.sourceControlSyncJobStreams = new operations.SourceControlSyncJobStreams(this);
this.jobOperations = new operations.JobOperations(this);
this.jobStreamOperations = new operations.JobStreamOperations(this);
this.agentRegistrationInformation = new operations.AgentRegistrationInformation(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,12 @@ class DscNodeConfigurationCreateOrUpdateParameters {
* @member {string} [source.value] Gets or sets the value of the content.
* This is based on the content source type.
* @member {string} [source.version] Gets or sets the version of the content.
* @member {string} name Name of the node configuration.
* @member {object} configuration Gets or sets the configuration of the node.
* @member {string} [configuration.name] Gets or sets the name of the Dsc
* configuration.
* @member {boolean} [newNodeConfigurationBuildVersionRequired] If a new
* build version of NodeConfiguration is required.
* @member {object} source1 Gets or sets the source.
* @member {object} [source1.hash] Gets or sets the hash.
* @member {string} [source1.hash.algorithm] Gets or sets the content hash
* algorithm used to hash the content.
* @member {string} [source1.hash.value] Gets or sets expected hash value of
* the content.
* @member {string} [source1.type] Gets or sets the content source type.
* Possible values include: 'embeddedContent', 'uri'
* @member {string} [source1.value] Gets or sets the value of the content.
* This is based on the content source type.
* @member {string} [source1.version] Gets or sets the version of the
* content.
* @member {string} name1 Gets or sets the type of the parameter.
* @member {object} configuration1 Gets or sets the configuration of the
* node.
* @member {string} [configuration1.name] Gets or sets the name of the Dsc
* configuration.
* @member {boolean} [incrementNodeConfigurationBuild] If a new build version
* of NodeConfiguration is required.
* @member {string} [name] Name of the node configuration.
* @member {object} [tags] Gets or sets the tags attached to the resource.
*/
constructor() {
Expand All @@ -77,62 +58,32 @@ class DscNodeConfigurationCreateOrUpdateParameters {
modelProperties: {
source: {
required: true,
serializedName: 'source',
serializedName: 'properties.source',
type: {
name: 'Composite',
className: 'ContentSource'
}
},
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
configuration: {
required: true,
serializedName: 'configuration',
serializedName: 'properties.configuration',
type: {
name: 'Composite',
className: 'DscConfigurationAssociationProperty'
}
},
newNodeConfigurationBuildVersionRequired: {
incrementNodeConfigurationBuild: {
required: false,
serializedName: 'newNodeConfigurationBuildVersionRequired',
serializedName: 'properties.incrementNodeConfigurationBuild',
type: {
name: 'Boolean'
}
},
source1: {
required: true,
serializedName: 'properties.source',
type: {
name: 'Composite',
className: 'ContentSource'
}
},
name1: {
required: true,
serializedName: 'properties.name',
type: {
name: 'String'
}
},
configuration1: {
required: true,
serializedName: 'properties.configuration',
type: {
name: 'Composite',
className: 'DscConfigurationAssociationProperty'
}
},
incrementNodeConfigurationBuild: {
name: {
required: false,
serializedName: 'properties.incrementNodeConfigurationBuild',
serializedName: 'name',
type: {
name: 'Boolean'
name: 'String'
}
},
tags: {
Expand Down
147 changes: 92 additions & 55 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1315,61 +1315,6 @@ export interface DscMetaConfiguration {
allowModuleOverwrite?: boolean;
}

/**
* @class
* Initializes a new instance of the DscNodeConfigurationCreateOrUpdateParameters class.
* @constructor
* The parameters supplied to the create or update node configuration
* operation.
*
* @member {object} source Gets or sets the source.
* @member {object} [source.hash] Gets or sets the hash.
* @member {string} [source.hash.algorithm] Gets or sets the content hash
* algorithm used to hash the content.
* @member {string} [source.hash.value] Gets or sets expected hash value of the
* content.
* @member {string} [source.type] Gets or sets the content source type.
* Possible values include: 'embeddedContent', 'uri'
* @member {string} [source.value] Gets or sets the value of the content. This
* is based on the content source type.
* @member {string} [source.version] Gets or sets the version of the content.
* @member {string} name Name of the node configuration.
* @member {object} configuration Gets or sets the configuration of the node.
* @member {string} [configuration.name] Gets or sets the name of the Dsc
* configuration.
* @member {boolean} [newNodeConfigurationBuildVersionRequired] If a new build
* version of NodeConfiguration is required.
* @member {object} source1 Gets or sets the source.
* @member {object} [source1.hash] Gets or sets the hash.
* @member {string} [source1.hash.algorithm] Gets or sets the content hash
* algorithm used to hash the content.
* @member {string} [source1.hash.value] Gets or sets expected hash value of
* the content.
* @member {string} [source1.type] Gets or sets the content source type.
* Possible values include: 'embeddedContent', 'uri'
* @member {string} [source1.value] Gets or sets the value of the content. This
* is based on the content source type.
* @member {string} [source1.version] Gets or sets the version of the content.
* @member {string} name1 Gets or sets the type of the parameter.
* @member {object} configuration1 Gets or sets the configuration of the node.
* @member {string} [configuration1.name] Gets or sets the name of the Dsc
* configuration.
* @member {boolean} [incrementNodeConfigurationBuild] If a new build version
* of NodeConfiguration is required.
* @member {object} [tags] Gets or sets the tags attached to the resource.
*/
export interface DscNodeConfigurationCreateOrUpdateParameters {
source: ContentSource;
name: string;
configuration: DscConfigurationAssociationProperty;
newNodeConfigurationBuildVersionRequired?: boolean;
source1: ContentSource;
name1: string;
configuration1: DscConfigurationAssociationProperty;
incrementNodeConfigurationBuild?: boolean;
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the DscNodeConfigurationAssociationProperty class.
Expand Down Expand Up @@ -3004,6 +2949,52 @@ export interface SourceControlSyncJobById {
exception?: string;
}

/**
* @class
* Initializes a new instance of the SourceControlSyncJobStream class.
* @constructor
* 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
* values include: 'Error', 'Output'
*/
export interface SourceControlSyncJobStream {
readonly id?: string;
syncJobStreamId?: string;
summary?: string;
readonly time?: Date;
streamType?: string;
}

/**
* @class
* Initializes a new instance of the SourceControlSyncJobStreamById class.
* @constructor
* 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
* 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.
*/
export interface SourceControlSyncJobStreamById {
readonly id?: string;
syncJobStreamId?: string;
summary?: string;
readonly time?: Date;
streamType?: string;
streamText?: string;
value?: string;
}

/**
* @class
* Initializes a new instance of the DscNode class.
Expand Down Expand Up @@ -3064,6 +3055,40 @@ export interface DscNodeConfiguration extends ProxyResource {
incrementNodeConfigurationBuild?: boolean;
}

/**
* @class
* Initializes a new instance of the DscNodeConfigurationCreateOrUpdateParameters class.
* @constructor
* The parameters supplied to the create or update node configuration
* operation.
*
* @member {object} source Gets or sets the source.
* @member {object} [source.hash] Gets or sets the hash.
* @member {string} [source.hash.algorithm] Gets or sets the content hash
* algorithm used to hash the content.
* @member {string} [source.hash.value] Gets or sets expected hash value of the
* content.
* @member {string} [source.type] Gets or sets the content source type.
* Possible values include: 'embeddedContent', 'uri'
* @member {string} [source.value] Gets or sets the value of the content. This
* is based on the content source type.
* @member {string} [source.version] Gets or sets the version of the content.
* @member {object} configuration Gets or sets the configuration of the node.
* @member {string} [configuration.name] Gets or sets the name of the Dsc
* configuration.
* @member {boolean} [incrementNodeConfigurationBuild] If a new build version
* of NodeConfiguration is required.
* @member {string} [name] Name of the node configuration.
* @member {object} [tags] Gets or sets the tags attached to the resource.
*/
export interface DscNodeConfigurationCreateOrUpdateParameters {
source: ContentSource;
configuration: DscConfigurationAssociationProperty;
incrementNodeConfigurationBuild?: boolean;
name?: string;
tags?: { [propertyName: string]: string };
}


/**
* @class
Expand Down Expand Up @@ -3319,6 +3344,18 @@ export interface SourceControlSyncJobListResult extends Array<SourceControlSyncJ
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the SourceControlSyncJobStreamsListBySyncJob class.
* @constructor
* The response model for the list source control sync job streams operation.
*
* @member {string} [nextLink] Gets or sets the next link.
*/
export interface SourceControlSyncJobStreamsListBySyncJob extends Array<SourceControlSyncJobStream> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the JobListResultV2 class.
Expand Down
5 changes: 4 additions & 1 deletion lib/services/automationManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ exports.DscCompilationJobCreateParameters = require('./dscCompilationJobCreatePa
exports.DscConfigurationCreateOrUpdateParameters = require('./dscConfigurationCreateOrUpdateParameters');
exports.DscConfigurationUpdateParameters = require('./dscConfigurationUpdateParameters');
exports.DscMetaConfiguration = require('./dscMetaConfiguration');
exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters');
exports.DscNodeConfigurationAssociationProperty = require('./dscNodeConfigurationAssociationProperty');
exports.DscNodeExtensionHandlerAssociationProperty = require('./dscNodeExtensionHandlerAssociationProperty');
exports.DscNodeUpdateParametersProperties = require('./dscNodeUpdateParametersProperties');
Expand Down Expand Up @@ -134,8 +133,11 @@ exports.SourceControlUpdateParameters = require('./sourceControlUpdateParameters
exports.SourceControlSyncJob = require('./sourceControlSyncJob');
exports.SourceControlSyncJobCreateParameters = require('./sourceControlSyncJobCreateParameters');
exports.SourceControlSyncJobById = require('./sourceControlSyncJobById');
exports.SourceControlSyncJobStream = require('./sourceControlSyncJobStream');
exports.SourceControlSyncJobStreamById = require('./sourceControlSyncJobStreamById');
exports.DscNode = require('./dscNode');
exports.DscNodeConfiguration = require('./dscNodeConfiguration');
exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters');
exports.AutomationAccountListResult = require('./automationAccountListResult');
exports.OperationListResult = require('./operationListResult');
exports.StatisticsListResult = require('./statisticsListResult');
Expand All @@ -158,6 +160,7 @@ exports.VariableListResult = require('./variableListResult');
exports.WebhookListResult = require('./webhookListResult');
exports.SourceControlListResult = require('./sourceControlListResult');
exports.SourceControlSyncJobListResult = require('./sourceControlSyncJobListResult');
exports.SourceControlSyncJobStreamsListBySyncJob = require('./sourceControlSyncJobStreamsListBySyncJob');
exports.JobListResultV2 = require('./jobListResultV2');
exports.DscNodeListResult = require('./dscNodeListResult');
exports.DscNodeReportListResult = require('./dscNodeReportListResult');
Expand Down
Loading

0 comments on commit 742f07d

Please sign in to comment.