azure_mgmt_subscriptions 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/azure_mgmt_subscriptions.gemspec +4 -5
- data/lib/azure_mgmt_subscriptions.rb +3 -34
- data/lib/generated/azure_mgmt_subscriptions.rb +36 -0
- data/lib/generated/azure_mgmt_subscriptions/models/location.rb +95 -0
- data/lib/generated/azure_mgmt_subscriptions/models/location_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_subscriptions/models/subscription.rb +86 -0
- data/lib/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_subscriptions/models/subscription_policies.rb +54 -0
- data/lib/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb +54 -0
- data/lib/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +93 -0
- data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/subscription_client.rb +4 -4
- data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/subscriptions.rb +37 -107
- data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/tenants.rb +31 -11
- data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/version.rb +1 -1
- metadata +34 -54
- data/lib/azure_mgmt_subscriptions/models/location.rb +0 -102
- data/lib/azure_mgmt_subscriptions/models/location_list_result.rb +0 -76
- data/lib/azure_mgmt_subscriptions/models/subscription.rb +0 -99
- data/lib/azure_mgmt_subscriptions/models/subscription_list_result.rb +0 -86
- data/lib/azure_mgmt_subscriptions/models/subscription_policies.rb +0 -65
- data/lib/azure_mgmt_subscriptions/models/tenant_id_description.rb +0 -65
- data/lib/azure_mgmt_subscriptions/models/tenant_list_result.rb +0 -86
@@ -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::Subscriptions
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Subscription list operation response.
|
10
|
-
#
|
11
|
-
class SubscriptionListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<Subscription>] Gets or sets subscriptions.
|
16
|
-
attr_accessor :value
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the URL to get the next set of results.
|
19
|
-
attr_accessor :next_link
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
fail MsRest::ValidationError, 'property next_link is nil' if @next_link.nil?
|
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.next_link
|
39
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
40
|
-
|
41
|
-
serialized_property = object.value
|
42
|
-
unless serialized_property.nil?
|
43
|
-
serializedArray = []
|
44
|
-
serialized_property.each do |element|
|
45
|
-
unless element.nil?
|
46
|
-
element = Subscription.serialize_object(element)
|
47
|
-
end
|
48
|
-
serializedArray.push(element)
|
49
|
-
end
|
50
|
-
serialized_property = serializedArray
|
51
|
-
end
|
52
|
-
output_object['value'] = 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 [SubscriptionListResult] Deserialized object.
|
61
|
-
#
|
62
|
-
def self.deserialize_object(object)
|
63
|
-
return if object.nil?
|
64
|
-
output_object = SubscriptionListResult.new
|
65
|
-
|
66
|
-
deserialized_property = object['nextLink']
|
67
|
-
output_object.next_link = deserialized_property
|
68
|
-
|
69
|
-
deserialized_property = object['value']
|
70
|
-
unless deserialized_property.nil?
|
71
|
-
deserialized_array = []
|
72
|
-
deserialized_property.each do |element1|
|
73
|
-
unless element1.nil?
|
74
|
-
element1 = Subscription.deserialize_object(element1)
|
75
|
-
end
|
76
|
-
deserialized_array.push(element1)
|
77
|
-
end
|
78
|
-
deserialized_property = deserialized_array
|
79
|
-
end
|
80
|
-
output_object.value = deserialized_property
|
81
|
-
|
82
|
-
output_object
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
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::Subscriptions
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Subscription policies.
|
10
|
-
#
|
11
|
-
class SubscriptionPolicies
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the subscription location placement Id.
|
16
|
-
attr_accessor :location_placement_id
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the subscription quota Id.
|
19
|
-
attr_accessor :quota_id
|
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.location_placement_id
|
38
|
-
output_object['locationPlacementId'] = serialized_property unless serialized_property.nil?
|
39
|
-
|
40
|
-
serialized_property = object.quota_id
|
41
|
-
output_object['quotaId'] = 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 [SubscriptionPolicies] Deserialized object.
|
50
|
-
#
|
51
|
-
def self.deserialize_object(object)
|
52
|
-
return if object.nil?
|
53
|
-
output_object = SubscriptionPolicies.new
|
54
|
-
|
55
|
-
deserialized_property = object['locationPlacementId']
|
56
|
-
output_object.location_placement_id = deserialized_property
|
57
|
-
|
58
|
-
deserialized_property = object['quotaId']
|
59
|
-
output_object.quota_id = deserialized_property
|
60
|
-
|
61
|
-
output_object
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
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::Subscriptions
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Tenant Id information
|
10
|
-
#
|
11
|
-
class TenantIdDescription
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets Id
|
16
|
-
attr_accessor :id
|
17
|
-
|
18
|
-
# @return [String] Gets or sets tenantId
|
19
|
-
attr_accessor :tenant_id
|
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.id
|
38
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
39
|
-
|
40
|
-
serialized_property = object.tenant_id
|
41
|
-
output_object['tenantId'] = 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 [TenantIdDescription] Deserialized object.
|
50
|
-
#
|
51
|
-
def self.deserialize_object(object)
|
52
|
-
return if object.nil?
|
53
|
-
output_object = TenantIdDescription.new
|
54
|
-
|
55
|
-
deserialized_property = object['id']
|
56
|
-
output_object.id = deserialized_property
|
57
|
-
|
58
|
-
deserialized_property = object['tenantId']
|
59
|
-
output_object.tenant_id = deserialized_property
|
60
|
-
|
61
|
-
output_object
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
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::Subscriptions
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Tenant Ids information.
|
10
|
-
#
|
11
|
-
class TenantListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<TenantIdDescription>] Gets or sets tenant Ids.
|
16
|
-
attr_accessor :value
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the URL to get the next set of results.
|
19
|
-
attr_accessor :next_link
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
fail MsRest::ValidationError, 'property next_link is nil' if @next_link.nil?
|
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.next_link
|
39
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
40
|
-
|
41
|
-
serialized_property = object.value
|
42
|
-
unless serialized_property.nil?
|
43
|
-
serializedArray = []
|
44
|
-
serialized_property.each do |element|
|
45
|
-
unless element.nil?
|
46
|
-
element = TenantIdDescription.serialize_object(element)
|
47
|
-
end
|
48
|
-
serializedArray.push(element)
|
49
|
-
end
|
50
|
-
serialized_property = serializedArray
|
51
|
-
end
|
52
|
-
output_object['value'] = 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 [TenantListResult] Deserialized object.
|
61
|
-
#
|
62
|
-
def self.deserialize_object(object)
|
63
|
-
return if object.nil?
|
64
|
-
output_object = TenantListResult.new
|
65
|
-
|
66
|
-
deserialized_property = object['nextLink']
|
67
|
-
output_object.next_link = deserialized_property
|
68
|
-
|
69
|
-
deserialized_property = object['value']
|
70
|
-
unless deserialized_property.nil?
|
71
|
-
deserialized_array = []
|
72
|
-
deserialized_property.each do |element1|
|
73
|
-
unless element1.nil?
|
74
|
-
element1 = TenantIdDescription.deserialize_object(element1)
|
75
|
-
end
|
76
|
-
deserialized_array.push(element1)
|
77
|
-
end
|
78
|
-
deserialized_property = deserialized_array
|
79
|
-
end
|
80
|
-
output_object.value = deserialized_property
|
81
|
-
|
82
|
-
output_object
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|