azure_mgmt_compute 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-15/generated/azure_mgmt_compute.rb +5 -3
  3. data/lib/2015-06-15/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
  4. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
  5. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
  6. data/lib/2016-03-30/generated/azure_mgmt_compute.rb +28 -25
  7. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
  8. data/lib/2016-03-30/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
  9. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
  10. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
  11. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
  12. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
  13. data/lib/2016-04-30-preview/generated/azure_mgmt_compute.rb +35 -32
  14. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
  15. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
  16. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
  17. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
  18. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
  19. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
  20. data/lib/2017-03-30/generated/azure_mgmt_compute.rb +69 -67
  21. data/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb +1 -1
  22. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
  23. data/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb +1 -1
  24. data/lib/2017-03-30/generated/azure_mgmt_compute/images.rb +1 -1
  25. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
  26. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
  27. data/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb +1 -1
  28. data/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb +1 -1
  29. data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +1 -1
  30. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +1 -1
  31. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +169 -6
  32. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +1 -1
  33. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +1 -1
  34. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +1 -1
  35. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +1 -1
  36. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1 -1
  37. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +1 -1
  38. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +1 -1
  39. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +99 -1
  40. data/lib/2017-12-01/generated/azure_mgmt_compute.rb +75 -64
  41. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
  42. data/lib/2017-12-01/generated/azure_mgmt_compute/models/auto_osupgrade_policy.rb +47 -0
  43. data/lib/2017-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb +1 -10
  44. data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +7 -7
  45. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_update.rb +1 -3
  46. data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +7 -7
  47. data/lib/2017-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
  48. data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
  49. data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
  50. data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
  51. data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
  52. data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +13 -0
  53. data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
  54. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
  55. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
  56. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
  57. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
  58. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +3 -3
  59. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +14 -0
  60. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +1 -1
  61. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
  62. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +202 -0
  63. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
  64. data/lib/2018-04-01/generated/azure_mgmt_compute.rb +56 -0
  65. data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +136 -0
  66. data/lib/2018-04-01/generated/azure_mgmt_compute/disks.rb +1304 -0
  67. data/lib/2018-04-01/generated/azure_mgmt_compute/models/access_level.rb +16 -0
  68. data/lib/2018-04-01/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
  69. data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
  70. data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
  71. data/lib/2018-04-01/generated/azure_mgmt_compute/models/creation_data.rb +97 -0
  72. data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk.rb +207 -0
  73. data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
  74. data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
  75. data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_sku.rb +60 -0
  76. data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_update.rb +100 -0
  77. data/lib/2018-04-01/generated/azure_mgmt_compute/models/encryption_settings.rb +76 -0
  78. data/lib/2018-04-01/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
  79. data/lib/2018-04-01/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
  80. data/lib/2018-04-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
  81. data/lib/2018-04-01/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
  82. data/lib/2018-04-01/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
  83. data/lib/2018-04-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
  84. data/lib/2018-04-01/generated/azure_mgmt_compute/models/operation_status_response.rb +96 -0
  85. data/lib/2018-04-01/generated/azure_mgmt_compute/models/resource.rb +101 -0
  86. data/lib/2018-04-01/generated/azure_mgmt_compute/models/resource_update.rb +66 -0
  87. data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot.rb +187 -0
  88. data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
  89. data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_sku.rb +61 -0
  90. data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
  91. data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_update.rb +100 -0
  92. data/lib/2018-04-01/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
  93. data/lib/2018-04-01/generated/azure_mgmt_compute/models/storage_account_types.rb +16 -0
  94. data/lib/2018-04-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
  95. data/lib/2018-04-01/generated/azure_mgmt_compute/snapshots.rb +1304 -0
  96. data/lib/azure_mgmt_compute.rb +1 -0
  97. data/lib/profiles/latest/modules/compute_profile_module.rb +303 -251
  98. data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +90 -78
  99. data/lib/version.rb +1 -1
  100. metadata +55 -2
@@ -21,6 +21,104 @@ module Azure::Compute::Mgmt::V2016_03_30
21
21
  # @return [ComputeManagementClient] reference to the ComputeManagementClient
22
22
  attr_reader :client
23
23
 
