class Azure::ContainerInstance::Mgmt::V2017_12_01_preview::Models::Container

A container instance.

Attributes

command[RW]

@return [Array<String>] The commands to execute within the container instance in exec form.

environment_variables[RW]

@return [Array<EnvironmentVariable>] The environment variables to set in the container instance.

image[RW]

@return [String] The name of the image used to create the container instance.

instance_view[RW]

@return [ContainerPropertiesInstanceView] The instance view of the container instance. Only valid in response.

name[RW]

@return [String] The user-provided name of the container instance.

ports[RW]

@return [Array<ContainerPort>] The exposed ports on the container instance.

resources[RW]

@return [ResourceRequirements] The resource requirements of the container instance.

volume_mounts[RW]

@return [Array<VolumeMount>] The volume mounts available to the container instance.

Public Class Methods

mapper() click to toggle source

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

# File lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container.rb, line 51
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Container',
    type: {
      name: 'Composite',
      class_name: 'Container',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        image: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.image',
          type: {
            name: 'String'
          }
        },
        command: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.command',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        ports: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ports',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ContainerPortElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ContainerPort'
                }
            }
          }
        },
        environment_variables: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.environmentVariables',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'EnvironmentVariableElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EnvironmentVariable'
                }
            }
          }
        },
        instance_view: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceView',
          type: {
            name: 'Composite',
            class_name: 'ContainerPropertiesInstanceView'
          }
        },
        resources: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.resources',
          type: {
            name: 'Composite',
            class_name: 'ResourceRequirements'
          }
        },
        volume_mounts: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.volumeMounts',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'VolumeMountElementType',
                type: {
                  name: 'Composite',
                  class_name: 'VolumeMount'
                }
            }
          }
        }
      }
    }
  }
end