class Azure::ContainerRegistry::Mgmt::V2019_06_01_preview::Models::DockerBuildRequest

The parameters for a docker quick build.

Attributes

agent_configuration[RW]

@return [AgentProperties] The machine configuration of the run agent.

arguments[RW]

@return [Array<Argument>] The collection of override arguments to be used when executing the run.

credentials[RW]

@return [Credentials] The properties that describes a set of credentials that will be used when this run is invoked.

docker_file_path[RW]

@return [String] The Docker file path relative to the source location.

image_names[RW]

@return [Array<String>] The fully qualified image names including the repository and tag.

is_push_enabled[RW]

@return [Boolean] The value of this property indicates whether the image built should be pushed to the registry or not. Default value: true .

no_cache[RW]

@return [Boolean] The value of this property indicates whether the image cache is enabled or not. Default value: false .

platform[RW]

@return [PlatformProperties] The platform properties against which the run has to happen.

source_location[RW]

@return [String] The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.

target[RW]

@return [String] The name of the target build stage for the docker build.

timeout[RW]

@return [Integer] Run timeout in seconds. Default value: 3600 .

type[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_request.rb, line 71
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DockerBuildRequest',
    type: {
      name: 'Composite',
      class_name: 'DockerBuildRequest',
      model_properties: {
        is_archive_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isArchiveEnabled',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        agent_pool_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'agentPoolName',
          type: {
            name: 'String'
          }
        },
        log_template: {
          client_side_validation: true,
          required: false,
          serialized_name: 'logTemplate',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        image_names: {
          client_side_validation: true,
          required: false,
          serialized_name: 'imageNames',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        is_push_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isPushEnabled',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        },
        no_cache: {
          client_side_validation: true,
          required: false,
          serialized_name: 'noCache',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        docker_file_path: {
          client_side_validation: true,
          required: true,
          serialized_name: 'dockerFilePath',
          type: {
            name: 'String'
          }
        },
        target: {
          client_side_validation: true,
          required: false,
          serialized_name: 'target',
          type: {
            name: 'String'
          }
        },
        arguments: {
          client_side_validation: true,
          required: false,
          serialized_name: 'arguments',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ArgumentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Argument'
                }
            }
          }
        },
        timeout: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeout',
          default_value: 3600,
          constraints: {
            InclusiveMaximum: 28800,
            InclusiveMinimum: 300
          },
          type: {
            name: 'Number'
          }
        },
        platform: {
          client_side_validation: true,
          required: true,
          serialized_name: 'platform',
          type: {
            name: 'Composite',
            class_name: 'PlatformProperties'
          }
        },
        agent_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'agentConfiguration',
          type: {
            name: 'Composite',
            class_name: 'AgentProperties'
          }
        },
        source_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceLocation',
          type: {
            name: 'String'
          }
        },
        credentials: {
          client_side_validation: true,
          required: false,
          serialized_name: 'credentials',
          type: {
            name: 'Composite',
            class_name: 'Credentials'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_request.rb, line 16
def initialize
  @type = "DockerBuildRequest"
end