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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43bfe5028235b6b1ace321dd0535dcb63f17ea72
4
- data.tar.gz: d3279a2788e66507fa1437678c8256adff83fc06
3
+ metadata.gz: 5e3741e2b04d5ada65091923da357aaf8e7c6792
4
+ data.tar.gz: 6e5013b7ad88b3b524196746df2e6e4d2ea99841
5
5
  SHA512:
6
- metadata.gz: 0b5a4e19d5736a1e5a7af77f360398d12ac094b2a63b306940706f3cf4a12645c9c3f50287d67e8c681e136672fe3be3133f989dbe6af56f269be4a0cb70758c
7
- data.tar.gz: 10e9aef1282cf1e32e7e7fc0f0e1c2b28539434849417e6edd3f26997e6436bb4da2b590a122764dd36bbdc910ab45511e2fe2594698e1f57fa3773b48274a0b
6
+ metadata.gz: 62123b28a24c330517f0f1d15563d1cb3aba6e54aa676776eb44ddaa3c0f49eac2caf2b2e5a286e57553a6fe6daf1c3ad5def7a35f2b1058dbc9619cd6a348ee
7
+ data.tar.gz: d20da2ac0aa327072f7439143be384d8d8a7a848ae4db9452e3fafd599b3f76105607609006e270de5a12718f74545cac987eded30e116968f899e735b66fe11
@@ -40,8 +40,8 @@ module Azure::Compute::Mgmt::V2015_06_15
40
40
  autoload :VirtualMachineAgentInstanceView, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
41
41
  autoload :VirtualMachineSizeListResult, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb'
42
42
  autoload :DiskInstanceView, '2015-06-15/generated/azure_mgmt_compute/models/disk_instance_view.rb'
43
+ autoload :ComputeLongRunningOperationProperties, '2015-06-15/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
43
44
  autoload :NetworkProfile, '2015-06-15/generated/azure_mgmt_compute/models/network_profile.rb'
44
- autoload :VirtualMachineExtensionInstanceView, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
45
45
  autoload :InstanceViewStatus, '2015-06-15/generated/azure_mgmt_compute/models/instance_view_status.rb'
46
46
  autoload :PurchasePlan, '2015-06-15/generated/azure_mgmt_compute/models/purchase_plan.rb'
47
47
  autoload :OSDiskImage, '2015-06-15/generated/azure_mgmt_compute/models/osdisk_image.rb'
@@ -73,6 +73,7 @@ module Azure::Compute::Mgmt::V2015_06_15
73
73
  autoload :VirtualMachineScaleSetStorageProfile, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb'
74
74
  autoload :OSProfile, '2015-06-15/generated/azure_mgmt_compute/models/osprofile.rb'
75
75
  autoload :ApiEntityReference, '2015-06-15/generated/azure_mgmt_compute/models/api_entity_reference.rb'
76
+ autoload :OperationStatusResponse, '2015-06-15/generated/azure_mgmt_compute/models/operation_status_response.rb'
76
77
  autoload :ApiErrorBase, '2015-06-15/generated/azure_mgmt_compute/models/api_error_base.rb'
77
78
  autoload :Usage, '2015-06-15/generated/azure_mgmt_compute/models/usage.rb'
78
79
  autoload :VirtualMachineScaleSetVMListResult, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb'
@@ -86,7 +87,7 @@ module Azure::Compute::Mgmt::V2015_06_15
86
87
  autoload :VirtualMachineScaleSetVMProfile, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb'
87
88
  autoload :LinuxConfiguration, '2015-06-15/generated/azure_mgmt_compute/models/linux_configuration.rb'
88
89
  autoload :VirtualMachineScaleSetListSkusResult, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb'
89
- autoload :ComputeLongRunningOperationProperties, '2015-06-15/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
90
+ autoload :VirtualMachineExtensionInstanceView, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
90
91
  autoload :VirtualMachineScaleSetVMInstanceIDs, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb'
91
92
  autoload :VirtualMachineCaptureParameters, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb'
92
93
  autoload :VirtualMachineScaleSetVMInstanceRequiredIDs, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb'
@@ -94,7 +95,7 @@ module Azure::Compute::Mgmt::V2015_06_15
94
95
  autoload :VirtualMachineStatusCodeCount, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb'
95
96
  autoload :SshPublicKey, '2015-06-15/generated/azure_mgmt_compute/models/ssh_public_key.rb'
96
97
  autoload :VirtualMachineScaleSetInstanceViewStatusesSummary, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb'
