class Azure::ServiceFabric::V6_3_0_9::Models::ContainerCodePackageProperties

Describes a container and its runtime properties.

Attributes

commands[RW]

@return [Array<String>] Command array to execute within the container in exec form.

diagnostics[RW]

@return [DiagnosticsRef] Reference to sinks in DiagnosticsDescription.

endpoints[RW]

@return [Array<EndpointProperties>] The endpoints exposed by this container.

entrypoint[RW]

@return [String] Override for the default entry point in the container.

environment_variables[RW]

@return [Array<EnvironmentVariable>] The environment variables to set in this container

image[RW]

@return [String] The Container image to use.

image_registry_credential[RW]

@return [ImageRegistryCredential] Image registry credential.

instance_view[RW]

@return [ContainerInstanceView] Runtime information of a container instance.

labels[RW]

@return [Array<ContainerLabel>] The labels to set in this container.

name[RW]

@return [String] The name of the code package.

resources[RW]

@return [ResourceRequirements] This type describes the resource requirements for a container or a service.

settings[RW]

@return [Array<Setting>] The settings to set in this container. The setting file path can be fetched from environment variable “Fabric_SettingPath”. The path for Windows container is “C:\secrets”. The path for Linux container is “/var/secrets”.

volume_refs[RW]

@return [Array<ContainerVolume>] The volumes to be attached to the container.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.3.0.9/generated/azure_service_fabric/models/container_code_package_properties.rb, line 68
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ContainerCodePackageProperties',
    type: {
      name: 'Composite',
      class_name: 'ContainerCodePackageProperties',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        image: {
          client_side_validation: true,
          required: true,
          serialized_name: 'image',
          type: {
            name: 'String'
          }
        },
        image_registry_credential: {
          client_side_validation: true,
          required: false,
          serialized_name: 'imageRegistryCredential',
          type: {
            name: 'Composite',
            class_name: 'ImageRegistryCredential'
          }
        },
        entrypoint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'entrypoint',
          type: {
            name: 'String'
          }
        },
        commands: {
          client_side_validation: true,
          required: false,
          serialized_name: 'commands',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        environment_variables: {
          client_side_validation: true,
          required: false,
          serialized_name: 'environmentVariables',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'EnvironmentVariableElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EnvironmentVariable'
                }
            }
          }
        },
        settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'settings',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SettingElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Setting'
                }
            }
          }
        },
        labels: {
          client_side_validation: true,
          required: false,
          serialized_name: 'labels',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ContainerLabelElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ContainerLabel'
                }
            }
          }
        },
        endpoints: {
          client_side_validation: true,
          required: false,
          serialized_name: 'endpoints',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'EndpointPropertiesElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EndpointProperties'
                }
            }
          }
        },
        resources: {
          client_side_validation: true,
          required: true,
          serialized_name: 'resources',
          type: {
            name: 'Composite',
            class_name: 'ResourceRequirements'
          }
        },
        volume_refs: {
          client_side_validation: true,
          required: false,
          serialized_name: 'volumeRefs',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ContainerVolumeElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ContainerVolume'
                }
            }
          }
        },
        instance_view: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'instanceView',
          type: {
            name: 'Composite',
            class_name: 'ContainerInstanceView'
          }
        },
        diagnostics: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diagnostics',
          type: {
            name: 'Composite',
            class_name: 'DiagnosticsRef'
          }
        }
      }
    }
  }
end