Skip to content

Commit 364c977

Browse files
authored
arm-containerinstance-release (Azure#13864)
1 parent 1394fd7 commit 364c977

18 files changed

+257
-48
lines changed

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

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

1616
### How to use
1717

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

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

sdk/containerinstance/arm-containerinstance/package.json

Lines changed: 1 addition & 1 deletion
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.0.0",
5+
"version": "6.1.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.0.1",
88
"@azure/ms-rest-js": "^2.0.4",

sdk/containerinstance/arm-containerinstance/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/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.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/containerinstance/arm-containerinstance/src/containerInstanceManagementClientContext.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
@@ -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-containerinstance";
16-
const packageVersion = "6.0.0";
15+
const packageVersion = "6.1.0";
1716

1817
export class ContainerInstanceManagementClientContext extends msRestAzure.AzureServiceClient {
1918
credentials: msRest.ServiceClientCredentials;
@@ -45,7 +44,7 @@ export class ContainerInstanceManagementClientContext extends msRestAzure.AzureS
4544

4645
super(credentials, options);
4746

48-
this.apiVersion = '2019-12-01';
47+
this.apiVersion = '2020-11-01';
4948
this.acceptLanguage = 'en-US';
5049
this.longRunningOperationRetryTimeout = 30;
5150
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

sdk/containerinstance/arm-containerinstance/src/models/containerGroupsMappers.ts

Lines changed: 3 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.
@@ -30,6 +30,7 @@ export {
3030
Event,
3131
GitRepoVolume,
3232
GpuResource,
33+
HttpHeaders,
3334
ImageRegistryCredential,
3435
InitContainerDefinition,
3536
InitContainerPropertiesDefinitionInstanceView,

sdk/containerinstance/arm-containerinstance/src/models/containersMappers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
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.
77
*/
88

99
export {
1010
CloudError,
11+
ContainerAttachResponse,
1112
ContainerExecRequest,
1213
ContainerExecRequestTerminalSize,
1314
ContainerExecResponse,

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

Lines changed: 64 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.
@@ -228,6 +228,20 @@ export interface ContainerExec {
228228
command?: string[];
229229
}
230230

231+
/**
232+
* The HTTP headers.
233+
*/
234+
export interface HttpHeaders {
235+
/**
236+
* The header name.
237+
*/
238+
name?: string;
239+
/**
240+
* The header value.
241+
*/
242+
value?: string;
243+
}
244+
231245
/**
232246
* The container Http Get settings, for liveness or readiness probe
233247
*/
@@ -244,6 +258,10 @@ export interface ContainerHttpGet {
244258
* The scheme. Possible values include: 'http', 'https'
245259
*/
246260
scheme?: Scheme;
261+
/**
262+
* The HTTP headers.
263+
*/
264+
httpHeaders?: HttpHeaders;
247265
}
248266

249267
/**
@@ -538,6 +556,10 @@ export interface LogAnalytics {
538556
* Metadata for log analytics.
539557
*/
540558
metadata?: { [propertyName: string]: string };
559+
/**
560+
* The workspace resource id for log analytics
561+
*/
562+
workspaceResourceId?: { [propertyName: string]: string };
541563
}
542564

543565
/**
@@ -893,6 +915,21 @@ export interface ContainerExecResponse {
893915
password?: string;
894916
}
895917

918+
/**
919+
* The information for the output stream from container attach.
920+
*/
921+
export interface ContainerAttachResponse {
922+
/**
923+
* The uri for the output stream from the attach.
924+
*/
925+
webSocketUri?: string;
926+
/**
927+
* The password to the output stream from the attach. Send as an Authorization header value when
928+
* connecting to the websocketUri.
929+
*/
930+
password?: string;
931+
}
932+
896933
/**
897934
* The cached image and OS type.
898935
*/
@@ -973,6 +1010,11 @@ export interface ContainersListLogsOptionalParams extends msRest.RequestOptionsB
9731010
* available logs are shown up to 4mb.
9741011
*/
9751012
tail?: number;
1013+
/**
1014+
* If true, adds a timestamp at the beginning of every line of log output. If not provided,
1015+
* defaults to false.
1016+
*/
1017+
timestamps?: boolean;
9761018
}
9771019

9781020
/**
@@ -1506,3 +1548,23 @@ export type ContainersExecuteCommandResponse = ContainerExecResponse & {
15061548
parsedBody: ContainerExecResponse;
15071549
};
15081550
};
1551+
1552+
/**
1553+
* Contains response data for the attach operation.
1554+
*/
1555+
export type ContainersAttachResponse = ContainerAttachResponse & {
1556+
/**
1557+
* The underlying HTTP response.
1558+
*/
1559+
_response: msRest.HttpResponse & {
1560+
/**
1561+
* The response body as text (string format)
1562+
*/
1563+
bodyAsText: string;
1564+
1565+
/**
1566+
* The response body as parsed JSON or XML
1567+
*/
1568+
parsedBody: ContainerAttachResponse;
1569+
};
1570+
};

sdk/containerinstance/arm-containerinstance/src/models/locationMappers.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)