97
- autoload :OperationStatusResponse, '2015-06-15/generated/azure_mgmt_compute/models/operation_status_response.rb'
98
+ autoload :UpdateResource, '2015-06-15/generated/azure_mgmt_compute/models/update_resource.rb'
98
99
  autoload :VirtualMachineScaleSetVMExtensionsSummary, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb'
99
100
  autoload :AdditionalUnattendContent, '2015-06-15/generated/azure_mgmt_compute/models/additional_unattend_content.rb'
100
101
  autoload :VirtualMachineScaleSetInstanceView, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb'
@@ -106,6 +107,7 @@ module Azure::Compute::Mgmt::V2015_06_15
106
107
  autoload :VirtualMachineExtensionImage, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb'
107
108
  autoload :VirtualMachineImageResource, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb'
108
109
  autoload :VirtualMachineExtension, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension.rb'
110
+ autoload :VirtualMachineExtensionUpdate, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb'
109
111
  autoload :VirtualMachineImage, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_image.rb'
110
112
  autoload :VirtualMachineCaptureResult, '2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb'
111
113
  autoload :NetworkInterfaceReference, '2015-06-15/generated/azure_mgmt_compute/models/network_interface_reference.rb'
@@ -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::V2015_06_15
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::V2015_06_15
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
@@ -26,7 +26,7 @@ module Azure::Compute::Mgmt::V2015_06_15
26
26
  #
27
27
  # @param resource_group_name [String] The name of the resource group.
28
28
  # @param vm_name [String] The name of the virtual machine where the extension
29
- # should be create or updated.
29
+ # should be created or updated.
30
30
  # @param vm_extension_name [String] The name of the virtual machine extension.
31
31
  # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
32
32
  # the Create Virtual Machine Extension operation.
@@ -43,7 +43,7 @@ module Azure::Compute::Mgmt::V2015_06_15
43
43
  #
44
44
  # @param resource_group_name [String] The name of the resource group.
45
45
  # @param vm_name [String] The name of the virtual machine where the extension
46
- # should be create or updated.
46
+ # should be created or updated.
47
47
  # @param vm_extension_name [String] The name of the virtual machine extension.
48
48
  # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
49
49
  # the Create Virtual Machine Extension operation.
@@ -71,6 +71,56 @@ module Azure::Compute::Mgmt::V2015_06_15
71
71
  promise
72
72
  end
73
73
 
74
+ #
75
+ # The operation to update the extension.
76
+ #
77
+ # @param resource_group_name [String] The name of the resource group.
78
+ # @param vm_name [String] The name of the virtual machine where the extension
79
+ # should be updated.
80
+ # @param vm_extension_name [String] The name of the virtual machine extension.
81
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
82
+ # supplied to the Update Virtual Machine Extension operation.
83
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
84
+ # will be added to the HTTP request.
85
+ #
86
+ # @return [VirtualMachineExtension] operation results.
87
+ #
88
+ def update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
89
+ response = update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
90
+ response.body unless response.nil?
91
+ end
92
+
93
+ #
94
+ # @param resource_group_name [String] The name of the resource group.
95
+ # @param vm_name [String] The name of the virtual machine where the extension
96
+ # should be updated.
97
+ # @param vm_extension_name [String] The name of the virtual machine extension.
98
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
99
+ # supplied to the Update Virtual Machine Extension operation.
100
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
101
+ # will be added to the HTTP request.
102
+ #
103
+ # @return [Concurrent::Promise] promise which provides async access to http
104
+ # response.
105
+ #
106
+ def update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
107
+ # Send request
108
+ promise = begin_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers)
109
+
110
+ promise = promise.then do |response|
111
+ # Defining deserialization method.
112
+ deserialize_method = lambda do |parsed_response|
113
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
114
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
115
+ end
116
+
117
+ # Waiting for response.
118
+ @client.get_long_running_operation_result(response, deserialize_method)
119
+ end
120
+
121
+ promise
122
+ end
123
+
74
124
  #
75
125
  # The operation to delete the extension.
76
126
  #
@@ -224,7 +274,7 @@ module Azure::Compute::Mgmt::V2015_06_15
224
274
  #
225
275
  # @param resource_group_name [String] The name of the resource group.
226
276
  # @param vm_name [String] The name of the virtual machine where the extension
227
- # should be create or updated.
277
+ # should be created or updated.
228
278
  # @param vm_extension_name [String] The name of the virtual machine extension.
229
279
  # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
230
280
  # the Create Virtual Machine Extension operation.
