azure_mgmt_compute 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  3. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  4. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  5. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  6. data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  7. data/lib/2017-12-01/generated/azure_mgmt_compute.rb +66 -60
  8. data/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb +106 -0
  9. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -1
  10. data/lib/2017-12-01/generated/azure_mgmt_compute/images.rb +162 -0
  11. data/lib/2017-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb +137 -0
  12. data/lib/2017-12-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
  13. data/lib/2017-12-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
  14. data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +1 -2
  15. data/lib/2017-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +24 -24
  16. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_data_disk.rb +1 -2
  17. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb +1 -2
  18. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +14 -1
  19. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_update.rb +91 -0
  20. data/lib/2017-12-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -2
  21. data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +1 -2
  22. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +23 -0
  23. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -2
  24. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -2
  25. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -2
  26. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +13 -0
  27. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +247 -0
  28. data/lib/2017-12-01/generated/azure_mgmt_compute/operations.rb +107 -0
  29. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +280 -0
  30. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +302 -0
  31. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +162 -0
  32. data/lib/profiles/latest/modules/compute_profile_module.rb +214 -192
  33. data/lib/version.rb +1 -1
  34. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9144f6866f5f30cf9f017bf512b3ee3f03e4faf3
4
- data.tar.gz: 7658e5cd083912ffed15e60ca1f054a8f31cef3d
3
+ metadata.gz: 43bfe5028235b6b1ace321dd0535dcb63f17ea72
4
+ data.tar.gz: d3279a2788e66507fa1437678c8256adff83fc06
5
5
  SHA512:
6
- metadata.gz: 1c793fa1bb21dc85bc117f2c851c405414c6e872f5d3c25ffc0eaea1a86eba9582a126019a6964895a3bd6b4361e05680301b09850ef9b13bd8ad7ed41981e4e
7
- data.tar.gz: c61e9aeb79aea8802eafaa68c6b6e17d1f8ebbef4f7ebca23e94987ebb8b962cd04f8f79cfee54a6620221327077da085cbf997116f9a5f406c7950aa30b530b
6
+ metadata.gz: 0b5a4e19d5736a1e5a7af77f360398d12ac094b2a63b306940706f3cf4a12645c9c3f50287d67e8c681e136672fe3be3133f989dbe6af56f269be4a0cb70758c
7
+ data.tar.gz: 10e9aef1282cf1e32e7e7fc0f0e1c2b28539434849417e6edd3f26997e6436bb4da2b590a122764dd36bbdc910ab45511e2fe2594698e1f57fa3773b48274a0b
@@ -157,7 +157,7 @@ module Azure::Compute::Mgmt::V2015_06_15
157
157
  #
158
158
  def add_telemetry
159
159
  sdk_information = 'azure_mgmt_compute'
160
- sdk_information = "#{sdk_information}/0.16.0"
160
+ sdk_information = "#{sdk_information}/0.17.0"
161
161
  add_user_agent_information(sdk_information)
162
162
  end
163
163
  end
@@ -157,7 +157,7 @@ module Azure::Compute::Mgmt::V2016_03_30
157
157
  #
158
158
  def add_telemetry
159
159
  sdk_information = 'azure_mgmt_compute'
160
- sdk_information = "#{sdk_information}/0.16.0"
160
+ sdk_information = "#{sdk_information}/0.17.0"
161
161
  add_user_agent_information(sdk_information)
162
162
  end
163
163
  end
@@ -169,7 +169,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
169
169
  #
170
170
  def add_telemetry
171
171
  sdk_information = 'azure_mgmt_compute'
172
- sdk_information = "#{sdk_information}/0.16.0"
172
+ sdk_information = "#{sdk_information}/0.17.0"
173
173
  add_user_agent_information(sdk_information)
174
174
  end
175
175
  end
@@ -187,7 +187,7 @@ module Azure::Compute::Mgmt::V2017_03_30
187
187
  #
188
188
  def add_telemetry
189
189
  sdk_information = 'azure_mgmt_compute'
190
- sdk_information = "#{sdk_information}/0.16.0"
190
+ sdk_information = "#{sdk_information}/0.17.0"
191
191
  add_user_agent_information(sdk_information)
192
192
  end
193
193
  end
@@ -125,7 +125,7 @@ module Azure::Compute::Mgmt::V2017_09_01
125
125
  #
126
126
  def add_telemetry
127
127
  sdk_information = 'azure_mgmt_compute'
