azure_mgmt_resources 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_resources.gemspec +4 -4
- data/lib/azure_mgmt_resources.rb +3 -73
- data/lib/generated/azure_mgmt_resources.rb +77 -0
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/deployment_operations.rb +39 -15
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/deployments.rb +113 -60
- data/lib/generated/azure_mgmt_resources/models/alias_path_type.rb +61 -0
- data/lib/generated/azure_mgmt_resources/models/alias_type.rb +62 -0
- data/lib/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
- data/lib/generated/azure_mgmt_resources/models/debug_setting.rb +44 -0
- data/lib/generated/azure_mgmt_resources/models/dependency.rb +82 -0
- data/lib/generated/azure_mgmt_resources/models/deployment.rb +45 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_export_result.rb +44 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_list_result.rb +93 -0
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/models/deployment_mode.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operation.rb +65 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +117 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_properties.rb +103 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +179 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
- data/lib/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
- data/lib/generated/azure_mgmt_resources/models/generic_resource.rb +142 -0
- data/lib/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
- data/lib/generated/azure_mgmt_resources/models/http_message.rb +44 -0
- data/lib/generated/azure_mgmt_resources/models/identity.rb +68 -0
- data/lib/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
- data/lib/generated/azure_mgmt_resources/models/plan.rb +74 -0
- data/lib/generated/azure_mgmt_resources/models/provider.rb +83 -0
- data/lib/generated/azure_mgmt_resources/models/provider_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group.rb +97 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_export_result.rb +55 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
- data/lib/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
- data/lib/generated/azure_mgmt_resources/models/resource_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +82 -0
- data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
- data/lib/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
- data/lib/generated/azure_mgmt_resources/models/sku.rb +94 -0
- data/lib/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
- data/lib/generated/azure_mgmt_resources/models/tag_details.rb +83 -0
- data/lib/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
- data/lib/generated/azure_mgmt_resources/models/tags_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
- data/lib/generated/azure_mgmt_resources/models/template_link.rb +55 -0
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/providers.rb +70 -34
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resource_groups.rb +136 -68
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resource_management_client.rb +8 -12
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resources.rb +88 -43
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/tags.rb +46 -27
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/version.rb +1 -1
- metadata +76 -78
- data/lib/azure_mgmt_resources/models/basic_dependency.rb +0 -74
- data/lib/azure_mgmt_resources/models/debug_setting.rb +0 -56
- data/lib/azure_mgmt_resources/models/dependency.rb +0 -103
- data/lib/azure_mgmt_resources/models/deployment.rb +0 -62
- data/lib/azure_mgmt_resources/models/deployment_export_result.rb +0 -56
- data/lib/azure_mgmt_resources/models/deployment_extended.rb +0 -82
- data/lib/azure_mgmt_resources/models/deployment_extended_filter.rb +0 -56
- data/lib/azure_mgmt_resources/models/deployment_list_result.rb +0 -86
- data/lib/azure_mgmt_resources/models/deployment_operation.rb +0 -81
- data/lib/azure_mgmt_resources/models/deployment_operation_properties.rb +0 -141
- data/lib/azure_mgmt_resources/models/deployment_operations_list_result.rb +0 -86
- data/lib/azure_mgmt_resources/models/deployment_properties.rb +0 -131
- data/lib/azure_mgmt_resources/models/deployment_properties_extended.rb +0 -231
- data/lib/azure_mgmt_resources/models/deployment_validate_result.rb +0 -80
- data/lib/azure_mgmt_resources/models/export_template_request.rb +0 -69
- data/lib/azure_mgmt_resources/models/generic_resource.rb +0 -101
- data/lib/azure_mgmt_resources/models/generic_resource_filter.rb +0 -74
- data/lib/azure_mgmt_resources/models/http_message.rb +0 -56
- data/lib/azure_mgmt_resources/models/parameters_link.rb +0 -66
- data/lib/azure_mgmt_resources/models/plan.rb +0 -83
- data/lib/azure_mgmt_resources/models/provider.rb +0 -104
- data/lib/azure_mgmt_resources/models/provider_list_result.rb +0 -85
- data/lib/azure_mgmt_resources/models/provider_resource_type.rb +0 -86
- data/lib/azure_mgmt_resources/models/resource_group.rb +0 -104
- data/lib/azure_mgmt_resources/models/resource_group_export_result.rb +0 -71
- data/lib/azure_mgmt_resources/models/resource_group_filter.rb +0 -65
- data/lib/azure_mgmt_resources/models/resource_group_list_result.rb +0 -87
- data/lib/azure_mgmt_resources/models/resource_group_properties.rb +0 -56
- data/lib/azure_mgmt_resources/models/resource_list_result.rb +0 -87
- data/lib/azure_mgmt_resources/models/resource_management_error_with_details.rb +0 -107
- data/lib/azure_mgmt_resources/models/resource_provider_operation_definition.rb +0 -72
- data/lib/azure_mgmt_resources/models/resource_provider_operation_detail_list_result.rb +0 -78
- data/lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +0 -93
- data/lib/azure_mgmt_resources/models/resources_move_info.rb +0 -65
- data/lib/azure_mgmt_resources/models/tag_count.rb +0 -65
- data/lib/azure_mgmt_resources/models/tag_details.rb +0 -110
- data/lib/azure_mgmt_resources/models/tag_value.rb +0 -80
- data/lib/azure_mgmt_resources/models/tags_list_result.rb +0 -86
- data/lib/azure_mgmt_resources/models/target_resource.rb +0 -74
- data/lib/azure_mgmt_resources/models/template_link.rb +0 -66
- data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +0 -233
@@ -1,87 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Resources
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# List of resource groups.
|
10
|
-
#
|
11
|
-
class ResourceListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<GenericResource>] Gets or sets the list of resource
|
16
|
-
# groups.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the URL to get the next set of results.
|
20
|
-
attr_accessor :next_link
|
21
|
-
|
22
|
-
#
|
23
|
-
# Validate the object. Throws ValidationError if validation fails.
|
24
|
-
#
|
25
|
-
def validate
|
26
|
-
fail MsRest::ValidationError, 'property next_link is nil' if @next_link.nil?
|
27
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
28
|
-
end
|
29
|
-
|
30
|
-
#
|
31
|
-
# Serializes given Model object into Ruby Hash.
|
32
|
-
# @param object Model object to serialize.
|
33
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
34
|
-
#
|
35
|
-
def self.serialize_object(object)
|
36
|
-
object.validate
|
37
|
-
output_object = {}
|
38
|
-
|
39
|
-
serialized_property = object.next_link
|
40
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
41
|
-
|
42
|
-
serialized_property = object.value
|
43
|
-
unless serialized_property.nil?
|
44
|
-
serializedArray = []
|
45
|
-
serialized_property.each do |element|
|
46
|
-
unless element.nil?
|
47
|
-
element = GenericResource.serialize_object(element)
|
48
|
-
end
|
49
|
-
serializedArray.push(element)
|
50
|
-
end
|
51
|
-
serialized_property = serializedArray
|
52
|
-
end
|
53
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
54
|
-
|
55
|
-
output_object
|
56
|
-
end
|
57
|
-
|
58
|
-
#
|
59
|
-
# Deserializes given Ruby Hash into Model object.
|
60
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
61
|
-
# @return [ResourceListResult] Deserialized object.
|
62
|
-
#
|
63
|
-
def self.deserialize_object(object)
|
64
|
-
return if object.nil?
|
65
|
-
output_object = ResourceListResult.new
|
66
|
-
|
67
|
-
deserialized_property = object['nextLink']
|
68
|
-
output_object.next_link = deserialized_property
|
69
|
-
|
70
|
-
deserialized_property = object['value']
|
71
|
-
unless deserialized_property.nil?
|
72
|
-
deserialized_array = []
|
73
|
-
deserialized_property.each do |element1|
|
74
|
-
unless element1.nil?
|
75
|
-
element1 = GenericResource.deserialize_object(element1)
|
76
|
-
end
|
77
|
-
deserialized_array.push(element1)
|
78
|
-
end
|
79
|
-
deserialized_property = deserialized_array
|
80
|
-
end
|
81
|
-
output_object.value = deserialized_property
|
82
|
-
|
83
|
-
output_object
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
@@ -1,107 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Resources
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Model object.
|
10
|
-
#
|
11
|
-
class ResourceManagementErrorWithDetails
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the error code returned from the server.
|
16
|
-
attr_accessor :code
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the error message returned from the
|
19
|
-
# server.
|
20
|
-
attr_accessor :message
|
21
|
-
|
22
|
-
# @return [String] Gets or sets the target of the error.
|
23
|
-
attr_accessor :target
|
24
|
-
|
25
|
-
# @return [Array<ResourceManagementErrorWithDetails>] Gets or sets
|
26
|
-
# validation error.
|
27
|
-
attr_accessor :details
|
28
|
-
|
29
|
-
#
|
30
|
-
# Validate the object. Throws ValidationError if validation fails.
|
31
|
-
#
|
32
|
-
def validate
|
33
|
-
fail MsRest::ValidationError, 'property code is nil' if @code.nil?
|
34
|
-
fail MsRest::ValidationError, 'property message is nil' if @message.nil?
|
35
|
-
@details.each{ |e| e.validate if e.respond_to?(:validate) } unless @details.nil?
|
36
|
-
end
|
37
|
-
|
38
|
-
#
|
39
|
-
# Serializes given Model object into Ruby Hash.
|
40
|
-
# @param object Model object to serialize.
|
41
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
42
|
-
#
|
43
|
-
def self.serialize_object(object)
|
44
|
-
object.validate
|
45
|
-
output_object = {}
|
46
|
-
|
47
|
-
serialized_property = object.code
|
48
|
-
output_object['code'] = serialized_property unless serialized_property.nil?
|
49
|
-
|
50
|
-
serialized_property = object.message
|
51
|
-
output_object['message'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.target
|
54
|
-
output_object['target'] = serialized_property unless serialized_property.nil?
|
55
|
-
|
56
|
-
serialized_property = object.details
|
57
|
-
unless serialized_property.nil?
|
58
|
-
serializedArray = []
|
59
|
-
serialized_property.each do |element|
|
60
|
-
unless element.nil?
|
61
|
-
element = ResourceManagementErrorWithDetails.serialize_object(element)
|
62
|
-
end
|
63
|
-
serializedArray.push(element)
|
64
|
-
end
|
65
|
-
serialized_property = serializedArray
|
66
|
-
end
|
67
|
-
output_object['details'] = serialized_property unless serialized_property.nil?
|
68
|
-
|
69
|
-
output_object
|
70
|
-
end
|
71
|
-
|
72
|
-
#
|
73
|
-
# Deserializes given Ruby Hash into Model object.
|
74
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
75
|
-
# @return [ResourceManagementErrorWithDetails] Deserialized object.
|
76
|
-
#
|
77
|
-
def self.deserialize_object(object)
|
78
|
-
return if object.nil?
|
79
|
-
output_object = ResourceManagementErrorWithDetails.new
|
80
|
-
|
81
|
-
deserialized_property = object['code']
|
82
|
-
output_object.code = deserialized_property
|
83
|
-
|
84
|
-
deserialized_property = object['message']
|
85
|
-
output_object.message = deserialized_property
|
86
|
-
|
87
|
-
deserialized_property = object['target']
|
88
|
-
output_object.target = deserialized_property
|
89
|
-
|
90
|
-
deserialized_property = object['details']
|
91
|
-
unless deserialized_property.nil?
|
92
|
-
deserialized_array = []
|
93
|
-
deserialized_property.each do |element1|
|
94
|
-
unless element1.nil?
|
95
|
-
element1 = ResourceManagementErrorWithDetails.deserialize_object(element1)
|
96
|
-
end
|
97
|
-
deserialized_array.push(element1)
|
98
|
-
end
|
99
|
-
deserialized_property = deserialized_array
|
100
|
-
end
|
101
|
-
output_object.details = deserialized_property
|
102
|
-
|
103
|
-
output_object
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Resources
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Resource provider operation information.
|
10
|
-
#
|
11
|
-
class ResourceProviderOperationDefinition
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the provider operation name.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [ResourceProviderOperationDisplayProperties] Gets or sets the
|
19
|
-
# display property of the provider operation.
|
20
|
-
attr_accessor :display
|
21
|
-
|
22
|
-
#
|
23
|
-
# Validate the object. Throws ValidationError if validation fails.
|
24
|
-
#
|
25
|
-
def validate
|
26
|
-
@display.validate unless @display.nil?
|
27
|
-
end
|
28
|
-
|
29
|
-
#
|
30
|
-
# Serializes given Model object into Ruby Hash.
|
31
|
-
# @param object Model object to serialize.
|
32
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
-
#
|
34
|
-
def self.serialize_object(object)
|
35
|
-
object.validate
|
36
|
-
output_object = {}
|
37
|
-
|
38
|
-
serialized_property = object.name
|
39
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
40
|
-
|
41
|
-
serialized_property = object.display
|
42
|
-
unless serialized_property.nil?
|
43
|
-
serialized_property = ResourceProviderOperationDisplayProperties.serialize_object(serialized_property)
|
44
|
-
end
|
45
|
-
output_object['display'] = serialized_property unless serialized_property.nil?
|
46
|
-
|
47
|
-
output_object
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
# Deserializes given Ruby Hash into Model object.
|
52
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
53
|
-
# @return [ResourceProviderOperationDefinition] Deserialized object.
|
54
|
-
#
|
55
|
-
def self.deserialize_object(object)
|
56
|
-
return if object.nil?
|
57
|
-
output_object = ResourceProviderOperationDefinition.new
|
58
|
-
|
59
|
-
deserialized_property = object['name']
|
60
|
-
output_object.name = deserialized_property
|
61
|
-
|
62
|
-
deserialized_property = object['display']
|
63
|
-
unless deserialized_property.nil?
|
64
|
-
deserialized_property = ResourceProviderOperationDisplayProperties.deserialize_object(deserialized_property)
|
65
|
-
end
|
66
|
-
output_object.display = deserialized_property
|
67
|
-
|
68
|
-
output_object
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
@@ -1,78 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Resources
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# List of resource provider operations.
|
10
|
-
#
|
11
|
-
class ResourceProviderOperationDetailListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<ResourceProviderOperationDefinition>] Gets or sets the
|
16
|
-
# list of resource provider operations.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
24
|
-
end
|
25
|
-
|
26
|
-
#
|
27
|
-
# Serializes given Model object into Ruby Hash.
|
28
|
-
# @param object Model object to serialize.
|
29
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
30
|
-
#
|
31
|
-
def self.serialize_object(object)
|
32
|
-
object.validate
|
33
|
-
output_object = {}
|
34
|
-
|
35
|
-
serialized_property = object.value
|
36
|
-
unless serialized_property.nil?
|
37
|
-
serializedArray = []
|
38
|
-
serialized_property.each do |element|
|
39
|
-
unless element.nil?
|
40
|
-
element = ResourceProviderOperationDefinition.serialize_object(element)
|
41
|
-
end
|
42
|
-
serializedArray.push(element)
|
43
|
-
end
|
44
|
-
serialized_property = serializedArray
|
45
|
-
end
|
46
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
47
|
-
|
48
|
-
output_object
|
49
|
-
end
|
50
|
-
|
51
|
-
#
|
52
|
-
# Deserializes given Ruby Hash into Model object.
|
53
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
54
|
-
# @return [ResourceProviderOperationDetailListResult] Deserialized
|
55
|
-
# object.
|
56
|
-
#
|
57
|
-
def self.deserialize_object(object)
|
58
|
-
return if object.nil?
|
59
|
-
output_object = ResourceProviderOperationDetailListResult.new
|
60
|
-
|
61
|
-
deserialized_property = object['value']
|
62
|
-
unless deserialized_property.nil?
|
63
|
-
deserialized_array = []
|
64
|
-
deserialized_property.each do |element1|
|
65
|
-
unless element1.nil?
|
66
|
-
element1 = ResourceProviderOperationDefinition.deserialize_object(element1)
|
67
|
-
end
|
68
|
-
deserialized_array.push(element1)
|
69
|
-
end
|
70
|
-
deserialized_property = deserialized_array
|
71
|
-
end
|
72
|
-
output_object.value = deserialized_property
|
73
|
-
|
74
|
-
output_object
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
@@ -1,93 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Resources
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Resource provider operation's display properties.
|
10
|
-
#
|
11
|
-
class ResourceProviderOperationDisplayProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets operation description.
|
16
|
-
attr_accessor :publisher
|
17
|
-
|
18
|
-
# @return [String] Gets or sets operation provider.
|
19
|
-
attr_accessor :provider
|
20
|
-
|
21
|
-
# @return [String] Gets or sets operation resource.
|
22
|
-
attr_accessor :resource
|
23
|
-
|
24
|
-
# @return [String] Gets or sets operation.
|
25
|
-
attr_accessor :operation
|
26
|
-
|
27
|
-
# @return [String] Gets or sets operation description.
|
28
|
-
attr_accessor :description
|
29
|
-
|
30
|
-
#
|
31
|
-
# Validate the object. Throws ValidationError if validation fails.
|
32
|
-
#
|
33
|
-
def validate
|
34
|
-
# Nothing to validate
|
35
|
-
end
|
36
|
-
|
37
|
-
#
|
38
|
-
# Serializes given Model object into Ruby Hash.
|
39
|
-
# @param object Model object to serialize.
|
40
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
41
|
-
#
|
42
|
-
def self.serialize_object(object)
|
43
|
-
object.validate
|
44
|
-
output_object = {}
|
45
|
-
|
46
|
-
serialized_property = object.publisher
|
47
|
-
output_object['publisher'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
serialized_property = object.provider
|
50
|
-
output_object['provider'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
serialized_property = object.resource
|
53
|
-
output_object['resource'] = serialized_property unless serialized_property.nil?
|
54
|
-
|
55
|
-
serialized_property = object.operation
|
56
|
-
output_object['operation'] = serialized_property unless serialized_property.nil?
|
57
|
-
|
58
|
-
serialized_property = object.description
|
59
|
-
output_object['description'] = serialized_property unless serialized_property.nil?
|
60
|
-
|
61
|
-
output_object
|
62
|
-
end
|
63
|
-
|
64
|
-
#
|
65
|
-
# Deserializes given Ruby Hash into Model object.
|
66
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
67
|
-
# @return [ResourceProviderOperationDisplayProperties] Deserialized
|
68
|
-
# object.
|
69
|
-
#
|
70
|
-
def self.deserialize_object(object)
|
71
|
-
return if object.nil?
|
72
|
-
output_object = ResourceProviderOperationDisplayProperties.new
|
73
|
-
|
74
|
-
deserialized_property = object['publisher']
|
75
|
-
output_object.publisher = deserialized_property
|
76
|
-
|
77
|
-
deserialized_property = object['provider']
|
78
|
-
output_object.provider = deserialized_property
|
79
|
-
|
80
|
-
deserialized_property = object['resource']
|
81
|
-
output_object.resource = deserialized_property
|
82
|
-
|
83
|
-
deserialized_property = object['operation']
|
84
|
-
output_object.operation = deserialized_property
|
85
|
-
|
86
|
-
deserialized_property = object['description']
|
87
|
-
output_object.description = deserialized_property
|
88
|
-
|
89
|
-
output_object
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Resources
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Parameters of move resources.
|
10
|
-
#
|
11
|
-
class ResourcesMoveInfo
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<String>] Gets or sets the ids of the resources.
|
16
|
-
attr_accessor :resources
|
17
|
-
|
18
|
-
# @return [String] The target resource group.
|
19
|
-
attr_accessor :target_resource_group
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
@resources.each{ |e| e.validate if e.respond_to?(:validate) } unless @resources.nil?
|
26
|
-
end
|
27
|
-
|
28
|
-
#
|
29
|
-
# Serializes given Model object into Ruby Hash.
|
30
|
-
# @param object Model object to serialize.
|
31
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
-
#
|
33
|
-
def self.serialize_object(object)
|
34
|
-
object.validate
|
35
|
-
output_object = {}
|
36
|
-
|
37
|
-
serialized_property = object.resources
|
38
|
-
output_object['resources'] = serialized_property unless serialized_property.nil?
|
39
|
-
|
40
|
-
serialized_property = object.target_resource_group
|
41
|
-
output_object['targetResourceGroup'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
output_object
|
44
|
-
end
|
45
|
-
|
46
|
-
#
|
47
|
-
# Deserializes given Ruby Hash into Model object.
|
48
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
49
|
-
# @return [ResourcesMoveInfo] Deserialized object.
|
50
|
-
#
|
51
|
-
def self.deserialize_object(object)
|
52
|
-
return if object.nil?
|
53
|
-
output_object = ResourcesMoveInfo.new
|
54
|
-
|
55
|
-
deserialized_property = object['resources']
|
56
|
-
output_object.resources = deserialized_property
|
57
|
-
|
58
|
-
deserialized_property = object['targetResourceGroup']
|
59
|
-
output_object.target_resource_group = deserialized_property
|
60
|
-
|
61
|
-
output_object
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|