Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 95 additions & 77 deletions management/azure_mgmt_compute/lib/generated/azure_mgmt_compute.rb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class ComputeManagementClient < MsRestAzure::AzureServiceClient
# virtual_machine_scale_set_extensions
attr_reader :virtual_machine_scale_set_extensions

# @return [VirtualMachineScaleSetRollingUpgrades]
# virtual_machine_scale_set_rolling_upgrades
attr_reader :virtual_machine_scale_set_rolling_upgrades

# @return [VirtualMachineScaleSetVMs] virtual_machine_scale_set_vms
attr_reader :virtual_machine_scale_set_vms

Expand Down Expand Up @@ -106,6 +110,7 @@ def initialize(credentials = nil, base_url = nil, options = nil)
@virtual_machines = VirtualMachines.new(self)
@virtual_machine_scale_sets = VirtualMachineScaleSets.new(self)
@virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensions.new(self)
@virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgrades.new(self)
@virtual_machine_scale_set_vms = VirtualMachineScaleSetVMs.new(self)
@disks = Disks.new(self)
@snapshots = Snapshots.new(self)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AdditionalUnattendContent

include MsRest::JSONable
# @return [PassNames] The pass name. Currently, the only allowable value
# is oobeSystem. Possible values include: 'oobeSystem'
# is oobeSystem. Possible values include: 'OobeSystem'
attr_accessor :pass_name

# @return [ComponentNames] The component name. Currently, the only
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DataDisk
# @return [String] The disk name.
attr_accessor :name

# @return [VirtualHardDisk] The virtual hard disk..
# @return [VirtualHardDisk] The virtual hard disk.
attr_accessor :vhd

# @return [VirtualHardDisk] The source user image virtual hard disk. The
Expand All @@ -45,7 +45,7 @@ class DataDisk
# are using a platform image, you also use the imageReference element
# described above. If you are using a marketplace image, you also use
# the plan element previously described. Possible values include:
# 'fromImage', 'empty', 'attach'
# 'FromImage', 'Empty', 'Attach'
attr_accessor :create_option

# @return [Integer] Specifies the size of an empty data disk in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class Disk < MsRestAzure::Resource
# @return [DiskSku]
attr_accessor :sku

# @return [Array<String>] The Logical zone list for Disk.
attr_accessor :zones

# @return [DateTime] The time when the disk was created.
attr_accessor :time_created