128
- sdk_information = "#{sdk_information}/0.16.0"
128
+ sdk_information = "#{sdk_information}/0.17.0"
129
129
  add_user_agent_information(sdk_information)
130
130
  end
131
131
  end
@@ -20,6 +20,7 @@ require '2017-12-01/generated/azure_mgmt_compute/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::Compute::Mgmt::V2017_12_01
23
+ autoload :Operations, '2017-12-01/generated/azure_mgmt_compute/operations.rb'
23
24
  autoload :AvailabilitySets, '2017-12-01/generated/azure_mgmt_compute/availability_sets.rb'
24
25
  autoload :VirtualMachineExtensionImages, '2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb'
25
26
  autoload :VirtualMachineExtensions, '2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb'
@@ -37,109 +38,112 @@ module Azure::Compute::Mgmt::V2017_12_01
37
38
  autoload :ComputeManagementClient, '2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb'
38
39
 
39
40
  module Models
41
+ autoload :VirtualMachineScaleSetIdentity, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb'
42
+ autoload :ComputeOperationValue, '2017-12-01/generated/azure_mgmt_compute/models/compute_operation_value.rb'
43
+ autoload :VirtualMachineScaleSetOSProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb'
44
+ autoload :InstanceViewStatus, '2017-12-01/generated/azure_mgmt_compute/models/instance_view_status.rb'
40
45
  autoload :VirtualMachineScaleSetUpdateOSProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb'
46
+ autoload :Sku, '2017-12-01/generated/azure_mgmt_compute/models/sku.rb'
41
47
  autoload :VirtualMachineScaleSetManagedDiskParameters, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb'
42
- autoload :SubResource, '2017-12-01/generated/azure_mgmt_compute/models/sub_resource.rb'
43
- autoload :VirtualMachineScaleSetOSDisk, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb'
44
- autoload :VirtualMachineListResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb'
48
+ autoload :RecoveryWalkResponse, '2017-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb'
45
49
  autoload :AvailabilitySetListResult, '2017-12-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb'
46
- autoload :RollingUpgradePolicy, '2017-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb'
50
+ autoload :VirtualMachineListResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb'
47
51
  autoload :VirtualMachineSizeListResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb'
48
- autoload :UpgradePolicy, '2017-12-01/generated/azure_mgmt_compute/models/upgrade_policy.rb'
52
+ autoload :RollingUpgradePolicy, '2017-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb'
49
53
  autoload :RunCommandListResult, '2017-12-01/generated/azure_mgmt_compute/models/run_command_list_result.rb'
50
- autoload :ImageOSDisk, '2017-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb'
54
+ autoload :UpgradePolicy, '2017-12-01/generated/azure_mgmt_compute/models/upgrade_policy.rb'
51
55
  autoload :RunCommandDocumentBase, '2017-12-01/generated/azure_mgmt_compute/models/run_command_document_base.rb'
52
- autoload :ImageDataDisk, '2017-12-01/generated/azure_mgmt_compute/models/image_data_disk.rb'
56
+ autoload :ImageOSDisk, '2017-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb'
53
57
  autoload :OSDiskImage, '2017-12-01/generated/azure_mgmt_compute/models/osdisk_image.rb'
54
- autoload :ImageStorageProfile, '2017-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb'
58
+ autoload :ImageDataDisk, '2017-12-01/generated/azure_mgmt_compute/models/image_data_disk.rb'
55
59
  autoload :RunCommandParameterDefinition, '2017-12-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb'
56
- autoload :RecoveryWalkResponse, '2017-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb'
60
+ autoload :ImageStorageProfile, '2017-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb'
57
61
  autoload :Usage, '2017-12-01/generated/azure_mgmt_compute/models/usage.rb'
58
- autoload :ImageListResult, '2017-12-01/generated/azure_mgmt_compute/models/image_list_result.rb'
62
+ autoload :SubResourceReadOnly, '2017-12-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb'
59
63
  autoload :VirtualMachineCaptureParameters, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb'
60
- autoload :VirtualMachineScaleSetIdentity, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb'
64
+ autoload :UpdateResource, '2017-12-01/generated/azure_mgmt_compute/models/update_resource.rb'
61
65
  autoload :Plan, '2017-12-01/generated/azure_mgmt_compute/models/plan.rb'
62
- autoload :VirtualMachineScaleSetOSProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb'
66
+ autoload :ImageListResult, '2017-12-01/generated/azure_mgmt_compute/models/image_list_result.rb'
63
67
  autoload :RunCommandInputParameter, '2017-12-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb'
