class Azure::ContainerInstance::Mgmt::V2017_08_01_preview::Models::ContainerGroup

A container group.

Attributes

containers[RW]

@return [Array<Container>] The containers within the container group.

image_registry_credentials[RW]

@return [Array<ImageRegistryCredential>] The image registry credentials by which the container group is created from.

ip_address[RW]

@return [IpAddress] The IP address type of the container group.

os_type[RW]

@return [OperatingSystemTypes] The operating system type required by the containers in the container group. Possible values include: 'Windows', 'Linux'

provisioning_state[RW]

@return [String] The provisioning state of the container group. This only appears in the response.

restart_policy[RW]

@return [ContainerRestartPolicy] Restart policy for all containers within the container group. Currently the only available option is `always`. Possible values include: 'always'

state[RW]

@return [String] The current state of the container group. This is only valid for the response.

volumes[RW]

@return [Array<Volume>] The list of volumes that can be mounted by containers in this container group.

Public Class Methods

mapper() click to toggle source

Mapper for ContainerGroup class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb, line 52
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ContainerGroup',
    type: {
      name: 'Composite',
      class_name: 'ContainerGroup',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        containers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.containers',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ContainerElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Container'
                }
            }
          }
        },
        image_registry_credentials: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.imageRegistryCredentials',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ImageRegistryCredentialElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ImageRegistryCredential'
                }
            }
          }
        },
        restart_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.restartPolicy',
          type: {
            name: 'String'
          }
        },
        ip_address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ipAddress',
          type: {
            name: 'Composite',
            class_name: 'IpAddress'
          }
        },
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.state',
          type: {
            name: 'String'
          }
        },
        volumes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.volumes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'VolumeElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Volume'
                }
            }
          }
        }
      }
    }
  }
end