azure.mgmt.containerinstance.models module¶
-
class
azure.mgmt.containerinstance.models.
AzureFileVolume
(*, share_name: str, storage_account_name: str, read_only: bool = None, storage_account_key: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The properties of the Azure File volume. Azure File shares are mounted as volumes.
All required parameters must be populated in order to send to Azure.
- Parameters
share_name (str) – Required. The name of the Azure File share to be mounted as a volume.
read_only (bool) – The flag indicating whether the Azure File shared mounted as a volume is read-only.
storage_account_name (str) – Required. The name of the storage account that contains the Azure File share.
storage_account_key (str) – The storage account access key used to access the Azure File share.
-
class
azure.mgmt.containerinstance.models.
CachedImages
(*, os_type: str, image: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The cached image and OS type.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.containerinstance.models.
CachedImagesPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
CachedImages
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.containerinstance.models.
Capabilities
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The regional capabilities.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
resource_type (str) – The resource type that this capability describes.
os_type (str) – The OS type that this capability describes.
location (str) – The resource location.
ip_address_type (str) – The ip address type that this capability describes.
gpu (str) – The GPU sku that this capability describes.
capabilities (CapabilitiesCapabilities) – The supported capabilities.
-
class
azure.mgmt.containerinstance.models.
CapabilitiesCapabilities
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The supported capabilities.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.containerinstance.models.
CapabilitiesPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
Capabilities
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.containerinstance.models.
Container
(*, name: str, image: str, resources, command=None, ports=None, environment_variables=None, volume_mounts=None, liveness_probe=None, readiness_probe=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
A container instance.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
name (str) – Required. The user-provided name of the container instance.
image (str) – Required. The name of the image used to create the container instance.
command (list[str]) – The commands to execute within the container instance in exec form.
ports (list[ContainerPort]) – The exposed ports on the container instance.
environment_variables (list[EnvironmentVariable]) – The environment variables to set in the container instance.
resources (ResourceRequirements) – Required. The resource requirements of the container instance.
volume_mounts (list[VolumeMount]) – The volume mounts available to the container instance.
liveness_probe (ContainerProbe) – The liveness probe.
readiness_probe (ContainerProbe) – The readiness probe.
- Variables
instance_view (ContainerPropertiesInstanceView) – The instance view of the container instance. Only valid in response.
-
class
azure.mgmt.containerinstance.models.
ContainerExec
(*, command=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The container execution command, for liveness or readiness probe.
-
class
azure.mgmt.containerinstance.models.
ContainerExecRequest
(*, command: str = None, terminal_size=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The container exec request.
- Parameters
command (str) – The command to be executed.
terminal_size (ContainerExecRequestTerminalSize) – The size of the terminal.
-
class
azure.mgmt.containerinstance.models.
ContainerExecRequestTerminalSize
(*, rows: int = None, cols: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The size of the terminal.
-
class
azure.mgmt.containerinstance.models.
ContainerExecResponse
(*, web_socket_uri: str = None, password: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The information for the container exec command.
-
class
azure.mgmt.containerinstance.models.
ContainerGroup
(*, containers, os_type, location: str = None, tags=None, identity=None, image_registry_credentials=None, restart_policy=None, ip_address=None, volumes=None, diagnostics=None, network_profile=None, dns_config=None, sku=None, encryption_properties=None, init_containers=None, **kwargs)[source]¶ Bases:
azure.mgmt.containerinstance.models._models_py3.Resource
A container group.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
name (str) – The resource name.
provisioning_state (str) – The provisioning state of the container group. This only appears in the response.
instance_view (ContainerGroupPropertiesInstanceView) – The instance view of the container group. Only valid in response.
- Parameters
location (str) – The resource location.
identity (ContainerGroupIdentity) – The identity of the container group, if configured.
containers (list[Container]) – Required. The containers within the container group.
image_registry_credentials (list[ImageRegistryCredential]) – The image registry credentials by which the container group is created from.
restart_policy (str or ContainerGroupRestartPolicy) – 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’
ip_address (IpAddress) – The IP address type of the container group.
os_type (str or OperatingSystemTypes) – Required. The operating system type required by the containers in the container group. Possible values include: ‘Windows’, ‘Linux’
volumes (list[Volume]) – The list of volumes that can be mounted by containers in this container group.
diagnostics (ContainerGroupDiagnostics) – The diagnostic information for a container group.
network_profile (ContainerGroupNetworkProfile) – The network profile information for a container group.
dns_config (DnsConfiguration) – The DNS config information for a container group.
sku (str or ContainerGroupSku) – The SKU for a container group. Possible values include: ‘Standard’, ‘Dedicated’
encryption_properties (EncryptionProperties) – The encryption properties for a container group.
init_containers (list[InitContainerDefinition]) – The init containers for a container group.
-
class
azure.mgmt.containerinstance.models.
ContainerGroupDiagnostics
(*, log_analytics=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Container group diagnostic information.
- Parameters
log_analytics (LogAnalytics) – Container group log analytics information.
-
class
azure.mgmt.containerinstance.models.
ContainerGroupIdentity
(*, type=None, user_assigned_identities=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Identity for the container group.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
type (str or ResourceIdentityType) – 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’
user_assigned_identities (dict[str, ContainerGroupIdentityUserAssignedIdentitiesValue]) – 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}’.
-
class
azure.mgmt.containerinstance.models.
ContainerGroupIdentityUserAssignedIdentitiesValue
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
ContainerGroupIdentityUserAssignedIdentitiesValue.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.containerinstance.models.
ContainerGroupIpAddressType
(value)[source]¶ -
An enumeration.
-
private
= 'Private'¶
-
public
= 'Public'¶
-
-
class
azure.mgmt.containerinstance.models.
ContainerGroupNetworkProfile
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Container group network profile information.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. The identifier for a network profile.
-
class
azure.mgmt.containerinstance.models.
ContainerGroupNetworkProtocol
(value)[source]¶ -
An enumeration.
-
tcp
= 'TCP'¶
-
udp
= 'UDP'¶
-
-
class
azure.mgmt.containerinstance.models.
ContainerGroupPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
ContainerGroup
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.containerinstance.models.
ContainerGroupPropertiesInstanceView
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The instance view of the container group. Only valid in response.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.containerinstance.models.
ContainerGroupRestartPolicy
(value)[source]¶ -
An enumeration.
-
always
= 'Always'¶
-
never
= 'Never'¶
-
on_failure
= 'OnFailure'¶
-
-
class
azure.mgmt.containerinstance.models.
ContainerGroupSku
(value)[source]¶ -
An enumeration.
-
dedicated
= 'Dedicated'¶
-
standard
= 'Standard'¶
-
-
class
azure.mgmt.containerinstance.models.
ContainerHttpGet
(*, port: int, path: str = None, scheme=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The container Http Get settings, for liveness or readiness probe.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.containerinstance.models.
ContainerInstanceOperationsOrigin
(value)[source]¶ -
An enumeration.
-
system
= 'System'¶
-
user
= 'User'¶
-
-
class
azure.mgmt.containerinstance.models.
ContainerNetworkProtocol
(value)[source]¶ -
An enumeration.
-
tcp
= 'TCP'¶
-
udp
= 'UDP'¶
-
-
class
azure.mgmt.containerinstance.models.
ContainerPort
(*, port: int, protocol=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The port exposed on the container instance.
All required parameters must be populated in order to send to Azure.
- Parameters
protocol (str or ContainerNetworkProtocol) – The protocol associated with the port. Possible values include: ‘TCP’, ‘UDP’
port (int) – Required. The port number exposed within the container group.
-
class
azure.mgmt.containerinstance.models.
ContainerProbe
(*, exec_property=None, http_get=None, initial_delay_seconds: int = None, period_seconds: int = None, failure_threshold: int = None, success_threshold: int = None, timeout_seconds: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The container probe, for liveness or readiness.
- Parameters
exec_property (ContainerExec) – The execution command to probe
http_get (ContainerHttpGet) – The Http Get settings to probe
initial_delay_seconds (int) – The initial delay seconds.
period_seconds (int) – The period seconds.
failure_threshold (int) – The failure threshold.
success_threshold (int) – The success threshold.
timeout_seconds (int) – The timeout seconds.
-
class
azure.mgmt.containerinstance.models.
ContainerPropertiesInstanceView
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The instance view of the container instance. Only valid in response.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
restart_count (int) – The number of times that the container instance has been restarted.
current_state (ContainerState) – Current container instance state.
previous_state (ContainerState) – Previous container instance state.
events (list[Event]) – The events of the container instance.
-
class
azure.mgmt.containerinstance.models.
ContainerState
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The container instance state.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
state (str) – The state of the container instance.
start_time (datetime) – The date-time when the container instance state started.
exit_code (int) – The container instance exit codes correspond to those from the docker run command.
finish_time (datetime) – The date-time when the container instance state finished.
detail_status (str) – The human-readable status of the container instance state.
-
class
azure.mgmt.containerinstance.models.
DnsConfiguration
(*, name_servers, search_domains: str = None, options: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
DNS configuration for the container group.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.containerinstance.models.
EncryptionProperties
(*, vault_base_url: str, key_name: str, key_version: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The container group encryption properties.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.containerinstance.models.
EnvironmentVariable
(*, name: str, value: str = None, secure_value: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The environment variable to set within the container instance.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.containerinstance.models.
Event
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
A container group or container instance event.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.containerinstance.models.
GitRepoVolume
(*, repository: str, directory: str = None, revision: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Represents a volume that is populated with the contents of a git repository.
All required parameters must be populated in order to send to Azure.
- Parameters
directory (str) – Target directory name. Must not contain or start with ‘..’. If ‘.’ is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
repository (str) – Required. Repository URL
revision (str) – Commit hash for the specified revision.
-
class
azure.mgmt.containerinstance.models.
GpuResource
(*, count: int, sku, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The GPU resource.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.containerinstance.models.
GpuSku
(value)[source]¶ -
An enumeration.
-
k80
= 'K80'¶
-
p100
= 'P100'¶
-
v100
= 'V100'¶
-
-
class
azure.mgmt.containerinstance.models.
ImageRegistryCredential
(*, server: str, username: str, password: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Image registry credential.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.containerinstance.models.
InitContainerDefinition
(*, name: str, image: str = None, command=None, environment_variables=None, volume_mounts=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The init container definition.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
name (str) – Required. The name for the init container.
image (str) – The image of the init container.
command (list[str]) – The command to execute within the init container in exec form.
environment_variables (list[EnvironmentVariable]) – The environment variables to set in the init container.
volume_mounts (list[VolumeMount]) – The volume mounts available to the init container.
- Variables
instance_view (InitContainerPropertiesDefinitionInstanceView) – The instance view of the init container. Only valid in response.
-
class
azure.mgmt.containerinstance.models.
InitContainerPropertiesDefinitionInstanceView
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The instance view of the init container. Only valid in response.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
restart_count (int) – The number of times that the init container has been restarted.
current_state (ContainerState) – The current state of the init container.
previous_state (ContainerState) – The previous state of the init container.
-
class
azure.mgmt.containerinstance.models.
IpAddress
(*, ports, type, ip: str = None, dns_name_label: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
IP address for the container group.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
ports (list[Port]) – Required. The list of ports exposed on the container group.
type (str or ContainerGroupIpAddressType) – Required. Specifies if the IP is exposed to the public internet or private VNET. Possible values include: ‘Public’, ‘Private’
ip (str) – The IP exposed to the public internet.
dns_name_label (str) – The Dns name label for the IP.
- Variables
fqdn (str) – The FQDN for the IP.
-
class
azure.mgmt.containerinstance.models.
LogAnalytics
(*, workspace_id: str, workspace_key: str, log_type=None, metadata=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Container group log analytics information.
All required parameters must be populated in order to send to Azure.
- Parameters
workspace_id (str) – Required. The workspace id for log analytics
workspace_key (str) – Required. The workspace key for log analytics
log_type (str or LogAnalyticsLogType) – The log type to be used. Possible values include: ‘ContainerInsights’, ‘ContainerInstanceLogs’
-
class
azure.mgmt.containerinstance.models.
LogAnalyticsLogType
(value)[source]¶ -
An enumeration.
-
container_insights
= 'ContainerInsights'¶
-
container_instance_logs
= 'ContainerInstanceLogs'¶
-
-
class
azure.mgmt.containerinstance.models.
Logs
(*, content: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The logs.
- Parameters
content (str) – The content of the log.
-
class
azure.mgmt.containerinstance.models.
OperatingSystemTypes
(value)[source]¶ -
An enumeration.
-
linux
= 'Linux'¶
-
windows
= 'Windows'¶
-
-
class
azure.mgmt.containerinstance.models.
Operation
(*, name: str, display, properties=None, origin=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
An operation for Azure Container Instance service.
All required parameters must be populated in order to send to Azure.
- Parameters
name (str) – Required. The name of the operation.
display (OperationDisplay) – Required. The display information of the operation.
properties (object) – The additional properties.
origin (str or ContainerInstanceOperationsOrigin) – The intended executor of the operation. Possible values include: ‘User’, ‘System’
-
class
azure.mgmt.containerinstance.models.
OperationDisplay
(*, provider: str = None, resource: str = None, operation: str = None, description: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The display information of the operation.
-
class
azure.mgmt.containerinstance.models.
OperationPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
Operation
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.containerinstance.models.
Port
(*, port: int, protocol=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The port exposed on the container group.
All required parameters must be populated in order to send to Azure.
- Parameters
protocol (str or ContainerGroupNetworkProtocol) – The protocol associated with the port. Possible values include: ‘TCP’, ‘UDP’
port (int) – Required. The port number.
-
class
azure.mgmt.containerinstance.models.
Resource
(*, location: str = None, tags=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The Resource model definition.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.containerinstance.models.
ResourceIdentityType
(value)[source]¶ -
An enumeration.
-
none
= 'None'¶
-
system_assigned
= 'SystemAssigned'¶
-
system_assigned_user_assigned
= 'SystemAssigned, UserAssigned'¶
-
user_assigned
= 'UserAssigned'¶
-
-
class
azure.mgmt.containerinstance.models.
ResourceLimits
(*, memory_in_gb: float = None, cpu: float = None, gpu=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The resource limits.
- Parameters
memory_in_gb (float) – The memory limit in GB of this container instance.
cpu (float) – The CPU limit of this container instance.
gpu (GpuResource) – The GPU limit of this container instance.
-
class
azure.mgmt.containerinstance.models.
ResourceRequests
(*, memory_in_gb: float, cpu: float, gpu=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The resource requests.
All required parameters must be populated in order to send to Azure.
- Parameters
memory_in_gb (float) – Required. The memory request in GB of this container instance.
cpu (float) – Required. The CPU request of this container instance.
gpu (GpuResource) – The GPU request of this container instance.
-
class
azure.mgmt.containerinstance.models.
ResourceRequirements
(*, requests, limits=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The resource requirements.
All required parameters must be populated in order to send to Azure.
- Parameters
requests (ResourceRequests) – Required. The resource requests of this container instance.
limits (ResourceLimits) – The resource limits of this container instance.
-
class
azure.mgmt.containerinstance.models.
Scheme
(value)[source]¶ -
An enumeration.
-
http
= 'http'¶
-
https
= 'https'¶
-
-
class
azure.mgmt.containerinstance.models.
Usage
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
A single usage result.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.containerinstance.models.
UsageName
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The name object of the resource.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.containerinstance.models.
UsagePaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
Usage
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.containerinstance.models.
Volume
(*, name: str, azure_file=None, empty_dir=None, secret=None, git_repo=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The properties of the volume.
All required parameters must be populated in order to send to Azure.
- Parameters
name (str) – Required. The name of the volume.
azure_file (AzureFileVolume) – The Azure File volume.
empty_dir (object) – The empty directory volume.
git_repo (GitRepoVolume) – The git repo volume.