64
- autoload :InstanceViewStatus, '2017-12-01/generated/azure_mgmt_compute/models/instance_view_status.rb'
68
+ autoload :ComputeOperationListResult, '2017-12-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb'
65
69
  autoload :KeyVaultKeyReference, '2017-12-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb'
66
- autoload :Sku, '2017-12-01/generated/azure_mgmt_compute/models/sku.rb'
70
+ autoload :SubResource, '2017-12-01/generated/azure_mgmt_compute/models/sub_resource.rb'
67
71
  autoload :VirtualHardDisk, '2017-12-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb'
68
- autoload :SubResourceReadOnly, '2017-12-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb'
69
- autoload :OSDisk, '2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb'
72
+ autoload :LogAnalyticsOutput, '2017-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb'
73
+ autoload :VirtualMachineHealthStatus, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb'
74
+ autoload :DataDisk, '2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb'
75
+ autoload :Resource, '2017-12-01/generated/azure_mgmt_compute/models/resource.rb'
76
+ autoload :AdditionalUnattendContent, '2017-12-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb'
77
+ autoload :VirtualMachineScaleSetOSDisk, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb'
78
+ autoload :WinRMConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb'
70
79
  autoload :VirtualMachineScaleSetUpdateOSDisk, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb'
71
- autoload :StorageProfile, '2017-12-01/generated/azure_mgmt_compute/models/storage_profile.rb'
80
+ autoload :SshPublicKey, '2017-12-01/generated/azure_mgmt_compute/models/ssh_public_key.rb'
72
81
  autoload :VirtualMachineScaleSetDataDisk, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb'
73
- autoload :WinRMListener, '2017-12-01/generated/azure_mgmt_compute/models/win_rmlistener.rb'
82
+ autoload :LinuxConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/linux_configuration.rb'
74
83
  autoload :VirtualMachineScaleSetStorageProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb'
75
- autoload :WindowsConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/windows_configuration.rb'
84
+ autoload :VaultSecretGroup, '2017-12-01/generated/azure_mgmt_compute/models/vault_secret_group.rb'
76
85
  autoload :VirtualMachineScaleSetUpdateStorageProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb'
77
- autoload :SshConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/ssh_configuration.rb'
86
+ autoload :LogAnalyticsInputBase, '2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb'
78
87
  autoload :ApiEntityReference, '2017-12-01/generated/azure_mgmt_compute/models/api_entity_reference.rb'
79
- autoload :VaultCertificate, '2017-12-01/generated/azure_mgmt_compute/models/vault_certificate.rb'
88
+ autoload :BootDiagnostics, '2017-12-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb'
80
89
  autoload :VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb'
81
- autoload :OSProfile, '2017-12-01/generated/azure_mgmt_compute/models/osprofile.rb'
90
+ autoload :VirtualMachineExtensionHandlerInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb'
82
91
  autoload :VirtualMachineScaleSetPublicIPAddressConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb'
83
- autoload :NetworkProfile, '2017-12-01/generated/azure_mgmt_compute/models/network_profile.rb'
92
+ autoload :DiskInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/disk_instance_view.rb'
84
93
  autoload :VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb'
85
- autoload :DiagnosticsProfile, '2017-12-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb'
86
- autoload :UpdateResource, '2017-12-01/generated/azure_mgmt_compute/models/update_resource.rb'
87
- autoload :VirtualMachineAgentInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
88
- autoload :Resource, '2017-12-01/generated/azure_mgmt_compute/models/resource.rb'
89
- autoload :BootDiagnosticsInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
90
- autoload :VirtualMachineScaleSetNetworkConfigurationDnsSettings, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb'
91
- autoload :MaintenanceRedeployStatus, '2017-12-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb'
94
+ autoload :VirtualMachineIdentity, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb'
92
95
  autoload :ComputeLongRunningOperationProperties, '2017-12-01/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
93
- autoload :OperationStatusResponse, '2017-12-01/generated/azure_mgmt_compute/models/operation_status_response.rb'
96
+ autoload :VirtualMachineInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb'
94
97
  autoload :ApiError, '2017-12-01/generated/azure_mgmt_compute/models/api_error.rb'