24
+ #
25
+ # The operation to get all extensions of a Virtual Machine.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param vm_name [String] The name of the virtual machine containing the
29
+ # extension.
30
+ # @param expand [String] The expand expression to apply on the operation.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [VirtualMachineExtensionsListResult] operation results.
35
+ #
36
+ def get_extensions(resource_group_name, vm_name, expand:nil, custom_headers:nil)
37
+ response = get_extensions_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # The operation to get all extensions of a Virtual Machine.
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group.
45
+ # @param vm_name [String] The name of the virtual machine containing the
46
+ # extension.
47
+ # @param expand [String] The expand expression to apply on the operation.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def get_extensions_with_http_info(resource_group_name, vm_name, expand:nil, custom_headers:nil)
54
+ get_extensions_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # The operation to get all extensions of a Virtual Machine.
59
+ #
60
+ # @param resource_group_name [String] The name of the resource group.
61
+ # @param vm_name [String] The name of the virtual machine containing the
62
+ # extension.
63
+ # @param expand [String] The expand expression to apply on the operation.
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def get_extensions_async(resource_group_name, vm_name, expand:nil, custom_headers:nil)
70
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
72
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
73
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
74
+
75
+
76
+ request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
+
79
+ # Set Headers
80
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
81
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
82
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions'
83
+
84
+ request_url = @base_url || @client.base_url
85
+
86
+ options = {
87
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
88
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'subscriptionId' => @client.subscription_id},
89
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
90
+ headers: request_headers.merge(custom_headers || {}),
91
+ base_url: request_url
92
+ }
93
+ promise = @client.make_request_async(:get, path_template, options)
94
+
95
+ promise = promise.then do |result|
96
+ http_response = result.response
97
+ status_code = http_response.status
98
+ response_content = http_response.body
99
+ unless status_code == 200
100
+ error_model = JSON.load(response_content)
101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
102
+ end
103
+
104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
105
+ # Deserialize Response
106
+ if status_code == 200
107
+ begin
108
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
109
+ result_mapper = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionsListResult.mapper()
110
+ result.body = @client.deserialize(result_mapper, parsed_response)
111
+ rescue Exception => e
112
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
113
+ end
114
+ end
115
+
116
+ result
117
+ end
118
+
119
+ promise.execute
120
+ end
121
+
24
122
  #
25
123
  # Captures the VM by copying virtual hard disks of the VM and outputs a
26
124
  # template that can be used to create similar VMs.
@@ -23,11 +23,11 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
23
23
  autoload :AvailabilitySets, '2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb'
24
24
  autoload :VirtualMachineExtensionImages, '2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb'
25
25
  autoload :VirtualMachineExtensions, '2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb'
26
+ autoload :VirtualMachines, '2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb'
26
27
  autoload :VirtualMachineImages, '2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb'
27
28
  autoload :UsageOperations, '2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb'
28
29
  autoload :VirtualMachineSizes, '2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb'
29
30
  autoload :Images, '2016-04-30-preview/generated/azure_mgmt_compute/images.rb'
30
- autoload :VirtualMachines, '2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb'
31
31
  autoload :VirtualMachineScaleSets, '2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb'
32
32
  autoload :VirtualMachineScaleSetVMs, '2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb'
33
33
  autoload :Disks, '2016-04-30-preview/generated/azure_mgmt_compute/disks.rb'
@@ -36,33 +36,35 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
36
36
 
37
37
  module Models
38
38
  autoload :ImageOSDisk, '2016-04-30-preview/generated/azure_mgmt_compute/models/image_osdisk.rb'
39
+ autoload :InstanceViewStatus, '2016-04-30-preview/generated/azure_mgmt_compute/models/instance_view_status.rb'
39
40
  autoload :ImageDataDisk, '2016-04-30-preview/generated/azure_mgmt_compute/models/image_data_disk.rb'
40
- autoload :SubResource, '2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource.rb'
41
+ autoload :Sku, '2016-04-30-preview/generated/azure_mgmt_compute/models/sku.rb'
41
42
  autoload :ImageStorageProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/image_storage_profile.rb'
42
- autoload :VirtualMachineAgentInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
43
- autoload :DiskInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/disk_instance_view.rb'
44
- autoload :VirtualMachineSize, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size.rb'
45
- autoload :BootDiagnosticsInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
43
+ autoload :AvailabilitySetListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set_list_result.rb'
44
+ autoload :VirtualMachineListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb'
45
+ autoload :VirtualMachineSizeListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb'
46
+ autoload :UpgradePolicy, '2016-04-30-preview/generated/azure_mgmt_compute/models/upgrade_policy.rb'
46
47
  autoload :VirtualMachineIdentity, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_identity.rb'
47
48
  autoload :VirtualMachineExtensionInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
48
49
  autoload :VirtualMachineInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb'
