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
|
-
# Resource type managed by the resource provider.
|
10
|
-
#
|
11
|
-
class ProviderResourceType
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the resource type.
|
16
|
-
attr_accessor :resource_type
|
17
|
-
|
18
|
-
# @return [Array<String>] Gets or sets the collection of locations where
|
19
|
-
# this resource type can be created in.
|
20
|
-
attr_accessor :locations
|
21
|
-
|
22
|
-
# @return [Array<String>] Gets or sets the api version.
|
23
|
-
attr_accessor :api_versions
|
24
|
-
|
25
|
-
# @return [Hash{String => String}] Gets or sets the properties.
|
26
|
-
attr_accessor :properties
|
27
|
-
|
28
|
-
#
|
29
|
-
# Validate the object. Throws ValidationError if validation fails.
|
30
|
-
#
|
31
|
-
def validate
|
32
|
-
@locations.each{ |e| e.validate if e.respond_to?(:validate) } unless @locations.nil?
|
33
|
-
@api_versions.each{ |e| e.validate if e.respond_to?(:validate) } unless @api_versions.nil?
|
34
|
-
@properties.each{ |e| e.validate if e.respond_to?(:validate) } unless @properties.nil?
|
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.resource_type
|
47
|
-
output_object['resourceType'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
serialized_property = object.locations
|
50
|
-
output_object['locations'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
serialized_property = object.api_versions
|
53
|
-
output_object['apiVersions'] = serialized_property unless serialized_property.nil?
|
54
|
-
|
55
|
-
serialized_property = object.properties
|
56
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
57
|
-
|
58
|
-
output_object
|
59
|
-
end
|
60
|
-
|
61
|
-
#
|
62
|
-
# Deserializes given Ruby Hash into Model object.
|
63
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
64
|
-
# @return [ProviderResourceType] Deserialized object.
|
65
|
-
#
|
66
|
-
def self.deserialize_object(object)
|
67
|
-
return if object.nil?
|
68
|
-
output_object = ProviderResourceType.new
|
69
|
-
|
70
|
-
deserialized_property = object['resourceType']
|
71
|
-
output_object.resource_type = deserialized_property
|
72
|
-
|
73
|
-
deserialized_property = object['locations']
|
74
|
-
output_object.locations = deserialized_property
|
75
|
-
|
76
|
-
deserialized_property = object['apiVersions']
|
77
|
-
output_object.api_versions = deserialized_property
|
78
|
-
|
79
|
-
deserialized_property = object['properties']
|
80
|
-
output_object.properties = deserialized_property
|
81
|
-
|
82
|
-
output_object
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,104 +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 group information.
|
10
|
-
#
|
11
|
-
class ResourceGroup
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets the ID of the resource group.
|
16
|
-
attr_accessor :id
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the Name of the resource group.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
# @return [ResourceGroupProperties]
|
22
|
-
attr_accessor :properties
|
23
|
-
|
24
|
-
# @return [String] Gets or sets the location of the resource group. It
|
25
|
-
# cannot be changed after the resource group has been created. Has to
|
26
|
-
# be one of the supported Azure Locations, such as West US, East US,
|
27
|
-
# West Europe, East Asia, etc.
|
28
|
-
attr_accessor :location
|
29
|
-
|
30
|
-
# @return [Hash{String => String}] Gets or sets the tags attached to the
|
31
|
-
# resource group.
|
32
|
-
attr_accessor :tags
|
33
|
-
|
34
|
-
#
|
35
|
-
# Validate the object. Throws ValidationError if validation fails.
|
36
|
-
#
|
37
|
-
def validate
|
38
|
-
fail MsRest::ValidationError, 'property location is nil' if @location.nil?
|
39
|
-
@properties.validate unless @properties.nil?
|
40
|
-
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
41
|
-
end
|
42
|
-
|
43
|
-
#
|
44
|
-
# Serializes given Model object into Ruby Hash.
|
45
|
-
# @param object Model object to serialize.
|
46
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
47
|
-
#
|
48
|
-
def self.serialize_object(object)
|
49
|
-
object.validate
|
50
|
-
output_object = {}
|
51
|
-
|
52
|
-
serialized_property = object.location
|
53
|
-
output_object['location'] = serialized_property unless serialized_property.nil?
|
54
|
-
|
55
|
-
serialized_property = object.id
|
56
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
57
|
-
|
58
|
-
serialized_property = object.name
|
59
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
60
|
-
|
61
|
-
serialized_property = object.properties
|
62
|
-
unless serialized_property.nil?
|
63
|
-
serialized_property = ResourceGroupProperties.serialize_object(serialized_property)
|
64
|
-
end
|
65
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
66
|
-
|
67
|
-
serialized_property = object.tags
|
68
|
-
output_object['tags'] = 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 [ResourceGroup] Deserialized object.
|
77
|
-
#
|
78
|
-
def self.deserialize_object(object)
|
79
|
-
return if object.nil?
|
80
|
-
output_object = ResourceGroup.new
|
81
|
-
|
82
|
-
deserialized_property = object['location']
|
83
|
-
output_object.location = deserialized_property
|
84
|
-
|
85
|
-
deserialized_property = object['id']
|
86
|
-
output_object.id = deserialized_property
|
87
|
-
|
88
|
-
deserialized_property = object['name']
|
89
|
-
output_object.name = deserialized_property
|
90
|
-
|
91
|
-
deserialized_property = object['properties']
|
92
|
-
unless deserialized_property.nil?
|
93
|
-
deserialized_property = ResourceGroupProperties.deserialize_object(deserialized_property)
|
94
|
-
end
|
95
|
-
output_object.properties = deserialized_property
|
96
|
-
|
97
|
-
deserialized_property = object['tags']
|
98
|
-
output_object.tags = deserialized_property
|
99
|
-
|
100
|
-
output_object
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
@@ -1,71 +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 ResourceGroupExportResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return Gets or sets the template content.
|
16
|
-
attr_accessor :template
|
17
|
-
|
18
|
-
# @return [ResourceManagementErrorWithDetails] Gets or sets the error.
|
19
|
-
attr_accessor :error
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
@error.validate unless @error.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.template
|
38
|
-
output_object['template'] = serialized_property unless serialized_property.nil?
|
39
|
-
|
40
|
-
serialized_property = object.error
|
41
|
-
unless serialized_property.nil?
|
42
|
-
serialized_property = ResourceManagementErrorWithDetails.serialize_object(serialized_property)
|
43
|
-
end
|
44
|
-
output_object['error'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
output_object
|
47
|
-
end
|
48
|
-
|
49
|
-
#
|
50
|
-
# Deserializes given Ruby Hash into Model object.
|
51
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
52
|
-
# @return [ResourceGroupExportResult] Deserialized object.
|
53
|
-
#
|
54
|
-
def self.deserialize_object(object)
|
55
|
-
return if object.nil?
|
56
|
-
output_object = ResourceGroupExportResult.new
|
57
|
-
|
58
|
-
deserialized_property = object['template']
|
59
|
-
output_object.template = deserialized_property
|
60
|
-
|
61
|
-
deserialized_property = object['error']
|
62
|
-
unless deserialized_property.nil?
|
63
|
-
deserialized_property = ResourceManagementErrorWithDetails.deserialize_object(deserialized_property)
|
64
|
-
end
|
65
|
-
output_object.error = deserialized_property
|
66
|
-
|
67
|
-
output_object
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
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
|
-
# Resource group filter.
|
10
|
-
#
|
11
|
-
class ResourceGroupFilter
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the tag name.
|
16
|
-
attr_accessor :tag_name
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the tag value.
|
19
|
-
attr_accessor :tag_value
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
# Nothing to validate
|
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.tag_name
|
38
|
-
output_object['tagName'] = serialized_property unless serialized_property.nil?
|
39
|
-
|
40
|
-
serialized_property = object.tag_value
|
41
|
-
output_object['tagValue'] = 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 [ResourceGroupFilter] Deserialized object.
|
50
|
-
#
|
51
|
-
def self.deserialize_object(object)
|
52
|
-
return if object.nil?
|
53
|
-
output_object = ResourceGroupFilter.new
|
54
|
-
|
55
|
-
deserialized_property = object['tagName']
|
56
|
-
output_object.tag_name = deserialized_property
|
57
|
-
|
58
|
-
deserialized_property = object['tagValue']
|
59
|
-
output_object.tag_value = deserialized_property
|
60
|
-
|
61
|
-
output_object
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -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 ResourceGroupListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<ResourceGroup>] 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 = ResourceGroup.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 [ResourceGroupListResult] Deserialized object.
|
62
|
-
#
|
63
|
-
def self.deserialize_object(object)
|
64
|
-
return if object.nil?
|
65
|
-
output_object = ResourceGroupListResult.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 = ResourceGroup.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,56 +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
|
-
# The resource group properties.
|
10
|
-
#
|
11
|
-
class ResourceGroupProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets resource group provisioning state.
|
16
|
-
attr_accessor :provisioning_state
|
17
|
-
|
18
|
-
#
|
19
|
-
# Validate the object. Throws ValidationError if validation fails.
|
20
|
-
#
|
21
|
-
def validate
|
22
|
-
# Nothing to validate
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# Serializes given Model object into Ruby Hash.
|
27
|
-
# @param object Model object to serialize.
|
28
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
-
#
|
30
|
-
def self.serialize_object(object)
|
31
|
-
object.validate
|
32
|
-
output_object = {}
|
33
|
-
|
34
|
-
serialized_property = object.provisioning_state
|
35
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
36
|
-
|
37
|
-
output_object
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Deserializes given Ruby Hash into Model object.
|
42
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
43
|
-
# @return [ResourceGroupProperties] Deserialized object.
|
44
|
-
#
|
45
|
-
def self.deserialize_object(object)
|
46
|
-
return if object.nil?
|
47
|
-
output_object = ResourceGroupProperties.new
|
48
|
-
|
49
|
-
deserialized_property = object['provisioningState']
|
50
|
-
output_object.provisioning_state = deserialized_property
|
51
|
-
|
52
|
-
output_object
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|