Class: Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::PlatformProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb

Overview

The platform properties against which the build has to happen.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cpuInteger

required for the build.

Returns:

  • (Integer)

    The CPU configuration in terms of number of cores



21
22
23
# File 'lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb', line 21

def cpu
  @cpu
end

#os_typeOsType

Possible values include: ‘Windows’, ‘Linux’

Returns:

  • (OsType)

    The operating system type required for the build.



17
18
19
# File 'lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb', line 17

def os_type
  @os_type
end

Class Method Details

.mapperObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PlatformProperties',
    type: {
      name: 'Composite',
      class_name: 'PlatformProperties',
      model_properties: {
        os_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'osType',
          type: {
            name: 'String'
          }
        },
        cpu: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cpu',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end