Expand Down Expand Up @@ -118,6 +121,20 @@ def self.mapper()
class_name: 'DiskSku'
}
},
zones: {
required: false,
serialized_name: 'zones',
type: {
name: 'Sequence',
element: {
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
time_created: {
required: false,
read_only: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ module Models
# Defines values for DiskCreateOptionTypes
#
module DiskCreateOptionTypes
FromImage = "fromImage"
Empty = "empty"
Attach = "attach"
FromImage = "FromImage"
Empty = "Empty"
Attach = "Attach"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class OSDisk
# are using a platform image, you also use the imageReference element
# described above. If you are using a marketplace image, you also use
# the plan element previously described. Possible values include:
# 'fromImage', 'empty', 'attach'
# 'FromImage', 'Empty', 'Attach'
attr_accessor :create_option

# @return [Integer] Specifies the size of an empty data disk in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Models
# Defines values for PassNames
#
module PassNames
OobeSystem = "oobeSystem"
OobeSystem = "OobeSystem"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ResourceSkuRestrictions

include MsRest::JSONable
# @return [ResourceSkuRestrictionsType] The type of restrictions.
# Possible values include: 'location'
# Possible values include: 'Location'
attr_accessor :type

# @return [Array<String>] The value of restrictions. If the restriction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Models
# Defines values for ResourceSkuRestrictionsType
#
module ResourceSkuRestrictionsType
Location = "location"
Location = "Location"
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Compute
module Models
#
# Defines values for RollingUpgradeActionType
#
module RollingUpgradeActionType
Start = "Start"
Cancel = "Cancel"
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Compute
module Models
#
# The configuration parameters used while performing a rolling upgrade.
#
class RollingUpgradePolicy

include MsRestAzure

include MsRest::JSONable
# @return [Integer] The maximum percent of total virtual machine
# instances that will be upgraded simultaneously by the rolling upgrade
# in one batch. As this is a maximum, unhealthy instances in previous or
# future batches can cause the percentage of instances in a batch to
# decrease to ensure higher reliability. The default value for this
# parameter is 20%.
attr_accessor :max_batch_instance_percent

# @return [Integer] The maximum percentage of the total virtual machine
# instances in the scale set that can be simultaneously unhealthy, either
# as a result of being upgraded, or by being found in an unhealthy state
# by the virtual machine health checks before the rolling upgrade aborts.
# This constraint will be checked prior to starting any batch. The
# default value for this parameter is 20%.
attr_accessor :max_unhealthy_instance_percent

# @return [Integer] The maximum percentage of upgraded virtual machine
# instances that can be found to be in an unhealthy state. This check
# will happen after each batch is upgraded. If this percentage is ever
# exceeded, the rolling update aborts. The default value for this
# parameter is 20%.
attr_accessor :max_unhealthy_upgraded_instance_percent

# @return [String] The wait time between completing the update for all
# virtual machines in one batch and starting the next batch. The time
# duration should be specified in ISO 8601 format. The default value is 0
# seconds (PT0S).
attr_accessor :pause_time_between_batches


#
# Mapper for RollingUpgradePolicy class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
serialized_name: 'RollingUpgradePolicy',
type: {
name: 'Composite',
class_name: 'RollingUpgradePolicy',
model_properties: {
max_batch_instance_percent: {
required: false,
serialized_name: 'maxBatchInstancePercent',
constraints: {
InclusiveMaximum: 100,
InclusiveMinimum: 5
},
type: {
name: 'Number'
}
},
max_unhealthy_instance_percent: {
required: false,
serialized_name: 'maxUnhealthyInstancePercent',
constraints: {
InclusiveMaximum: 100,
InclusiveMinimum: 5
},
type: {
name: 'Number'
}
},
max_unhealthy_upgraded_instance_percent: {
required: false,
serialized_name: 'maxUnhealthyUpgradedInstancePercent',
constraints: {
InclusiveMaximum: 100,
InclusiveMinimum: 0
},
type: {
name: 'Number'
}
},
pause_time_between_batches: {
required: false,
serialized_name: 'pauseTimeBetweenBatches',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Compute
module Models
#
# Information about the number of virtual machine instances in each upgrade
# state.
#
class RollingUpgradeProgressInfo

include MsRestAzure

include MsRest::JSONable
# @return [Integer] The number of instances that have been successfully
# upgraded.
attr_accessor :successful_instance_count

# @return [Integer] The number of instances that have failed to be
# upgraded successfully.
attr_accessor :failed_instance_count

# @return [Integer] The number of instances that are currently being
# upgraded.
attr_accessor :in_progress_instance_count

# @return [Integer] The number of instances that have not yet begun to be
# upgraded.
attr_accessor :pending_instance_count


#
# Mapper for RollingUpgradeProgressInfo class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
serialized_name: 'RollingUpgradeProgressInfo',
type: {
name: 'Composite',
class_name: 'RollingUpgradeProgressInfo',
model_properties: {
successful_instance_count: {
required: false,
read_only: true,
serialized_name: 'successfulInstanceCount',
type: {
name: 'Number'
}
},
failed_instance_count: {
required: false,
read_only: true,
serialized_name: 'failedInstanceCount',
type: {
name: 'Number'
}
},
in_progress_instance_count: {
required: false,
read_only: true,
serialized_name: 'inProgressInstanceCount',
type: {
name: 'Number'
}
},
pending_instance_count: {
required: false,
read_only: true,
serialized_name: 'pendingInstanceCount',
type: {
name: 'Number'
}
}
}
}
}
end
end
end
end
Loading