Skip to content

Commit 670b2e8

Browse files
authored
arm-containerinstance-release (Azure#16426)
1 parent 88a3220 commit 670b2e8

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

sdk/containerinstance/arm-containerinstance/README.md

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

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

4341
##### Sample code
@@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5149
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5250
const creds = new DefaultAzureCredential();
5351
const client = new ContainerInstanceManagementClient(creds, subscriptionId);
54-
5552
client.containerGroups.list().then((result) => {
5653
console.log("The result is:");
5754
console.log(result);
@@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8683
const credential = new InteractiveBrowserCredential(
8784
{
8885
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
86+
tenant: "<optional tenant for your organization>"
9087
});
9188
const client = new Azure.ArmContainerinstance.ContainerInstanceManagementClient(creds, subscriptionId);
9289
client.containerGroups.list().then((result) => {

sdk/containerinstance/arm-containerinstance/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-containerinstance",
33
"author": "Microsoft Corporation",
44
"description": "ContainerInstanceManagementClient Library with typescript type definitions for node.js and browser.",
5-
"version": "6.2.0",
5+
"version": "6.3.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.1.0",
88
"@azure/ms-rest-js": "^2.2.0",
@@ -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/containerinstance/arm-containerinstance",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/containerinstance/arm-containerinstance",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClientContext.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
import * as Models from "./models";
1111
import * as msRest from "@azure/ms-rest-js";
12-
import { TokenCredential } from "@azure/core-auth";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1414

1515
const packageName = "@azure/arm-containerinstance";
16-
const packageVersion = "6.2.0";
16+
const packageVersion = "6.3.0";
1717

1818
export class ContainerInstanceManagementClientContext extends msRestAzure.AzureServiceClient {
1919
credentials: msRest.ServiceClientCredentials | TokenCredential;
@@ -43,25 +43,25 @@ export class ContainerInstanceManagementClientContext extends msRestAzure.AzureS
4343
if (!options) {
4444
options = {};
4545
}
46-
if(!options.userAgent) {
46+
if (!options.userAgent) {
4747
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4848
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4949
}
5050

5151
super(credentials, options);
5252

53-
this.apiVersion = '2020-11-01';
53+
this.apiVersion = '2021-03-01';
5454
this.acceptLanguage = 'en-US';
5555
this.longRunningOperationRetryTimeout = 30;
5656
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5757
this.requestContentType = "application/json; charset=utf-8";
5858
this.credentials = credentials;
5959
this.subscriptionId = subscriptionId;
6060

61-
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
61+
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
6262
this.acceptLanguage = options.acceptLanguage;
6363
}
64-
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
64+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
6565
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6666
}
6767
}

sdk/containerinstance/arm-containerinstance/src/operations/containerGroups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ const beginStartOperationSpec: msRest.OperationSpec = {
619619
Parameters.acceptLanguage
620620
],
621621
responses: {
622-
204: {},
622+
202: {},
623623
default: {
624624
bodyMapper: Mappers.CloudError
625625
}

0 commit comments

Comments
 (0)