Skip to content

Commit 1f41a3f

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

Some content is hidden

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

52 files changed

+8330
-2185
lines changed

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

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

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

4341
##### Sample code
@@ -51,7 +49,6 @@ 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 DataBoxEdgeManagementClient(creds, subscriptionId);
54-
5552
client.operations.list().then((result) => {
5653
console.log("The result is:");
5754
console.log(result);
@@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8683
const credential = new InteractiveBrowserCredential(
8784
{
8885
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
86+
tenant: "<optional tenant for your organization>"
9087
});
9188
const client = new Azure.ArmDataboxedge.DataBoxEdgeManagementClient(creds, subscriptionId);
9289
client.operations.list().then((result) => {

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

sdk/databoxedge/arm-databoxedge/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/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts

Lines changed: 12 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
@@ -19,21 +18,25 @@ import { DataBoxEdgeManagementClientContext } from "./dataBoxEdgeManagementClien
1918
class DataBoxEdgeManagementClient extends DataBoxEdgeManagementClientContext {
2019
// Operation groups
2120
operations: operations.Operations;
21+
availableSkus: operations.AvailableSkus;
2222
devices: operations.Devices;
2323
alerts: operations.Alerts;
2424
bandwidthSchedules: operations.BandwidthSchedules;
25+
diagnosticSettings: operations.DiagnosticSettings;
2526
jobs: operations.Jobs;
2627
nodes: operations.Nodes;
2728
operationsStatus: operations.OperationsStatus;
2829
orders: operations.Orders;
2930
roles: operations.Roles;
31+
addons: operations.Addons;
32+
monitoringConfig: operations.MonitoringConfig;
3033
shares: operations.Shares;
3134
storageAccountCredentials: operations.StorageAccountCredentials;
3235
storageAccounts: operations.StorageAccounts;
3336
containers: operations.Containers;
3437
triggers: operations.Triggers;
38+
supportPackages: operations.SupportPackages;
3539
users: operations.Users;
36-
skus: operations.Skus;
3740

3841
/**
3942
* Initializes a new instance of the DataBoxEdgeManagementClient class.
@@ -49,21 +52,25 @@ class DataBoxEdgeManagementClient extends DataBoxEdgeManagementClientContext {
4952
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.DataBoxEdgeManagementClientOptions) {
5053
super(credentials, subscriptionId, options);
5154
this.operations = new operations.Operations(this);
55+
this.availableSkus = new operations.AvailableSkus(this);
5256
this.devices = new operations.Devices(this);
5357
this.alerts = new operations.Alerts(this);
5458
this.bandwidthSchedules = new operations.BandwidthSchedules(this);
59+
this.diagnosticSettings = new operations.DiagnosticSettings(this);
5560
this.jobs = new operations.Jobs(this);
5661
this.nodes = new operations.Nodes(this);
5762
this.operationsStatus = new operations.OperationsStatus(this);
5863
this.orders = new operations.Orders(this);
5964
this.roles = new operations.Roles(this);
65+
this.addons = new operations.Addons(this);
66+
this.monitoringConfig = new operations.MonitoringConfig(this);
6067
this.shares = new operations.Shares(this);
6168
this.storageAccountCredentials = new operations.StorageAccountCredentials(this);
6269
this.storageAccounts = new operations.StorageAccounts(this);
6370
this.containers = new operations.Containers(this);
6471
this.triggers = new operations.Triggers(this);
72+
this.supportPackages = new operations.SupportPackages(this);
6573
this.users = new operations.Users(this);
66-
this.skus = new operations.Skus(this);
6774
}
6875
}
6976

sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClientContext.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-databoxedge";
1716
const packageVersion = "1.1.1";
@@ -50,7 +49,7 @@ export class DataBoxEdgeManagementClientContext extends msRestAzure.AzureService
5049

5150
super(credentials, options);
5251

53-
this.apiVersion = '2019-08-01';
52+
this.apiVersion = '2021-06-01';
5453
this.acceptLanguage = 'en-US';
5554
this.longRunningOperationRetryTimeout = 30;
5655
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
Address,
14+
Alert,
15+
AlertErrorDetails,
16+
ArcAddon,
17+
ARMBaseModel,
18+
AsymmetricEncryptedSecret,
19+
Authentication,
20+
AzureContainerInfo,
21+
BandwidthSchedule,
22+
BaseResource,
23+
ClientAccessRight,
24+
CloudEdgeManagementRole,
25+
CloudError,
26+
CniConfig,
27+
ComputeResource,
28+
ContactDetails,
29+
Container,
30+
DataBoxEdgeDevice,
31+
DataBoxEdgeDeviceExtendedInfo,
32+
DataResidency,
33+
DiagnosticProactiveLogCollectionSettings,
34+
DiagnosticRemoteSupportSettings,
35+
EdgeProfile,
36+
EdgeProfileSubscription,
37+
EtcdInfo,
38+
FileEventTrigger,
39+
FileSourceInfo,
40+
ImageRepositoryCredential,
41+
IoTAddon,
42+
IoTDeviceInfo,
43+
IoTEdgeAgentInfo,
44+
IoTRole,
45+
Ipv4Config,
46+
Ipv6Config,
47+
KubernetesClusterInfo,
48+
KubernetesIPConfiguration,
49+
KubernetesRole,
50+
KubernetesRoleCompute,
51+
KubernetesRoleNetwork,
52+
KubernetesRoleResources,
53+
KubernetesRoleStorage,
54+
KubernetesRoleStorageClassInfo,
55+
LoadBalancerConfig,
56+
MECRole,
57+
MetricConfiguration,
58+
MetricCounter,
59+
MetricCounterSet,
60+
MetricDimension,
61+
MonitoringMetricConfiguration,
62+
MountPointMap,
63+
NetworkAdapter,
64+
NetworkAdapterPosition,
65+
NetworkSettings,
66+
Node,
67+
NodeInfo,
68+
Order,
69+
OrderStatus,
70+
PeriodicTimerEventTrigger,
71+
PeriodicTimerSourceInfo,
72+
RefreshDetails,
73+
RemoteSupportSettings,
74+
ResourceIdentity,
75+
ResourceMoveDetails,
76+
Role,
77+
RoleSinkInfo,
78+
Secret,
79+
SecuritySettings,
80+
Share,
81+
ShareAccessRight,
82+
Sku,
83+
StorageAccount,
84+
StorageAccountCredential,
85+
SubscriptionRegisteredFeatures,
86+
SymmetricKey,
87+
SystemData,
88+
TrackingInfo,
89+
Trigger,
90+
TriggerSupportPackageRequest,
91+
UpdateDetails,
92+
UpdateSummary,
93+
User,
94+
UserAccessRight
95+
} from "../models/mappers";

sdk/databoxedge/arm-databoxedge/src/models/alertsMappers.ts

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,94 @@
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 {
1010
discriminators,
11+
Addon,
1112
Address,
1213
Alert,
1314
AlertErrorDetails,
1415
AlertList,
16+
ArcAddon,
1517
ARMBaseModel,
1618
AsymmetricEncryptedSecret,
1719
Authentication,
1820
AzureContainerInfo,
1921
BandwidthSchedule,
2022
BaseResource,
2123
ClientAccessRight,
24+
CloudEdgeManagementRole,
2225
CloudError,
26+
CniConfig,
27+
ComputeResource,
2328
ContactDetails,
2429
Container,
2530
DataBoxEdgeDevice,
2631
DataBoxEdgeDeviceExtendedInfo,
32+
DataResidency,
33+
DiagnosticProactiveLogCollectionSettings,
34+
DiagnosticRemoteSupportSettings,
35+
EdgeProfile,
36+
EdgeProfileSubscription,
37+
EtcdInfo,
2738
FileEventTrigger,
2839
FileSourceInfo,
40+
ImageRepositoryCredential,
41+
IoTAddon,
2942
IoTDeviceInfo,
43+
IoTEdgeAgentInfo,
3044
IoTRole,
3145
Ipv4Config,
3246
Ipv6Config,
47+
KubernetesClusterInfo,
48+
KubernetesIPConfiguration,
49+
KubernetesRole,
50+
KubernetesRoleCompute,
51+
KubernetesRoleNetwork,
52+
KubernetesRoleResources,
53+
KubernetesRoleStorage,
54+
KubernetesRoleStorageClassInfo,
55+
LoadBalancerConfig,
56+
MECRole,
57+
MetricConfiguration,
58+
MetricCounter,
59+
MetricCounterSet,
60+
MetricDimension,
61+
MonitoringMetricConfiguration,
3362
MountPointMap,
3463
NetworkAdapter,
3564
NetworkAdapterPosition,
3665
NetworkSettings,
3766
Node,
67+
NodeInfo,
3868
Order,
3969
OrderStatus,
4070
PeriodicTimerEventTrigger,
4171
PeriodicTimerSourceInfo,
4272
RefreshDetails,
73+
RemoteSupportSettings,
74+
ResourceIdentity,
75+
ResourceMoveDetails,
4376
Role,
4477
RoleSinkInfo,
78+
Secret,
4579
SecuritySettings,
4680
Share,
4781
ShareAccessRight,
4882
Sku,
4983
StorageAccount,
5084
StorageAccountCredential,
85+
SubscriptionRegisteredFeatures,
5186
SymmetricKey,
87+
SystemData,
5288
TrackingInfo,
5389
Trigger,
90+
TriggerSupportPackageRequest,
91+
UpdateDetails,
5492
UpdateSummary,
5593
User,
5694
UserAccessRight
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
CloudError,
12+
DataBoxEdgeSku,
13+
DataBoxEdgeSkuList,
14+
SkuCapability,
15+
SkuCost,
16+
SkuLocationInfo
17+
} from "../models/mappers";

0 commit comments

Comments
 (0)