azure_mgmt_resources 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +3 -0
- data/.travis.yml +3 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +21 -0
- data/README.md +106 -0
- data/Rakefile +5 -0
- data/azure_mgmt_resources.gemspec +38 -0
- data/lib/azure_mgmt_resources.rb +74 -0
- data/lib/azure_mgmt_resources/Models/basic_dependency.rb +76 -0
- data/lib/azure_mgmt_resources/Models/dependency.rb +105 -0
- data/lib/azure_mgmt_resources/Models/deployment.rb +64 -0
- data/lib/azure_mgmt_resources/Models/deployment_extended.rb +83 -0
- data/lib/azure_mgmt_resources/Models/deployment_extended_filter.rb +58 -0
- data/lib/azure_mgmt_resources/Models/deployment_list_result.rb +88 -0
- data/lib/azure_mgmt_resources/Models/deployment_mode.rb +15 -0
- data/lib/azure_mgmt_resources/Models/deployment_operation.rb +83 -0
- data/lib/azure_mgmt_resources/Models/deployment_operation_properties.rb +102 -0
- data/lib/azure_mgmt_resources/Models/deployment_operations_list_result.rb +88 -0
- data/lib/azure_mgmt_resources/Models/deployment_properties.rb +116 -0
- data/lib/azure_mgmt_resources/Models/deployment_properties_extended.rb +216 -0
- data/lib/azure_mgmt_resources/Models/deployment_validate_result.rb +82 -0
- data/lib/azure_mgmt_resources/Models/generic_resource.rb +103 -0
- data/lib/azure_mgmt_resources/Models/generic_resource_filter.rb +76 -0
- data/lib/azure_mgmt_resources/Models/parameters_link.rb +68 -0
- data/lib/azure_mgmt_resources/Models/plan.rb +85 -0
- data/lib/azure_mgmt_resources/Models/provider.rb +106 -0
- data/lib/azure_mgmt_resources/Models/provider_list_result.rb +87 -0
- data/lib/azure_mgmt_resources/Models/provider_resource_type.rb +88 -0
- data/lib/azure_mgmt_resources/Models/resource_group.rb +105 -0
- data/lib/azure_mgmt_resources/Models/resource_group_extended.rb +113 -0
- data/lib/azure_mgmt_resources/Models/resource_group_extended_filter.rb +63 -0
- data/lib/azure_mgmt_resources/Models/resource_group_filter.rb +67 -0
- data/lib/azure_mgmt_resources/Models/resource_group_format_resource_properties.rb +54 -0
- data/lib/azure_mgmt_resources/Models/resource_group_list_result.rb +88 -0
- data/lib/azure_mgmt_resources/Models/resource_group_properties.rb +58 -0
- data/lib/azure_mgmt_resources/Models/resource_list_result.rb +88 -0
- data/lib/azure_mgmt_resources/Models/resource_management_error.rb +77 -0
- data/lib/azure_mgmt_resources/Models/resource_management_error_with_details.rb +106 -0
- data/lib/azure_mgmt_resources/Models/resource_provider_operation_definition.rb +74 -0
- data/lib/azure_mgmt_resources/Models/resource_provider_operation_detail_list_result.rb +80 -0
- data/lib/azure_mgmt_resources/Models/resource_provider_operation_display_properties.rb +95 -0
- data/lib/azure_mgmt_resources/Models/resources_move_info.rb +67 -0
- data/lib/azure_mgmt_resources/Models/tag_count.rb +67 -0
- data/lib/azure_mgmt_resources/Models/tag_details.rb +112 -0
- data/lib/azure_mgmt_resources/Models/tag_value.rb +82 -0
- data/lib/azure_mgmt_resources/Models/tags_list_result.rb +87 -0
- data/lib/azure_mgmt_resources/Models/target_resource.rb +76 -0
- data/lib/azure_mgmt_resources/Models/template_link.rb +68 -0
- data/lib/azure_mgmt_resources/deployment_operations.rb +297 -0
- data/lib/azure_mgmt_resources/deployments.rb +601 -0
- data/lib/azure_mgmt_resources/module_definition.rb +6 -0
- data/lib/azure_mgmt_resources/providers.rb +461 -0
- data/lib/azure_mgmt_resources/resource_groups.rb +891 -0
- data/lib/azure_mgmt_resources/resource_management_client.rb +85 -0
- data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +126 -0
- data/lib/azure_mgmt_resources/resources.rb +737 -0
- data/lib/azure_mgmt_resources/tags.rb +546 -0
- data/lib/azure_mgmt_resources/version.rb +6 -0
- metadata +235 -0
@@ -0,0 +1,88 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.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.validate
|
83
|
+
|
84
|
+
output_object
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
|
+
@properties.validate unless @properties.nil?
|
39
|
+
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.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.id
|
52
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
53
|
+
|
54
|
+
serialized_property = object.name
|
55
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
56
|
+
|
57
|
+
serialized_property = object.properties
|
58
|
+
unless serialized_property.nil?
|
59
|
+
serialized_property = ResourceGroupProperties.serialize_object(serialized_property)
|
60
|
+
end
|
61
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
62
|
+
|
63
|
+
serialized_property = object.location
|
64
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
65
|
+
|
66
|
+
serialized_property = object.tags
|
67
|
+
output_object['tags'] = 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 [ResourceGroup] Deserialized object.
|
76
|
+
#
|
77
|
+
def self.deserialize_object(object)
|
78
|
+
return if object.nil?
|
79
|
+
output_object = ResourceGroup.new
|
80
|
+
|
81
|
+
deserialized_property = object['id']
|
82
|
+
output_object.id = deserialized_property
|
83
|
+
|
84
|
+
deserialized_property = object['name']
|
85
|
+
output_object.name = deserialized_property
|
86
|
+
|
87
|
+
deserialized_property = object['properties']
|
88
|
+
unless deserialized_property.nil?
|
89
|
+
deserialized_property = ResourceGroupProperties.deserialize_object(deserialized_property)
|
90
|
+
end
|
91
|
+
output_object.properties = deserialized_property
|
92
|
+
|
93
|
+
deserialized_property = object['location']
|
94
|
+
output_object.location = deserialized_property
|
95
|
+
|
96
|
+
deserialized_property = object['tags']
|
97
|
+
output_object.tags = deserialized_property
|
98
|
+
|
99
|
+
output_object.validate
|
100
|
+
|
101
|
+
output_object
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
2
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
3
|
+
|
4
|
+
|
5
|
+
module Azure::ARM::Resources
|
6
|
+
module Models
|
7
|
+
#
|
8
|
+
# Resource group information.
|
9
|
+
#
|
10
|
+
class ResourceGroupExtended
|
11
|
+
# @return [String] Gets or sets the ID of the resource group.
|
12
|
+
attr_accessor :id
|
13
|
+
|
14
|
+
# @return [String] Gets or sets the Name of the resource group.
|
15
|
+
attr_accessor :name
|
16
|
+
|
17
|
+
# @return [ResourceGroupFormatResourceProperties]
|
18
|
+
attr_accessor :properties
|
19
|
+
|
20
|
+
# @return [String] Gets or sets the location of the resource group. It
|
21
|
+
# cannot be changed after the resource group has been created. Has to
|
22
|
+
# be one of the supported Azure Locations, such as West US, East US,
|
23
|
+
# West Europe, East Asia, etc.
|
24
|
+
attr_accessor :location
|
25
|
+
|
26
|
+
# @return Gets or sets the tags attached to the resource group.
|
27
|
+
attr_accessor :tags
|
28
|
+
|
29
|
+
# @return [String] Gets or sets resource group provisioning state.
|
30
|
+
attr_accessor :provisioning_state
|
31
|
+
|
32
|
+
def initialize
|
33
|
+
@tags = {};
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Validate the object. Throws ArgumentError if validation fails.
|
38
|
+
#
|
39
|
+
def validate
|
40
|
+
@properties.validate unless @properties.nil?
|
41
|
+
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Serializes given Model object into Ruby Hash.
|
46
|
+
# @param object Model object to serialize.
|
47
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
48
|
+
#
|
49
|
+
def self.serialize_object(object)
|
50
|
+
object.validate
|
51
|
+
output_object = {}
|
52
|
+
|
53
|
+
serialized_property = object.id
|
54
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
55
|
+
|
56
|
+
serialized_property = object.name
|
57
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
serialized_property = object.properties
|
60
|
+
if (serialized_property)
|
61
|
+
serialized_property = Azure::ARM::Resources::Models::ResourceGroupFormatResourceProperties.serialize_object(serialized_property)
|
62
|
+
end
|
63
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
64
|
+
|
65
|
+
serialized_property = object.location
|
66
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
67
|
+
|
68
|
+
serialized_property = object.tags
|
69
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
70
|
+
|
71
|
+
serialized_property = object.provisioning_state
|
72
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
73
|
+
|
74
|
+
output_object
|
75
|
+
end
|
76
|
+
|
77
|
+
#
|
78
|
+
# Deserializes given Ruby Hash into Model object.
|
79
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
80
|
+
# @return [ResourceGroupExtended] Deserialized object.
|
81
|
+
#
|
82
|
+
def self.deserialize_object(object)
|
83
|
+
return if object.nil?
|
84
|
+
output_object = ResourceGroupExtended.new
|
85
|
+
|
86
|
+
deserialized_property = object['id']
|
87
|
+
output_object.id = deserialized_property
|
88
|
+
|
89
|
+
deserialized_property = object['name']
|
90
|
+
output_object.name = deserialized_property
|
91
|
+
|
92
|
+
deserialized_property = object['properties']
|
93
|
+
if (deserialized_property)
|
94
|
+
deserialized_property = Azure::ARM::Resources::Models::ResourceGroupFormatResourceProperties.deserialize_object(deserialized_property)
|
95
|
+
end
|
96
|
+
output_object.properties = deserialized_property
|
97
|
+
|
98
|
+
deserialized_property = object['location']
|
99
|
+
output_object.location = deserialized_property
|
100
|
+
|
101
|
+
deserialized_property = object['tags']
|
102
|
+
output_object.tags = deserialized_property
|
103
|
+
|
104
|
+
deserialized_property = object['provisioningState']
|
105
|
+
output_object.provisioning_state = deserialized_property
|
106
|
+
|
107
|
+
output_object.validate
|
108
|
+
|
109
|
+
output_object
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
2
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
3
|
+
|
4
|
+
|
5
|
+
module Azure::ARM::Resources
|
6
|
+
module Models
|
7
|
+
#
|
8
|
+
# Resource group filter.
|
9
|
+
#
|
10
|
+
class ResourceGroupExtendedFilter
|
11
|
+
# @return [String] Gets or sets the tag name.
|
12
|
+
attr_accessor :tag_name
|
13
|
+
|
14
|
+
# @return [String] Gets or sets the tag value.
|
15
|
+
attr_accessor :tag_value
|
16
|
+
|
17
|
+
#
|
18
|
+
# Validate the object. Throws ArgumentError if validation fails.
|
19
|
+
#
|
20
|
+
def validate
|
21
|
+
# Nothing to validate
|
22
|
+
end
|
23
|
+
|
24
|
+
#
|
25
|
+
# Serializes given Model object into Ruby Hash.
|
26
|
+
# @param object Model object to serialize.
|
27
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
28
|
+
#
|
29
|
+
def self.serialize_object(object)
|
30
|
+
object.validate
|
31
|
+
output_object = {}
|
32
|
+
|
33
|
+
serialized_property = object.tag_name
|
34
|
+
output_object['tagName'] = serialized_property unless serialized_property.nil?
|
35
|
+
|
36
|
+
serialized_property = object.tag_value
|
37
|
+
output_object['tagValue'] = serialized_property unless serialized_property.nil?
|
38
|
+
|
39
|
+
output_object
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Deserializes given Ruby Hash into Model object.
|
44
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
45
|
+
# @return [ResourceGroupExtendedFilter] Deserialized object.
|
46
|
+
#
|
47
|
+
def self.deserialize_object(object)
|
48
|
+
return if object.nil?
|
49
|
+
output_object = ResourceGroupExtendedFilter.new
|
50
|
+
|
51
|
+
deserialized_property = object['tagName']
|
52
|
+
output_object.tag_name = deserialized_property
|
53
|
+
|
54
|
+
deserialized_property = object['tagValue']
|
55
|
+
output_object.tag_value = deserialized_property
|
56
|
+
|
57
|
+
output_object.validate
|
58
|
+
|
59
|
+
output_object
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.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.validate
|
62
|
+
|
63
|
+
output_object
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
2
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
3
|
+
|
4
|
+
|
5
|
+
module Azure::ARM::Resources
|
6
|
+
module Models
|
7
|
+
#
|
8
|
+
# The resource group properties.
|
9
|
+
#
|
10
|
+
class ResourceGroupFormatResourceProperties
|
11
|
+
# @return [String] Gets or sets resource group provisioning state.
|
12
|
+
attr_accessor :provisioning_state
|
13
|
+
|
14
|
+
#
|
15
|
+
# Validate the object. Throws ArgumentError if validation fails.
|
16
|
+
#
|
17
|
+
def validate
|
18
|
+
# Nothing to validate
|
19
|
+
end
|
20
|
+
|
21
|
+
#
|
22
|
+
# Serializes given Model object into Ruby Hash.
|
23
|
+
# @param object Model object to serialize.
|
24
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
25
|
+
#
|
26
|
+
def self.serialize_object(object)
|
27
|
+
object.validate
|
28
|
+
output_object = {}
|
29
|
+
|
30
|
+
serialized_property = object.provisioning_state
|
31
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
32
|
+
|
33
|
+
output_object
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Deserializes given Ruby Hash into Model object.
|
38
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
39
|
+
# @return [ResourceGroupFormatResourceProperties] Deserialized object.
|
40
|
+
#
|
41
|
+
def self.deserialize_object(object)
|
42
|
+
return if object.nil?
|
43
|
+
output_object = ResourceGroupFormatResourceProperties.new
|
44
|
+
|
45
|
+
deserialized_property = object['provisioningState']
|
46
|
+
output_object.provisioning_state = deserialized_property
|
47
|
+
|
48
|
+
output_object.validate
|
49
|
+
|
50
|
+
output_object
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|