azure_mgmt_notification_hubs 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_notification_hubs.gemspec +4 -5
- data/lib/azure_mgmt_notification_hubs.rb +3 -56
- data/lib/generated/azure_mgmt_notification_hubs.rb +58 -0
- data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/models/access_rights.rb +0 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential.rb +46 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +64 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential.rb +46 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +74 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb +46 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +64 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +83 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_resource.rb +102 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb +46 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +54 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb +46 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +64 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +72 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_properties.rb +153 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +102 -0
- data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/models/namespace_type.rb +0 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +73 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_properties.rb +145 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +105 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb +56 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +67 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +97 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +133 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +107 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb +46 -0
- data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +64 -0
- data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/namespaces.rb +166 -82
- data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/notification_hubs.rb +119 -72
- data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/notification_hubs_management_client.rb +4 -4
- data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/version.rb +1 -1
- metadata +56 -76
- data/lib/azure_mgmt_notification_hubs/models/adm_credential.rb +0 -63
- data/lib/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +0 -74
- data/lib/azure_mgmt_notification_hubs/models/apns_credential.rb +0 -63
- data/lib/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +0 -83
- data/lib/azure_mgmt_notification_hubs/models/baidu_credential.rb +0 -63
- data/lib/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +0 -74
- data/lib/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +0 -86
- data/lib/azure_mgmt_notification_hubs/models/check_availability_resource.rb +0 -102
- data/lib/azure_mgmt_notification_hubs/models/gcm_credential.rb +0 -63
- data/lib/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +0 -65
- data/lib/azure_mgmt_notification_hubs/models/mpns_credential.rb +0 -63
- data/lib/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +0 -74
- data/lib/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +0 -83
- data/lib/azure_mgmt_notification_hubs/models/namespace_list_result.rb +0 -87
- data/lib/azure_mgmt_notification_hubs/models/namespace_properties.rb +0 -159
- data/lib/azure_mgmt_notification_hubs/models/namespace_resource.rb +0 -108
- data/lib/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +0 -84
- data/lib/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +0 -87
- data/lib/azure_mgmt_notification_hubs/models/notification_hub_properties.rb +0 -197
- data/lib/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +0 -111
- data/lib/azure_mgmt_notification_hubs/models/resource_list_keys.rb +0 -67
- data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +0 -83
- data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +0 -87
- data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +0 -145
- data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +0 -113
- data/lib/azure_mgmt_notification_hubs/models/wns_credential.rb +0 -63
- data/lib/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +0 -74
@@ -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::NotificationHubs
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# The response of the List Namespace operation.
|
10
|
-
#
|
11
|
-
class NamespaceListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<NamespaceResource>] Gets or sets result of the List
|
16
|
-
# Namespace operation.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
# @return [String] Gets or sets link to the next set of results. Not
|
20
|
-
# empty if Value contains incomplete list of Namespaces
|
21
|
-
attr_accessor :next_link
|
22
|
-
|
23
|
-
#
|
24
|
-
# Validate the object. Throws ValidationError if validation fails.
|
25
|
-
#
|
26
|
-
def validate
|
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.value
|
40
|
-
unless serialized_property.nil?
|
41
|
-
serializedArray = []
|
42
|
-
serialized_property.each do |element|
|
43
|
-
unless element.nil?
|
44
|
-
element = NamespaceResource.serialize_object(element)
|
45
|
-
end
|
46
|
-
serializedArray.push(element)
|
47
|
-
end
|
48
|
-
serialized_property = serializedArray
|
49
|
-
end
|
50
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
serialized_property = object.next_link
|
53
|
-
output_object['nextLink'] = 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 [NamespaceListResult] Deserialized object.
|
62
|
-
#
|
63
|
-
def self.deserialize_object(object)
|
64
|
-
return if object.nil?
|
65
|
-
output_object = NamespaceListResult.new
|
66
|
-
|
67
|
-
deserialized_property = object['value']
|
68
|
-
unless deserialized_property.nil?
|
69
|
-
deserialized_array = []
|
70
|
-
deserialized_property.each do |element1|
|
71
|
-
unless element1.nil?
|
72
|
-
element1 = NamespaceResource.deserialize_object(element1)
|
73
|
-
end
|
74
|
-
deserialized_array.push(element1)
|
75
|
-
end
|
76
|
-
deserialized_property = deserialized_array
|
77
|
-
end
|
78
|
-
output_object.value = deserialized_property
|
79
|
-
|
80
|
-
deserialized_property = object['nextLink']
|
81
|
-
output_object.next_link = deserialized_property
|
82
|
-
|
83
|
-
output_object
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
@@ -1,159 +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::NotificationHubs
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Namespace properties.
|
10
|
-
#
|
11
|
-
class NamespaceProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] The name of the namespace.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [String] Gets or sets provisioning state of the Namespace.
|
19
|
-
attr_accessor :provisioning_state
|
20
|
-
|
21
|
-
# @return [String] Specifies the targeted region in which the namespace
|
22
|
-
# should be created. It can be any of the following values: Australia
|
23
|
-
# EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central
|
24
|
-
# USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan
|
25
|
-
# WestNorth EuropeWest Europe
|
26
|
-
attr_accessor :region
|
27
|
-
|
28
|
-
# @return [String] Status of the namespace. It can be any of these
|
29
|
-
# values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
|
30
|
-
attr_accessor :status
|
31
|
-
|
32
|
-
# @return [DateTime] The time the namespace was created.
|
33
|
-
attr_accessor :created_at
|
34
|
-
|
35
|
-
# @return [String] Endpoint you can use to perform NotificationHub
|
36
|
-
# operations.
|
37
|
-
attr_accessor :service_bus_endpoint
|
38
|
-
|
39
|
-
# @return [String] The Id of the Azure subscription associated with the
|
40
|
-
# namespace.
|
41
|
-
attr_accessor :subscription_id
|
42
|
-
|
43
|
-
# @return [String] ScaleUnit where the namespace gets created
|
44
|
-
attr_accessor :scale_unit
|
45
|
-
|
46
|
-
# @return [Boolean] Whether or not the namespace is currently enabled.
|
47
|
-
attr_accessor :enabled
|
48
|
-
|
49
|
-
# @return [Boolean] Whether or not the namespace is set as Critical.
|
50
|
-
attr_accessor :critical
|
51
|
-
|
52
|
-
# @return [NamespaceType] Gets or sets the namespace type. Possible
|
53
|
-
# values include: 'Messaging', 'NotificationHub'
|
54
|
-
attr_accessor :namespace_type
|
55
|
-
|
56
|
-
#
|
57
|
-
# Validate the object. Throws ValidationError if validation fails.
|
58
|
-
#
|
59
|
-
def validate
|
60
|
-
end
|
61
|
-
|
62
|
-
#
|
63
|
-
# Serializes given Model object into Ruby Hash.
|
64
|
-
# @param object Model object to serialize.
|
65
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
66
|
-
#
|
67
|
-
def self.serialize_object(object)
|
68
|
-
object.validate
|
69
|
-
output_object = {}
|
70
|
-
|
71
|
-
serialized_property = object.name
|
72
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
73
|
-
|
74
|
-
serialized_property = object.provisioning_state
|
75
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
76
|
-
|
77
|
-
serialized_property = object.region
|
78
|
-
output_object['region'] = serialized_property unless serialized_property.nil?
|
79
|
-
|
80
|
-
serialized_property = object.status
|
81
|
-
output_object['status'] = serialized_property unless serialized_property.nil?
|
82
|
-
|
83
|
-
serialized_property = object.created_at
|
84
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
85
|
-
output_object['createdAt'] = serialized_property unless serialized_property.nil?
|
86
|
-
|
87
|
-
serialized_property = object.service_bus_endpoint
|
88
|
-
output_object['serviceBusEndpoint'] = serialized_property unless serialized_property.nil?
|
89
|
-
|
90
|
-
serialized_property = object.subscription_id
|
91
|
-
output_object['subscriptionId'] = serialized_property unless serialized_property.nil?
|
92
|
-
|
93
|
-
serialized_property = object.scale_unit
|
94
|
-
output_object['scaleUnit'] = serialized_property unless serialized_property.nil?
|
95
|
-
|
96
|
-
serialized_property = object.enabled
|
97
|
-
output_object['enabled'] = serialized_property unless serialized_property.nil?
|
98
|
-
|
99
|
-
serialized_property = object.critical
|
100
|
-
output_object['critical'] = serialized_property unless serialized_property.nil?
|
101
|
-
|
102
|
-
serialized_property = object.namespace_type
|
103
|
-
output_object['namespaceType'] = serialized_property unless serialized_property.nil?
|
104
|
-
|
105
|
-
output_object
|
106
|
-
end
|
107
|
-
|
108
|
-
#
|
109
|
-
# Deserializes given Ruby Hash into Model object.
|
110
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
111
|
-
# @return [NamespaceProperties] Deserialized object.
|
112
|
-
#
|
113
|
-
def self.deserialize_object(object)
|
114
|
-
return if object.nil?
|
115
|
-
output_object = NamespaceProperties.new
|
116
|
-
|
117
|
-
deserialized_property = object['name']
|
118
|
-
output_object.name = deserialized_property
|
119
|
-
|
120
|
-
deserialized_property = object['provisioningState']
|
121
|
-
output_object.provisioning_state = deserialized_property
|
122
|
-
|
123
|
-
deserialized_property = object['region']
|
124
|
-
output_object.region = deserialized_property
|
125
|
-
|
126
|
-
deserialized_property = object['status']
|
127
|
-
output_object.status = deserialized_property
|
128
|
-
|
129
|
-
deserialized_property = object['createdAt']
|
130
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
131
|
-
output_object.created_at = deserialized_property
|
132
|
-
|
133
|
-
deserialized_property = object['serviceBusEndpoint']
|
134
|
-
output_object.service_bus_endpoint = deserialized_property
|
135
|
-
|
136
|
-
deserialized_property = object['subscriptionId']
|
137
|
-
output_object.subscription_id = deserialized_property
|
138
|
-
|
139
|
-
deserialized_property = object['scaleUnit']
|
140
|
-
output_object.scale_unit = deserialized_property
|
141
|
-
|
142
|
-
deserialized_property = object['enabled']
|
143
|
-
output_object.enabled = deserialized_property
|
144
|
-
|
145
|
-
deserialized_property = object['critical']
|
146
|
-
output_object.critical = deserialized_property
|
147
|
-
|
148
|
-
deserialized_property = object['namespaceType']
|
149
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
150
|
-
enum_is_valid = NamespaceType.constants.any? { |e| NamespaceType.const_get(e).to_s.downcase == deserialized_property.downcase }
|
151
|
-
warn 'Enum NamespaceType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
152
|
-
end
|
153
|
-
output_object.namespace_type = deserialized_property
|
154
|
-
|
155
|
-
output_object
|
156
|
-
end
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end
|
@@ -1,108 +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::NotificationHubs
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Description of a Namespace resource.
|
10
|
-
#
|
11
|
-
class NamespaceResource
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the id of the created Namespace.
|
16
|
-
attr_accessor :id
|
17
|
-
|
18
|
-
# @return [String] Gets or sets datacenter location of the Namespace.
|
19
|
-
attr_accessor :location
|
20
|
-
|
21
|
-
# @return [String] Gets or sets name of the Namespace.
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
|
-
# @return [String] Gets or sets resource type of the Namespace.
|
25
|
-
attr_accessor :type
|
26
|
-
|
27
|
-
# @return [Hash{String => String}] Gets or sets tags of the Namespace.
|
28
|
-
attr_accessor :tags
|
29
|
-
|
30
|
-
# @return [NamespaceProperties] Gets or sets properties of the Namespace.
|
31
|
-
attr_accessor :properties
|
32
|
-
|
33
|
-
#
|
34
|
-
# Validate the object. Throws ValidationError if validation fails.
|
35
|
-
#
|
36
|
-
def validate
|
37
|
-
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
38
|
-
@properties.validate unless @properties.nil?
|
39
|
-
end
|
40
|
-
|
41
|
-
#
|
42
|
-
# Serializes given Model object into Ruby Hash.
|
43
|
-
# @param object Model object to serialize.
|
44
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
45
|
-
#
|
46
|
-
def self.serialize_object(object)
|
47
|
-
object.validate
|
48
|
-
output_object = {}
|
49
|
-
|
50
|
-
serialized_property = object.id
|
51
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.location
|
54
|
-
output_object['location'] = 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.type
|
60
|
-
output_object['type'] = serialized_property unless serialized_property.nil?
|
61
|
-
|
62
|
-
serialized_property = object.tags
|
63
|
-
output_object['tags'] = serialized_property unless serialized_property.nil?
|
64
|
-
|
65
|
-
serialized_property = object.properties
|
66
|
-
unless serialized_property.nil?
|
67
|
-
serialized_property = NamespaceProperties.serialize_object(serialized_property)
|
68
|
-
end
|
69
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
output_object
|
72
|
-
end
|
73
|
-
|
74
|
-
#
|
75
|
-
# Deserializes given Ruby Hash into Model object.
|
76
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
77
|
-
# @return [NamespaceResource] Deserialized object.
|
78
|
-
#
|
79
|
-
def self.deserialize_object(object)
|
80
|
-
return if object.nil?
|
81
|
-
output_object = NamespaceResource.new
|
82
|
-
|
83
|
-
deserialized_property = object['id']
|
84
|
-
output_object.id = deserialized_property
|
85
|
-
|
86
|
-
deserialized_property = object['location']
|
87
|
-
output_object.location = deserialized_property
|
88
|
-
|
89
|
-
deserialized_property = object['name']
|
90
|
-
output_object.name = deserialized_property
|
91
|
-
|
92
|
-
deserialized_property = object['type']
|
93
|
-
output_object.type = deserialized_property
|
94
|
-
|
95
|
-
deserialized_property = object['tags']
|
96
|
-
output_object.tags = deserialized_property
|
97
|
-
|
98
|
-
deserialized_property = object['properties']
|
99
|
-
unless deserialized_property.nil?
|
100
|
-
deserialized_property = NamespaceProperties.deserialize_object(deserialized_property)
|
101
|
-
end
|
102
|
-
output_object.properties = deserialized_property
|
103
|
-
|
104
|
-
output_object
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|
data/lib/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb
DELETED
@@ -1,84 +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::NotificationHubs
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Parameters supplied to the CreateOrUpdate NotificationHub operation.
|
10
|
-
#
|
11
|
-
class NotificationHubCreateOrUpdateParameters
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets NotificationHub data center location.
|
16
|
-
attr_accessor :location
|
17
|
-
|
18
|
-
# @return [Hash{String => String}] Gets or sets NotificationHub tags.
|
19
|
-
attr_accessor :tags
|
20
|
-
|
21
|
-
# @return [NotificationHubProperties] Gets or sets properties of the
|
22
|
-
# NotificationHub.
|
23
|
-
attr_accessor :properties
|
24
|
-
|
25
|
-
#
|
26
|
-
# Validate the object. Throws ValidationError if validation fails.
|
27
|
-
#
|
28
|
-
def validate
|
29
|
-
fail MsRest::ValidationError, 'property location is nil' if @location.nil?
|
30
|
-
fail MsRest::ValidationError, 'property properties is nil' if @properties.nil?
|
31
|
-
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
32
|
-
@properties.validate unless @properties.nil?
|
33
|
-
end
|
34
|
-
|
35
|
-
#
|
36
|
-
# Serializes given Model object into Ruby Hash.
|
37
|
-
# @param object Model object to serialize.
|
38
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
39
|
-
#
|
40
|
-
def self.serialize_object(object)
|
41
|
-
object.validate
|
42
|
-
output_object = {}
|
43
|
-
|
44
|
-
serialized_property = object.location
|
45
|
-
output_object['location'] = serialized_property unless serialized_property.nil?
|
46
|
-
|
47
|
-
serialized_property = object.properties
|
48
|
-
unless serialized_property.nil?
|
49
|
-
serialized_property = NotificationHubProperties.serialize_object(serialized_property)
|
50
|
-
end
|
51
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.tags
|
54
|
-
output_object['tags'] = serialized_property unless serialized_property.nil?
|
55
|
-
|
56
|
-
output_object
|
57
|
-
end
|
58
|
-
|
59
|
-
#
|
60
|
-
# Deserializes given Ruby Hash into Model object.
|
61
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
62
|
-
# @return [NotificationHubCreateOrUpdateParameters] Deserialized object.
|
63
|
-
#
|
64
|
-
def self.deserialize_object(object)
|
65
|
-
return if object.nil?
|
66
|
-
output_object = NotificationHubCreateOrUpdateParameters.new
|
67
|
-
|
68
|
-
deserialized_property = object['location']
|
69
|
-
output_object.location = deserialized_property
|
70
|
-
|
71
|
-
deserialized_property = object['properties']
|
72
|
-
unless deserialized_property.nil?
|
73
|
-
deserialized_property = NotificationHubProperties.deserialize_object(deserialized_property)
|
74
|
-
end
|
75
|
-
output_object.properties = deserialized_property
|
76
|
-
|
77
|
-
deserialized_property = object['tags']
|
78
|
-
output_object.tags = deserialized_property
|
79
|
-
|
80
|
-
output_object
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
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::NotificationHubs
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# The response of the List NotificationHub operation.
|
10
|
-
#
|
11
|
-
class NotificationHubListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<NotificationHubResource>] Gets or sets result of the
|
16
|
-
# List NotificationHub operation.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
# @return [String] Gets or sets link to the next set of results. Not
|
20
|
-
# empty if Value contains incomplete list of NotificationHub
|
21
|
-
attr_accessor :next_link
|
22
|
-
|
23
|
-
#
|
24
|
-
# Validate the object. Throws ValidationError if validation fails.
|
25
|
-
#
|
26
|
-
def validate
|
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.value
|
40
|
-
unless serialized_property.nil?
|
41
|
-
serializedArray = []
|
42
|
-
serialized_property.each do |element|
|
43
|
-
unless element.nil?
|
44
|
-
element = NotificationHubResource.serialize_object(element)
|
45
|
-
end
|
46
|
-
serializedArray.push(element)
|
47
|
-
end
|
48
|
-
serialized_property = serializedArray
|
49
|
-
end
|
50
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
serialized_property = object.next_link
|
53
|
-
output_object['nextLink'] = 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 [NotificationHubListResult] Deserialized object.
|
62
|
-
#
|
63
|
-
def self.deserialize_object(object)
|
64
|
-
return if object.nil?
|
65
|
-
output_object = NotificationHubListResult.new
|
66
|
-
|
67
|
-
deserialized_property = object['value']
|
68
|
-
unless deserialized_property.nil?
|
69
|
-
deserialized_array = []
|
70
|
-
deserialized_property.each do |element1|
|
71
|
-
unless element1.nil?
|
72
|
-
element1 = NotificationHubResource.deserialize_object(element1)
|
73
|
-
end
|
74
|
-
deserialized_array.push(element1)
|
75
|
-
end
|
76
|
-
deserialized_property = deserialized_array
|
77
|
-
end
|
78
|
-
output_object.value = deserialized_property
|
79
|
-
|
80
|
-
deserialized_property = object['nextLink']
|
81
|
-
output_object.next_link = deserialized_property
|
82
|
-
|
83
|
-
output_object
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|