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

Commit

Permalink
Generated from 4427304dc57f73fbeb012d11bffca3038ea2bf99 (#3064)
Browse files Browse the repository at this point in the history
Updated Readme.md file
  • Loading branch information
AutorestCI authored Jun 27, 2018
1 parent 6f25eaa commit 6784e47
Show file tree
Hide file tree
Showing 10 changed files with 2,457 additions and 1,870 deletions.
9 changes: 7 additions & 2 deletions lib/services/automationManagement/lib/automationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ 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 @@ -41,12 +43,14 @@ 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, baseUri?: string, options?: AzureServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, countType1: string, baseUri?: string, options?: AzureServiceClientOptions);

credentials: ServiceClientCredentials;

subscriptionId: string;

countType1: string;

acceptLanguage: string;

longRunningOperationRetryTimeout: number;
Expand Down Expand Up @@ -78,6 +82,7 @@ export default class AutomationClient extends AzureServiceClient {
scheduleOperations: operations.ScheduleOperations;
variableOperations: operations.VariableOperations;
webhookOperations: operations.WebhookOperations;
watcherOperations: operations.WatcherOperations;
softwareUpdateConfigurations: operations.SoftwareUpdateConfigurations;
softwareUpdateConfigurationRuns: operations.SoftwareUpdateConfigurationRuns;
softwareUpdateConfigurationMachineRuns: operations.SoftwareUpdateConfigurationMachineRuns;
Expand All @@ -92,7 +97,7 @@ export default class AutomationClient extends AzureServiceClient {
dscCompilationJobOperations: operations.DscCompilationJobOperations;
dscCompilationJobStream: operations.DscCompilationJobStream;
dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations;
watcherOperations: operations.WatcherOperations;
nodeCountInformation: operations.NodeCountInformation;
}

export { AutomationClient, models as AutomationModels };
10 changes: 8 additions & 2 deletions lib/services/automationManagement/lib/automationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ 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 @@ -38,13 +39,16 @@ 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, baseUri, options) {
constructor(credentials, subscriptionId, countType1, 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 @@ -59,6 +63,7 @@ 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 @@ -95,6 +100,7 @@ class AutomationClient extends ServiceClient {
this.scheduleOperations = new operations.ScheduleOperations(this);
this.variableOperations = new operations.VariableOperations(this);
this.webhookOperations = new operations.WebhookOperations(this);
this.watcherOperations = new operations.WatcherOperations(this);
this.softwareUpdateConfigurations = new operations.SoftwareUpdateConfigurations(this);
this.softwareUpdateConfigurationRuns = new operations.SoftwareUpdateConfigurationRuns(this);
this.softwareUpdateConfigurationMachineRuns = new operations.SoftwareUpdateConfigurationMachineRuns(this);
Expand All @@ -109,7 +115,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.nodeCountInformation = new operations.NodeCountInformation(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
134 changes: 87 additions & 47 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,54 @@ export interface WebhookCreateOrUpdateParameters {
runOn?: string;
}

/**
* @class
* Initializes a new instance of the Watcher class.
* @constructor
* Definition of the watcher type.
*
* @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at
* which the watcher is invoked.
* @member {string} [scriptName] Gets or sets the name of the script the
* watcher is attached to, i.e. the name of an existing runbook.
* @member {object} [scriptParameters] Gets or sets the parameters of the
* script.
* @member {string} [scriptRunOn] Gets or sets the name of the hybrid worker
* group the watcher will run on.
* @member {string} [status] Gets the current status of the watcher.
* @member {date} [creationTime] Gets or sets the creation time.
* @member {date} [lastModifiedTime] Gets or sets the last modified time.
* @member {string} [lastModifiedBy] Details of the user who last modified the
* watcher.
* @member {string} [description] Gets or sets the description.
* @member {string} [etag] Gets or sets the etag of the resource.
*/
export interface Watcher extends TrackedResource {
executionFrequencyInSeconds?: number;
scriptName?: string;
scriptParameters?: { [propertyName: string]: string };
scriptRunOn?: string;
readonly status?: string;
readonly creationTime?: Date;
readonly lastModifiedTime?: Date;
readonly lastModifiedBy?: string;
description?: string;
etag?: string;
}

/**
* @class
* Initializes a new instance of the WatcherUpdateParameters class.
* @constructor
* @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at
* which the watcher is invoked.
* @member {string} [name] Gets or sets the name of the resource.
*/
export interface WatcherUpdateParameters {
executionFrequencyInSeconds?: number;
name?: string;
}

/**
* @class
* Initializes a new instance of the WindowsProperties class.
Expand Down Expand Up @@ -3024,50 +3072,42 @@ export interface DscNodeConfigurationCreateOrUpdateParameters {

/**
* @class
* Initializes a new instance of the Watcher class.
* Initializes a new instance of the NodeCountProperties class.
* @constructor
* Definition of the watcher type.
*
* @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at
* which the watcher is invoked.
* @member {string} [scriptName] Gets or sets the name of the script the
* watcher is attached to, i.e. the name of an existing runbook.
* @member {object} [scriptParameters] Gets or sets the parameters of the
* script.
* @member {string} [scriptRunOn] Gets or sets the name of the hybrid worker
* group the watcher will run on.
* @member {string} [status] Gets the current status of the watcher.
* @member {date} [creationTime] Gets or sets the creation time.
* @member {date} [lastModifiedTime] Gets or sets the last modified time.
* @member {string} [lastModifiedBy] Details of the user who last modified the
* watcher.
* @member {string} [description] Gets or sets the description.
* @member {string} [etag] Gets or sets the etag of the resource.
* @member {number} [count] Gets the count for the name
*/
export interface Watcher extends TrackedResource {
executionFrequencyInSeconds?: number;
scriptName?: string;
scriptParameters?: { [propertyName: string]: string };
scriptRunOn?: string;
readonly status?: string;
readonly creationTime?: Date;
readonly lastModifiedTime?: Date;
readonly lastModifiedBy?: string;
description?: string;
etag?: string;
export interface NodeCountProperties {
count?: number;
}

/**
* @class
* Initializes a new instance of the WatcherUpdateParameters class.
* Initializes a new instance of the NodeCount class.
* @constructor
* @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at
* which the watcher is invoked.
* @member {string} [name] Gets or sets the name of the resource.
* Number of nodes based on the Filter
*
* @member {string} [name] Gets the name of a count type
* @member {object} [properties]
* @member {number} [properties.count] Gets the count for the name
*/
export interface WatcherUpdateParameters {
executionFrequencyInSeconds?: number;
export interface NodeCount {
name?: string;
properties?: NodeCountProperties;
}

/**
* @class
* Initializes a new instance of the NodeCounts class.
* @constructor
* Gets the count of nodes by count type
*
* @member {array} [value] Gets an array of counts
* @member {number} [totalCount] Gets the total number of records matching
* countType criteria.
*/
export interface NodeCounts {
value?: NodeCount[];
totalCount?: number;
}


Expand Down Expand Up @@ -3293,6 +3333,18 @@ export interface WebhookListResult extends Array<Webhook> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the WatcherListResult class.
* @constructor
* The response model for the list watcher operation.
*
* @member {string} [nextLink] Gets or sets the next link.
*/
export interface WatcherListResult extends Array<Watcher> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the SourceControlListResult class.
Expand Down Expand Up @@ -3391,15 +3443,3 @@ export interface DscCompilationJobListResult extends Array<DscCompilationJob> {
export interface DscNodeConfigurationListResult extends Array<DscNodeConfiguration> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the WatcherListResult class.
* @constructor
* The response model for the list watcher operation.
*
* @member {string} [nextLink] Gets or sets the next link.
*/
export interface WatcherListResult extends Array<Watcher> {
nextLink?: string;
}
9 changes: 6 additions & 3 deletions lib/services/automationManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ exports.VariableUpdateParameters = require('./variableUpdateParameters');
exports.Webhook = require('./webhook');
exports.WebhookUpdateParameters = require('./webhookUpdateParameters');
exports.WebhookCreateOrUpdateParameters = require('./webhookCreateOrUpdateParameters');
exports.Watcher = require('./watcher');
exports.WatcherUpdateParameters = require('./watcherUpdateParameters');
exports.WindowsProperties = require('./windowsProperties');
exports.LinuxProperties = require('./linuxProperties');
exports.UpdateConfiguration = require('./updateConfiguration');
Expand Down Expand Up @@ -135,8 +137,9 @@ exports.DscCompilationJob = require('./dscCompilationJob');
exports.DscCompilationJobCreateParameters = require('./dscCompilationJobCreateParameters');
exports.DscNodeConfiguration = require('./dscNodeConfiguration');
exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters');
exports.Watcher = require('./watcher');
exports.WatcherUpdateParameters = require('./watcherUpdateParameters');
exports.NodeCountProperties = require('./nodeCountProperties');
exports.NodeCount = require('./nodeCount');
exports.NodeCounts = require('./nodeCounts');
exports.AutomationAccountListResult = require('./automationAccountListResult');
exports.OperationListResult = require('./operationListResult');
exports.StatisticsListResult = require('./statisticsListResult');
Expand All @@ -156,6 +159,7 @@ exports.JobStreamListResult = require('./jobStreamListResult');
exports.ScheduleListResult = require('./scheduleListResult');
exports.VariableListResult = require('./variableListResult');
exports.WebhookListResult = require('./webhookListResult');
exports.WatcherListResult = require('./watcherListResult');
exports.SourceControlListResult = require('./sourceControlListResult');
exports.SourceControlSyncJobListResult = require('./sourceControlSyncJobListResult');
exports.SourceControlSyncJobStreamsListBySyncJob = require('./sourceControlSyncJobStreamsListBySyncJob');
Expand All @@ -164,4 +168,3 @@ exports.DscNodeListResult = require('./dscNodeListResult');
exports.DscNodeReportListResult = require('./dscNodeReportListResult');
exports.DscCompilationJobListResult = require('./dscCompilationJobListResult');
exports.DscNodeConfigurationListResult = require('./dscNodeConfigurationListResult');
exports.WatcherListResult = require('./watcherListResult');
64 changes: 64 additions & 0 deletions lib/services/automationManagement/lib/models/nodeCount.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Number of nodes based on the Filter
*
*/
class NodeCount {
/**
* Create a NodeCount.
* @member {string} [name] Gets the name of a count type
* @member {object} [properties]
* @member {number} [properties.count] Gets the count for the name
*/
constructor() {
}

/**
* Defines the metadata of NodeCount
*
* @returns {object} metadata of NodeCount
*
*/
mapper() {
return {
required: false,
serializedName: 'NodeCount',
type: {
name: 'Composite',
className: 'NodeCount',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
properties: {
required: false,
serializedName: 'properties',
type: {
name: 'Composite',
className: 'NodeCountProperties'
}
}
}
}
};
}
}

module.exports = NodeCount;
Loading

0 comments on commit 6784e47

Please sign in to comment.