50
+ autoload :KeyVaultAndSecretReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb'
51
+ autoload :SubResourceReadOnly, '2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource_read_only.rb'
49
52
  autoload :PurchasePlan, '2016-04-30-preview/generated/azure_mgmt_compute/models/purchase_plan.rb'
53
+ autoload :OSDiskImage, '2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk_image.rb'
54
+ autoload :Resource, '2016-04-30-preview/generated/azure_mgmt_compute/models/resource.rb'
50
55
  autoload :SourceVault, '2016-04-30-preview/generated/azure_mgmt_compute/models/source_vault.rb'
51
- autoload :DataDiskImage, '2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk_image.rb'
52
- autoload :VirtualMachineListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb'
53
- autoload :UsageName, '2016-04-30-preview/generated/azure_mgmt_compute/models/usage_name.rb'
54
- autoload :UpgradePolicy, '2016-04-30-preview/generated/azure_mgmt_compute/models/upgrade_policy.rb'
55
- autoload :ListUsagesResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/list_usages_result.rb'
56
- autoload :InstanceViewStatus, '2016-04-30-preview/generated/azure_mgmt_compute/models/instance_view_status.rb'
57
- autoload :DiskList, '2016-04-30-preview/generated/azure_mgmt_compute/models/disk_list.rb'
58
- autoload :Sku, '2016-04-30-preview/generated/azure_mgmt_compute/models/sku.rb'
59
- autoload :HardwareProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/hardware_profile.rb'
56
+ autoload :UpdateResource, '2016-04-30-preview/generated/azure_mgmt_compute/models/update_resource.rb'
57
+ autoload :Usage, '2016-04-30-preview/generated/azure_mgmt_compute/models/usage.rb'
58
+ autoload :SubResource, '2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource.rb'
59
+ autoload :VirtualMachineCaptureParameters, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb'
60
60
  autoload :CreationData, '2016-04-30-preview/generated/azure_mgmt_compute/models/creation_data.rb'
61
+ autoload :ComputeLongRunningOperationProperties, '2016-04-30-preview/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
62
+ autoload :HardwareProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/hardware_profile.rb'
63
+ autoload :VirtualMachineSize, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size.rb'
61
64
  autoload :KeyVaultSecretReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb'
62
- autoload :ImageDiskReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/image_disk_reference.rb'
63
65
  autoload :DiskEncryptionSettings, '2016-04-30-preview/generated/azure_mgmt_compute/models/disk_encryption_settings.rb'
64
66
  autoload :ImageListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/image_list_result.rb'
65
- autoload :KeyVaultAndKeyReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb'
67
+ autoload :ResourceUpdate, '2016-04-30-preview/generated/azure_mgmt_compute/models/resource_update.rb'
66
68
  autoload :VirtualMachineScaleSetIdentity, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb'
67
69
  autoload :DataDisk, '2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk.rb'
68
70
  autoload :VirtualMachineScaleSetOSProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb'
@@ -76,21 +78,21 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
76
78
  autoload :VirtualMachineScaleSetStorageProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb'
77
79
  autoload :VaultSecretGroup, '2016-04-30-preview/generated/azure_mgmt_compute/models/vault_secret_group.rb'
78
80
  autoload :ApiEntityReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/api_entity_reference.rb'
79
- autoload :KeyVaultAndSecretReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb'
80
- autoload :ResourceUpdate, '2016-04-30-preview/generated/azure_mgmt_compute/models/resource_update.rb'
81
- autoload :BootDiagnostics, '2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics.rb'
82
81
  autoload :OperationStatusResponse, '2016-04-30-preview/generated/azure_mgmt_compute/models/operation_status_response.rb'
82
+ autoload :SnapshotList, '2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_list.rb'
83
+ autoload :BootDiagnostics, '2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics.rb'
84
+ autoload :AccessUri, '2016-04-30-preview/generated/azure_mgmt_compute/models/access_uri.rb'
83
85
  autoload :VirtualMachineExtensionHandlerInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb'
84
86
  autoload :VirtualMachineScaleSetNetworkProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb'
85
- autoload :VirtualMachineSizeListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb'
86
- autoload :SubResourceReadOnly, '2016-04-30-preview/generated/azure_mgmt_compute/models/sub_resource_read_only.rb'
87
- autoload :AccessUri, '2016-04-30-preview/generated/azure_mgmt_compute/models/access_uri.rb'
88
- autoload :VirtualMachineScaleSetExtensionProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb'
87
+ autoload :DiskInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/disk_instance_view.rb'
89
88
  autoload :GrantAccessData, '2016-04-30-preview/generated/azure_mgmt_compute/models/grant_access_data.rb'
