Skip to content

Commit a6e68b7

Browse files
authored
arm-iotcentral-release (Azure#13084)
1 parent 433ceb8 commit a6e68b7

File tree

14 files changed

+47
-42
lines changed

14 files changed

+47
-42
lines changed

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

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

1616
### How to use
1717

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

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

sdk/iotcentral/arm-iotcentral/package.json

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

sdk/iotcentral/arm-iotcentral/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/iotcentral/arm-iotcentral/src/iotCentralClient.ts

Lines changed: 2 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

sdk/iotcentral/arm-iotcentral/src/iotCentralClientContext.ts

Lines changed: 6 additions & 7 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-iotcentral";
16-
const packageVersion = "3.1.0";
15+
const packageVersion = "4.0.0";
1716

1817
export class IotCentralClientContext extends msRestAzure.AzureServiceClient {
1918
credentials: msRest.ServiceClientCredentials;
@@ -37,7 +36,7 @@ export class IotCentralClientContext 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
}
@@ -52,10 +51,10 @@ export class IotCentralClientContext extends msRestAzure.AzureServiceClient {
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
}

sdk/iotcentral/arm-iotcentral/src/models/appsMappers.ts

Lines changed: 2 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.

sdk/iotcentral/arm-iotcentral/src/models/index.ts

Lines changed: 3 additions & 3 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.
@@ -232,7 +232,7 @@ export interface AppTemplate {
232232
* The name of the template.
233233
* **NOTE: This property will not be serialized. It can only be populated by the server.**
234234
*/
235-
readonly appTemplateName?: string;
235+
readonly name?: string;
236236
/**
237237
* The title of the template.
238238
* **NOTE: This property will not be serialized. It can only be populated by the server.**

sdk/iotcentral/arm-iotcentral/src/models/mappers.ts

Lines changed: 4 additions & 4 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.
@@ -358,9 +358,9 @@ export const AppTemplate: msRest.CompositeMapper = {
358358
name: "String"
359359
}
360360
},
361-
appTemplateName: {
361+
name: {
362362
readOnly: true,
363-
serializedName: "appTemplateName",
363+
serializedName: "name",
364364
type: {
365365
name: "String"
366366
}

sdk/iotcentral/arm-iotcentral/src/models/operationsMappers.ts

Lines changed: 2 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.

0 commit comments

Comments
 (0)