Skip to content

Commit ec12b08

Browse files
author
SDKAuto
committed
CodeGen from PR 15819 in Azure/azure-rest-api-specs
Merge 1057b283b8cf3cde34c39b8dd5ebf057714a1aa4 into 969a255137c3e1b1cf86eba31220430e87a07f9b
1 parent d0f244f commit ec12b08

File tree

96 files changed

+7664
-6124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+7664
-6124
lines changed

sdk/automation/arm-automation/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/automation/arm-automation/README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure AutomationClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AutomationClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AutomationClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-automation @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
41-
#### nodejs - Authentication, client creation, and get automationAccount as an example written in JavaScript.
39+
#### nodejs - Authentication, client creation, and listByAutomationAccount privateEndpointConnections as an example written in JavaScript.
4240

4341
##### Sample code
4442

@@ -53,7 +51,7 @@ const creds = new DefaultAzureCredential();
5351
const client = new AutomationClient(creds, subscriptionId);
5452
const resourceGroupName = "testresourceGroupName";
5553
const automationAccountName = "testautomationAccountName";
56-
client.automationAccount.get(resourceGroupName, automationAccountName).then((result) => {
54+
client.privateEndpointConnections.listByAutomationAccount(resourceGroupName, automationAccountName).then((result) => {
5755
console.log("The result is:");
5856
console.log(result);
5957
}).catch((err) => {
@@ -62,7 +60,7 @@ client.automationAccount.get(resourceGroupName, automationAccountName).then((res
6260
});
6361
```
6462

65-
#### browser - Authentication, client creation, and get automationAccount as an example written in JavaScript.
63+
#### browser - Authentication, client creation, and listByAutomationAccount privateEndpointConnections as an example written in JavaScript.
6664

6765
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
6866
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
@@ -87,12 +85,12 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8785
const credential = new InteractiveBrowserCredential(
8886
{
8987
clientId: "<client id for your Azure AD app>",
90-
tenantId: "<optional tenant for your organization>"
88+
tenant: "<optional tenant for your organization>"
9189
});
9290
const client = new Azure.ArmAutomation.AutomationClient(creds, subscriptionId);
9391
const resourceGroupName = "testresourceGroupName";
9492
const automationAccountName = "testautomationAccountName";
95-
client.automationAccount.get(resourceGroupName, automationAccountName).then((result) => {
93+
client.privateEndpointConnections.listByAutomationAccount(resourceGroupName, automationAccountName).then((result) => {
9694
console.log("The result is:");
9795
console.log(result);
9896
}).catch((err) => {

sdk/automation/arm-automation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/automation/arm-automation",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/automation/arm-automation",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/automation/arm-automation/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/automation/arm-automation/src/automationClient.ts

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -18,16 +17,27 @@ import { AutomationClientContext } from "./automationClientContext";
1817

1918
class AutomationClient extends AutomationClientContext {
2019
// Operation groups
20+
privateEndpointConnections: operations.PrivateEndpointConnections;
21+
privateLinkResources: operations.PrivateLinkResources;
22+
python2Package: operations.Python2Package;
23+
agentRegistrationInformation: operations.AgentRegistrationInformation;
24+
dscNode: operations.DscNodeOperations;
25+
nodeReports: operations.NodeReports;
26+
dscNodeConfiguration: operations.DscNodeConfigurationOperations;
27+
dscCompilationJob: operations.DscCompilationJobOperations;
28+
dscCompilationJobStream: operations.DscCompilationJobStream;
29+
nodeCountInformation: operations.NodeCountInformation;
30+
sourceControl: operations.SourceControlOperations;
31+
sourceControlSyncJob: operations.SourceControlSyncJobOperations;
32+
sourceControlSyncJobStreams: operations.SourceControlSyncJobStreams;
2133
automationAccount: operations.AutomationAccountOperations;
22-
operations: operations.Operations;
2334
statistics: operations.StatisticsOperations;
2435
usages: operations.Usages;
2536
keys: operations.Keys;
2637
certificate: operations.CertificateOperations;
2738
connection: operations.ConnectionOperations;
2839
connectionType: operations.ConnectionTypeOperations;
2940
credential: operations.CredentialOperations;
30-
dscConfiguration: operations.DscConfigurationOperations;
3141
hybridRunbookWorkerGroup: operations.HybridRunbookWorkerGroupOperations;
3242
jobSchedule: operations.JobScheduleOperations;
3343
linkedWorkspace: operations.LinkedWorkspaceOperations;
@@ -37,28 +47,19 @@ class AutomationClient extends AutomationClientContext {
3747
fields: operations.Fields;
3848
schedule: operations.ScheduleOperations;
3949
variable: operations.VariableOperations;
40-
webhook: operations.WebhookOperations;
4150
watcher: operations.WatcherOperations;
51+
dscConfiguration: operations.DscConfigurationOperations;
52+
job: operations.JobOperations;
53+
jobStream: operations.JobStreamOperations;
54+
operations: operations.Operations;
4255
softwareUpdateConfigurations: operations.SoftwareUpdateConfigurations;
4356
softwareUpdateConfigurationRuns: operations.SoftwareUpdateConfigurationRuns;
4457
softwareUpdateConfigurationMachineRuns: operations.SoftwareUpdateConfigurationMachineRuns;
45-
sourceControl: operations.SourceControlOperations;
46-
sourceControlSyncJob: operations.SourceControlSyncJobOperations;
47-
sourceControlSyncJobStreams: operations.SourceControlSyncJobStreams;
48-
job: operations.JobOperations;
49-
jobStream: operations.JobStreamOperations;
50-
agentRegistrationInformation: operations.AgentRegistrationInformation;
51-
dscNode: operations.DscNodeOperations;
52-
nodeReports: operations.NodeReports;
53-
dscCompilationJob: operations.DscCompilationJobOperations;
54-
dscCompilationJobStream: operations.DscCompilationJobStream;
55-
dscNodeConfiguration: operations.DscNodeConfigurationOperations;
56-
nodeCountInformation: operations.NodeCountInformation;
5758
runbookDraft: operations.RunbookDraftOperations;
5859
runbook: operations.RunbookOperations;
5960
testJobStreams: operations.TestJobStreams;
6061
testJob: operations.TestJobOperations;
61-
python2Package: operations.Python2Package;
62+
webhook: operations.WebhookOperations;
6263

6364
/**
6465
* Initializes a new instance of the AutomationClient class.
@@ -70,22 +71,31 @@ class AutomationClient extends AutomationClientContext {
7071
* @azure/ms-rest-browserauth are also supported.
7172
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
7273
* subscription. The subscription ID forms part of the URI for every service call.
73-
* @param countType1 The type of counts to retrieve. Possible values include: 'status',
74-
* 'nodeconfiguration'
7574
* @param [options] The parameter options
7675
*/
77-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, countType1: Models.CountType, options?: Models.AutomationClientOptions) {
78-
super(credentials, subscriptionId, countType1, options);
76+
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AutomationClientOptions) {
77+
super(credentials, subscriptionId, options);
78+
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
79+
this.privateLinkResources = new operations.PrivateLinkResources(this);
80+
this.python2Package = new operations.Python2Package(this);
81+
this.agentRegistrationInformation = new operations.AgentRegistrationInformation(this);
82+
this.dscNode = new operations.DscNodeOperations(this);
83+
this.nodeReports = new operations.NodeReports(this);
84+
this.dscNodeConfiguration = new operations.DscNodeConfigurationOperations(this);
85+
this.dscCompilationJob = new operations.DscCompilationJobOperations(this);
86+
this.dscCompilationJobStream = new operations.DscCompilationJobStream(this);
87+
this.nodeCountInformation = new operations.NodeCountInformation(this);
88+
this.sourceControl = new operations.SourceControlOperations(this);
89+
this.sourceControlSyncJob = new operations.SourceControlSyncJobOperations(this);
90+
this.sourceControlSyncJobStreams = new operations.SourceControlSyncJobStreams(this);
7991
this.automationAccount = new operations.AutomationAccountOperations(this);
80-
this.operations = new operations.Operations(this);
8192
this.statistics = new operations.StatisticsOperations(this);
8293
this.usages = new operations.Usages(this);
8394
this.keys = new operations.Keys(this);
8495
this.certificate = new operations.CertificateOperations(this);
8596
this.connection = new operations.ConnectionOperations(this);
8697
this.connectionType = new operations.ConnectionTypeOperations(this);
8798
this.credential = new operations.CredentialOperations(this);
88-
this.dscConfiguration = new operations.DscConfigurationOperations(this);
8999
this.hybridRunbookWorkerGroup = new operations.HybridRunbookWorkerGroupOperations(this);
90100
this.jobSchedule = new operations.JobScheduleOperations(this);
91101
this.linkedWorkspace = new operations.LinkedWorkspaceOperations(this);
@@ -95,28 +105,19 @@ class AutomationClient extends AutomationClientContext {
95105
this.fields = new operations.Fields(this);
96106
this.schedule = new operations.ScheduleOperations(this);
97107
this.variable = new operations.VariableOperations(this);
98-
this.webhook = new operations.WebhookOperations(this);
99108
this.watcher = new operations.WatcherOperations(this);
109+
this.dscConfiguration = new operations.DscConfigurationOperations(this);
110+
this.job = new operations.JobOperations(this);
111+
this.jobStream = new operations.JobStreamOperations(this);
112+
this.operations = new operations.Operations(this);
100113
this.softwareUpdateConfigurations = new operations.SoftwareUpdateConfigurations(this);
101114
this.softwareUpdateConfigurationRuns = new operations.SoftwareUpdateConfigurationRuns(this);
102115
this.softwareUpdateConfigurationMachineRuns = new operations.SoftwareUpdateConfigurationMachineRuns(this);
103-
this.sourceControl = new operations.SourceControlOperations(this);
104-
this.sourceControlSyncJob = new operations.SourceControlSyncJobOperations(this);
105-
this.sourceControlSyncJobStreams = new operations.SourceControlSyncJobStreams(this);
106-
this.job = new operations.JobOperations(this);
107-
this.jobStream = new operations.JobStreamOperations(this);
108-
this.agentRegistrationInformation = new operations.AgentRegistrationInformation(this);
109-
this.dscNode = new operations.DscNodeOperations(this);
110-
this.nodeReports = new operations.NodeReports(this);
111-
this.dscCompilationJob = new operations.DscCompilationJobOperations(this);
112-
this.dscCompilationJobStream = new operations.DscCompilationJobStream(this);
113-
this.dscNodeConfiguration = new operations.DscNodeConfigurationOperations(this);
114-
this.nodeCountInformation = new operations.NodeCountInformation(this);
115116
this.runbookDraft = new operations.RunbookDraftOperations(this);
116117
this.runbook = new operations.RunbookOperations(this);
117118
this.testJobStreams = new operations.TestJobStreams(this);
118119
this.testJob = new operations.TestJobOperations(this);
119-
this.python2Package = new operations.Python2Package(this);
120+
this.webhook = new operations.WebhookOperations(this);
120121
}
121122
}
122123

sdk/automation/arm-automation/src/automationClientContext.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -10,16 +9,15 @@
109

1110
import * as Models from "./models";
1211
import * as msRest from "@azure/ms-rest-js";
13-
import { TokenCredential } from "@azure/core-auth";
1412
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1514

1615
const packageName = "@azure/arm-automation";
1716
const packageVersion = "10.1.1";
1817

1918
export class AutomationClientContext extends msRestAzure.AzureServiceClient {
2019
credentials: msRest.ServiceClientCredentials | TokenCredential;
2120
subscriptionId: string;
22-
countType1: Models.CountType;
2321

2422
/**
2523
* Initializes a new instance of the AutomationClient class.
@@ -31,20 +29,15 @@ export class AutomationClientContext extends msRestAzure.AzureServiceClient {
3129
* @azure/ms-rest-browserauth are also supported.
3230
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
3331
* subscription. The subscription ID forms part of the URI for every service call.
34-
* @param countType1 The type of counts to retrieve. Possible values include: 'status',
35-
* 'nodeconfiguration'
3632
* @param [options] The parameter options
3733
*/
38-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, countType1: Models.CountType, options?: Models.AutomationClientOptions) {
34+
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AutomationClientOptions) {
3935
if (credentials == undefined) {
4036
throw new Error('\'credentials\' cannot be null.');
4137
}
4238
if (subscriptionId == undefined) {
4339
throw new Error('\'subscriptionId\' cannot be null.');
4440
}
45-
if (countType1 == undefined) {
46-
throw new Error('\'countType1\' cannot be null.');
47-
}
4841

4942
if (!options) {
5043
options = {};
@@ -62,7 +55,6 @@ export class AutomationClientContext extends msRestAzure.AzureServiceClient {
6255
this.requestContentType = "application/json; charset=utf-8";
6356
this.credentials = credentials;
6457
this.subscriptionId = subscriptionId;
65-
this.countType1 = countType1;
6658

6759
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
6860
this.acceptLanguage = options.acceptLanguage;

sdk/automation/arm-automation/src/models/activityOperationsMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/automation/arm-automation/src/models/agentRegistrationInformationMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/automation/arm-automation/src/models/automationAccountOperationsMappers.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -29,25 +29,34 @@ export {
2929
DscNode,
3030
DscNodeConfiguration,
3131
DscNodeExtensionHandlerAssociationProperty,
32+
EncryptionProperties,
33+
EncryptionPropertiesIdentity,
3234
ErrorResponse,
35+
Identity,
36+
IdentityUserAssignedIdentitiesValue,
3337
Job,
3438
JobCollectionItem,
39+
KeyVaultProperties,
3540
LinuxProperties,
3641
Module,
3742
ModuleErrorInfo,
3843
NonAzureQueryProperties,
44+
PrivateEndpointConnection,
45+
PrivateEndpointProperty,
46+
PrivateLinkResource,
47+
PrivateLinkServiceConnectionStateProperty,
3948
ProxyResource,
4049
Resource,
4150
Runbook,
4251
RunbookAssociationProperty,
4352
RunbookDraft,
4453
RunbookParameter,
4554
Schedule,
46-
ScheduleProperties,
4755
Sku,
4856
SoftwareUpdateConfiguration,
4957
SoftwareUpdateConfigurationTasks,
5058
SourceControl,
59+
SUCScheduleProperties,
5160
TagSettingsProperties,
5261
TargetProperties,
5362
TaskProperties,

0 commit comments

Comments
 (0)