Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 5 additions & 9 deletions lib/services/automationManagement/lib/automationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export default class AutomationClient extends AzureServiceClient {
*
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
*
* @param {countType} countType1 - The type of counts to retrieve. Possible values include: 'status', 'nodeconfiguration'
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
Expand All @@ -43,14 +41,12 @@ export default class AutomationClient extends AzureServiceClient {
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, countType1: string, baseUri?: string, options?: AzureServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

credentials: ServiceClientCredentials;

subscriptionId: string;

countType1: string;

acceptLanguage: string;

longRunningOperationRetryTimeout: number;
Expand All @@ -75,10 +71,6 @@ export default class AutomationClient extends AzureServiceClient {
moduleOperations: operations.ModuleOperations;
objectDataTypes: operations.ObjectDataTypes;
fields: operations.Fields;
runbookDraftOperations: operations.RunbookDraftOperations;
runbookOperations: operations.RunbookOperations;
testJobStreams: operations.TestJobStreams;
testJobOperations: operations.TestJobOperations;
scheduleOperations: operations.ScheduleOperations;
variableOperations: operations.VariableOperations;
webhookOperations: operations.WebhookOperations;
Expand All @@ -98,6 +90,10 @@ export default class AutomationClient extends AzureServiceClient {
dscCompilationJobStream: operations.DscCompilationJobStream;
dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations;
nodeCountInformation: operations.NodeCountInformation;
runbookDraftOperations: operations.RunbookDraftOperations;
runbookOperations: operations.RunbookOperations;
testJobStreams: operations.TestJobStreams;
testJobOperations: operations.TestJobOperations;
}

export { AutomationClient, models as AutomationModels };
15 changes: 5 additions & 10 deletions lib/services/automationManagement/lib/automationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class AutomationClient extends ServiceClient {
* Create a AutomationClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
* @param {countType} countType1 - The type of counts to retrieve. Possible values include: 'status', 'nodeconfiguration'
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
Expand All @@ -39,16 +38,13 @@ class AutomationClient extends ServiceClient {
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, countType1, baseUri, options) {
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId === null || subscriptionId === undefined) {
throw new Error('\'subscriptionId\' cannot be null.');
}
if (countType1 === null || countType1 === undefined) {
throw new Error('\'countType1\' cannot be null.');
}

if (!options) options = {};

Expand All @@ -63,7 +59,6 @@ class AutomationClient extends ServiceClient {
}
this.credentials = credentials;
this.subscriptionId = subscriptionId;
this.countType1 = countType1;

let packageInfo = this.getPackageJsonInfo(__dirname);
this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
Expand Down Expand Up @@ -93,10 +88,6 @@ class AutomationClient extends ServiceClient {
this.moduleOperations = new operations.ModuleOperations(this);
this.objectDataTypes = new operations.ObjectDataTypes(this);
this.fields = new operations.Fields(this);
this.runbookDraftOperations = new operations.RunbookDraftOperations(this);
this.runbookOperations = new operations.RunbookOperations(this);
this.testJobStreams = new operations.TestJobStreams(this);
this.testJobOperations = new operations.TestJobOperations(this);
this.scheduleOperations = new operations.ScheduleOperations(this);
this.variableOperations = new operations.VariableOperations(this);
this.webhookOperations = new operations.WebhookOperations(this);
Expand All @@ -116,6 +107,10 @@ class AutomationClient extends ServiceClient {
this.dscCompilationJobStream = new operations.DscCompilationJobStream(this);
this.dscNodeConfigurationOperations = new operations.DscNodeConfigurationOperations(this);
this.nodeCountInformation = new operations.NodeCountInformation(this);
this.runbookDraftOperations = new operations.RunbookDraftOperations(this);
this.runbookOperations = new operations.RunbookOperations(this);
this.testJobStreams = new operations.TestJobStreams(this);
this.testJobOperations = new operations.TestJobOperations(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Loading