Skip to content

Commit 7c4c3d0

Browse files
author
SDKAuto
committed
CodeGen from PR 13024 in Azure/azure-rest-api-specs
Merge 8f0e5013bb2b72d502abc91d682e30bc92e5ba14 into 47b422a4d1ea9f4736739a4a6a19d4a8a2fe54d9
1 parent 426d0db commit 7c4c3d0

15 files changed

+769
-506
lines changed

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

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

1616
### How to use
1717

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

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

sdk/communication/arm-communication/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/communication/arm-communication/src/communicationServiceManagementClient.ts

Lines changed: 3 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
@@ -24,8 +23,7 @@ class CommunicationServiceManagementClient extends CommunicationServiceManagemen
2423
/**
2524
* Initializes a new instance of the CommunicationServiceManagementClient class.
2625
* @param credentials Credentials needed for the client to connect to Azure.
27-
* @param subscriptionId Gets subscription ID which uniquely identifies the Microsoft Azure
28-
* subscription. The subscription ID forms part of the URI for every service call.
26+
* @param subscriptionId The ID of the target subscription.
2927
* @param [options] The parameter options
3028
*/
3129
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.CommunicationServiceManagementClientOptions) {

sdk/communication/arm-communication/src/communicationServiceManagementClientContext.ts

Lines changed: 5 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
@@ -17,14 +16,13 @@ const packageVersion = "1.0.0";
1716

1817
export class CommunicationServiceManagementClientContext extends msRestAzure.AzureServiceClient {
1918
credentials: msRest.ServiceClientCredentials;
20-
apiVersion?: string;
2119
subscriptionId: string;
20+
apiVersion?: string;
2221

2322
/**
2423
* Initializes a new instance of the CommunicationServiceManagementClient class.
2524
* @param credentials Credentials needed for the client to connect to Azure.
26-
* @param subscriptionId Gets subscription ID which uniquely identifies the Microsoft Azure
27-
* subscription. The subscription ID forms part of the URI for every service call.
25+
* @param subscriptionId The ID of the target subscription.
2826
* @param [options] The parameter options
2927
*/
3028
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.CommunicationServiceManagementClientOptions) {
@@ -45,7 +43,7 @@ export class CommunicationServiceManagementClientContext extends msRestAzure.Azu
4543

4644
super(credentials, options);
4745

48-
this.apiVersion = '2020-08-20-preview';
46+
this.apiVersion = '2020-08-20';
4947
this.acceptLanguage = 'en-US';
5048
this.longRunningOperationRetryTimeout = 30;
5149
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Lines changed: 7 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.
@@ -12,10 +12,13 @@ export {
1212
CommunicationServiceKeys,
1313
CommunicationServiceResource,
1414
CommunicationServiceResourceList,
15+
ErrorAdditionalInfo,
16+
ErrorDetail,
1517
ErrorResponse,
16-
ErrorResponseError,
1718
LinkedNotificationHub,
1819
LinkNotificationHubParameters,
20+
NameAvailability,
21+
NameAvailabilityParameters,
1922
RegenerateKeyParameters,
20-
TaggedResource
23+
SystemData
2124
} from "../models/mappers";

0 commit comments

Comments
 (0)