azure_mgmt_compute 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +1 -27
- data/azure_mgmt_compute.gemspec +1 -1
- data/lib/azure_mgmt_compute/availability_sets.rb +184 -141
- data/lib/azure_mgmt_compute/compute_management_client.rb +2 -2
- data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +1 -1
- data/lib/azure_mgmt_compute/models/api_entity_reference.rb +2 -3
- data/lib/azure_mgmt_compute/models/api_error.rb +1 -1
- data/lib/azure_mgmt_compute/models/api_error_base.rb +1 -1
- data/lib/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/availability_set_properties.rb +2 -2
- data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +3 -3
- data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/caching_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/component_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/data_disk.rb +1 -1
- data/lib/azure_mgmt_compute/models/data_disk_image.rb +1 -1
- data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +11 -2
- data/lib/azure_mgmt_compute/models/disk_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/hardware_profile.rb +9 -6
- data/lib/azure_mgmt_compute/models/image_reference.rb +1 -1
- data/lib/azure_mgmt_compute/models/inner_error.rb +1 -1
- data/lib/azure_mgmt_compute/models/instance_view_status.rb +4 -4
- data/lib/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +1 -1
- data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +1 -1
- data/lib/azure_mgmt_compute/models/linux_configuration.rb +1 -1
- data/lib/azure_mgmt_compute/models/list_usages_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/network_interface_reference.rb +1 -1
- data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/network_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/operating_system_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/osdisk.rb +1 -1
- data/lib/azure_mgmt_compute/models/osdisk_image.rb +1 -1
- data/lib/azure_mgmt_compute/models/osprofile.rb +1 -1
- data/lib/azure_mgmt_compute/models/pass_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/plan.rb +1 -1
- data/lib/azure_mgmt_compute/models/protocol_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/purchase_plan.rb +1 -1
- data/lib/azure_mgmt_compute/models/setting_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/sku.rb +1 -1
- data/lib/azure_mgmt_compute/models/ssh_configuration.rb +1 -1
- data/lib/azure_mgmt_compute/models/ssh_public_key.rb +1 -1
- data/lib/azure_mgmt_compute/models/status_level_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/storage_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/upgrade_mode.rb +1 -1
- data/lib/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
- data/lib/azure_mgmt_compute/models/usage.rb +1 -1
- data/lib/azure_mgmt_compute/models/usage_name.rb +1 -1
- data/lib/azure_mgmt_compute/models/vault_certificate.rb +1 -1
- data/lib/azure_mgmt_compute/models/vault_secret_group.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +20 -27
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +11 -11
- data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +8 -21
- data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +10 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +43 -12
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +11 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_size_types.rb +12 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
- data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +1 -1
- data/lib/azure_mgmt_compute/models/win_rmlistener.rb +1 -1
- data/lib/azure_mgmt_compute/models/windows_configuration.rb +1 -1
- data/lib/azure_mgmt_compute/module_definition.rb +1 -1
- data/lib/azure_mgmt_compute/usage_operations.rb +71 -11
- data/lib/azure_mgmt_compute/version.rb +2 -2
- data/lib/azure_mgmt_compute/virtual_machine_extension_images.rb +123 -18
- data/lib/azure_mgmt_compute/virtual_machine_extensions.rb +132 -22
- data/lib/azure_mgmt_compute/virtual_machine_images.rb +197 -26
- data/lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +419 -79
- data/lib/azure_mgmt_compute/virtual_machine_scale_sets.rb +736 -147
- data/lib/azure_mgmt_compute/virtual_machine_sizes.rb +36 -64
- data/lib/azure_mgmt_compute/virtual_machines.rb +531 -200
- data/lib/azure_mgmt_compute.rb +3 -6
- metadata +26 -24
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_result.rb +0 -123
- data/lib/azure_mgmt_compute/models/compute_operation_status.rb +0 -18
- data/lib/azure_mgmt_compute/models/delete_operation_result.rb +0 -110
- data/lib/azure_mgmt_compute/models/operation_status.rb +0 -17
data/lib/azure_mgmt_compute.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -110,14 +110,11 @@ module Azure::ARM::Compute
|
|
110
110
|
autoload :ApiErrorBase, 'azure_mgmt_compute/models/api_error_base.rb'
|
111
111
|
autoload :InnerError, 'azure_mgmt_compute/models/inner_error.rb'
|
112
112
|
autoload :ApiError, 'azure_mgmt_compute/models/api_error.rb'
|
113
|
-
autoload :DeleteOperationResult, 'azure_mgmt_compute/models/delete_operation_result.rb'
|
114
113
|
autoload :ComputeLongRunningOperationProperties, 'azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
|
115
|
-
autoload :ComputeLongRunningOperationResult, 'azure_mgmt_compute/models/compute_long_running_operation_result.rb'
|
116
114
|
autoload :AvailabilitySet, 'azure_mgmt_compute/models/availability_set.rb'
|
117
115
|
autoload :VirtualMachineExtensionImage, 'azure_mgmt_compute/models/virtual_machine_extension_image.rb'
|
118
116
|
autoload :VirtualMachineImageResource, 'azure_mgmt_compute/models/virtual_machine_image_resource.rb'
|
119
117
|
autoload :VirtualMachineExtension, 'azure_mgmt_compute/models/virtual_machine_extension.rb'
|
120
|
-
autoload :VirtualMachineImage, 'azure_mgmt_compute/models/virtual_machine_image.rb'
|
121
118
|
autoload :VirtualMachineCaptureResult, 'azure_mgmt_compute/models/virtual_machine_capture_result.rb'
|
122
119
|
autoload :NetworkInterfaceReference, 'azure_mgmt_compute/models/network_interface_reference.rb'
|
123
120
|
autoload :VirtualMachine, 'azure_mgmt_compute/models/virtual_machine.rb'
|
@@ -126,6 +123,7 @@ module Azure::ARM::Compute
|
|
126
123
|
autoload :VirtualMachineScaleSetExtension, 'azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb'
|
127
124
|
autoload :VirtualMachineScaleSet, 'azure_mgmt_compute/models/virtual_machine_scale_set.rb'
|
128
125
|
autoload :VirtualMachineScaleSetVM, 'azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb'
|
126
|
+
autoload :VirtualMachineImage, 'azure_mgmt_compute/models/virtual_machine_image.rb'
|
129
127
|
autoload :StatusLevelTypes, 'azure_mgmt_compute/models/status_level_types.rb'
|
130
128
|
autoload :OperatingSystemTypes, 'azure_mgmt_compute/models/operating_system_types.rb'
|
131
129
|
autoload :VirtualMachineSizeTypes, 'azure_mgmt_compute/models/virtual_machine_size_types.rb'
|
@@ -137,7 +135,6 @@ module Azure::ARM::Compute
|
|
137
135
|
autoload :ProtocolTypes, 'azure_mgmt_compute/models/protocol_types.rb'
|
138
136
|
autoload :UpgradeMode, 'azure_mgmt_compute/models/upgrade_mode.rb'
|
139
137
|
autoload :VirtualMachineScaleSetSkuScaleType, 'azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb'
|
140
|
-
autoload :
|
141
|
-
autoload :ComputeOperationStatus, 'azure_mgmt_compute/models/compute_operation_status.rb'
|
138
|
+
autoload :InstanceViewTypes, 'azure_mgmt_compute/models/instance_view_types.rb'
|
142
139
|
end
|
143
140
|
end
|
metadata
CHANGED
@@ -1,92 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_compute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: !binary |-
|
5
|
+
MC4zLjA=
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Microsoft Corporation
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-
|
12
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- -
|
18
|
+
- - ~>
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: '1.9'
|
20
21
|
type: :development
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
|
-
- -
|
25
|
+
- - ~>
|
25
26
|
- !ruby/object:Gem::Version
|
26
27
|
version: '1.9'
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: rake
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - ~>
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: '10'
|
34
35
|
type: :development
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- -
|
39
|
+
- - ~>
|
39
40
|
- !ruby/object:Gem::Version
|
40
41
|
version: '10'
|
41
42
|
- !ruby/object:Gem::Dependency
|
42
43
|
name: rspec
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
|
-
- -
|
46
|
+
- - ~>
|
46
47
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
+
version: !binary |-
|
49
|
+
Mw==
|
48
50
|
type: :development
|
49
51
|
prerelease: false
|
50
52
|
version_requirements: !ruby/object:Gem::Requirement
|
51
53
|
requirements:
|
52
|
-
- -
|
54
|
+
- - ~>
|
53
55
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
56
|
+
version: !binary |-
|
57
|
+
Mw==
|
55
58
|
- !ruby/object:Gem::Dependency
|
56
59
|
name: dotenv
|
57
60
|
requirement: !ruby/object:Gem::Requirement
|
58
61
|
requirements:
|
59
|
-
- -
|
62
|
+
- - ~>
|
60
63
|
- !ruby/object:Gem::Version
|
61
64
|
version: '2'
|
62
65
|
type: :development
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- -
|
69
|
+
- - ~>
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '2'
|
69
72
|
- !ruby/object:Gem::Dependency
|
70
73
|
name: ms_rest_azure
|
71
74
|
requirement: !ruby/object:Gem::Requirement
|
72
75
|
requirements:
|
73
|
-
- -
|
76
|
+
- - ~>
|
74
77
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
78
|
+
version: !binary |-
|
79
|
+
MC4yLjM=
|
76
80
|
type: :runtime
|
77
81
|
prerelease: false
|
78
82
|
version_requirements: !ruby/object:Gem::Requirement
|
79
83
|
requirements:
|
80
|
-
- -
|
84
|
+
- - ~>
|
81
85
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
86
|
+
version: !binary |-
|
87
|
+
MC4yLjM=
|
83
88
|
description: Microsoft Azure Compute Management Client Library for Ruby
|
84
89
|
email: azrubyteam@microsoft.com
|
85
90
|
executables: []
|
86
91
|
extensions: []
|
87
92
|
extra_rdoc_files: []
|
88
93
|
files:
|
89
|
-
-
|
94
|
+
- .rspec
|
90
95
|
- LICENSE.txt
|
91
96
|
- README.md
|
92
97
|
- Rakefile
|
@@ -106,11 +111,8 @@ files:
|
|
106
111
|
- lib/azure_mgmt_compute/models/caching_types.rb
|
107
112
|
- lib/azure_mgmt_compute/models/component_names.rb
|
108
113
|
- lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb
|
109
|
-
- lib/azure_mgmt_compute/models/compute_long_running_operation_result.rb
|
110
|
-
- lib/azure_mgmt_compute/models/compute_operation_status.rb
|
111
114
|
- lib/azure_mgmt_compute/models/data_disk.rb
|
112
115
|
- lib/azure_mgmt_compute/models/data_disk_image.rb
|
113
|
-
- lib/azure_mgmt_compute/models/delete_operation_result.rb
|
114
116
|
- lib/azure_mgmt_compute/models/diagnostics_profile.rb
|
115
117
|
- lib/azure_mgmt_compute/models/disk_create_option_types.rb
|
116
118
|
- lib/azure_mgmt_compute/models/disk_encryption_settings.rb
|
@@ -119,6 +121,7 @@ files:
|
|
119
121
|
- lib/azure_mgmt_compute/models/image_reference.rb
|
120
122
|
- lib/azure_mgmt_compute/models/inner_error.rb
|
121
123
|
- lib/azure_mgmt_compute/models/instance_view_status.rb
|
124
|
+
- lib/azure_mgmt_compute/models/instance_view_types.rb
|
122
125
|
- lib/azure_mgmt_compute/models/key_vault_key_reference.rb
|
123
126
|
- lib/azure_mgmt_compute/models/key_vault_secret_reference.rb
|
124
127
|
- lib/azure_mgmt_compute/models/linux_configuration.rb
|
@@ -127,7 +130,6 @@ files:
|
|
127
130
|
- lib/azure_mgmt_compute/models/network_interface_reference_properties.rb
|
128
131
|
- lib/azure_mgmt_compute/models/network_profile.rb
|
129
132
|
- lib/azure_mgmt_compute/models/operating_system_types.rb
|
130
|
-
- lib/azure_mgmt_compute/models/operation_status.rb
|
131
133
|
- lib/azure_mgmt_compute/models/osdisk.rb
|
132
134
|
- lib/azure_mgmt_compute/models/osdisk_image.rb
|
133
135
|
- lib/azure_mgmt_compute/models/osprofile.rb
|
@@ -221,17 +223,17 @@ require_paths:
|
|
221
223
|
- lib
|
222
224
|
required_ruby_version: !ruby/object:Gem::Requirement
|
223
225
|
requirements:
|
224
|
-
- -
|
226
|
+
- - ! '>='
|
225
227
|
- !ruby/object:Gem::Version
|
226
228
|
version: '0'
|
227
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
230
|
requirements:
|
229
|
-
- -
|
231
|
+
- - ! '>='
|
230
232
|
- !ruby/object:Gem::Version
|
231
233
|
version: '0'
|
232
234
|
requirements: []
|
233
235
|
rubyforge_project:
|
234
|
-
rubygems_version: 2.4.
|
236
|
+
rubygems_version: 2.4.5
|
235
237
|
signing_key:
|
236
238
|
specification_version: 4
|
237
239
|
summary: Official Ruby client library to consume Microsoft Azure Compute Management
|
@@ -1,123 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# The Compute service response for long-running operations.
|
10
|
-
#
|
11
|
-
class ComputeLongRunningOperationResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets the operation identifier.
|
16
|
-
attr_accessor :operation_id
|
17
|
-
|
18
|
-
# @return [ComputeOperationStatus] Gets the operation status. Possible
|
19
|
-
# values include: 'InProgress', 'Failed', 'Succeeded', 'Preempted'
|
20
|
-
attr_accessor :status
|
21
|
-
|
22
|
-
# @return [DateTime] Gets the operation start time
|
23
|
-
attr_accessor :start_time
|
24
|
-
|
25
|
-
# @return [DateTime] Gets the operation end time
|
26
|
-
attr_accessor :end_time
|
27
|
-
|
28
|
-
# @return [ComputeLongRunningOperationProperties]
|
29
|
-
attr_accessor :properties
|
30
|
-
|
31
|
-
# @return [ApiError] Gets the operation error, if any occurred.
|
32
|
-
attr_accessor :error
|
33
|
-
|
34
|
-
#
|
35
|
-
# Validate the object. Throws ValidationError if validation fails.
|
36
|
-
#
|
37
|
-
def validate
|
38
|
-
@properties.validate unless @properties.nil?
|
39
|
-
@error.validate unless @error.nil?
|
40
|
-
end
|
41
|
-
|
42
|
-
#
|
43
|
-
# Serializes given Model object into Ruby Hash.
|
44
|
-
# @param object Model object to serialize.
|
45
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
46
|
-
#
|
47
|
-
def self.serialize_object(object)
|
48
|
-
object.validate
|
49
|
-
output_object = {}
|
50
|
-
|
51
|
-
serialized_property = object.operation_id
|
52
|
-
output_object['operationId'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
|
-
serialized_property = object.status
|
55
|
-
output_object['status'] = serialized_property unless serialized_property.nil?
|
56
|
-
|
57
|
-
serialized_property = object.start_time
|
58
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
59
|
-
output_object['startTime'] = serialized_property unless serialized_property.nil?
|
60
|
-
|
61
|
-
serialized_property = object.end_time
|
62
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
63
|
-
output_object['endTime'] = serialized_property unless serialized_property.nil?
|
64
|
-
|
65
|
-
serialized_property = object.properties
|
66
|
-
unless serialized_property.nil?
|
67
|
-
serialized_property = ComputeLongRunningOperationProperties.serialize_object(serialized_property)
|
68
|
-
end
|
69
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
serialized_property = object.error
|
72
|
-
unless serialized_property.nil?
|
73
|
-
serialized_property = ApiError.serialize_object(serialized_property)
|
74
|
-
end
|
75
|
-
output_object['error'] = serialized_property unless serialized_property.nil?
|
76
|
-
|
77
|
-
output_object
|
78
|
-
end
|
79
|
-
|
80
|
-
#
|
81
|
-
# Deserializes given Ruby Hash into Model object.
|
82
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
83
|
-
# @return [ComputeLongRunningOperationResult] Deserialized object.
|
84
|
-
#
|
85
|
-
def self.deserialize_object(object)
|
86
|
-
return if object.nil?
|
87
|
-
output_object = ComputeLongRunningOperationResult.new
|
88
|
-
|
89
|
-
deserialized_property = object['operationId']
|
90
|
-
output_object.operation_id = deserialized_property
|
91
|
-
|
92
|
-
deserialized_property = object['status']
|
93
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
94
|
-
enum_is_valid = ComputeOperationStatus.constants.any? { |e| ComputeOperationStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
|
95
|
-
warn 'Enum ComputeOperationStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
96
|
-
end
|
97
|
-
output_object.status = deserialized_property
|
98
|
-
|
99
|
-
deserialized_property = object['startTime']
|
100
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
101
|
-
output_object.start_time = deserialized_property
|
102
|
-
|
103
|
-
deserialized_property = object['endTime']
|
104
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
105
|
-
output_object.end_time = deserialized_property
|
106
|
-
|
107
|
-
deserialized_property = object['properties']
|
108
|
-
unless deserialized_property.nil?
|
109
|
-
deserialized_property = ComputeLongRunningOperationProperties.deserialize_object(deserialized_property)
|
110
|
-
end
|
111
|
-
output_object.properties = deserialized_property
|
112
|
-
|
113
|
-
deserialized_property = object['error']
|
114
|
-
unless deserialized_property.nil?
|
115
|
-
deserialized_property = ApiError.deserialize_object(deserialized_property)
|
116
|
-
end
|
117
|
-
output_object.error = deserialized_property
|
118
|
-
|
119
|
-
output_object
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Defines values for ComputeOperationStatus
|
10
|
-
#
|
11
|
-
module ComputeOperationStatus
|
12
|
-
InProgress = "InProgress"
|
13
|
-
Failed = "Failed"
|
14
|
-
Succeeded = "Succeeded"
|
15
|
-
Preempted = "Preempted"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,110 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# The compute long running operation response.
|
10
|
-
#
|
11
|
-
class DeleteOperationResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets the operation identifier.
|
16
|
-
attr_accessor :operation_id
|
17
|
-
|
18
|
-
# @return [OperationStatus] Gets the operation status. Possible values
|
19
|
-
# include: 'InProgress', 'Succeeded', 'Failed'
|
20
|
-
attr_accessor :status
|
21
|
-
|
22
|
-
# @return [DateTime] Gets the operation start time
|
23
|
-
attr_accessor :start_time
|
24
|
-
|
25
|
-
# @return [DateTime] Gets the operation end time
|
26
|
-
attr_accessor :end_time
|
27
|
-
|
28
|
-
# @return [ApiError] Gets or sets the operation error if any occurred
|
29
|
-
attr_accessor :error
|
30
|
-
|
31
|
-
#
|
32
|
-
# Validate the object. Throws ValidationError if validation fails.
|
33
|
-
#
|
34
|
-
def validate
|
35
|
-
fail MsRest::ValidationError, 'property operation_id is nil' if @operation_id.nil?
|
36
|
-
fail MsRest::ValidationError, 'property status is nil' if @status.nil?
|
37
|
-
fail MsRest::ValidationError, 'property start_time is nil' if @start_time.nil?
|
38
|
-
@error.validate unless @error.nil?
|
39
|
-
end
|
40
|
-
|
41
|
-
#
|
42
|
-
# Serializes given Model object into Ruby Hash.
|
43
|
-
# @param object Model object to serialize.
|
44
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
45
|
-
#
|
46
|
-
def self.serialize_object(object)
|
47
|
-
object.validate
|
48
|
-
output_object = {}
|
49
|
-
|
50
|
-
serialized_property = object.operation_id
|
51
|
-
output_object['operationId'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.status
|
54
|
-
output_object['status'] = serialized_property unless serialized_property.nil?
|
55
|
-
|
56
|
-
serialized_property = object.start_time
|
57
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
58
|
-
output_object['startTime'] = serialized_property unless serialized_property.nil?
|
59
|
-
|
60
|
-
serialized_property = object.end_time
|
61
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
62
|
-
output_object['endTime'] = serialized_property unless serialized_property.nil?
|
63
|
-
|
64
|
-
serialized_property = object.error
|
65
|
-
unless serialized_property.nil?
|
66
|
-
serialized_property = ApiError.serialize_object(serialized_property)
|
67
|
-
end
|
68
|
-
output_object['error'] = serialized_property unless serialized_property.nil?
|
69
|
-
|
70
|
-
output_object
|
71
|
-
end
|
72
|
-
|
73
|
-
#
|
74
|
-
# Deserializes given Ruby Hash into Model object.
|
75
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
76
|
-
# @return [DeleteOperationResult] Deserialized object.
|
77
|
-
#
|
78
|
-
def self.deserialize_object(object)
|
79
|
-
return if object.nil?
|
80
|
-
output_object = DeleteOperationResult.new
|
81
|
-
|
82
|
-
deserialized_property = object['operationId']
|
83
|
-
output_object.operation_id = deserialized_property
|
84
|
-
|
85
|
-
deserialized_property = object['status']
|
86
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
87
|
-
enum_is_valid = OperationStatus.constants.any? { |e| OperationStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
|
88
|
-
warn 'Enum OperationStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
89
|
-
end
|
90
|
-
output_object.status = deserialized_property
|
91
|
-
|
92
|
-
deserialized_property = object['startTime']
|
93
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
94
|
-
output_object.start_time = deserialized_property
|
95
|
-
|
96
|
-
deserialized_property = object['endTime']
|
97
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
98
|
-
output_object.end_time = deserialized_property
|
99
|
-
|
100
|
-
deserialized_property = object['error']
|
101
|
-
unless deserialized_property.nil?
|
102
|
-
deserialized_property = ApiError.deserialize_object(deserialized_property)
|
103
|
-
end
|
104
|
-
output_object.error = deserialized_property
|
105
|
-
|
106
|
-
output_object
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Defines values for OperationStatus
|
10
|
-
#
|
11
|
-
module OperationStatus
|
12
|
-
InProgress = "InProgress"
|
13
|
-
Succeeded = "Succeeded"
|
14
|
-
Failed = "Failed"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|