Class: Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::RunRequest

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01/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-04-01/generated/azure_mgmt_container_registry/models/run_request.rb', line 21

def initialize
  @type = "RunRequest"
end

Instance Attribute Details

#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-04-01/generated/azure_mgmt_container_registry/models/run_request.rb', line 29

def is_archive_enabled
  @is_archive_enabled
end

#typeObject

Returns the value of attribute type.



25
26
27
# File 'lib/2019-04-01/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.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_request.rb', line 36

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'
          }
        }
      }
    }
  }
end