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.
- checksums.yaml +4 -4
- data/lib/2015-06-15/generated/azure_mgmt_compute.rb +5 -3
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
- data/lib/2016-03-30/generated/azure_mgmt_compute.rb +28 -25
- data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute.rb +35 -32
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute.rb +69 -67
- data/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
- data/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/images.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +169 -6
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +99 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute.rb +75 -64
- data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/auto_osupgrade_policy.rb +47 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb +1 -10
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +7 -7
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_update.rb +1 -3
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +7 -7
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +13 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +3 -3
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +14 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +202 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute.rb +56 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +136 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/disks.rb +1304 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/access_level.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/creation_data.rb +97 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk.rb +207 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_sku.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_update.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/encryption_settings.rb +76 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/operation_status_response.rb +96 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/resource.rb +101 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/resource_update.rb +66 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot.rb +187 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_sku.rb +61 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_update.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/storage_account_types.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/snapshots.rb +1304 -0
- data/lib/azure_mgmt_compute.rb +1 -0
- data/lib/profiles/latest/modules/compute_profile_module.rb +303 -251
- data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +90 -78
- data/lib/version.rb +1 -1
- metadata +55 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e3741e2b04d5ada65091923da357aaf8e7c6792
|
4
|
+
data.tar.gz: 6e5013b7ad88b3b524196746df2e6e4d2ea99841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 :
|
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 :
|
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
|
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
|
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
|
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
|
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
|
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
|
#
|