@@ -243,7 +293,7 @@ module Azure::Compute::Mgmt::V2015_06_15
243
293
  #
244
294
  # @param resource_group_name [String] The name of the resource group.
245
295
  # @param vm_name [String] The name of the virtual machine where the extension
246
- # should be create or updated.
296
+ # should be created or updated.
247
297
  # @param vm_extension_name [String] The name of the virtual machine extension.
248
298
  # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
249
299
  # the Create Virtual Machine Extension operation.
@@ -261,7 +311,7 @@ module Azure::Compute::Mgmt::V2015_06_15
261
311
  #
262
312
  # @param resource_group_name [String] The name of the resource group.
263
313
  # @param vm_name [String] The name of the virtual machine where the extension
264
- # should be create or updated.
314
+ # should be created or updated.
265
315
  # @param vm_extension_name [String] The name of the virtual machine extension.
266
316
  # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
267
317
  # the Create Virtual Machine Extension operation.
@@ -342,6 +392,119 @@ module Azure::Compute::Mgmt::V2015_06_15
342
392
  promise.execute
343
393
  end
344
394
 
395
+ #
396
+ # The operation to update the extension.
397
+ #
398
+ # @param resource_group_name [String] The name of the resource group.
399
+ # @param vm_name [String] The name of the virtual machine where the extension
400
+ # should be updated.
401
+ # @param vm_extension_name [String] The name of the virtual machine extension.
402
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
403
+ # supplied to the Update Virtual Machine Extension operation.
404
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
405
+ # will be added to the HTTP request.
406
+ #
407
+ # @return [VirtualMachineExtension] operation results.
408
+ #
409
+ def begin_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
410
+ response = begin_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
411
+ response.body unless response.nil?
412
+ end
413
+
414
+ #
415
+ # The operation to update the extension.
416
+ #
417
+ # @param resource_group_name [String] The name of the resource group.
418
+ # @param vm_name [String] The name of the virtual machine where the extension
419
+ # should be updated.
420
+ # @param vm_extension_name [String] The name of the virtual machine extension.
421
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
422
+ # supplied to the Update Virtual Machine Extension operation.
423
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
424
+ # will be added to the HTTP request.
425
+ #
426
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
427
+ #
428
+ def begin_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
429
+ begin_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value!
430
+ end
431
+
432
+ #
433
+ # The operation to update the extension.
434
+ #
435
+ # @param resource_group_name [String] The name of the resource group.
436
+ # @param vm_name [String] The name of the virtual machine where the extension
437
+ # should be updated.
438
+ # @param vm_extension_name [String] The name of the virtual machine extension.
439
+ # @param extension_parameters [VirtualMachineExtensionUpdate] Parameters
440
+ # supplied to the Update Virtual Machine Extension operation.
441
+ # @param [Hash{String => String}] A hash of custom headers that will be added
442
+ # to the HTTP request.
443
+ #
444
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
445
+ #
446
+ def begin_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil)
447
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
448
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
449
+ fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
450
+ fail ArgumentError, 'extension_parameters is nil' if extension_parameters.nil?
451
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
452
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
453
+
454
+
455
+ request_headers = {}
456
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
457
+
458
+ # Set Headers
459
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
460
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
461
+
462
+ # Serialize Request
463
+ request_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtensionUpdate.mapper()
464
+ request_content = @client.serialize(request_mapper, extension_parameters)
465
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
466
+
467
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
468
+
469
+ request_url = @base_url || @client.base_url
470
+
471
+ options = {
472
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
473
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
474
+ query_params: {'api-version' => @client.api_version},
475
+ body: request_content,
476
+ headers: request_headers.merge(custom_headers || {}),
477
+ base_url: request_url
478
+ }
479
+ promise = @client.make_request_async(:patch, path_template, options)
480
+
481
+ promise = promise.then do |result|
482
+ http_response = result.response
483
+ status_code = http_response.status
484
+ response_content = http_response.body
485
+ unless status_code == 200
486
+ error_model = JSON.load(response_content)
487
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
488
+ end
489
+
490
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
491
+ # Deserialize Response
492
+ if status_code == 200
493
+ begin
494
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
495
+ result_mapper = Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineExtension.mapper()
496
+ result.body = @client.deserialize(result_mapper, parsed_response)
497
+ rescue Exception => e
498
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
499
+ end
500
+ end
501
+
502
+ result
503
+ end
504
+
505
+ promise.execute
506
+ end
507
+
345
508
  #
346
509
  # The operation to delete the extension.
347
510
  #