Skip to content

Commit e174b2d

Browse files
author
SDKAuto
committed
CodeGen from PR 10996 in Azure/azure-rest-api-specs
Merge 416d57a5174cb8276545d4007d7b6817e55f1723 into dcd3140ab6509c5adba2cd9918c2290b051e93c6
1 parent 6c6ce54 commit e174b2d

18 files changed

+1434
-92
lines changed

sdk/digitaltwins/arm-digitaltwins/README.md

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

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and get digitalTwins as an example written in TypeScript.
18+
#### nodejs - client creation and get digitalTwins 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 { AzureDigitalTwinsManagementClient, AzureDigitalTwinsManagementModels, AzureDigitalTwinsManagementMappers } from "@azure/arm-digitaltwins";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { AzureDigitalTwinsManagementClient } = require("@azure/arm-digitaltwins");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

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

sdk/digitaltwins/arm-digitaltwins/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/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts

Lines changed: 6 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
@@ -20,6 +19,8 @@ class AzureDigitalTwinsManagementClient extends AzureDigitalTwinsManagementClien
2019
digitalTwins: operations.DigitalTwins;
2120
digitalTwinsEndpoint: operations.DigitalTwinsEndpoint;
2221
operations: operations.Operations;
22+
privateLinkResources: operations.PrivateLinkResources;
23+
privateEndpointConnections: operations.PrivateEndpointConnections;
2324

2425
/**
2526
* Initializes a new instance of the AzureDigitalTwinsManagementClient class.
@@ -32,6 +33,8 @@ class AzureDigitalTwinsManagementClient extends AzureDigitalTwinsManagementClien
3233
this.digitalTwins = new operations.DigitalTwins(this);
3334
this.digitalTwinsEndpoint = new operations.DigitalTwinsEndpoint(this);
3435
this.operations = new operations.Operations(this);
36+
this.privateLinkResources = new operations.PrivateLinkResources(this);
37+
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
3538
}
3639
}
3740

sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClientContext.ts

Lines changed: 3 additions & 4 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
@@ -44,7 +43,7 @@ export class AzureDigitalTwinsManagementClientContext extends msRestAzure.AzureS
4443

4544
super(credentials, options);
4645

47-
this.apiVersion = '2020-10-31';
46+
this.apiVersion = '2020-12-01';
4847
this.acceptLanguage = 'en-US';
4948
this.longRunningOperationRetryTimeout = 30;
5049
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Lines changed: 10 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.
@@ -9,15 +9,23 @@
99
export {
1010
discriminators,
1111
BaseResource,
12+
ConnectionProperties,
13+
ConnectionPropertiesPrivateEndpoint,
14+
ConnectionPropertiesPrivateLinkServiceConnectionState,
15+
ConnectionState,
1216
DigitalTwinsDescription,
1317
DigitalTwinsEndpointResource,
1418
DigitalTwinsEndpointResourceListResult,
1519
DigitalTwinsEndpointResourceProperties,
20+
DigitalTwinsIdentity,
1621
DigitalTwinsResource,
1722
ErrorDefinition,
1823
ErrorResponse,
1924
EventGrid,
2025
EventHub,
2126
ExternalResource,
27+
PrivateEndpoint,
28+
PrivateEndpointConnection,
29+
PrivateEndpointConnectionProperties,
2230
ServiceBus
2331
} from "../models/mappers";

sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsMappers.ts

Lines changed: 11 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.
@@ -11,16 +11,25 @@ export {
1111
BaseResource,
1212
CheckNameRequest,
1313
CheckNameResult,
14+
ConnectionProperties,
15+
ConnectionPropertiesPrivateEndpoint,
16+
ConnectionPropertiesPrivateLinkServiceConnectionState,
17+
ConnectionState,
1418
DigitalTwinsDescription,
1519
DigitalTwinsDescriptionListResult,
1620
DigitalTwinsEndpointResource,
1721
DigitalTwinsEndpointResourceProperties,
22+
DigitalTwinsIdentity,
1823
DigitalTwinsPatchDescription,
24+
DigitalTwinsPatchProperties,
1925
DigitalTwinsResource,
2026
ErrorDefinition,
2127
ErrorResponse,
2228
EventGrid,
2329
EventHub,
2430
ExternalResource,
31+
PrivateEndpoint,
32+
PrivateEndpointConnection,
33+
PrivateEndpointConnectionProperties,
2534
ServiceBus
2635
} from "../models/mappers";

0 commit comments

Comments
 (0)