Class: Azure::ContainerRegistry::Mgmt::V2019_06_01_preview::Models::RunRequest

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb

Overview

The request parameters for scheduling a run.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRunRequest

Returns a new instance of RunRequest.



21
22
23
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb', line 21

def initialize
  @type = "RunRequest"
end

Instance Attribute Details

#agent_pool_nameString

Returns The dedicated agent pool for the run.

Returns:

  • (String)

    The dedicated agent pool for the run.



32
33
34
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb', line 32

def agent_pool_name
  @agent_pool_name
end

#is_archive_enabledBoolean

for the run or not. Default value: false .

Returns:

  • (Boolean)

    The value that indicates whether archiving is enabled



29
30
31
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb', line 29

def is_archive_enabled
  @is_archive_enabled
end

#log_templateString

information for run log artifact.

Returns:

  • (String)

    The template that describes the repository and tag



36
37
38
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb', line 36

def log_template
  @log_template
end

#typeObject

Returns the value of attribute type.



25
26
27
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb', line 25

def type
  @type
end

Class Method Details

.mapperObject

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



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb', line 43

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RunRequest',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'type',
      uber_parent: 'RunRequest',
      class_name: 'RunRequest',
      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'
          }
        }
      }
    }
  }
end