Skip to content

Commit 94fe8cf

Browse files
author
SDKAuto
committed
CodeGen from PR 13227 in Azure/azure-rest-api-specs
Merge 18823c21383323bcec69bc32d7adc394af69b049 into 717f25282193ed6a66572d43586c4a29823e4787
1 parent cf8895e commit 94fe8cf

30 files changed

+8017
-368
lines changed

sdk/avs/arm-avs/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/avs/arm-avs/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-avs
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
18+
#### nodejs - client creation and list operations as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

@@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
2626

2727
##### Sample code
2828

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { AvsClient, AvsModels, AvsMappers } from "@azure/arm-avs";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { AvsClient } = require("@azure/arm-avs");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {

sdk/avs/arm-avs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-avs",
33
"author": "Microsoft Corporation",
44
"description": "AvsClient Library with typescript type definitions for node.js and browser.",
5-
"version": "1.0.0",
5+
"version": "0.1.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.0.1",
88
"@azure/ms-rest-js": "^2.0.4",

sdk/avs/arm-avs/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/avs/arm-avs/src/avsClient.ts

Lines changed: 10 additions & 3 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
@@ -21,8 +20,12 @@ class AvsClient extends AvsClientContext {
2120
locations: operations.Locations;
2221
privateClouds: operations.PrivateClouds;
2322
clusters: operations.Clusters;
23+
datastores: operations.Datastores;
2424
hcxEnterpriseSites: operations.HcxEnterpriseSites;
2525
authorizations: operations.Authorizations;
26+
globalReachConnections: operations.GlobalReachConnections;
27+
workloadNetworks: operations.WorkloadNetworks;
28+
addons: operations.Addons;
2629

2730
/**
2831
* Initializes a new instance of the AvsClient class.
@@ -36,8 +39,12 @@ class AvsClient extends AvsClientContext {
3639
this.locations = new operations.Locations(this);
3740
this.privateClouds = new operations.PrivateClouds(this);
3841
this.clusters = new operations.Clusters(this);
42+
this.datastores = new operations.Datastores(this);
3943
this.hcxEnterpriseSites = new operations.HcxEnterpriseSites(this);
4044
this.authorizations = new operations.Authorizations(this);
45+
this.globalReachConnections = new operations.GlobalReachConnections(this);
46+
this.workloadNetworks = new operations.WorkloadNetworks(this);
47+
this.addons = new operations.Addons(this);
4148
}
4249
}
4350

sdk/avs/arm-avs/src/avsClientContext.ts

Lines changed: 7 additions & 8 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
@@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
1413

1514
const packageName = "@azure/arm-avs";
16-
const packageVersion = "1.0.0";
15+
const packageVersion = "0.1.0";
1716

1817
export class AvsClientContext extends msRestAzure.AzureServiceClient {
1918
credentials: msRest.ServiceClientCredentials;
@@ -37,25 +36,25 @@ export class AvsClientContext extends msRestAzure.AzureServiceClient {
3736
if (!options) {
3837
options = {};
3938
}
40-
if (!options.userAgent) {
39+
if(!options.userAgent) {
4140
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4241
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4342
}
4443

4544
super(credentials, options);
4645

47-
this.apiVersion = '2020-03-20';
46+
this.apiVersion = '2021-01-01-preview';
4847
this.acceptLanguage = 'en-US';
4948
this.longRunningOperationRetryTimeout = 30;
5049
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5150
this.requestContentType = "application/json; charset=utf-8";
5251
this.credentials = credentials;
5352
this.subscriptionId = subscriptionId;
5453

55-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
54+
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5655
this.acceptLanguage = options.acceptLanguage;
5756
}
58-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
57+
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
5958
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6059
}
6160
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
Addon,
12+
AddonList,
13+
BaseResource,
14+
Circuit,
15+
CloudError,
16+
Cluster,
17+
CommonClusterProperties,
18+
Datastore,
19+
DiskPoolVolume,
20+
Endpoints,
21+
ErrorAdditionalInfo,
22+
ErrorResponse,
23+
ExpressRouteAuthorization,
24+
GlobalReachConnection,
25+
HcxEnterpriseSite,
26+
IdentitySource,
27+
ManagementCluster,
28+
NetAppVolume,
29+
PrivateCloud,
30+
ProxyResource,
31+
Resource,
32+
Sku,
33+
TrackedResource,
34+
WorkloadNetworkDhcp,
35+
WorkloadNetworkDnsService,
36+
WorkloadNetworkDnsZone,
37+
WorkloadNetworkGateway,
38+
WorkloadNetworkPortMirroring,
39+
WorkloadNetworkSegment,
40+
WorkloadNetworkSegmentPortVif,
41+
WorkloadNetworkSegmentSubnet,
42+
WorkloadNetworkVirtualMachine,
43+
WorkloadNetworkVMGroup
44+
} from "../models/mappers";
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,44 @@
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.
77
*/
88

99
export {
10+
discriminators,
11+
Addon,
1012
BaseResource,
1113
Circuit,
1214
CloudError,
1315
Cluster,
14-
ClusterUpdateProperties,
16+
CommonClusterProperties,
17+
Datastore,
18+
DiskPoolVolume,
1519
Endpoints,
1620
ErrorAdditionalInfo,
1721
ErrorResponse,
1822
ExpressRouteAuthorization,
1923
ExpressRouteAuthorizationList,
24+
GlobalReachConnection,
2025
HcxEnterpriseSite,
2126
IdentitySource,
2227
ManagementCluster,
28+
NetAppVolume,
2329
PrivateCloud,
30+
ProxyResource,
2431
Resource,
2532
Sku,
26-
TrackedResource
33+
TrackedResource,
34+
WorkloadNetworkDhcp,
35+
WorkloadNetworkDnsService,
36+
WorkloadNetworkDnsZone,
37+
WorkloadNetworkGateway,
38+
WorkloadNetworkPortMirroring,
39+
WorkloadNetworkSegment,
40+
WorkloadNetworkSegmentPortVif,
41+
WorkloadNetworkSegmentSubnet,
42+
WorkloadNetworkVirtualMachine,
43+
WorkloadNetworkVMGroup
2744
} from "../models/mappers";
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,45 @@
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.
77
*/
88

99
export {
10+
discriminators,
11+
Addon,
1012
BaseResource,
1113
Circuit,
1214
CloudError,
1315
Cluster,
1416
ClusterList,
1517
ClusterUpdate,
16-
ClusterUpdateProperties,
18+
CommonClusterProperties,
19+
Datastore,
20+
DiskPoolVolume,
1721
Endpoints,
1822
ErrorAdditionalInfo,
1923
ErrorResponse,
2024
ExpressRouteAuthorization,
25+
GlobalReachConnection,
2126
HcxEnterpriseSite,
2227
IdentitySource,
2328
ManagementCluster,
29+
NetAppVolume,
2430
PrivateCloud,
31+
ProxyResource,
2532
Resource,
2633
Sku,
27-
TrackedResource
34+
TrackedResource,
35+
WorkloadNetworkDhcp,
36+
WorkloadNetworkDnsService,
37+
WorkloadNetworkDnsZone,
38+
WorkloadNetworkGateway,
39+
WorkloadNetworkPortMirroring,
40+
WorkloadNetworkSegment,
41+
WorkloadNetworkSegmentPortVif,
42+
WorkloadNetworkSegmentSubnet,
43+
WorkloadNetworkVirtualMachine,
44+
WorkloadNetworkVMGroup
2845
} from "../models/mappers";
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
Addon,
12+
BaseResource,
13+
Circuit,
14+
CloudError,
15+
Cluster,
16+
CommonClusterProperties,
17+
Datastore,
18+
DatastoreList,
19+
DiskPoolVolume,
20+
Endpoints,
21+
ErrorAdditionalInfo,
22+
ErrorResponse,
23+
ExpressRouteAuthorization,
24+
GlobalReachConnection,
25+
HcxEnterpriseSite,
26+
IdentitySource,
27+
ManagementCluster,
28+
NetAppVolume,
29+
PrivateCloud,
30+
ProxyResource,
31+
Resource,
32+
Sku,
33+
TrackedResource,
34+
WorkloadNetworkDhcp,
35+
WorkloadNetworkDnsService,
36+
WorkloadNetworkDnsZone,
37+
WorkloadNetworkGateway,
38+
WorkloadNetworkPortMirroring,
39+
WorkloadNetworkSegment,
40+
WorkloadNetworkSegmentPortVif,
41+
WorkloadNetworkSegmentSubnet,
42+
WorkloadNetworkVirtualMachine,
43+
WorkloadNetworkVMGroup
44+
} from "../models/mappers";

0 commit comments

Comments
 (0)