class Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::FileTaskRunRequest

The request parameters for a scheduling run against a task file.

Attributes

agent_configuration[RW]

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

credentials[RW]

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

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.

task_file_path[RW]

@return [String] The template/definition file path relative to the source.

timeout[RW]

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

type[RW]
values[RW]

@return [Array<SetValue>] The collection of overridable values that can be passed when running a task.

values_file_path[RW]

@return [String] The values/parameters file path relative to the source.

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-04-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb, line 59
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FileTaskRunRequest',
    type: {
      name: 'Composite',
      class_name: 'FileTaskRunRequest',
      model_properties: {
        is_archive_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isArchiveEnabled',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        task_file_path: {
          client_side_validation: true,
          required: true,
          serialized_name: 'taskFilePath',
          type: {
            name: 'String'
          }
        },
        values_file_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'valuesFilePath',
          type: {
            name: 'String'
          }
        },
        values: {
          client_side_validation: true,
          required: false,
          serialized_name: 'values',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SetValueElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SetValue'
                }
            }
          }
        },
        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-04-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb, line 16
def initialize
  @type = "FileTaskRunRequest"
end