89
+ autoload :KeyVaultAndKeyReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb'
90
+ autoload :VirtualMachineScaleSetExtensionProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb'
91
+ autoload :DataDiskImage, '2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk_image.rb'
90
92
  autoload :VirtualMachineScaleSetVMProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb'
91
- autoload :VirtualMachineCaptureParameters, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb'
92
- autoload :Resource, '2016-04-30-preview/generated/azure_mgmt_compute/models/resource.rb'
93
- autoload :EncryptionSettings, '2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb'
93
+ autoload :ListUsagesResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/list_usages_result.rb'
94
+ autoload :DiskList, '2016-04-30-preview/generated/azure_mgmt_compute/models/disk_list.rb'
95
+ autoload :ImageDiskReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/image_disk_reference.rb'
94
96
  autoload :VirtualMachineScaleSetVMInstanceIDs, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb'
95
97
  autoload :VirtualHardDisk, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_hard_disk.rb'
96
98
  autoload :VirtualMachineScaleSetVMInstanceRequiredIDs, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb'
@@ -102,9 +104,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
102
104
  autoload :VirtualMachineScaleSetVMExtensionsSummary, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb'
103
105
  autoload :NetworkProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/network_profile.rb'
104
106
  autoload :VirtualMachineScaleSetInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb'
105
- autoload :AvailabilitySetListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set_list_result.rb'
107
+ autoload :VirtualMachineAgentInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
106
108
  autoload :VirtualMachineScaleSetListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb'
107
- autoload :OSDiskImage, '2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk_image.rb'
109
+ autoload :VirtualMachineExtensionsListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb'
108
110
  autoload :VirtualMachineScaleSetListWithLinkResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb'
109
111
  autoload :Plan, '2016-04-30-preview/generated/azure_mgmt_compute/models/plan.rb'
110
112
  autoload :VirtualMachineScaleSetSkuCapacity, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb'
@@ -113,12 +115,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
113
115
  autoload :SshConfiguration, '2016-04-30-preview/generated/azure_mgmt_compute/models/ssh_configuration.rb'
114
116
  autoload :VirtualMachineScaleSetListSkusResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb'
115
117
  autoload :DiagnosticsProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/diagnostics_profile.rb'
116
- autoload :ComputeLongRunningOperationProperties, '2016-04-30-preview/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
117
- autoload :Usage, '2016-04-30-preview/generated/azure_mgmt_compute/models/usage.rb'
118
+ autoload :EncryptionSettings, '2016-04-30-preview/generated/azure_mgmt_compute/models/encryption_settings.rb'
119
+ autoload :UsageName, '2016-04-30-preview/generated/azure_mgmt_compute/models/usage_name.rb'
118
120
  autoload :VirtualMachineScaleSetVMInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb'
119
121
  autoload :WinRMListener, '2016-04-30-preview/generated/azure_mgmt_compute/models/win_rmlistener.rb'
120
122
  autoload :VirtualMachineScaleSetVMListResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb'
121
- autoload :SnapshotList, '2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_list.rb'
123
+ autoload :BootDiagnosticsInstanceView, '2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
122
124
  autoload :ApiErrorBase, '2016-04-30-preview/generated/azure_mgmt_compute/models/api_error_base.rb'
123
125
  autoload :OSProfile, '2016-04-30-preview/generated/azure_mgmt_compute/models/osprofile.rb'
124
126
  autoload :InnerError, '2016-04-30-preview/generated/azure_mgmt_compute/models/inner_error.rb'
@@ -128,6 +130,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
128
130
  autoload :VirtualMachineExtensionImage, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb'
129
131
  autoload :VirtualMachineImageResource, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb'
130
132
  autoload :VirtualMachineExtension, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension.rb'
133
+ autoload :VirtualMachineExtensionUpdate, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb'
131
134
  autoload :VirtualMachineImage, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_image.rb'
132
135
  autoload :VirtualMachineCaptureResult, '2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb'
133
136
  autoload :ImageReference, '2016-04-30-preview/generated/azure_mgmt_compute/models/image_reference.rb'
@@ -45,6 +45,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
45
45
  # @return [VirtualMachineExtensions] virtual_machine_extensions
46
46
  attr_reader :virtual_machine_extensions
47
47
 
48
+ # @return [VirtualMachines] virtual_machines
49
+ attr_reader :virtual_machines
50
+
48
51
  # @return [VirtualMachineImages] virtual_machine_images
