Skip to content

Commit 97f1340

Browse files
author
SDKAuto
committed
CodeGen from PR 15144 in Azure/azure-rest-api-specs
Merge 652439e58966ba93dea07c9f3d00d7d3f2be4fd8 into d241e05b224891ddc0147544213d8edccf53f7d9
1 parent af8126a commit 97f1340

28 files changed

+1520
-87
lines changed

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

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

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureBotService.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureBotService.
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-botservice @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 get bots as an example written in JavaScript.
4240

4341
##### Sample code
@@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8785
const credential = new InteractiveBrowserCredential(
8886
{
8987
clientId: "<client id for your Azure AD app>",
90-
tenantId: "<optional tenant for your organization>"
88+
tenant: "<optional tenant for your organization>"
9189
});
9290
const client = new Azure.ArmBotservice.AzureBotService(creds, subscriptionId);
9391
const resourceGroupName = "testresourceGroupName";

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

sdk/botservice/arm-botservice/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/botservice/arm-botservice/src/azureBotService.ts

Lines changed: 10 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
@@ -23,6 +22,10 @@ class AzureBotService extends AzureBotServiceContext {
2322
directLine: operations.DirectLine;
2423
operations: operations.Operations;
2524
botConnection: operations.BotConnection;
25+
hostSettings: operations.HostSettings;
26+
operationResults: operations.OperationResults;
27+
privateEndpointConnections: operations.PrivateEndpointConnections;
28+
privateLinkResources: operations.PrivateLinkResources;
2629

2730
/**
2831
* Initializes a new instance of the AzureBotService class.
@@ -42,6 +45,10 @@ class AzureBotService extends AzureBotServiceContext {
4245
this.directLine = new operations.DirectLine(this);
4346
this.operations = new operations.Operations(this);
4447
this.botConnection = new operations.BotConnection(this);
48+
this.hostSettings = new operations.HostSettings(this);
49+
this.operationResults = new operations.OperationResults(this);
50+
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
51+
this.privateLinkResources = new operations.PrivateLinkResources(this);
4552
}
4653
}
4754

sdk/botservice/arm-botservice/src/azureBotServiceContext.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-botservice";
1716
const packageVersion = "2.1.0";
@@ -50,7 +49,7 @@ export class AzureBotServiceContext extends msRestAzure.AzureServiceClient {
5049

5150
super(credentials, options);
5251

53-
this.apiVersion = '2020-06-02';
52+
this.apiVersion = '2021-05-01-preview';
5453
this.acceptLanguage = 'en-US';
5554
this.longRunningOperationRetryTimeout = 30;
5655
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

sdk/botservice/arm-botservice/src/models/botConnectionMappers.ts

Lines changed: 7 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.
@@ -38,6 +38,11 @@ export {
3838
LineRegistration,
3939
MsTeamsChannel,
4040
MsTeamsChannelProperties,
41+
PrivateEndpoint,
42+
PrivateEndpointConnection,
43+
PrivateLinkResource,
44+
PrivateLinkResourceBase,
45+
PrivateLinkServiceConnectionState,
4146
Resource,
4247
ServiceProvider,
4348
ServiceProviderParameter,

sdk/botservice/arm-botservice/src/models/botsMappers.ts

Lines changed: 7 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.
@@ -40,6 +40,11 @@ export {
4040
LineRegistration,
4141
MsTeamsChannel,
4242
MsTeamsChannelProperties,
43+
PrivateEndpoint,
44+
PrivateEndpointConnection,
45+
PrivateLinkResource,
46+
PrivateLinkResourceBase,
47+
PrivateLinkServiceConnectionState,
4348
Resource,
4449
Sku,
4550
SkypeChannel,

sdk/botservice/arm-botservice/src/models/channelsMappers.ts

Lines changed: 7 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.
@@ -38,6 +38,11 @@ export {
3838
LineRegistration,
3939
MsTeamsChannel,
4040
MsTeamsChannelProperties,
41+
PrivateEndpoint,
42+
PrivateEndpointConnection,
43+
PrivateLinkResource,
44+
PrivateLinkResourceBase,
45+
PrivateLinkServiceConnectionState,
4146
Resource,
4247
Sku,
4348
SkypeChannel,

sdk/botservice/arm-botservice/src/models/directLineMappers.ts

Lines changed: 7 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.
@@ -37,6 +37,11 @@ export {
3737
LineRegistration,
3838
MsTeamsChannel,
3939
MsTeamsChannelProperties,
40+
PrivateEndpoint,
41+
PrivateEndpointConnection,
42+
PrivateLinkResource,
43+
PrivateLinkResourceBase,
44+
PrivateLinkServiceConnectionState,
4045
Resource,
4146
SiteInfo,
4247
Sku,

0 commit comments

Comments
 (0)