Skip to content

Commit 374ce27

Browse files
author
SDKAuto
committed
CodeGen from PR 16870 in Azure/azure-rest-api-specs
Merge 060b8c0b612f9682ea4128bbd36a6d1827b1fdbc into b6b834584cb58a3c2cbe887570fa0942b397dfc7
1 parent 94c7e2f commit 374ce27

18 files changed

+2336
-416
lines changed

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

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

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureStackHCIClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureStackHCIClient.
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-azurestackhci @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 list operations as an example written in JavaScript.
39+
#### nodejs - Authentication, client creation, and listByCluster arcSettings as an example written in JavaScript.
4240

4341
##### Sample code
4442

@@ -51,8 +49,9 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5149
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5250
const creds = new DefaultAzureCredential();
5351
const client = new AzureStackHCIClient(creds, subscriptionId);
54-
55-
client.operations.list().then((result) => {
52+
const resourceGroupName = "testresourceGroupName";
53+
const clusterName = "testclusterName";
54+
client.arcSettings.listByCluster(resourceGroupName, clusterName).then((result) => {
5655
console.log("The result is:");
5756
console.log(result);
5857
}).catch((err) => {
@@ -61,7 +60,7 @@ client.operations.list().then((result) => {
6160
});
6261
```
6362

64-
#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
63+
#### browser - Authentication, client creation, and listByCluster arcSettings as an example written in JavaScript.
6564

6665
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
6766
- 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.
@@ -86,10 +85,12 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8685
const credential = new InteractiveBrowserCredential(
8786
{
8887
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
88+
tenant: "<optional tenant for your organization>"
9089
});
9190
const client = new Azure.ArmAzurestackhci.AzureStackHCIClient(creds, subscriptionId);
92-
client.operations.list().then((result) => {
91+
const resourceGroupName = "testresourceGroupName";
92+
const clusterName = "testclusterName";
93+
client.arcSettings.listByCluster(resourceGroupName, clusterName).then((result) => {
9394
console.log("The result is:");
9495
console.log(result);
9596
}).catch((err) => {

sdk/azurestackhci/arm-azurestackhci/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/azurestackhci/arm-azurestackhci",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/azurestackhci/arm-azurestackhci",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/azurestackhci/arm-azurestackhci/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/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts

Lines changed: 8 additions & 5 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,8 +17,10 @@ import { AzureStackHCIClientContext } from "./azureStackHCIClientContext";
1817

1918
class AzureStackHCIClient extends AzureStackHCIClientContext {
2019
// Operation groups
21-
operations: operations.Operations;
20+
arcSettings: operations.ArcSettings;
2221
clusters: operations.Clusters;
22+
extensions: operations.Extensions;
23+
operations: operations.Operations;
2324

2425
/**
2526
* Initializes a new instance of the AzureStackHCIClient class.
@@ -34,8 +35,10 @@ class AzureStackHCIClient extends AzureStackHCIClientContext {
3435
*/
3536
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureStackHCIClientOptions) {
3637
super(credentials, subscriptionId, options);
37-
this.operations = new operations.Operations(this);
38+
this.arcSettings = new operations.ArcSettings(this);
3839
this.clusters = new operations.Clusters(this);
40+
this.extensions = new operations.Extensions(this);
41+
this.operations = new operations.Operations(this);
3942
}
4043
}
4144

sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClientContext.ts

Lines changed: 4 additions & 5 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,8 +9,8 @@
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-azurestackhci";
1716
const packageVersion = "1.1.1";
@@ -50,7 +49,7 @@ export class AzureStackHCIClientContext extends msRestAzure.AzureServiceClient {
5049

5150
super(credentials, options);
5251

53-
this.apiVersion = '2020-03-01-preview';
52+
this.apiVersion = '2021-09-01';
5453
this.acceptLanguage = 'en-US';
5554
this.longRunningOperationRetryTimeout = 30;
5655
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
ArcSetting,
11+
ArcSettingList,
12+
AzureEntityResource,
13+
BaseResource,
14+
Cluster,
15+
ClusterDesiredProperties,
16+
ClusterNode,
17+
ClusterReportedProperties,
18+
ErrorAdditionalInfo,
19+
ErrorDetail,
20+
ErrorResponse,
21+
Extension,
22+
PerNodeExtensionState,
23+
PerNodeState,
24+
ProxyResource,
25+
Resource,
26+
TrackedResource
27+
} from "../models/mappers";

sdk/azurestackhci/arm-azurestackhci/src/models/clustersMappers.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
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+
ArcSetting,
1011
AzureEntityResource,
1112
BaseResource,
1213
Cluster,
14+
ClusterDesiredProperties,
1315
ClusterList,
1416
ClusterNode,
17+
ClusterPatch,
1518
ClusterReportedProperties,
16-
ClusterUpdate,
1719
ErrorAdditionalInfo,
20+
ErrorDetail,
1821
ErrorResponse,
19-
ErrorResponseError,
22+
Extension,
23+
PerNodeExtensionState,
24+
PerNodeState,
2025
ProxyResource,
2126
Resource,
2227
TrackedResource
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
ArcSetting,
11+
AzureEntityResource,
12+
BaseResource,
13+
Cluster,
14+
ClusterDesiredProperties,
15+
ClusterNode,
16+
ClusterReportedProperties,
17+
ErrorAdditionalInfo,
18+
ErrorDetail,
19+
ErrorResponse,
20+
Extension,
21+
ExtensionList,
22+
PerNodeExtensionState,
23+
PerNodeState,
24+
ProxyResource,
25+
Resource,
26+
TrackedResource
27+
} from "../models/mappers";

0 commit comments

Comments
 (0)