98
+ autoload :VirtualMachineSize, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb'
99
+ autoload :VirtualMachineScaleSetNetworkConfigurationDnsSettings, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb'
100
+ autoload :VirtualMachineExtensionInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
101
+ autoload :InnerError, '2017-12-01/generated/azure_mgmt_compute/models/inner_error.rb'
102
+ autoload :DataDiskImage, '2017-12-01/generated/azure_mgmt_compute/models/data_disk_image.rb'
103
+ autoload :ApiErrorBase, '2017-12-01/generated/azure_mgmt_compute/models/api_error_base.rb'
104
+ autoload :ListUsagesResult, '2017-12-01/generated/azure_mgmt_compute/models/list_usages_result.rb'
95
105
  autoload :VirtualMachineScaleSetNetworkProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb'
96
- autoload :PurchasePlan, '2017-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb'
106
+ autoload :HardwareProfile, '2017-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb'
97
107
  autoload :VirtualMachineScaleSetUpdateNetworkProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb'
98
- autoload :UsageName, '2017-12-01/generated/azure_mgmt_compute/models/usage_name.rb'
99
- autoload :InnerError, '2017-12-01/generated/azure_mgmt_compute/models/inner_error.rb'
100
- autoload :RunCommandInput, '2017-12-01/generated/azure_mgmt_compute/models/run_command_input.rb'
108
+ autoload :DiskEncryptionSettings, '2017-12-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb'
109
+ autoload :RollingUpgradeProgressInfo, '2017-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb'
110
+ autoload :StorageProfile, '2017-12-01/generated/azure_mgmt_compute/models/storage_profile.rb'
101
111
  autoload :VirtualMachineScaleSetExtensionListResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb'
102
- autoload :KeyVaultSecretReference, '2017-12-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb'
112
+ autoload :WindowsConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/windows_configuration.rb'
103
113
  autoload :VirtualMachineScaleSetExtensionProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb'
104
- autoload :LogAnalyticsOutput, '2017-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb'
114
+ autoload :VaultCertificate, '2017-12-01/generated/azure_mgmt_compute/models/vault_certificate.rb'
105
115
  autoload :VirtualMachineScaleSetVMProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb'
106
- autoload :AdditionalUnattendContent, '2017-12-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb'
116
+ autoload :NetworkProfile, '2017-12-01/generated/azure_mgmt_compute/models/network_profile.rb'
107
117
  autoload :VirtualMachineScaleSetUpdateVMProfile, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb'
108
- autoload :SshPublicKey, '2017-12-01/generated/azure_mgmt_compute/models/ssh_public_key.rb'
109
- autoload :ApiErrorBase, '2017-12-01/generated/azure_mgmt_compute/models/api_error_base.rb'
110
- autoload :VaultSecretGroup, '2017-12-01/generated/azure_mgmt_compute/models/vault_secret_group.rb'
111
- autoload :RollingUpgradeProgressInfo, '2017-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb'
112
- autoload :BootDiagnostics, '2017-12-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb'
118
+ autoload :VirtualMachineAgentInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
119
+ autoload :RollingUpgradeRunningStatus, '2017-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb'
120
+ autoload :MaintenanceRedeployStatus, '2017-12-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb'
121
+ autoload :VirtualMachineScaleSetVMListResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb'
113
122
  autoload :VirtualMachineScaleSetVMInstanceIDs, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb'
114
- autoload :DiskInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/disk_instance_view.rb'
123
+ autoload :UsageName, '2017-12-01/generated/azure_mgmt_compute/models/usage_name.rb'
115
124
  autoload :VirtualMachineScaleSetVMInstanceRequiredIDs, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb'
116
- autoload :VirtualMachineInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb'
125
+ autoload :KeyVaultSecretReference, '2017-12-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb'
117
126
  autoload :VirtualMachineStatusCodeCount, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb'
118
- autoload :VirtualMachineExtensionInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
127
+ autoload :WinRMListener, '2017-12-01/generated/azure_mgmt_compute/models/win_rmlistener.rb'
119
128
  autoload :VirtualMachineScaleSetInstanceViewStatusesSummary, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb'
120
- autoload :ListUsagesResult, '2017-12-01/generated/azure_mgmt_compute/models/list_usages_result.rb'
129
+ autoload :OSProfile, '2017-12-01/generated/azure_mgmt_compute/models/osprofile.rb'
121
130
  autoload :VirtualMachineScaleSetVMExtensionsSummary, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb'
