class Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineInstallPatchesParameters

Input for InstallPatches as directly received by the API

Attributes

linux_parameters[RW]

@return [LinuxParameters] Input for InstallPatches on a Linux VM, as directly received by the API

maximum_duration[RW]

@return [String] Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours)

reboot_setting[RW]

@return [VMGuestPatchRebootSetting] Defines when it is acceptable to reboot a VM during a software update operation. Possible values include: 'IfRequired', 'Never', 'Always'

windows_parameters[RW]

@return [WindowsParameters] Input for InstallPatches on a Windows VM, as directly received by the API

Private Class Methods

mapper() click to toggle source

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

# File lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_install_patches_parameters.rb, line 38
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineInstallPatchesParameters',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineInstallPatchesParameters',
      model_properties: {
        maximum_duration: {
          client_side_validation: true,
          required: true,
          serialized_name: 'maximumDuration',
          type: {
            name: 'String'
          }
        },
        reboot_setting: {
          client_side_validation: true,
          required: true,
          serialized_name: 'rebootSetting',
          type: {
            name: 'String'
          }
        },
        windows_parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'windowsParameters',
          type: {
            name: 'Composite',
            class_name: 'WindowsParameters'
          }
        },
        linux_parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'linuxParameters',
          type: {
            name: 'Composite',
            class_name: 'LinuxParameters'
          }
        }
      }
    }
  }
end