class Azure::ServiceFabric::V6_5_0_36::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.

reliable_collections_refs[RW]

@return [Array<ReliableCollectionsRef>] A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.

resources[RW]

@return [ResourceRequirements] The resources required by this container.

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<VolumeReference>] Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.

volumes[RW]

@return [Array<ApplicationScopedVolume>] Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.

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.5.0.36/generated/azure_service_fabric/models/container_code_package_properties.rb, line 79
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: 'VolumeReferenceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'VolumeReference'
                }
            }
          }
        },
        volumes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'volumes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ApplicationScopedVolumeElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationScopedVolume'
                }
            }
          }
        },
        diagnostics: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diagnostics',
          type: {
            name: 'Composite',
            class_name: 'DiagnosticsRef'
          }
        },
        reliable_collections_refs: {
          client_side_validation: true,
          required: false,
          serialized_name: 'reliableCollectionsRefs',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ReliableCollectionsRefElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ReliableCollectionsRef'
                }
            }
          }
        },
        instance_view: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'instanceView',
          type: {
            name: 'Composite',
            class_name: 'ContainerInstanceView'
          }
        }
      }
    }
  }
end