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

[AutoPR automation/resource-manager] Add DateTimeOffset and remove Sync methods settings in all specs #2645

Merged
Merged
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
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.
74 changes: 37 additions & 37 deletions lib/services/automationManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# 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)
# 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)
12 changes: 6 additions & 6 deletions lib/services/automationManagement/lib/automationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ export default class AutomationClient extends AzureServiceClient {
connectionOperations: operations.ConnectionOperations;
connectionTypeOperations: operations.ConnectionTypeOperations;
credentialOperations: operations.CredentialOperations;
dscCompilationJobOperations: operations.DscCompilationJobOperations;
dscCompilationJobStream: operations.DscCompilationJobStream;
dscConfigurationOperations: operations.DscConfigurationOperations;
agentRegistrationInformation: operations.AgentRegistrationInformation;
dscNodeOperations: operations.DscNodeOperations;
nodeReports: operations.NodeReports;
dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations;
hybridRunbookWorkerGroupOperations: operations.HybridRunbookWorkerGroupOperations;
jobScheduleOperations: operations.JobScheduleOperations;
linkedWorkspaceOperations: operations.LinkedWorkspaceOperations;
Expand All @@ -91,6 +85,12 @@ export default class AutomationClient extends AzureServiceClient {
sourceControlSyncJobOperations: operations.SourceControlSyncJobOperations;
jobOperations: operations.JobOperations;
jobStreamOperations: operations.JobStreamOperations;
agentRegistrationInformation: operations.AgentRegistrationInformation;
dscNodeOperations: operations.DscNodeOperations;
nodeReports: operations.NodeReports;
dscCompilationJobOperations: operations.DscCompilationJobOperations;
dscCompilationJobStream: operations.DscCompilationJobStream;
dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations;
}

export { AutomationClient, models as AutomationModels };
12 changes: 6 additions & 6 deletions lib/services/automationManagement/lib/automationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,7 @@ class AutomationClient extends ServiceClient {
this.connectionOperations = new operations.ConnectionOperations(this);
this.connectionTypeOperations = new operations.ConnectionTypeOperations(this);
this.credentialOperations = new operations.CredentialOperations(this);
this.dscCompilationJobOperations = new operations.DscCompilationJobOperations(this);
this.dscCompilationJobStream = new operations.DscCompilationJobStream(this);
this.dscConfigurationOperations = new operations.DscConfigurationOperations(this);
this.agentRegistrationInformation = new operations.AgentRegistrationInformation(this);
this.dscNodeOperations = new operations.DscNodeOperations(this);
this.nodeReports = new operations.NodeReports(this);
this.dscNodeConfigurationOperations = new operations.DscNodeConfigurationOperations(this);
this.hybridRunbookWorkerGroupOperations = new operations.HybridRunbookWorkerGroupOperations(this);
this.jobScheduleOperations = new operations.JobScheduleOperations(this);
this.linkedWorkspaceOperations = new operations.LinkedWorkspaceOperations(this);
Expand All @@ -108,6 +102,12 @@ class AutomationClient extends ServiceClient {
this.sourceControlSyncJobOperations = new operations.SourceControlSyncJobOperations(this);
this.jobOperations = new operations.JobOperations(this);
this.jobStreamOperations = new operations.JobStreamOperations(this);
this.agentRegistrationInformation = new operations.AgentRegistrationInformation(this);
this.dscNodeOperations = new operations.DscNodeOperations(this);
this.nodeReports = new operations.NodeReports(this);
this.dscCompilationJobOperations = new operations.DscCompilationJobOperations(this);
this.dscCompilationJobStream = new operations.DscCompilationJobStream(this);
this.dscNodeConfigurationOperations = new operations.DscNodeConfigurationOperations(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AdvancedScheduleMonthlyOccurrence {
* @member {number} [occurrence] Occurrence of the week within the month.
* Must be between 1 and 5
* @member {string} [day] Day of the occurrence. Must be one of monday,
* tuesday, wednesday,thursday, friday, saturday, sunday. Possible values
* tuesday, wednesday, thursday, friday, saturday, sunday. Possible values
* include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
* 'Saturday', 'Sunday'
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const models = require('./index');
/**
* Definition of the automation account type.
*
* @extends models['Resource']
* @extends models['TrackedResource']
*/
class AutomationAccount extends models['Resource'] {
class AutomationAccount extends models['TrackedResource'] {
/**
* Create a AutomationAccount.
* @member {object} [sku] Gets or sets the SKU of account.
Expand Down Expand Up @@ -75,13 +75,6 @@ class AutomationAccount extends models['Resource'] {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
Expand All @@ -96,6 +89,13 @@ class AutomationAccount extends models['Resource'] {
}
}
},
location: {
required: false,
serializedName: 'location',
type: {
name: 'String'
}
},
sku: {
required: false,
serializedName: 'properties.sku',
Expand Down
7 changes: 2 additions & 5 deletions lib/services/automationManagement/lib/models/certificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ const models = require('./index');
/**
* Definition of the certificate.
*
* @extends models['BaseResource']
* @extends models['ProxyResource']
*/
class Certificate extends models['BaseResource'] {
class Certificate extends models['ProxyResource'] {
/**
* Create a Certificate.
* @member {string} [id] Gets the id of the resource.
* @member {string} [name] Gets the name of the certificate.
* @member {string} [type] Resource type
* @member {string} [thumbprint] Gets the thumbprint of the certificate.
* @member {date} [expiryTime] Gets the expiry time of the certificate.
* @member {boolean} [isExportable] Gets the is exportable flag of the
Expand Down
7 changes: 2 additions & 5 deletions lib/services/automationManagement/lib/models/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ const models = require('./index');
/**
* Definition of the connection.
*
* @extends models['BaseResource']
* @extends models['ProxyResource']
*/
class Connection extends models['BaseResource'] {
class Connection extends models['ProxyResource'] {
/**
* Create a Connection.
* @member {string} [id] Gets the id of the resource.
* @member {string} [name] Gets the name of the connection.
* @member {string} [type] Resource type
* @member {object} [connectionType] Gets or sets the connectionType of the
* connection.
* @member {string} [connectionType.name] Gets or sets the name of the
Expand Down
7 changes: 2 additions & 5 deletions lib/services/automationManagement/lib/models/credential.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ const models = require('./index');
/**
* Definition of the credential.
*
* @extends models['BaseResource']
* @extends models['ProxyResource']
*/
class Credential extends models['BaseResource'] {
class Credential extends models['ProxyResource'] {
/**
* Create a Credential.
* @member {string} [id] Gets the id of the resource.
* @member {string} [name] Gets the name of the credential.
* @member {string} [type] Resource type
* @member {string} [userName] Gets the user name of the credential.
* @member {date} [creationTime] Gets the creation time.
* @member {date} [lastModifiedTime] Gets the last modified time.
Expand Down
18 changes: 9 additions & 9 deletions lib/services/automationManagement/lib/models/dscConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const models = require('./index');
/**
* Definition of the configuration type.
*
* @extends models['Resource']
* @extends models['TrackedResource']
*/
class DscConfiguration extends models['Resource'] {
class DscConfiguration extends models['TrackedResource'] {
/**
* Create a DscConfiguration.
* @member {string} [provisioningState] Gets or sets the provisioning state
Expand Down Expand Up @@ -86,13 +86,6 @@ class DscConfiguration extends models['Resource'] {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
Expand All @@ -107,6 +100,13 @@ class DscConfiguration extends models['Resource'] {
}
}
},
location: {
required: false,
serializedName: 'location',
type: {
name: 'String'
}
},
provisioningState: {
required: false,
serializedName: 'properties.provisioningState',
Expand Down
Loading