122
- autoload :DiskEncryptionSettings, '2017-12-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb'
131
+ autoload :BootDiagnosticsInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
123
132
  autoload :VirtualMachineScaleSetInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb'
124
- autoload :WinRMConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb'
133
+ autoload :PurchasePlan, '2017-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb'
125
134
  autoload :VirtualMachineScaleSetListResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb'
126
- autoload :LogAnalyticsInputBase, '2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb'
135
+ autoload :OSDisk, '2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb'
127
136
  autoload :VirtualMachineScaleSetListWithLinkResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb'
128
- autoload :VirtualMachineIdentity, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb'
137
+ autoload :DiagnosticsProfile, '2017-12-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb'
129
138
  autoload :VirtualMachineScaleSetSkuCapacity, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb'
130
- autoload :DataDiskImage, '2017-12-01/generated/azure_mgmt_compute/models/data_disk_image.rb'
139
+ autoload :RunCommandInput, '2017-12-01/generated/azure_mgmt_compute/models/run_command_input.rb'
131
140
  autoload :VirtualMachineScaleSetSku, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb'
132
- autoload :DataDisk, '2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb'
141
+ autoload :OperationStatusResponse, '2017-12-01/generated/azure_mgmt_compute/models/operation_status_response.rb'
133
142
  autoload :VirtualMachineScaleSetListSkusResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb'
134
- autoload :VirtualMachineExtensionHandlerInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb'
135
- autoload :RollingUpgradeRunningStatus, '2017-12-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb'
136
- autoload :HardwareProfile, '2017-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb'
137
- autoload :VirtualMachineHealthStatus, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb'
138
- autoload :VirtualMachineSize, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb'
143
+ autoload :SshConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/ssh_configuration.rb'
139
144
  autoload :VirtualMachineScaleSetVMInstanceView, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb'
140
- autoload :LinuxConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/linux_configuration.rb'
141
- autoload :VirtualMachineScaleSetVMListResult, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb'
142
145
  autoload :AvailabilitySet, '2017-12-01/generated/azure_mgmt_compute/models/availability_set.rb'
146
+ autoload :AvailabilitySetUpdate, '2017-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb'
143
147
  autoload :VirtualMachineExtensionImage, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb'
144
148
  autoload :VirtualMachineImageResource, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb'
145
149
  autoload :VirtualMachineExtension, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb'
@@ -149,7 +153,9 @@ module Azure::Compute::Mgmt::V2017_12_01
149
153
  autoload :ManagedDiskParameters, '2017-12-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb'
150
154
  autoload :NetworkInterfaceReference, '2017-12-01/generated/azure_mgmt_compute/models/network_interface_reference.rb'
151
155
  autoload :VirtualMachine, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb'
156
+ autoload :VirtualMachineUpdate, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb'
152
157
  autoload :Image, '2017-12-01/generated/azure_mgmt_compute/models/image.rb'
158
+ autoload :ImageUpdate, '2017-12-01/generated/azure_mgmt_compute/models/image_update.rb'
153
159
  autoload :VirtualMachineScaleSetIPConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb'
154
160
  autoload :VirtualMachineScaleSetUpdateIPConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb'
155
161
  autoload :VirtualMachineScaleSetNetworkConfiguration, '2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb'
@@ -127,6 +127,112 @@ module Azure::Compute::Mgmt::V2017_12_01
127
127
  promise.execute
128
128
  end
129
129
 
