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
6 changes: 2 additions & 4 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,13 +41,13 @@ 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;
countType: string;

acceptLanguage: string;

Expand Down
8 changes: 2 additions & 6 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,21 +38,19 @@ 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 = {};

super(credentials, options);

this.countType = 'status';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand All @@ -63,7 +60,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
120 changes: 60 additions & 60 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ export { CloudError } from 'ms-rest-azure';

/**
* @class
* Initializes a new instance of the ErrorResponse class.
* Initializes a new instance of the Sku class.
* @constructor
* Error response of an operation failure
* The account SKU.
*
* @member {string} [code] Error code
* @member {string} [message] Error message indicating why the operation
* failed.
* @member {string} name Gets or sets the SKU name of the account. Possible
* values include: 'Free', 'Basic'
* @member {string} [family] Gets or sets the SKU family.
* @member {number} [capacity] Gets or sets the SKU capacity.
*/
export interface ErrorResponse {
code?: string;
message?: string;
export interface Sku {
name: string;
family?: string;
capacity?: number;
}

/**
Expand Down Expand Up @@ -61,33 +63,6 @@ export interface TrackedResource extends Resource {
location?: string;
}

/**
* @class
* Initializes a new instance of the ProxyResource class.
* @constructor
* ARM proxy resource.
*
*/
export interface ProxyResource extends Resource {
}

/**
* @class
* Initializes a new instance of the Sku class.
* @constructor
* The account SKU.
*
* @member {string} name Gets or sets the SKU name of the account. Possible
* values include: 'Free', 'Basic'
* @member {string} [family] Gets or sets the SKU family.
* @member {number} [capacity] Gets or sets the SKU capacity.
*/
export interface Sku {
name: string;
family?: string;
capacity?: number;
}

/**
* @class
* Initializes a new instance of the AutomationAccount class.
Expand Down Expand Up @@ -286,6 +261,31 @@ export interface AutomationAccountUpdateParameters {
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the ProxyResource class.
* @constructor
* ARM proxy resource.
*
*/
export interface ProxyResource extends Resource {
}

/**
* @class
* Initializes a new instance of the ErrorResponse class.
* @constructor
* Error response of an operation failure
*
* @member {string} [code] Error code
* @member {string} [message] Error message indicating why the operation
* failed.
*/
export interface ErrorResponse {
code?: string;
message?: string;
}

/**
* @class
* Initializes a new instance of the CertificateCreateOrUpdateParameters class.
Expand Down Expand Up @@ -1148,31 +1148,6 @@ export interface TypeField {
type?: string;
}

/**
* @class
* Initializes a new instance of the JobStream class.
* @constructor
* Definition of the job stream.
*
* @member {string} [id] Gets or sets the id of the resource.
* @member {string} [jobStreamId] Gets or sets the id of the job stream.
* @member {date} [time] Gets or sets the creation time of the job.
* @member {string} [streamType] Gets or sets the stream type. Possible values
* include: 'Progress', 'Output', 'Warning', 'Error', 'Debug', 'Verbose', 'Any'
* @member {string} [streamText] Gets or sets the stream text.
* @member {string} [summary] Gets or sets the summary.
* @member {object} [value] Gets or sets the values of the job stream.
*/
export interface JobStream {
id?: string;
jobStreamId?: string;
time?: Date;
streamType?: string;
streamText?: string;
summary?: string;
value?: { [propertyName: string]: any };
}

/**
* @class
* Initializes a new instance of the RunbookParameter class.
Expand Down Expand Up @@ -1525,6 +1500,31 @@ export interface RunbookCreateOrUpdateDraftParameters {
runbookContent: string;
}

/**
* @class
* Initializes a new instance of the JobStream class.
* @constructor
* Definition of the job stream.
*
* @member {string} [id] Gets or sets the id of the resource.
* @member {string} [jobStreamId] Gets or sets the id of the job stream.
* @member {date} [time] Gets or sets the creation time of the job.
* @member {string} [streamType] Gets or sets the stream type. Possible values
* include: 'Progress', 'Output', 'Warning', 'Error', 'Debug', 'Verbose', 'Any'
* @member {string} [streamText] Gets or sets the stream text.
* @member {string} [summary] Gets or sets the summary.
* @member {object} [value] Gets or sets the values of the job stream.
*/
export interface JobStream {
id?: string;
jobStreamId?: string;
time?: Date;
streamType?: string;
streamText?: string;
summary?: string;
value?: { [propertyName: string]: any };
}

/**
* @class
* Initializes a new instance of the AdvancedScheduleMonthlyOccurrence class.
Expand Down
8 changes: 4 additions & 4 deletions lib/services/automationManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ var msRestAzure = require('ms-rest-azure');

exports.BaseResource = msRestAzure.BaseResource;
exports.CloudError = msRestAzure.CloudError;
exports.ErrorResponse = require('./errorResponse');
exports.Sku = require('./sku');
exports.Resource = require('./resource');
exports.TrackedResource = require('./trackedResource');
exports.ProxyResource = require('./proxyResource');
exports.Sku = require('./sku');
exports.AutomationAccount = require('./automationAccount');
exports.AutomationAccountCreateOrUpdateParameters = require('./automationAccountCreateOrUpdateParameters');
exports.OperationDisplay = require('./operationDisplay');
Expand All @@ -33,6 +31,8 @@ exports.Usage = require('./usage');
exports.Key = require('./key');
exports.KeyListResult = require('./keyListResult');
exports.AutomationAccountUpdateParameters = require('./automationAccountUpdateParameters');
exports.ProxyResource = require('./proxyResource');
exports.ErrorResponse = require('./errorResponse');
exports.CertificateCreateOrUpdateParameters = require('./certificateCreateOrUpdateParameters');
exports.Certificate = require('./certificate');
exports.CertificateUpdateParameters = require('./certificateUpdateParameters');
Expand Down Expand Up @@ -72,7 +72,6 @@ exports.Module = require('./module');
exports.ModuleCreateOrUpdateParameters = require('./moduleCreateOrUpdateParameters');
exports.ModuleUpdateParameters = require('./moduleUpdateParameters');
exports.TypeField = require('./typeField');
exports.JobStream = require('./jobStream');
exports.RunbookParameter = require('./runbookParameter');
exports.RunbookDraft = require('./runbookDraft');
exports.Runbook = require('./runbook');
Expand All @@ -83,6 +82,7 @@ exports.TestJobCreateParameters = require('./testJobCreateParameters');
exports.TestJob = require('./testJob');
exports.RunbookCreateOrUpdateDraftProperties = require('./runbookCreateOrUpdateDraftProperties');
exports.RunbookCreateOrUpdateDraftParameters = require('./runbookCreateOrUpdateDraftParameters');
exports.JobStream = require('./jobStream');
exports.AdvancedScheduleMonthlyOccurrence = require('./advancedScheduleMonthlyOccurrence');
exports.AdvancedSchedule = require('./advancedSchedule');
exports.ScheduleCreateOrUpdateParameters = require('./scheduleCreateOrUpdateParameters');
Expand Down
8 changes: 4 additions & 4 deletions lib/services/automationManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4839,7 +4839,7 @@ export interface RunbookDraftOperations {
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand All @@ -4863,7 +4863,7 @@ export interface RunbookDraftOperations {
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -5096,7 +5096,7 @@ export interface RunbookDraftOperations {
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand All @@ -5120,7 +5120,7 @@ export interface RunbookDraftOperations {
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ function _get(resourceGroupName, automationAccountName, options, callback) {
if (automationAccountName === null || automationAccountName === undefined || typeof automationAccountName.valueOf() !== 'string') {
throw new Error('automationAccountName cannot be null or undefined and it must be of type string.');
}
if (this.client.countType1 === null || this.client.countType1 === undefined || typeof this.client.countType1.valueOf() !== 'string') {
throw new Error('this.client.countType1 cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
Expand All @@ -90,7 +87,7 @@ function _get(resourceGroupName, automationAccountName, options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName));
requestUrl = requestUrl.replace('{countType}', encodeURIComponent(this.client.countType1));
requestUrl = requestUrl.replace('{countType}', encodeURIComponent(this.client.countType));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -673,7 +673,7 @@ function _undoEdit(resourceGroupName, automationAccountName, runbookName, option
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1120,7 +1120,7 @@ class RunbookDraftOperations {
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1156,7 +1156,7 @@ class RunbookDraftOperations {
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1485,7 +1485,7 @@ class RunbookDraftOperations {
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand Down Expand Up @@ -1521,7 +1521,7 @@ class RunbookDraftOperations {
*
* @param {string} runbookName The runbook name.
*
* @param {string} runbookContent The runbook draft content.
* @param {string} runbookContent The runbook draft content.
*
* @param {object} [options] Optional Parameters.
*
Expand Down