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

[AutoPR] automation/resource-manager #2653

Merged
18 commits merged into from
Jul 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
a5e11ac
Generated from dcb93091c5e0dbb92471525bb43496d210a582b4 (#2645)
AutorestCI Apr 3, 2018
925a046
Generated from 78e336d893321f6a2537f044aea283bbaf987203 (#2692)
AutorestCI Apr 9, 2018
fc458d9
Generated from dbe5e9ac34b138b0e23c58ded24526d0b27e9854 (#2734)
AutorestCI Apr 14, 2018
d2efefb
Generated from ab35ac5d163cb8818771763a66fa1f720954f760 (#2761)
AutorestCI Apr 20, 2018
4a506ca
[AutoPR automation/resource-manager] [UpdateManagement] SoftwareUpdat…
AutorestCI Apr 26, 2018
6f39337
[AutoPR automation/resource-manager] Added x-mx-odata properties for …
AutorestCI May 1, 2018
b39b05d
Generated from 3969ccd29b11be74beb11be597e6ec60a2b10fcc (#2833)
AutorestCI May 4, 2018
742f07d
Generated from ff4ef35bec35df647ad4e2f0d73f2f94f549df21 (#2875)
AutorestCI May 21, 2018
5154462
Generated from da1a51b7fc9dc3e5988ad259a215ebeb7a730b96 (#2903)
AutorestCI May 29, 2018
8ab4ca3
[AutoPR automation/resource-manager] Refactoring Job Definitions (#2889)
AutorestCI May 30, 2018
6f25eaa
[AutoPR automation/resource-manager] [Automation] Refactoring Automat…
AutorestCI Jun 22, 2018
6784e47
Generated from 4427304dc57f73fbeb012d11bffca3038ea2bf99 (#3064)
AutorestCI Jun 27, 2018
5134154
[AutoPR automation/resource-manager] Reverting the schedule.json resp…
AutorestCI Jun 28, 2018
26b6458
Generated from d393fcd982df8339a966bf6a6bf3ba58099f3b28 (#3096)
AutorestCI Jul 2, 2018
1ad93c9
Generated from ad46e205e322a7981412bb3b79ce29bcb757e175 (#3163)
AutorestCI Jul 11, 2018
1169c9e
[AutoPR automation/resource-manager] Remove 4xx responses and change …
AutorestCI Jul 12, 2018
7c2d547
Generated from bc2ab8179aa738ee9686eb95816ab74917b0d8d1 (#3181)
AutorestCI Jul 18, 2018
3adf6f9
Merge branch 'master' into restapi_auto_automation/resource-manager
Jul 27, 2018
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
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