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,86 +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 deployments.
|
10
|
-
#
|
11
|
-
class DeploymentListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<DeploymentExtended>] Gets or sets the list of
|
16
|
-
# deployments.
|
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
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.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.value
|
39
|
-
unless serialized_property.nil?
|
40
|
-
serializedArray = []
|
41
|
-
serialized_property.each do |element|
|
42
|
-
unless element.nil?
|
43
|
-
element = DeploymentExtended.serialize_object(element)
|
44
|
-
end
|
45
|
-
serializedArray.push(element)
|
46
|
-
end
|
47
|
-
serialized_property = serializedArray
|
48
|
-
end
|
49
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
50
|
-
|
51
|
-
serialized_property = object.next_link
|
52
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
|
-
output_object
|
55
|
-
end
|
56
|
-
|
57
|
-
#
|
58
|
-
# Deserializes given Ruby Hash into Model object.
|
59
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
60
|
-
# @return [DeploymentListResult] Deserialized object.
|
61
|
-
#
|
62
|
-
def self.deserialize_object(object)
|
63
|
-
return if object.nil?
|
64
|
-
output_object = DeploymentListResult.new
|
65
|
-
|
66
|
-
deserialized_property = object['value']
|
67
|
-
unless deserialized_property.nil?
|
68
|
-
deserialized_array = []
|
69
|
-
deserialized_property.each do |element1|
|
70
|
-
unless element1.nil?
|
71
|
-
element1 = DeploymentExtended.deserialize_object(element1)
|
72
|
-
end
|
73
|
-
deserialized_array.push(element1)
|
74
|
-
end
|
75
|
-
deserialized_property = deserialized_array
|
76
|
-
end
|
77
|
-
output_object.value = deserialized_property
|
78
|
-
|
79
|
-
deserialized_property = object['nextLink']
|
80
|
-
output_object.next_link = deserialized_property
|
81
|
-
|
82
|
-
output_object
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,81 +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
|
-
# Deployment operation information.
|
10
|
-
#
|
11
|
-
class DeploymentOperation
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets full deployment operation id.
|
16
|
-
attr_accessor :id
|
17
|
-
|
18
|
-
# @return [String] Gets or sets deployment operation id.
|
19
|
-
attr_accessor :operation_id
|
20
|
-
|
21
|
-
# @return [DeploymentOperationProperties] Gets or sets deployment
|
22
|
-
# properties.
|
23
|
-
attr_accessor :properties
|
24
|
-
|
25
|
-
#
|
26
|
-
# Validate the object. Throws ValidationError if validation fails.
|
27
|
-
#
|
28
|
-
def validate
|
29
|
-
@properties.validate unless @properties.nil?
|
30
|
-
end
|
31
|
-
|
32
|
-
#
|
33
|
-
# Serializes given Model object into Ruby Hash.
|
34
|
-
# @param object Model object to serialize.
|
35
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
36
|
-
#
|
37
|
-
def self.serialize_object(object)
|
38
|
-
object.validate
|
39
|
-
output_object = {}
|
40
|
-
|
41
|
-
serialized_property = object.id
|
42
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
43
|
-
|
44
|
-
serialized_property = object.operation_id
|
45
|
-
output_object['operationId'] = serialized_property unless serialized_property.nil?
|
46
|
-
|
47
|
-
serialized_property = object.properties
|
48
|
-
unless serialized_property.nil?
|
49
|
-
serialized_property = DeploymentOperationProperties.serialize_object(serialized_property)
|
50
|
-
end
|
51
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
output_object
|
54
|
-
end
|
55
|
-
|
56
|
-
#
|
57
|
-
# Deserializes given Ruby Hash into Model object.
|
58
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
59
|
-
# @return [DeploymentOperation] Deserialized object.
|
60
|
-
#
|
61
|
-
def self.deserialize_object(object)
|
62
|
-
return if object.nil?
|
63
|
-
output_object = DeploymentOperation.new
|
64
|
-
|
65
|
-
deserialized_property = object['id']
|
66
|
-
output_object.id = deserialized_property
|
67
|
-
|
68
|
-
deserialized_property = object['operationId']
|
69
|
-
output_object.operation_id = deserialized_property
|
70
|
-
|
71
|
-
deserialized_property = object['properties']
|
72
|
-
unless deserialized_property.nil?
|
73
|
-
deserialized_property = DeploymentOperationProperties.deserialize_object(deserialized_property)
|
74
|
-
end
|
75
|
-
output_object.properties = deserialized_property
|
76
|
-
|
77
|
-
output_object
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
@@ -1,141 +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
|
-
# Deployment operation properties.
|
10
|
-
#
|
11
|
-
class DeploymentOperationProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the state of the provisioning.
|
16
|
-
attr_accessor :provisioning_state
|
17
|
-
|
18
|
-
# @return [DateTime] Gets or sets the date and time of the operation.
|
19
|
-
attr_accessor :timestamp
|
20
|
-
|
21
|
-
# @return [String] Gets or sets deployment operation service request id.
|
22
|
-
attr_accessor :service_request_id
|
23
|
-
|
24
|
-
# @return [String] Gets or sets operation status code.
|
25
|
-
attr_accessor :status_code
|
26
|
-
|
27
|
-
# @return Gets or sets operation status message.
|
28
|
-
attr_accessor :status_message
|
29
|
-
|
30
|
-
# @return [TargetResource] Gets or sets the target resource.
|
31
|
-
attr_accessor :target_resource
|
32
|
-
|
33
|
-
# @return [HttpMessage] Gets or sets the HTTP request message.
|
34
|
-
attr_accessor :request
|
35
|
-
|
36
|
-
# @return [HttpMessage] Gets or sets the HTTP response message.
|
37
|
-
attr_accessor :response
|
38
|
-
|
39
|
-
#
|
40
|
-
# Validate the object. Throws ValidationError if validation fails.
|
41
|
-
#
|
42
|
-
def validate
|
43
|
-
@target_resource.validate unless @target_resource.nil?
|
44
|
-
@request.validate unless @request.nil?
|
45
|
-
@response.validate unless @response.nil?
|
46
|
-
end
|
47
|
-
|
48
|
-
#
|
49
|
-
# Serializes given Model object into Ruby Hash.
|
50
|
-
# @param object Model object to serialize.
|
51
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
52
|
-
#
|
53
|
-
def self.serialize_object(object)
|
54
|
-
object.validate
|
55
|
-
output_object = {}
|
56
|
-
|
57
|
-
serialized_property = object.provisioning_state
|
58
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
59
|
-
|
60
|
-
serialized_property = object.timestamp
|
61
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
62
|
-
output_object['timestamp'] = serialized_property unless serialized_property.nil?
|
63
|
-
|
64
|
-
serialized_property = object.service_request_id
|
65
|
-
output_object['serviceRequestId'] = serialized_property unless serialized_property.nil?
|
66
|
-
|
67
|
-
serialized_property = object.status_code
|
68
|
-
output_object['statusCode'] = serialized_property unless serialized_property.nil?
|
69
|
-
|
70
|
-
serialized_property = object.status_message
|
71
|
-
output_object['statusMessage'] = serialized_property unless serialized_property.nil?
|
72
|
-
|
73
|
-
serialized_property = object.target_resource
|
74
|
-
unless serialized_property.nil?
|
75
|
-
serialized_property = TargetResource.serialize_object(serialized_property)
|
76
|
-
end
|
77
|
-
output_object['targetResource'] = serialized_property unless serialized_property.nil?
|
78
|
-
|
79
|
-
serialized_property = object.request
|
80
|
-
unless serialized_property.nil?
|
81
|
-
serialized_property = HttpMessage.serialize_object(serialized_property)
|
82
|
-
end
|
83
|
-
output_object['request'] = serialized_property unless serialized_property.nil?
|
84
|
-
|
85
|
-
serialized_property = object.response
|
86
|
-
unless serialized_property.nil?
|
87
|
-
serialized_property = HttpMessage.serialize_object(serialized_property)
|
88
|
-
end
|
89
|
-
output_object['response'] = serialized_property unless serialized_property.nil?
|
90
|
-
|
91
|
-
output_object
|
92
|
-
end
|
93
|
-
|
94
|
-
#
|
95
|
-
# Deserializes given Ruby Hash into Model object.
|
96
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
97
|
-
# @return [DeploymentOperationProperties] Deserialized object.
|
98
|
-
#
|
99
|
-
def self.deserialize_object(object)
|
100
|
-
return if object.nil?
|
101
|
-
output_object = DeploymentOperationProperties.new
|
102
|
-
|
103
|
-
deserialized_property = object['provisioningState']
|
104
|
-
output_object.provisioning_state = deserialized_property
|
105
|
-
|
106
|
-
deserialized_property = object['timestamp']
|
107
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
108
|
-
output_object.timestamp = deserialized_property
|
109
|
-
|
110
|
-
deserialized_property = object['serviceRequestId']
|
111
|
-
output_object.service_request_id = deserialized_property
|
112
|
-
|
113
|
-
deserialized_property = object['statusCode']
|
114
|
-
output_object.status_code = deserialized_property
|
115
|
-
|
116
|
-
deserialized_property = object['statusMessage']
|
117
|
-
output_object.status_message = deserialized_property
|
118
|
-
|
119
|
-
deserialized_property = object['targetResource']
|
120
|
-
unless deserialized_property.nil?
|
121
|
-
deserialized_property = TargetResource.deserialize_object(deserialized_property)
|
122
|
-
end
|
123
|
-
output_object.target_resource = deserialized_property
|
124
|
-
|
125
|
-
deserialized_property = object['request']
|
126
|
-
unless deserialized_property.nil?
|
127
|
-
deserialized_property = HttpMessage.deserialize_object(deserialized_property)
|
128
|
-
end
|
129
|
-
output_object.request = deserialized_property
|
130
|
-
|
131
|
-
deserialized_property = object['response']
|
132
|
-
unless deserialized_property.nil?
|
133
|
-
deserialized_property = HttpMessage.deserialize_object(deserialized_property)
|
134
|
-
end
|
135
|
-
output_object.response = deserialized_property
|
136
|
-
|
137
|
-
output_object
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
@@ -1,86 +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 deployment operations.
|
10
|
-
#
|
11
|
-
class DeploymentOperationsListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<DeploymentOperation>] Gets or sets the list of
|
16
|
-
# deployments.
|
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
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.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.value
|
39
|
-
unless serialized_property.nil?
|
40
|
-
serializedArray = []
|
41
|
-
serialized_property.each do |element|
|
42
|
-
unless element.nil?
|
43
|
-
element = DeploymentOperation.serialize_object(element)
|
44
|
-
end
|
45
|
-
serializedArray.push(element)
|
46
|
-
end
|
47
|
-
serialized_property = serializedArray
|
48
|
-
end
|
49
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
50
|
-
|
51
|
-
serialized_property = object.next_link
|
52
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
|
-
output_object
|
55
|
-
end
|
56
|
-
|
57
|
-
#
|
58
|
-
# Deserializes given Ruby Hash into Model object.
|
59
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
60
|
-
# @return [DeploymentOperationsListResult] Deserialized object.
|
61
|
-
#
|
62
|
-
def self.deserialize_object(object)
|
63
|
-
return if object.nil?
|
64
|
-
output_object = DeploymentOperationsListResult.new
|
65
|
-
|
66
|
-
deserialized_property = object['value']
|
67
|
-
unless deserialized_property.nil?
|
68
|
-
deserialized_array = []
|
69
|
-
deserialized_property.each do |element1|
|
70
|
-
unless element1.nil?
|
71
|
-
element1 = DeploymentOperation.deserialize_object(element1)
|
72
|
-
end
|
73
|
-
deserialized_array.push(element1)
|
74
|
-
end
|
75
|
-
deserialized_property = deserialized_array
|
76
|
-
end
|
77
|
-
output_object.value = deserialized_property
|
78
|
-
|
79
|
-
deserialized_property = object['nextLink']
|
80
|
-
output_object.next_link = deserialized_property
|
81
|
-
|
82
|
-
output_object
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,131 +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
|
-
# Deployment properties.
|
10
|
-
#
|
11
|
-
class DeploymentProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return Gets or sets the template content. Use only one of Template or
|
16
|
-
# TemplateLink.
|
17
|
-
attr_accessor :template
|
18
|
-
|
19
|
-
# @return [TemplateLink] Gets or sets the URI referencing the template.
|
20
|
-
# Use only one of Template or TemplateLink.
|
21
|
-
attr_accessor :template_link
|
22
|
-
|
23
|
-
# @return Deployment parameters. Use only one of Parameters or
|
24
|
-
# ParametersLink.
|
25
|
-
attr_accessor :parameters
|
26
|
-
|
27
|
-
# @return [ParametersLink] Gets or sets the URI referencing the
|
28
|
-
# parameters. Use only one of Parameters or ParametersLink.
|
29
|
-
attr_accessor :parameters_link
|
30
|
-
|
31
|
-
# @return [DeploymentMode] Gets or sets the deployment mode. Possible
|
32
|
-
# values include: 'Incremental', 'Complete'
|
33
|
-
attr_accessor :mode
|
34
|
-
|
35
|
-
# @return [DebugSetting] Gets or sets the debug setting of the
|
36
|
-
# deployment.
|
37
|
-
attr_accessor :debug_setting
|
38
|
-
|
39
|
-
#
|
40
|
-
# Validate the object. Throws ValidationError if validation fails.
|
41
|
-
#
|
42
|
-
def validate
|
43
|
-
@template_link.validate unless @template_link.nil?
|
44
|
-
@parameters_link.validate unless @parameters_link.nil?
|
45
|
-
@debug_setting.validate unless @debug_setting.nil?
|
46
|
-
end
|
47
|
-
|
48
|
-
#
|
49
|
-
# Serializes given Model object into Ruby Hash.
|
50
|
-
# @param object Model object to serialize.
|
51
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
52
|
-
#
|
53
|
-
def self.serialize_object(object)
|
54
|
-
object.validate
|
55
|
-
output_object = {}
|
56
|
-
|
57
|
-
serialized_property = object.template
|
58
|
-
output_object['template'] = serialized_property unless serialized_property.nil?
|
59
|
-
|
60
|
-
serialized_property = object.template_link
|
61
|
-
unless serialized_property.nil?
|
62
|
-
serialized_property = TemplateLink.serialize_object(serialized_property)
|
63
|
-
end
|
64
|
-
output_object['templateLink'] = serialized_property unless serialized_property.nil?
|
65
|
-
|
66
|
-
serialized_property = object.parameters
|
67
|
-
output_object['parameters'] = serialized_property unless serialized_property.nil?
|
68
|
-
|
69
|
-
serialized_property = object.parameters_link
|
70
|
-
unless serialized_property.nil?
|
71
|
-
serialized_property = ParametersLink.serialize_object(serialized_property)
|
72
|
-
end
|
73
|
-
output_object['parametersLink'] = serialized_property unless serialized_property.nil?
|
74
|
-
|
75
|
-
serialized_property = object.mode
|
76
|
-
output_object['mode'] = serialized_property unless serialized_property.nil?
|
77
|
-
|
78
|
-
serialized_property = object.debug_setting
|
79
|
-
unless serialized_property.nil?
|
80
|
-
serialized_property = DebugSetting.serialize_object(serialized_property)
|
81
|
-
end
|
82
|
-
output_object['debugSetting'] = serialized_property unless serialized_property.nil?
|
83
|
-
|
84
|
-
output_object
|
85
|
-
end
|
86
|
-
|
87
|
-
#
|
88
|
-
# Deserializes given Ruby Hash into Model object.
|
89
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
90
|
-
# @return [DeploymentProperties] Deserialized object.
|
91
|
-
#
|
92
|
-
def self.deserialize_object(object)
|
93
|
-
return if object.nil?
|
94
|
-
output_object = DeploymentProperties.new
|
95
|
-
|
96
|
-
deserialized_property = object['template']
|
97
|
-
output_object.template = deserialized_property
|
98
|
-
|
99
|
-
deserialized_property = object['templateLink']
|
100
|
-
unless deserialized_property.nil?
|
101
|
-
deserialized_property = TemplateLink.deserialize_object(deserialized_property)
|
102
|
-
end
|
103
|
-
output_object.template_link = deserialized_property
|
104
|
-
|
105
|
-
deserialized_property = object['parameters']
|
106
|
-
output_object.parameters = deserialized_property
|
107
|
-
|
108
|
-
deserialized_property = object['parametersLink']
|
109
|
-
unless deserialized_property.nil?
|
110
|
-
deserialized_property = ParametersLink.deserialize_object(deserialized_property)
|
111
|
-
end
|
112
|
-
output_object.parameters_link = deserialized_property
|
113
|
-
|
114
|
-
deserialized_property = object['mode']
|
115
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
116
|
-
enum_is_valid = DeploymentMode.constants.any? { |e| DeploymentMode.const_get(e).to_s.downcase == deserialized_property.downcase }
|
117
|
-
warn 'Enum DeploymentMode does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
118
|
-
end
|
119
|
-
output_object.mode = deserialized_property
|
120
|
-
|
121
|
-
deserialized_property = object['debugSetting']
|
122
|
-
unless deserialized_property.nil?
|
123
|
-
deserialized_property = DebugSetting.deserialize_object(deserialized_property)
|
124
|
-
end
|
125
|
-
output_object.debug_setting = deserialized_property
|
126
|
-
|
127
|
-
output_object
|
128
|
-
end
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|