Class: Azure::Batch::Mgmt::V2017_09_01::Models::CloudServiceConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb

Overview

The configuration for nodes in a pool based on the Azure Cloud Services platform.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_osversionString

virtual machines in the pool. This may differ from targetOSVersion if the pool state is Upgrading. In this case some virtual machines may be on the targetOSVersion and some may be on the currentOSVersion during the upgrade process. Once all virtual machines have upgraded, currentOSVersion is updated to be the same as targetOSVersion.

Returns:

  • (String)

    The Azure Guest OS Version currently installed on the



37
38
39
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb', line 37

def current_osversion
  @current_osversion
end

#os_familyString

virtual machines in the pool. Possible values are: 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 5 - OS Family 5, equivalent to Windows Server 2016. For more information, see Azure Guest OS Releases (azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases).

Returns:

  • (String)

    The Azure Guest OS family to be installed on the



24
25
26
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb', line 24

def os_family
  @os_family
end

#target_osversionString

virtual machines in the pool. The default value is * which specifies the latest operating system version for the specified OS family.

Returns:

  • (String)

    The Azure Guest OS version to be installed on the



29
30
31
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb', line 29

def target_osversion
  @target_osversion
end

Class Method Details

.mapperObject

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



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
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CloudServiceConfiguration',
    type: {
      name: 'Composite',
      class_name: 'CloudServiceConfiguration',
      model_properties: {
        os_family: {
          client_side_validation: true,
          required: true,
          serialized_name: 'osFamily',
          type: {
            name: 'String'
          }
        },
        target_osversion: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetOSVersion',
          type: {
            name: 'String'
          }
        },
        current_osversion: {
          client_side_validation: true,
          required: false,
          serialized_name: 'currentOSVersion',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end