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

[AutoPR automation/resource-manager] [Automation] Refactoring Automation Resources #2954

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default class AutomationClient extends AzureServiceClient {
dscCompilationJobOperations: operations.DscCompilationJobOperations;
dscCompilationJobStream: operations.DscCompilationJobStream;
dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations;
watcherOperations: operations.WatcherOperations;
}

export { AutomationClient, models as AutomationModels };
1 change: 1 addition & 0 deletions lib/services/automationManagement/lib/automationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class AutomationClient extends ServiceClient {
this.dscCompilationJobOperations = new operations.DscCompilationJobOperations(this);
this.dscCompilationJobStream = new operations.DscCompilationJobStream(this);
this.dscNodeConfigurationOperations = new operations.DscNodeConfigurationOperations(this);
this.watcherOperations = new operations.WatcherOperations(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ActivityParameter {
* parameter is optional.
* @member {boolean} [isDynamic] Gets or sets a Boolean value that indicates
* true if the parameter is dynamic.
* @member {boolean} [position] Gets or sets the position of the activity
* @member {number} [position] Gets or sets the position of the activity
* parameter.
* @member {boolean} [valueFromPipeline] Gets or sets a Boolean value that
* indicates true if the parameter can take values from the incoming pipeline
Expand Down Expand Up @@ -91,7 +91,7 @@ class ActivityParameter {
required: false,
serializedName: 'position',
type: {
name: 'Boolean'
name: 'Number'
}
},
valueFromPipeline: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ class AgentRegistrationRegenerateKeyParameter {
* Create a AgentRegistrationRegenerateKeyParameter.
* @member {string} keyName Gets or sets the agent registration key name -
* primary or secondary. Possible values include: 'primary', 'secondary'
* @member {string} [name] Gets or sets the name of the resource.
* @member {string} [location] Gets or sets the location of the resource.
* @member {object} [tags] Gets or sets the tags attached to the resource.
*/
constructor() {
}
Expand All @@ -46,34 +43,6 @@ class AgentRegistrationRegenerateKeyParameter {
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
location: {
required: false,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ class DscCompilationJob extends models['ProxyResource'] {
* @member {string} [startedBy] Gets the compilation job started by.
* @member {uuid} [jobId] Gets the id of the job.
* @member {date} [creationTime] Gets the creation time of the job.
* @member {object} [provisioningState] The current provisioning state of the
* job.
* @member {string} [provisioningState.provisioningState] The provisioning
* state of the resource. Possible values include: 'Failed', 'Succeeded',
* 'Suspended', 'Processing'
* @member {string} [provisioningState] The current provisioning state of the
* job. Possible values include: 'Failed', 'Succeeded', 'Suspended',
* 'Processing'
* @member {string} [runOn] Gets or sets the runOn which specifies the group
* name where the job is to be executed.
* @member {string} [status] Gets or sets the status of the job. Possible
Expand Down Expand Up @@ -125,8 +123,7 @@ class DscCompilationJob extends models['ProxyResource'] {
required: false,
serializedName: 'properties.provisioningState',
type: {
name: 'Composite',
className: 'JobProvisioningStateProperty'
name: 'String'
}
},
runOn: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class DscCompilationJobCreateParameters {
* @member {string} [configuration.name] Gets or sets the name of the Dsc
* configuration.
* @member {object} [parameters] Gets or sets the parameters of the job.
* @member {boolean} [newNodeConfigurationBuildVersionRequired] If a new
* build version of NodeConfiguration is required.
* @member {boolean} [incrementNodeConfigurationBuild] If a new build version
* of NodeConfiguration is required.
* @member {string} [name] Gets or sets name of the resource.
* @member {string} [location] Gets or sets the location of the resource.
* @member {object} [tags] Gets or sets the tags attached to the resource.
Expand Down Expand Up @@ -68,9 +68,9 @@ class DscCompilationJobCreateParameters {
}
}
},
newNodeConfigurationBuildVersionRequired: {
incrementNodeConfigurationBuild: {
required: false,
serializedName: 'properties.newNodeConfigurationBuildVersionRequired',
serializedName: 'properties.incrementNodeConfigurationBuild',
type: {
name: 'Boolean'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ class DscNodeUpdateParameters {
/**
* Create a DscNodeUpdateParameters.
* @member {string} [nodeId] Gets or sets the id of the dsc node.
* @member {object} [nodeConfiguration] Gets or sets the configuration of the
* node.
* @member {string} [nodeConfiguration.name] Gets or sets the name of the dsc
* nodeconfiguration.
* @member {object} [properties]
* @member {string} [properties.name] Gets or sets the name of the dsc
* nodeconfiguration.
Expand Down Expand Up @@ -52,14 +48,6 @@ class DscNodeUpdateParameters {
name: 'String'
}
},
nodeConfiguration: {
required: false,
serializedName: 'nodeConfiguration',
type: {
name: 'Composite',
className: 'DscNodeConfigurationAssociationProperty'
}
},
properties: {
required: false,
serializedName: 'properties',
Expand Down
Loading