130
+ #
131
+ # Update an availability set.
132
+ #
133
+ # @param resource_group_name [String] The name of the resource group.
134
+ # @param availability_set_name [String] The name of the availability set.
135
+ # @param parameters [AvailabilitySetUpdate] Parameters supplied to the Update
136
+ # Availability Set operation.
137
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
+ # will be added to the HTTP request.
139
+ #
140
+ # @return [AvailabilitySet] operation results.
141
+ #
142
+ def update(resource_group_name, availability_set_name, parameters, custom_headers:nil)
143
+ response = update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value!
144
+ response.body unless response.nil?
145
+ end
146
+
147
+ #
148
+ # Update an availability set.
149
+ #
150
+ # @param resource_group_name [String] The name of the resource group.
151
+ # @param availability_set_name [String] The name of the availability set.
152
+ # @param parameters [AvailabilitySetUpdate] Parameters supplied to the Update
153
+ # Availability Set operation.
154
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
155
+ # will be added to the HTTP request.
156
+ #
157
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
158
+ #
159
+ def update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers:nil)
160
+ update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value!
161
+ end
162
+
163
+ #
164
+ # Update an availability set.
165
+ #
166
+ # @param resource_group_name [String] The name of the resource group.
167
+ # @param availability_set_name [String] The name of the availability set.
168
+ # @param parameters [AvailabilitySetUpdate] Parameters supplied to the Update
169
+ # Availability Set operation.
170
+ # @param [Hash{String => String}] A hash of custom headers that will be added
171
+ # to the HTTP request.
172
+ #
173
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
174
+ #
175
+ def update_async(resource_group_name, availability_set_name, parameters, custom_headers:nil)
176
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
177
+ fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
178
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
179
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
180
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
181
+
182
+
183
+ request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
185
+
186
+ # Set Headers
187
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
188
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
189
+
190
+ # Serialize Request
191
+ request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::AvailabilitySetUpdate.mapper()
192
+ request_content = @client.serialize(request_mapper, parameters)
193
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
194
+
195
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'
196
+
197
+ request_url = @base_url || @client.base_url
198
+
199
+ options = {
200
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
201
+ path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
202
+ query_params: {'api-version' => @client.api_version},
203
+ body: request_content,
204
+ headers: request_headers.merge(custom_headers || {}),
205
+ base_url: request_url
206
+ }
207
+ promise = @client.make_request_async(:patch, path_template, options)
208
+
209
+ promise = promise.then do |result|
210
+ http_response = result.response
211
+ status_code = http_response.status
212
+ response_content = http_response.body
213
+ unless status_code == 200
214
+ error_model = JSON.load(response_content)
215
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
216
+ end
217
+
218
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
219
+ # Deserialize Response
220
+ if status_code == 200
221
+ begin
222
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
223
+ result_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::AvailabilitySet.mapper()
224
+ result.body = @client.deserialize(result_mapper, parsed_response)
225
+ rescue Exception => e
226
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
227
+ end
228
+ end
229
+
230
+ result
231
+ end
232
+
233
+ promise.execute
234
+ end
235
+
130
236
  #
131
237
  # Delete an availability set.
132
238
  #
@@ -36,6 +36,9 @@ module Azure::Compute::Mgmt::V2017_12_01
36
36
  # is generated and included in each request. Default is true.
37
37
  attr_accessor :generate_client_request_id
38
38
 
39
+ # @return [Operations] operations
40
+ attr_reader :operations
41
+
39
42
  # @return [AvailabilitySets] availability_sets
40
43
  attr_reader :availability_sets
41
44
 
@@ -93,6 +96,7 @@ module Azure::Compute::Mgmt::V2017_12_01
93
96
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
94
97
  @credentials = credentials
95
98
 
99
+ @operations = Operations.new(self)
96
100
  @availability_sets = AvailabilitySets.new(self)
97
101
  @virtual_machine_extension_images = VirtualMachineExtensionImages.new(self)
98
102
  @virtual_machine_extensions = VirtualMachineExtensions.new(self)
@@ -179,7 +183,7 @@ module Azure::Compute::Mgmt::V2017_12_01
179
183
  #
180
184
  def add_telemetry
181
185
  sdk_information = 'azure_mgmt_compute'
182
- sdk_information = "#{sdk_information}/0.16.0"
186
+ sdk_information = "#{sdk_information}/0.17.0"
183
187
  add_user_agent_information(sdk_information)
184
188
  end
185
189
  end
@@ -65,6 +65,52 @@ module Azure::Compute::Mgmt::V2017_12_01
65
65
  promise
66
66
  end
67
67
 
68
+ #
69
+ # Update an image.
70
+ #
71
+ # @param resource_group_name [String] The name of the resource group.
72
+ # @param image_name [String] The name of the image.
73
+ # @param parameters [ImageUpdate] Parameters supplied to the Update Image
74
+ # operation.
75
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
76
+ # will be added to the HTTP request.
77
+ #
78
+ # @return [Image] operation results.
79
+ #
80
+ def update(resource_group_name, image_name, parameters, custom_headers:nil)
81
+ response = update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value!
82
+ response.body unless response.nil?
83
+ end
84
+
85
+ #
86
+ # @param resource_group_name [String] The name of the resource group.
87
+ # @param image_name [String] The name of the image.
88
+ # @param parameters [ImageUpdate] Parameters supplied to the Update Image
89
+ # operation.
90
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
91
+ # will be added to the HTTP request.
92
+ #
93
+ # @return [Concurrent::Promise] promise which provides async access to http
94
+ # response.
95
+ #
96
+ def update_async(resource_group_name, image_name, parameters, custom_headers:nil)
97
+ # Send request
98
+ promise = begin_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers)
99
+
100
+ promise = promise.then do |response|
101
+ # Defining deserialization method.
102
+ deserialize_method = lambda do |parsed_response|
103
+ result_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::Image.mapper()
104
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
105
+ end
106
+
107
+ # Waiting for response.
108
+ @client.get_long_running_operation_result(response, deserialize_method)
109
+ end
110
+
111
+ promise
112
+ end
113
+
68
114
  #
