1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ContainerConfiguration(Model):
"""The configuration for container-enabled pools.
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.
:ivar type: Required. The container technology to be used. Default value:
"dockerCompatible" .
:vartype type: str
:param container_image_names: The collection of container image names.
This is the full image reference, as would be specified to "docker pull".
An image will be sourced from the default Docker registry unless the image
is fully qualified with an alternative registry.
:type container_image_names: list[str]
:param container_registries: Additional private registries from which
containers can be pulled. If any images must be downloaded from a private
registry which requires credentials, then those credentials must be
provided here.
:type container_registries: list[~azure.batch.models.ContainerRegistry]
"""
_validation = {
'type': {'required': True, 'constant': True},
}
_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'container_image_names': {'key': 'containerImageNames', 'type': '[str]'},
'container_registries': {'key': 'containerRegistries', 'type': '[ContainerRegistry]'},
}
type = "dockerCompatible"
def __init__(self, **kwargs):
super(ContainerConfiguration, self).__init__(**kwargs)
self.container_image_names = kwargs.get('container_image_names', None)
self.container_registries = kwargs.get('container_registries', None)
|