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

Commit

Permalink
Merge pull request #2653 from Azure/restapi_auto_automation/resource-…
Browse files Browse the repository at this point in the history
…manager

[AutoPR] automation/resource-manager
  • Loading branch information
Dan Schulte authored Jul 27, 2018
2 parents ef24092 + 3adf6f9 commit 0706eeb
Show file tree
Hide file tree
Showing 111 changed files with 9,342 additions and 3,391 deletions.
42 changes: 21 additions & 21 deletions lib/services/automationManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
84 changes: 42 additions & 42 deletions lib/services/automationManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
---
uid: azure-arm-automation
summary: *content

---
# Microsoft Azure SDK for Node.js - AutomationClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**

## Features


## How to Install

```bash
npm install azure-arm-automation
```

## How to use

### Authentication, client creation and get automationAccount as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const AutomationClient = require("azure-arm-automation");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new AutomationClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const automationAccountName = "testautomationAccountName";
return client.automationAccount.get(resourceGroupName, automationAccountName).then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.log('An error ocurred:');
console.dir(err, {depth: null, colors: true});
});

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
---
uid: azure-arm-automation
summary: *content

---
# Microsoft Azure SDK for Node.js - AutomationClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**

## Features


## How to Install

```bash
npm install azure-arm-automation
```

## How to use

### Authentication, client creation and get automationAccount as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const AutomationClient = require("azure-arm-automation");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new AutomationClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const automationAccountName = "testautomationAccountName";
return client.automationAccount.get(resourceGroupName, automationAccountName).then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.log('An error occurred:');
console.dir(err, {depth: null, colors: true});
});

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
15 changes: 11 additions & 4 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 @@ -34,19 +36,21 @@ export default class AutomationClient extends AzureServiceClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - 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.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. 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,11 +82,13 @@ 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;
sourceControlOperations: operations.SourceControlOperations;
sourceControlSyncJobOperations: operations.SourceControlSyncJobOperations;
sourceControlSyncJobStreams: operations.SourceControlSyncJobStreams;
jobOperations: operations.JobOperations;
jobStreamOperations: operations.JobStreamOperations;
agentRegistrationInformation: operations.AgentRegistrationInformation;
Expand All @@ -91,6 +97,7 @@ export default class AutomationClient extends AzureServiceClient {
dscCompilationJobOperations: operations.DscCompilationJobOperations;
dscCompilationJobStream: operations.DscCompilationJobStream;
dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations;
nodeCountInformation: operations.NodeCountInformation;
}

export { AutomationClient, models as AutomationModels };
16 changes: 12 additions & 4 deletions lib/services/automationManagement/lib/automationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,27 @@ 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
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @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.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. 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,11 +100,13 @@ 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);
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 All @@ -108,6 +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.nodeCountInformation = new operations.NodeCountInformation(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
2 changes: 2 additions & 0 deletions lib/services/automationManagement/lib/models/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ class Activity {
},
creationTime: {
required: false,
nullable: false,
serializedName: 'properties.creationTime',
type: {
name: 'DateTime'
}
},
lastModifiedTime: {
required: false,
nullable: false,
serializedName: 'properties.lastModifiedTime',
type: {
name: 'DateTime'
Expand Down
32 changes: 30 additions & 2 deletions lib/services/automationManagement/lib/models/activityParameter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

'use strict';

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

/**
* Definition of the activity parameter.
*
Expand All @@ -24,7 +26,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 All @@ -41,6 +43,10 @@ class ActivityParameter {
* remaining command-line arguments that are associated with this parameter
* in the form of an array. false if the cmdlet parameter does not accept all
* the remaining argument values.
* @member {string} [description] Gets or sets the description of the
* activity parameter.
* @member {array} [validationSet] Gets or sets the validation set of
* activity parameter.
*/
constructor() {
}
Expand Down Expand Up @@ -91,7 +97,7 @@ class ActivityParameter {
required: false,
serializedName: 'position',
type: {
name: 'Boolean'
name: 'Number'
}
},
valueFromPipeline: {
Expand All @@ -114,6 +120,28 @@ class ActivityParameter {
type: {
name: 'Boolean'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
validationSet: {
required: false,
serializedName: 'validationSet',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ActivityParameterValidationSetElementType',
type: {
name: 'Composite',
className: 'ActivityParameterValidationSet'
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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';

/**
* Definition of the activity parameter validation set.
*
*/
class ActivityParameterValidationSet {
/**
* Create a ActivityParameterValidationSet.
* @member {string} [memberValue] Gets or sets the name of the activity
* parameter validation set member.
*/
constructor() {
}

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

module.exports = ActivityParameterValidationSet;
Loading

0 comments on commit 0706eeb

Please sign in to comment.