@azure/arm-containerinstance 6.3.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +70 -78
- package/dist/index.js +3335 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/containerInstanceManagementClient.d.ts +22 -0
- package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -0
- package/dist-esm/src/containerInstanceManagementClient.js +55 -0
- package/dist-esm/src/containerInstanceManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +964 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +70 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +54 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +799 -788
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +67 -37
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/containerGroups.d.ts +159 -0
- package/dist-esm/src/operations/containerGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroups.js +678 -0
- package/dist-esm/src/operations/containerGroups.js.map +1 -0
- package/dist-esm/src/operations/containers.d.ts +40 -0
- package/dist-esm/src/operations/containers.d.ts.map +1 -0
- package/dist-esm/src/operations/containers.js +134 -0
- package/dist-esm/src/operations/containers.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/location.d.ts +70 -0
- package/dist-esm/src/operations/location.d.ts.map +1 -0
- package/dist-esm/src/operations/location.js +310 -0
- package/dist-esm/src/operations/location.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +119 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/containerGroups.js} +2 -7
- package/dist-esm/src/operationsInterfaces/containerGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containers.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/containers.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/containers.js} +2 -2
- package/dist-esm/src/operationsInterfaces/containers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/location.js} +2 -1
- package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/models/containersMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/containerinstance_examples.d.ts +4 -0
- package/dist-esm/test/containerinstance_examples.d.ts.map +1 -0
- package/dist-esm/test/containerinstance_examples.js +156 -0
- package/dist-esm/test/containerinstance_examples.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-containerinstance.api.md +752 -0
- package/rollup.config.js +181 -30
- package/src/containerInstanceManagementClient.ts +78 -40
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +734 -1215
- package/src/models/mappers.ts +808 -793
- package/src/models/parameters.ts +90 -38
- package/src/operations/containerGroups.ts +660 -424
- package/src/operations/containers.ts +89 -143
- package/src/operations/index.ts +1 -2
- package/src/operations/location.ts +262 -179
- package/src/operations/operations.ts +85 -73
- package/src/operationsInterfaces/containerGroups.ts +212 -0
- package/src/operationsInterfaces/containers.ts +64 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/location.ts +49 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +3 -3
- package/types/arm-containerinstance.d.ts +1282 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-containerinstance.js +0 -3019
- package/dist/arm-containerinstance.js.map +0 -1
- package/dist/arm-containerinstance.min.js +0 -1
- package/dist/arm-containerinstance.min.js.map +0 -1
- package/esm/containerInstanceManagementClient.d.ts +0 -28
- package/esm/containerInstanceManagementClient.d.ts.map +0 -1
- package/esm/containerInstanceManagementClient.js +0 -41
- package/esm/containerInstanceManagementClient.js.map +0 -1
- package/esm/containerInstanceManagementClientContext.d.ts +0 -23
- package/esm/containerInstanceManagementClientContext.d.ts.map +0 -1
- package/esm/containerInstanceManagementClientContext.js +0 -61
- package/esm/containerInstanceManagementClientContext.js.map +0 -1
- package/esm/models/containerGroupsMappers.d.ts +0 -2
- package/esm/models/containerGroupsMappers.d.ts.map +0 -1
- package/esm/models/containerGroupsMappers.js +0 -9
- package/esm/models/containerGroupsMappers.js.map +0 -1
- package/esm/models/containersMappers.d.ts +0 -2
- package/esm/models/containersMappers.d.ts.map +0 -1
- package/esm/models/containersMappers.js +0 -9
- package/esm/models/containersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1469
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationMappers.d.ts +0 -2
- package/esm/models/locationMappers.d.ts.map +0 -1
- package/esm/models/locationMappers.js +0 -9
- package/esm/models/locationMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -54
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/containerGroups.d.ts +0 -247
- package/esm/operations/containerGroups.d.ts.map +0 -1
- package/esm/operations/containerGroups.js +0 -455
- package/esm/operations/containerGroups.js.map +0 -1
- package/esm/operations/containers.d.ts +0 -94
- package/esm/operations/containers.d.ts.map +0 -1
- package/esm/operations/containers.js +0 -133
- package/esm/operations/containers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/location.d.ts +0 -107
- package/esm/operations/location.d.ts.map +0 -1
- package/esm/operations/location.js +0 -171
- package/esm/operations/location.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/src/containerInstanceManagementClientContext.ts +0 -68
- package/src/models/containerGroupsMappers.ts +0 -46
- package/src/models/locationMappers.ts +0 -19
|
@@ -3,96 +3,71 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
12
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { Containers } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
13
12
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
13
|
+
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
ContainersListLogsOptionalParams,
|
|
16
|
+
ContainersListLogsResponse,
|
|
17
|
+
ContainerExecRequest,
|
|
18
|
+
ContainersExecuteCommandOptionalParams,
|
|
19
|
+
ContainersExecuteCommandResponse,
|
|
20
|
+
ContainersAttachOptionalParams,
|
|
21
|
+
ContainersAttachResponse
|
|
22
|
+
} from "../models";
|
|
15
23
|
|
|
16
|
-
/** Class
|
|
17
|
-
export class Containers {
|
|
18
|
-
private readonly client:
|
|
24
|
+
/** Class containing Containers operations. */
|
|
25
|
+
export class ContainersImpl implements Containers {
|
|
26
|
+
private readonly client: ContainerInstanceManagementClient;
|
|
19
27
|
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Containers class.
|
|
30
|
+
* @param client Reference to the service client
|
|
23
31
|
*/
|
|
24
|
-
constructor(client:
|
|
32
|
+
constructor(client: ContainerInstanceManagementClient) {
|
|
25
33
|
this.client = client;
|
|
26
34
|
}
|
|
27
35
|
|
|
28
36
|
/**
|
|
29
|
-
* Get the logs for a specified container instance in a specified resource group and container
|
|
30
|
-
* group.
|
|
31
|
-
* @summary Get the logs for a specified container instance.
|
|
32
|
-
* @param resourceGroupName The name of the resource group.
|
|
33
|
-
* @param containerGroupName The name of the container group.
|
|
34
|
-
* @param containerName The name of the container instance.
|
|
35
|
-
* @param [options] The optional parameters
|
|
36
|
-
* @returns Promise<Models.ContainersListLogsResponse>
|
|
37
|
-
*/
|
|
38
|
-
listLogs(resourceGroupName: string, containerGroupName: string, containerName: string, options?: Models.ContainersListLogsOptionalParams): Promise<Models.ContainersListLogsResponse>;
|
|
39
|
-
/**
|
|
37
|
+
* Get the logs for a specified container instance in a specified resource group and container group.
|
|
40
38
|
* @param resourceGroupName The name of the resource group.
|
|
41
39
|
* @param containerGroupName The name of the container group.
|
|
42
40
|
* @param containerName The name of the container instance.
|
|
43
|
-
* @param
|
|
41
|
+
* @param options The options parameters.
|
|
44
42
|
*/
|
|
45
|
-
listLogs(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
* @param callback The callback
|
|
52
|
-
*/
|
|
53
|
-
listLogs(resourceGroupName: string, containerGroupName: string, containerName: string, options: Models.ContainersListLogsOptionalParams, callback: msRest.ServiceCallback<Models.Logs>): void;
|
|
54
|
-
listLogs(resourceGroupName: string, containerGroupName: string, containerName: string, options?: Models.ContainersListLogsOptionalParams | msRest.ServiceCallback<Models.Logs>, callback?: msRest.ServiceCallback<Models.Logs>): Promise<Models.ContainersListLogsResponse> {
|
|
43
|
+
listLogs(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
containerGroupName: string,
|
|
46
|
+
containerName: string,
|
|
47
|
+
options?: ContainersListLogsOptionalParams
|
|
48
|
+
): Promise<ContainersListLogsResponse> {
|
|
55
49
|
return this.client.sendOperationRequest(
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
containerName,
|
|
60
|
-
options
|
|
61
|
-
},
|
|
62
|
-
listLogsOperationSpec,
|
|
63
|
-
callback) as Promise<Models.ContainersListLogsResponse>;
|
|
50
|
+
{ resourceGroupName, containerGroupName, containerName, options },
|
|
51
|
+
listLogsOperationSpec
|
|
52
|
+
);
|
|
64
53
|
}
|
|
65
54
|
|
|
66
55
|
/**
|
|
67
56
|
* Executes a command for a specific container instance in a specified resource group and container
|
|
68
57
|
* group.
|
|
69
|
-
* @summary Executes a command in a specific container instance.
|
|
70
|
-
* @param resourceGroupName The name of the resource group.
|
|
71
|
-
* @param containerGroupName The name of the container group.
|
|
72
|
-
* @param containerName The name of the container instance.
|
|
73
|
-
* @param containerExecRequest The request for the exec command.
|
|
74
|
-
* @param [options] The optional parameters
|
|
75
|
-
* @returns Promise<Models.ContainersExecuteCommandResponse>
|
|
76
|
-
*/
|
|
77
|
-
executeCommand(resourceGroupName: string, containerGroupName: string, containerName: string, containerExecRequest: Models.ContainerExecRequest, options?: msRest.RequestOptionsBase): Promise<Models.ContainersExecuteCommandResponse>;
|
|
78
|
-
/**
|
|
79
58
|
* @param resourceGroupName The name of the resource group.
|
|
80
59
|
* @param containerGroupName The name of the container group.
|
|
81
60
|
* @param containerName The name of the container instance.
|
|
82
61
|
* @param containerExecRequest The request for the exec command.
|
|
83
|
-
* @param
|
|
62
|
+
* @param options The options parameters.
|
|
84
63
|
*/
|
|
85
|
-
executeCommand(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
* @param callback The callback
|
|
93
|
-
*/
|
|
94
|
-
executeCommand(resourceGroupName: string, containerGroupName: string, containerName: string, containerExecRequest: Models.ContainerExecRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ContainerExecResponse>): void;
|
|
95
|
-
executeCommand(resourceGroupName: string, containerGroupName: string, containerName: string, containerExecRequest: Models.ContainerExecRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ContainerExecResponse>, callback?: msRest.ServiceCallback<Models.ContainerExecResponse>): Promise<Models.ContainersExecuteCommandResponse> {
|
|
64
|
+
executeCommand(
|
|
65
|
+
resourceGroupName: string,
|
|
66
|
+
containerGroupName: string,
|
|
67
|
+
containerName: string,
|
|
68
|
+
containerExecRequest: ContainerExecRequest,
|
|
69
|
+
options?: ContainersExecuteCommandOptionalParams
|
|
70
|
+
): Promise<ContainersExecuteCommandResponse> {
|
|
96
71
|
return this.client.sendOperationRequest(
|
|
97
72
|
{
|
|
98
73
|
resourceGroupName,
|
|
@@ -101,68 +76,37 @@ export class Containers {
|
|
|
101
76
|
containerExecRequest,
|
|
102
77
|
options
|
|
103
78
|
},
|
|
104
|
-
executeCommandOperationSpec
|
|
105
|
-
|
|
79
|
+
executeCommandOperationSpec
|
|
80
|
+
);
|
|
106
81
|
}
|
|
107
82
|
|
|
108
83
|
/**
|
|
109
84
|
* Attach to the output stream of a specific container instance in a specified resource group and
|
|
110
85
|
* container group.
|
|
111
|
-
* @summary Attach to the output of a specific container instance.
|
|
112
86
|
* @param resourceGroupName The name of the resource group.
|
|
113
87
|
* @param containerGroupName The name of the container group.
|
|
114
88
|
* @param containerName The name of the container instance.
|
|
115
|
-
* @param
|
|
116
|
-
* @returns Promise<Models.ContainersAttachResponse>
|
|
89
|
+
* @param options The options parameters.
|
|
117
90
|
*/
|
|
118
|
-
attach(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*/
|
|
125
|
-
attach(resourceGroupName: string, containerGroupName: string, containerName: string, callback: msRest.ServiceCallback<Models.ContainerAttachResponse>): void;
|
|
126
|
-
/**
|
|
127
|
-
* @param resourceGroupName The name of the resource group.
|
|
128
|
-
* @param containerGroupName The name of the container group.
|
|
129
|
-
* @param containerName The name of the container instance.
|
|
130
|
-
* @param options The optional parameters
|
|
131
|
-
* @param callback The callback
|
|
132
|
-
*/
|
|
133
|
-
attach(resourceGroupName: string, containerGroupName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ContainerAttachResponse>): void;
|
|
134
|
-
attach(resourceGroupName: string, containerGroupName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ContainerAttachResponse>, callback?: msRest.ServiceCallback<Models.ContainerAttachResponse>): Promise<Models.ContainersAttachResponse> {
|
|
91
|
+
attach(
|
|
92
|
+
resourceGroupName: string,
|
|
93
|
+
containerGroupName: string,
|
|
94
|
+
containerName: string,
|
|
95
|
+
options?: ContainersAttachOptionalParams
|
|
96
|
+
): Promise<ContainersAttachResponse> {
|
|
135
97
|
return this.client.sendOperationRequest(
|
|
136
|
-
{
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
containerName,
|
|
140
|
-
options
|
|
141
|
-
},
|
|
142
|
-
attachOperationSpec,
|
|
143
|
-
callback) as Promise<Models.ContainersAttachResponse>;
|
|
98
|
+
{ resourceGroupName, containerGroupName, containerName, options },
|
|
99
|
+
attachOperationSpec
|
|
100
|
+
);
|
|
144
101
|
}
|
|
145
102
|
}
|
|
146
|
-
|
|
147
103
|
// Operation Specifications
|
|
148
|
-
const serializer =
|
|
149
|
-
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listLogsOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path:
|
|
108
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs",
|
|
150
109
|
httpMethod: "GET",
|
|
151
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs",
|
|
152
|
-
urlParameters: [
|
|
153
|
-
Parameters.subscriptionId,
|
|
154
|
-
Parameters.resourceGroupName,
|
|
155
|
-
Parameters.containerGroupName,
|
|
156
|
-
Parameters.containerName
|
|
157
|
-
],
|
|
158
|
-
queryParameters: [
|
|
159
|
-
Parameters.apiVersion,
|
|
160
|
-
Parameters.tail,
|
|
161
|
-
Parameters.timestamps
|
|
162
|
-
],
|
|
163
|
-
headerParameters: [
|
|
164
|
-
Parameters.acceptLanguage
|
|
165
|
-
],
|
|
166
110
|
responses: {
|
|
167
111
|
200: {
|
|
168
112
|
bodyMapper: Mappers.Logs
|
|
@@ -171,31 +115,25 @@ const listLogsOperationSpec: msRest.OperationSpec = {
|
|
|
171
115
|
bodyMapper: Mappers.CloudError
|
|
172
116
|
}
|
|
173
117
|
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec",
|
|
118
|
+
queryParameters: [
|
|
119
|
+
Parameters.apiVersion,
|
|
120
|
+
Parameters.tail,
|
|
121
|
+
Parameters.timestamps
|
|
122
|
+
],
|
|
180
123
|
urlParameters: [
|
|
124
|
+
Parameters.$host,
|
|
181
125
|
Parameters.subscriptionId,
|
|
182
126
|
Parameters.resourceGroupName,
|
|
183
127
|
Parameters.containerGroupName,
|
|
184
128
|
Parameters.containerName
|
|
185
129
|
],
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
parameterPath: "containerExecRequest",
|
|
194
|
-
mapper: {
|
|
195
|
-
...Mappers.ContainerExecRequest,
|
|
196
|
-
required: true
|
|
197
|
-
}
|
|
198
|
-
},
|
|
130
|
+
headerParameters: [Parameters.accept],
|
|
131
|
+
serializer
|
|
132
|
+
};
|
|
133
|
+
const executeCommandOperationSpec: coreClient.OperationSpec = {
|
|
134
|
+
path:
|
|
135
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec",
|
|
136
|
+
httpMethod: "POST",
|
|
199
137
|
responses: {
|
|
200
138
|
200: {
|
|
201
139
|
bodyMapper: Mappers.ContainerExecResponse
|
|
@@ -204,24 +142,23 @@ const executeCommandOperationSpec: msRest.OperationSpec = {
|
|
|
204
142
|
bodyMapper: Mappers.CloudError
|
|
205
143
|
}
|
|
206
144
|
},
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
const attachOperationSpec: msRest.OperationSpec = {
|
|
211
|
-
httpMethod: "POST",
|
|
212
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach",
|
|
145
|
+
requestBody: Parameters.containerExecRequest,
|
|
146
|
+
queryParameters: [Parameters.apiVersion],
|
|
213
147
|
urlParameters: [
|
|
148
|
+
Parameters.$host,
|
|
214
149
|
Parameters.subscriptionId,
|
|
215
150
|
Parameters.resourceGroupName,
|
|
216
151
|
Parameters.containerGroupName,
|
|
217
152
|
Parameters.containerName
|
|
218
153
|
],
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
154
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
155
|
+
mediaType: "json",
|
|
156
|
+
serializer
|
|
157
|
+
};
|
|
158
|
+
const attachOperationSpec: coreClient.OperationSpec = {
|
|
159
|
+
path:
|
|
160
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach",
|
|
161
|
+
httpMethod: "POST",
|
|
225
162
|
responses: {
|
|
226
163
|
200: {
|
|
227
164
|
bodyMapper: Mappers.ContainerAttachResponse
|
|
@@ -230,5 +167,14 @@ const attachOperationSpec: msRest.OperationSpec = {
|
|
|
230
167
|
bodyMapper: Mappers.CloudError
|
|
231
168
|
}
|
|
232
169
|
},
|
|
170
|
+
queryParameters: [Parameters.apiVersion],
|
|
171
|
+
urlParameters: [
|
|
172
|
+
Parameters.$host,
|
|
173
|
+
Parameters.subscriptionId,
|
|
174
|
+
Parameters.resourceGroupName,
|
|
175
|
+
Parameters.containerGroupName,
|
|
176
|
+
Parameters.containerName
|
|
177
|
+
],
|
|
178
|
+
headerParameters: [Parameters.accept],
|
|
233
179
|
serializer
|
|
234
180
|
};
|
package/src/operations/index.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
9
|
export * from "./containerGroups";
|