69
115
  # Deletes an Image.
70
116
  #
@@ -493,6 +539,122 @@ module Azure::Compute::Mgmt::V2017_12_01
493
539
  promise.execute
494
540
  end
495
541
 
542
+ #
543
+ # Update an image.
544
+ #
545
+ # @param resource_group_name [String] The name of the resource group.
546
+ # @param image_name [String] The name of the image.
547
+ # @param parameters [ImageUpdate] Parameters supplied to the Update Image
548
+ # operation.
549
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
550
+ # will be added to the HTTP request.
551
+ #
552
+ # @return [Image] operation results.
553
+ #
554
+ def begin_update(resource_group_name, image_name, parameters, custom_headers:nil)
555
+ response = begin_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value!
556
+ response.body unless response.nil?
557
+ end
558
+
559
+ #
560
+ # Update an image.
561
+ #
562
+ # @param resource_group_name [String] The name of the resource group.
563
+ # @param image_name [String] The name of the image.
564
+ # @param parameters [ImageUpdate] Parameters supplied to the Update Image
565
+ # operation.
566
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
567
+ # will be added to the HTTP request.
568
+ #
569
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
570
+ #
571
+ def begin_update_with_http_info(resource_group_name, image_name, parameters, custom_headers:nil)
572
+ begin_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value!
573
+ end
574
+
575
+ #
576
+ # Update an image.
577
+ #
578
+ # @param resource_group_name [String] The name of the resource group.
579
+ # @param image_name [String] The name of the image.
580
+ # @param parameters [ImageUpdate] Parameters supplied to the Update Image
581
+ # operation.
582
+ # @param [Hash{String => String}] A hash of custom headers that will be added
583
+ # to the HTTP request.
584
+ #
585
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
586
+ #
587
+ def begin_update_async(resource_group_name, image_name, parameters, custom_headers:nil)
588
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
589
+ fail ArgumentError, 'image_name is nil' if image_name.nil?
590
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
591
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
592
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
593
+
594
+
595
+ request_headers = {}
596
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
597
+
598
+ # Set Headers
599
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
600
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
601
+
602
+ # Serialize Request
603
+ request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::ImageUpdate.mapper()
604
+ request_content = @client.serialize(request_mapper, parameters)
605
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
606
+
607
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'
608
+
609
+ request_url = @base_url || @client.base_url
610
+
611
+ options = {
612
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
613
+ path_params: {'resourceGroupName' => resource_group_name,'imageName' => image_name,'subscriptionId' => @client.subscription_id},
614
+ query_params: {'api-version' => @client.api_version},
615
+ body: request_content,
616
+ headers: request_headers.merge(custom_headers || {}),
617
+ base_url: request_url
618
+ }
619
+ promise = @client.make_request_async(:patch, path_template, options)
620
+
621
+ promise = promise.then do |result|
622
+ http_response = result.response
623
+ status_code = http_response.status
624
+ response_content = http_response.body
625
+ unless status_code == 200 || status_code == 201
626
+ error_model = JSON.load(response_content)
627
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
628
+ end
629
+
630
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
631
+ # Deserialize Response
632
+ if status_code == 200
633
+ begin
634
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
635
+ result_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::Image.mapper()
636
+ result.body = @client.deserialize(result_mapper, parsed_response)
637
+ rescue Exception => e
638
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
639
+ end
640
+ end
641
+ # Deserialize Response
642
+ if status_code == 201
643
+ begin
644
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
645
+ result_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::Image.mapper()
646
+ result.body = @client.deserialize(result_mapper, parsed_response)
647
+ rescue Exception => e
648
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
649
+ end
650
+ end
651
+
652
+ result
653
+ end
654
+
655
+ promise.execute
656
+ end
657
+
496
658
  #
497
659
  # Deletes an Image.
498
660
  #