49
52
  attr_reader :virtual_machine_images
50
53
 
@@ -57,9 +60,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
57
60
  # @return [Images] images
58
61
  attr_reader :images
59
62
 
60
- # @return [VirtualMachines] virtual_machines
61
- attr_reader :virtual_machines
62
-
63
63
  # @return [VirtualMachineScaleSets] virtual_machine_scale_sets
64
64
  attr_reader :virtual_machine_scale_sets
65
65
 
@@ -88,11 +88,11 @@ module Azure::Compute::Mgmt::V2016_04_30_preview
88
88
  @availability_sets = AvailabilitySets.new(self)
89
89
  @virtual_machine_extension_images = VirtualMachineExtensionImages.new(self)
90
90
  @virtual_machine_extensions = VirtualMachineExtensions.new(self)
91
+ @virtual_machines = VirtualMachines.new(self)
91
92
  @virtual_machine_images = VirtualMachineImages.new(self)
92
93
  @usage_operations = UsageOperations.new(self)
93
94
  @virtual_machine_sizes = VirtualMachineSizes.new(self)
94
95
  @images = Images.new(self)
95
- @virtual_machines = VirtualMachines.new(self)
96
96
  @virtual_machine_scale_sets = VirtualMachineScaleSets.new(self)
97
97
  @virtual_machine_scale_set_vms = VirtualMachineScaleSetVMs.new(self)
98
98
  @disks = Disks.new(self)
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Compute::Mgmt::V2016_04_30_preview
7
+ module Models
8
+ #
9
+ # The Update Resource model definition.
10
+ #
11
+ class UpdateResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] Resource tags
16
+ attr_accessor :tags
17
+
18
+
19
+ #
20
+ # Mapper for UpdateResource class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'UpdateResource',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'UpdateResource',
31
+ model_properties: {
32
+ tags: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'tags',
36
+ type: {
37
+ name: 'Dictionary',
38
+ value: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'StringElementType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,134 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Compute::Mgmt::V2016_04_30_preview
7
+ module Models
8
+ #
9
+ # Describes a Virtual Machine Extension.
10
+ #
11
+ class VirtualMachineExtensionUpdate < UpdateResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] How the extension handler should be forced to update
16
+ # even if the extension configuration has not changed.
17
+ attr_accessor :force_update_tag
18
+
19
+ # @return [String] The name of the extension handler publisher.
20
+ attr_accessor :publisher
21
+
22
+ # @return [String] Specifies the type of the extension; an example is
23
+ # "CustomScriptExtension".
24
+ attr_accessor :type
25
+
26
+ # @return [String] Specifies the version of the script handler.
27
+ attr_accessor :type_handler_version
28
+
29
+ # @return [Boolean] Indicates whether the extension should use a newer
30
+ # minor version if one is available at deployment time. Once deployed,
31
+ # however, the extension will not upgrade minor versions unless
32
+ # redeployed, even with this property set to true.
33
+ attr_accessor :auto_upgrade_minor_version
34
+
35
+ # @return Json formatted public settings for the extension.
36
+ attr_accessor :settings
37
+
38
+ # @return The extension can contain either protectedSettings or
39
+ # protectedSettingsFromKeyVault or no protected settings at all.
40
+ attr_accessor :protected_settings
41
+
42
+
43
+ #
44
+ # Mapper for VirtualMachineExtensionUpdate class as Ruby Hash.
45
+ # This will be used for serialization/deserialization.
46
+ #
47
+ def self.mapper()
48
+ {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'VirtualMachineExtensionUpdate',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'VirtualMachineExtensionUpdate',
55
+ model_properties: {
56
+ tags: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'tags',
60
+ type: {
61
+ name: 'Dictionary',
62
+ value: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'StringElementType',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ }
70
+ }
71
+ },
72
+ force_update_tag: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'properties.forceUpdateTag',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ publisher: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'properties.publisher',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ type: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'properties.type',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ type_handler_version: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'properties.typeHandlerVersion',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ auto_upgrade_minor_version: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'properties.autoUpgradeMinorVersion',
108
+ type: {
109
+ name: 'Boolean'
110
+ }
111
+ },
112
+ settings: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ serialized_name: 'properties.settings',
116
+ type: {
117
+ name: 'Object'
118
+ }
119
+ },
120
+ protected_settings: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ serialized_name: 'properties.protectedSettings',
124
+ type: {
125
+ name: 'Object'
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ end
132
+ end
133
+ end
134
+ end