Skip to content

Commit

Permalink
Generated from 043fe7030d60d4609b2d9090f4087c79bb14a88f
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Nov 11, 2020
1 parent 121ed88 commit d02800e
Show file tree
Hide file tree
Showing 18 changed files with 1,434 additions and 92 deletions.
9 changes: 4 additions & 5 deletions sdk/digitaltwins/arm-digitaltwins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-digitaltwins

### How to use

#### nodejs - Authentication, client creation and get digitalTwins as an example written in TypeScript.
#### nodejs - client creation and get digitalTwins as an example written in TypeScript.

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

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

##### Sample code

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
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { AzureDigitalTwinsManagementClient, AzureDigitalTwinsManagementModels, AzureDigitalTwinsManagementMappers } from "@azure/arm-digitaltwins";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { AzureDigitalTwinsManagementClient } = require("@azure/arm-digitaltwins");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/digitaltwins/arm-digitaltwins/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand All @@ -20,6 +19,8 @@ class AzureDigitalTwinsManagementClient extends AzureDigitalTwinsManagementClien
digitalTwins: operations.DigitalTwins;
digitalTwinsEndpoint: operations.DigitalTwinsEndpoint;
operations: operations.Operations;
privateLinkResources: operations.PrivateLinkResources;
privateEndpointConnections: operations.PrivateEndpointConnections;

/**
* Initializes a new instance of the AzureDigitalTwinsManagementClient class.
Expand All @@ -32,6 +33,8 @@ class AzureDigitalTwinsManagementClient extends AzureDigitalTwinsManagementClien
this.digitalTwins = new operations.DigitalTwins(this);
this.digitalTwinsEndpoint = new operations.DigitalTwinsEndpoint(this);
this.operations = new operations.Operations(this);
this.privateLinkResources = new operations.PrivateLinkResources(this);
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down Expand Up @@ -44,7 +43,7 @@ export class AzureDigitalTwinsManagementClientContext extends msRestAzure.AzureS

super(credentials, options);

this.apiVersion = '2020-10-31';
this.apiVersion = '2020-12-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -9,15 +9,23 @@
export {
discriminators,
BaseResource,
ConnectionProperties,
ConnectionPropertiesPrivateEndpoint,
ConnectionPropertiesPrivateLinkServiceConnectionState,
ConnectionState,
DigitalTwinsDescription,
DigitalTwinsEndpointResource,
DigitalTwinsEndpointResourceListResult,
DigitalTwinsEndpointResourceProperties,
DigitalTwinsIdentity,
DigitalTwinsResource,
ErrorDefinition,
ErrorResponse,
EventGrid,
EventHub,
ExternalResource,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionProperties,
ServiceBus
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -11,16 +11,25 @@ export {
BaseResource,
CheckNameRequest,
CheckNameResult,
ConnectionProperties,
ConnectionPropertiesPrivateEndpoint,
ConnectionPropertiesPrivateLinkServiceConnectionState,
ConnectionState,
DigitalTwinsDescription,
DigitalTwinsDescriptionListResult,
DigitalTwinsEndpointResource,
DigitalTwinsEndpointResourceProperties,
DigitalTwinsIdentity,
DigitalTwinsPatchDescription,
DigitalTwinsPatchProperties,
DigitalTwinsResource,
ErrorDefinition,
ErrorResponse,
EventGrid,
EventHub,
ExternalResource,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionProperties,
ServiceBus
} from "../models/mappers";
Loading

0 comments on commit d02800e

Please sign in to comment.