/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * ContainerGroups * __NOTE__: An instance of this class is automatically created for an * instance of the ContainerInstanceManagementClient. */ export interface ContainerGroups { /** * @summary Get a list of container groups in the specified subscription. * * Get a list of container groups in the specified subscription. This operation * returns properties of each container group including containers, image * registry credentials, restart policy, IP address type, OS type, state, and * volumes. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Get a list of container groups in the specified subscription. * * Get a list of container groups in the specified subscription. This operation * returns properties of each container group including containers, image * registry credentials, restart policy, IP address type, OS type, state, and * volumes. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Get a list of container groups in the specified subscription and * resource group. * * Get a list of container groups in a specified subscription and resource * group. This operation returns properties of each container group including * containers, image registry credentials, restart policy, IP address type, OS * type, state, and volumes. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Get a list of container groups in the specified subscription and * resource group. * * Get a list of container groups in a specified subscription and resource * group. This operation returns properties of each container group including * containers, image registry credentials, restart policy, IP address type, OS * type, state, and volumes. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Get the properties of the specified container group. * * Gets the properties of the specified container group in the specified * subscription and resource group. The operation returns the properties of * each container group including containers, image registry credentials, * restart policy, IP address type, OS type, state, and volumes. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Get the properties of the specified container group. * * Gets the properties of the specified container group in the specified * subscription and resource group. The operation returns the properties of * each container group including containers, image registry credentials, * restart policy, IP address type, OS type, state, and volumes. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroup} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, containerGroupName: string, callback: ServiceCallback): void; get(resourceGroupName: string, containerGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Create or update container groups. * * Create or update container groups with specified configurations. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} containerGroup The properties of the container group to be * created or updated. * * @param {object} [containerGroup.identity] The identity of the container * group, if configured. * * @param {string} [containerGroup.identity.type] The type of identity used for * the container group. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user assigned identities. The * type 'None' will remove any identities from the container group. Possible * values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, * UserAssigned', 'None' * * @param {object} [containerGroup.identity.userAssignedIdentities] The list of * user identities associated with the container group. The user identity * dictionary key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {array} containerGroup.containers The containers within the container * group. * * @param {array} [containerGroup.imageRegistryCredentials] The image registry * credentials by which the container group is created from. * * @param {string} [containerGroup.restartPolicy] Restart policy for all * containers within the container group. * - `Always` Always restart * - `OnFailure` Restart on failure * - `Never` Never restart * . Possible values include: 'Always', 'OnFailure', 'Never' * * @param {object} [containerGroup.ipAddress] The IP address type of the * container group. * * @param {array} containerGroup.ipAddress.ports The list of ports exposed on * the container group. * * @param {string} containerGroup.ipAddress.type Specifies if the IP is exposed * to the public internet or private VNET. Possible values include: 'Public', * 'Private' * * @param {string} [containerGroup.ipAddress.ip] The IP exposed to the public * internet. * * @param {string} [containerGroup.ipAddress.dnsNameLabel] The Dns name label * for the IP. * * @param {string} containerGroup.osType The operating system type required by * the containers in the container group. Possible values include: 'Windows', * 'Linux' * * @param {array} [containerGroup.volumes] The list of volumes that can be * mounted by containers in this container group. * * @param {object} [containerGroup.diagnostics] The diagnostic information for * a container group. * * @param {object} [containerGroup.diagnostics.logAnalytics] Container group * log analytics information. * * @param {string} containerGroup.diagnostics.logAnalytics.workspaceId The * workspace id for log analytics * * @param {string} containerGroup.diagnostics.logAnalytics.workspaceKey The * workspace key for log analytics * * @param {string} [containerGroup.diagnostics.logAnalytics.logType] The log * type to be used. Possible values include: 'ContainerInsights', * 'ContainerInstanceLogs' * * @param {object} [containerGroup.diagnostics.logAnalytics.metadata] Metadata * for log analytics. * * @param {object} [containerGroup.networkProfile] The network profile * information for a container group. * * @param {string} containerGroup.networkProfile.id The identifier for a * network profile. * * @param {object} [containerGroup.dnsConfig] The DNS config information for a * container group. * * @param {array} containerGroup.dnsConfig.nameServers The DNS servers for the * container group. * * @param {string} [containerGroup.dnsConfig.searchDomains] The DNS search * domains for hostname lookup in the container group. * * @param {string} [containerGroup.dnsConfig.options] The DNS options for the * container group. * * @param {string} [containerGroup.location] The resource location. * * @param {object} [containerGroup.tags] The resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, containerGroup: models.ContainerGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Create or update container groups. * * Create or update container groups with specified configurations. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} containerGroup The properties of the container group to be * created or updated. * * @param {object} [containerGroup.identity] The identity of the container * group, if configured. * * @param {string} [containerGroup.identity.type] The type of identity used for * the container group. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user assigned identities. The * type 'None' will remove any identities from the container group. Possible * values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, * UserAssigned', 'None' * * @param {object} [containerGroup.identity.userAssignedIdentities] The list of * user identities associated with the container group. The user identity * dictionary key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {array} containerGroup.containers The containers within the container * group. * * @param {array} [containerGroup.imageRegistryCredentials] The image registry * credentials by which the container group is created from. * * @param {string} [containerGroup.restartPolicy] Restart policy for all * containers within the container group. * - `Always` Always restart * - `OnFailure` Restart on failure * - `Never` Never restart * . Possible values include: 'Always', 'OnFailure', 'Never' * * @param {object} [containerGroup.ipAddress] The IP address type of the * container group. * * @param {array} containerGroup.ipAddress.ports The list of ports exposed on * the container group. * * @param {string} containerGroup.ipAddress.type Specifies if the IP is exposed * to the public internet or private VNET. Possible values include: 'Public', * 'Private' * * @param {string} [containerGroup.ipAddress.ip] The IP exposed to the public * internet. * * @param {string} [containerGroup.ipAddress.dnsNameLabel] The Dns name label * for the IP. * * @param {string} containerGroup.osType The operating system type required by * the containers in the container group. Possible values include: 'Windows', * 'Linux' * * @param {array} [containerGroup.volumes] The list of volumes that can be * mounted by containers in this container group. * * @param {object} [containerGroup.diagnostics] The diagnostic information for * a container group. * * @param {object} [containerGroup.diagnostics.logAnalytics] Container group * log analytics information. * * @param {string} containerGroup.diagnostics.logAnalytics.workspaceId The * workspace id for log analytics * * @param {string} containerGroup.diagnostics.logAnalytics.workspaceKey The * workspace key for log analytics * * @param {string} [containerGroup.diagnostics.logAnalytics.logType] The log * type to be used. Possible values include: 'ContainerInsights', * 'ContainerInstanceLogs' * * @param {object} [containerGroup.diagnostics.logAnalytics.metadata] Metadata * for log analytics. * * @param {object} [containerGroup.networkProfile] The network profile * information for a container group. * * @param {string} containerGroup.networkProfile.id The identifier for a * network profile. * * @param {object} [containerGroup.dnsConfig] The DNS config information for a * container group. * * @param {array} containerGroup.dnsConfig.nameServers The DNS servers for the * container group. * * @param {string} [containerGroup.dnsConfig.searchDomains] The DNS search * domains for hostname lookup in the container group. * * @param {string} [containerGroup.dnsConfig.options] The DNS options for the * container group. * * @param {string} [containerGroup.location] The resource location. * * @param {object} [containerGroup.tags] The resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroup} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: models.ContainerGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: models.ContainerGroup, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: models.ContainerGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Update container groups. * * Updates container group tags with specified values. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} resource The container group resource with just the tags to * be updated. * * @param {string} [resource.location] The resource location. * * @param {object} [resource.tags] The resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, resource: models.Resource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Update container groups. * * Updates container group tags with specified values. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} resource The container group resource with just the tags to * be updated. * * @param {string} [resource.location] The resource location. * * @param {object} [resource.tags] The resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroup} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ update(resourceGroupName: string, containerGroupName: string, resource: models.Resource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; update(resourceGroupName: string, containerGroupName: string, resource: models.Resource, callback: ServiceCallback): void; update(resourceGroupName: string, containerGroupName: string, resource: models.Resource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Delete the specified container group. * * Delete the specified container group in the specified subscription and * resource group. The operation does not delete other resources provided by * the user, such as volumes. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Delete the specified container group. * * Delete the specified container group in the specified subscription and * resource group. The operation does not delete other resources provided by * the user, such as volumes. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroup} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, containerGroupName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, containerGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Restarts all containers in a container group. * * Restarts all containers in a container group in place. If container image * has updates, new image will be downloaded. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ restartWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Restarts all containers in a container group. * * Restarts all containers in a container group in place. If container image * has updates, new image will be downloaded. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ restart(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; restart(resourceGroupName: string, containerGroupName: string, callback: ServiceCallback): void; restart(resourceGroupName: string, containerGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Stops all containers in a container group. * * Stops all containers in a container group. Compute resources will be * deallocated and billing will stop. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ stopWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Stops all containers in a container group. * * Stops all containers in a container group. Compute resources will be * deallocated and billing will stop. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ stop(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; stop(resourceGroupName: string, containerGroupName: string, callback: ServiceCallback): void; stop(resourceGroupName: string, containerGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Starts all containers in a container group. * * Starts all containers in a container group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ startWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Starts all containers in a container group. * * Starts all containers in a container group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ start(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; start(resourceGroupName: string, containerGroupName: string, callback: ServiceCallback): void; start(resourceGroupName: string, containerGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Create or update container groups. * * Create or update container groups with specified configurations. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} containerGroup The properties of the container group to be * created or updated. * * @param {object} [containerGroup.identity] The identity of the container * group, if configured. * * @param {string} [containerGroup.identity.type] The type of identity used for * the container group. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user assigned identities. The * type 'None' will remove any identities from the container group. Possible * values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, * UserAssigned', 'None' * * @param {object} [containerGroup.identity.userAssignedIdentities] The list of * user identities associated with the container group. The user identity * dictionary key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {array} containerGroup.containers The containers within the container * group. * * @param {array} [containerGroup.imageRegistryCredentials] The image registry * credentials by which the container group is created from. * * @param {string} [containerGroup.restartPolicy] Restart policy for all * containers within the container group. * - `Always` Always restart * - `OnFailure` Restart on failure * - `Never` Never restart * . Possible values include: 'Always', 'OnFailure', 'Never' * * @param {object} [containerGroup.ipAddress] The IP address type of the * container group. * * @param {array} containerGroup.ipAddress.ports The list of ports exposed on * the container group. * * @param {string} containerGroup.ipAddress.type Specifies if the IP is exposed * to the public internet or private VNET. Possible values include: 'Public', * 'Private' * * @param {string} [containerGroup.ipAddress.ip] The IP exposed to the public * internet. * * @param {string} [containerGroup.ipAddress.dnsNameLabel] The Dns name label * for the IP. * * @param {string} containerGroup.osType The operating system type required by * the containers in the container group. Possible values include: 'Windows', * 'Linux' * * @param {array} [containerGroup.volumes] The list of volumes that can be * mounted by containers in this container group. * * @param {object} [containerGroup.diagnostics] The diagnostic information for * a container group. * * @param {object} [containerGroup.diagnostics.logAnalytics] Container group * log analytics information. * * @param {string} containerGroup.diagnostics.logAnalytics.workspaceId The * workspace id for log analytics * * @param {string} containerGroup.diagnostics.logAnalytics.workspaceKey The * workspace key for log analytics * * @param {string} [containerGroup.diagnostics.logAnalytics.logType] The log * type to be used. Possible values include: 'ContainerInsights', * 'ContainerInstanceLogs' * * @param {object} [containerGroup.diagnostics.logAnalytics.metadata] Metadata * for log analytics. * * @param {object} [containerGroup.networkProfile] The network profile * information for a container group. * * @param {string} containerGroup.networkProfile.id The identifier for a * network profile. * * @param {object} [containerGroup.dnsConfig] The DNS config information for a * container group. * * @param {array} containerGroup.dnsConfig.nameServers The DNS servers for the * container group. * * @param {string} [containerGroup.dnsConfig.searchDomains] The DNS search * domains for hostname lookup in the container group. * * @param {string} [containerGroup.dnsConfig.options] The DNS options for the * container group. * * @param {string} [containerGroup.location] The resource location. * * @param {object} [containerGroup.tags] The resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, containerGroup: models.ContainerGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Create or update container groups. * * Create or update container groups with specified configurations. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} containerGroup The properties of the container group to be * created or updated. * * @param {object} [containerGroup.identity] The identity of the container * group, if configured. * * @param {string} [containerGroup.identity.type] The type of identity used for * the container group. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user assigned identities. The * type 'None' will remove any identities from the container group. Possible * values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, * UserAssigned', 'None' * * @param {object} [containerGroup.identity.userAssignedIdentities] The list of * user identities associated with the container group. The user identity * dictionary key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {array} containerGroup.containers The containers within the container * group. * * @param {array} [containerGroup.imageRegistryCredentials] The image registry * credentials by which the container group is created from. * * @param {string} [containerGroup.restartPolicy] Restart policy for all * containers within the container group. * - `Always` Always restart * - `OnFailure` Restart on failure * - `Never` Never restart * . Possible values include: 'Always', 'OnFailure', 'Never' * * @param {object} [containerGroup.ipAddress] The IP address type of the * container group. * * @param {array} containerGroup.ipAddress.ports The list of ports exposed on * the container group. * * @param {string} containerGroup.ipAddress.type Specifies if the IP is exposed * to the public internet or private VNET. Possible values include: 'Public', * 'Private' * * @param {string} [containerGroup.ipAddress.ip] The IP exposed to the public * internet. * * @param {string} [containerGroup.ipAddress.dnsNameLabel] The Dns name label * for the IP. * * @param {string} containerGroup.osType The operating system type required by * the containers in the container group. Possible values include: 'Windows', * 'Linux' * * @param {array} [containerGroup.volumes] The list of volumes that can be * mounted by containers in this container group. * * @param {object} [containerGroup.diagnostics] The diagnostic information for * a container group. * * @param {object} [containerGroup.diagnostics.logAnalytics] Container group * log analytics information. * * @param {string} containerGroup.diagnostics.logAnalytics.workspaceId The * workspace id for log analytics * * @param {string} containerGroup.diagnostics.logAnalytics.workspaceKey The * workspace key for log analytics * * @param {string} [containerGroup.diagnostics.logAnalytics.logType] The log * type to be used. Possible values include: 'ContainerInsights', * 'ContainerInstanceLogs' * * @param {object} [containerGroup.diagnostics.logAnalytics.metadata] Metadata * for log analytics. * * @param {object} [containerGroup.networkProfile] The network profile * information for a container group. * * @param {string} containerGroup.networkProfile.id The identifier for a * network profile. * * @param {object} [containerGroup.dnsConfig] The DNS config information for a * container group. * * @param {array} containerGroup.dnsConfig.nameServers The DNS servers for the * container group. * * @param {string} [containerGroup.dnsConfig.searchDomains] The DNS search * domains for hostname lookup in the container group. * * @param {string} [containerGroup.dnsConfig.options] The DNS options for the * container group. * * @param {string} [containerGroup.location] The resource location. * * @param {object} [containerGroup.tags] The resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroup} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: models.ContainerGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: models.ContainerGroup, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: models.ContainerGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Restarts all containers in a container group. * * Restarts all containers in a container group in place. If container image * has updates, new image will be downloaded. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginRestartWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Restarts all containers in a container group. * * Restarts all containers in a container group in place. If container image * has updates, new image will be downloaded. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginRestart(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginRestart(resourceGroupName: string, containerGroupName: string, callback: ServiceCallback): void; beginRestart(resourceGroupName: string, containerGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Starts all containers in a container group. * * Starts all containers in a container group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginStartWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Starts all containers in a container group. * * Starts all containers in a container group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginStart(resourceGroupName: string, containerGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginStart(resourceGroupName: string, containerGroupName: string, callback: ServiceCallback): void; beginStart(resourceGroupName: string, containerGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Get a list of container groups in the specified subscription. * * Get a list of container groups in the specified subscription. This operation * returns properties of each container group including containers, image * registry credentials, restart policy, IP address type, OS type, state, and * volumes. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Get a list of container groups in the specified subscription. * * Get a list of container groups in the specified subscription. This operation * returns properties of each container group including containers, image * registry credentials, restart policy, IP address type, OS type, state, and * volumes. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Get a list of container groups in the specified subscription and * resource group. * * Get a list of container groups in a specified subscription and resource * group. This operation returns properties of each container group including * containers, image registry credentials, restart policy, IP address type, OS * type, state, and volumes. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Get a list of container groups in the specified subscription and * resource group. * * Get a list of container groups in a specified subscription and resource * group. This operation returns properties of each container group including * containers, image registry credentials, restart policy, IP address type, OS * type, state, and volumes. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link ContainerGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Operations * __NOTE__: An instance of this class is automatically created for an * instance of the ContainerInstanceManagementClient. */ export interface Operations { /** * List the operations for Azure Container Instance service. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List the operations for Azure Container Instance service. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {OperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {OperationListResult} [result] - The deserialized result object if an error did not occur. * See {@link OperationListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ContainerGroupUsage * __NOTE__: An instance of this class is automatically created for an * instance of the ContainerInstanceManagementClient. */ export interface ContainerGroupUsage { /** * Get the usage for a subscription * * @param {string} location The identifier for the physical azure location. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the usage for a subscription * * @param {string} location The identifier for the physical azure location. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {UsageListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {UsageListResult} [result] - The deserialized result object if an error did not occur. * See {@link UsageListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(location: string, callback: ServiceCallback): void; list(location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ContainerOperations * __NOTE__: An instance of this class is automatically created for an * instance of the ContainerInstanceManagementClient. */ export interface ContainerOperations { /** * @summary Get the logs for a specified container instance. * * Get the logs for a specified container instance in a specified resource * group and container group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {string} containerName The name of the container instance. * * @param {object} [options] Optional Parameters. * * @param {number} [options.tail] The number of lines to show from the tail of * the container instance log. If not provided, all available logs are shown up * to 4mb. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listLogsWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, containerName: string, options?: { tail? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Get the logs for a specified container instance. * * Get the logs for a specified container instance in a specified resource * group and container group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {string} containerName The name of the container instance. * * @param {object} [options] Optional Parameters. * * @param {number} [options.tail] The number of lines to show from the tail of * the container instance log. If not provided, all available logs are shown up * to 4mb. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Logs} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Logs} [result] - The deserialized result object if an error did not occur. * See {@link Logs} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listLogs(resourceGroupName: string, containerGroupName: string, containerName: string, options?: { tail? : number, customHeaders? : { [headerName: string]: string; } }): Promise; listLogs(resourceGroupName: string, containerGroupName: string, containerName: string, callback: ServiceCallback): void; listLogs(resourceGroupName: string, containerGroupName: string, containerName: string, options: { tail? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Executes a command in a specific container instance. * * Executes a command for a specific container instance in a specified resource * group and container group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {string} containerName The name of the container instance. * * @param {object} containerExecRequest The request for the exec command. * * @param {string} [containerExecRequest.command] The command to be executed. * * @param {object} [containerExecRequest.terminalSize] The size of the * terminal. * * @param {number} [containerExecRequest.terminalSize.rows] The row size of the * terminal * * @param {number} [containerExecRequest.terminalSize.cols] The column size of * the terminal * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ executeCommandWithHttpOperationResponse(resourceGroupName: string, containerGroupName: string, containerName: string, containerExecRequest: models.ContainerExecRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Executes a command in a specific container instance. * * Executes a command for a specific container instance in a specified resource * group and container group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} containerGroupName The name of the container group. * * @param {string} containerName The name of the container instance. * * @param {object} containerExecRequest The request for the exec command. * * @param {string} [containerExecRequest.command] The command to be executed. * * @param {object} [containerExecRequest.terminalSize] The size of the * terminal. * * @param {number} [containerExecRequest.terminalSize.rows] The row size of the * terminal * * @param {number} [containerExecRequest.terminalSize.cols] The column size of * the terminal * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ContainerExecResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ContainerExecResponse} [result] - The deserialized result object if an error did not occur. * See {@link ContainerExecResponse} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ executeCommand(resourceGroupName: string, containerGroupName: string, containerName: string, containerExecRequest: models.ContainerExecRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; executeCommand(resourceGroupName: string, containerGroupName: string, containerName: string, containerExecRequest: models.ContainerExecRequest, callback: ServiceCallback): void; executeCommand(resourceGroupName: string, containerGroupName: string, containerName: string, containerExecRequest: models.ContainerExecRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ServiceAssociationLink * __NOTE__: An instance of this class is automatically created for an * instance of the ContainerInstanceManagementClient. */ export interface ServiceAssociationLink { /** * @summary Delete the container instance service association link for the * subnet. * * Delete the container instance service association link for the subnet. This * operation unblocks user from deleting subnet. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Delete the container instance service association link for the * subnet. * * Delete the container instance service association link for the subnet. This * operation unblocks user from deleting subnet. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; }