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
data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb
DELETED
@@ -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 SharedAccessAuthorizationRuleListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<SharedAccessAuthorizationRuleResource>] Gets or sets
|
16
|
-
# result of the List AuthorizationRules 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 AuthorizationRules
|
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 = SharedAccessAuthorizationRuleResource.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 [SharedAccessAuthorizationRuleListResult] Deserialized object.
|
62
|
-
#
|
63
|
-
def self.deserialize_object(object)
|
64
|
-
return if object.nil?
|
65
|
-
output_object = SharedAccessAuthorizationRuleListResult.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 = SharedAccessAuthorizationRuleResource.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,145 +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
|
-
# SharedAccessAuthorizationRule properties.
|
10
|
-
#
|
11
|
-
class SharedAccessAuthorizationRuleProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] The primary key that was used.
|
16
|
-
attr_accessor :primary_key
|
17
|
-
|
18
|
-
# @return [String] The secondary key that was used.
|
19
|
-
attr_accessor :secondary_key
|
20
|
-
|
21
|
-
# @return [String] The name of the key that was used.
|
22
|
-
attr_accessor :key_name
|
23
|
-
|
24
|
-
# @return [String] The type of the claim.
|
25
|
-
attr_accessor :claim_type
|
26
|
-
|
27
|
-
# @return [String] The value of the claim.
|
28
|
-
attr_accessor :claim_value
|
29
|
-
|
30
|
-
# @return [Array<AccessRights>] The rights associated with the rule.
|
31
|
-
attr_accessor :rights
|
32
|
-
|
33
|
-
# @return [DateTime] The time at which the authorization rule was
|
34
|
-
# created.
|
35
|
-
attr_accessor :created_time
|
36
|
-
|
37
|
-
# @return [DateTime] The most recent time the rule was updated.
|
38
|
-
attr_accessor :modified_time
|
39
|
-
|
40
|
-
# @return [Integer] The revision number for the rule.
|
41
|
-
attr_accessor :revision
|
42
|
-
|
43
|
-
#
|
44
|
-
# Validate the object. Throws ValidationError if validation fails.
|
45
|
-
#
|
46
|
-
def validate
|
47
|
-
@rights.each{ |e| e.validate if e.respond_to?(:validate) } unless @rights.nil?
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
# Serializes given Model object into Ruby Hash.
|
52
|
-
# @param object Model object to serialize.
|
53
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
54
|
-
#
|
55
|
-
def self.serialize_object(object)
|
56
|
-
object.validate
|
57
|
-
output_object = {}
|
58
|
-
|
59
|
-
serialized_property = object.primary_key
|
60
|
-
output_object['primaryKey'] = serialized_property unless serialized_property.nil?
|
61
|
-
|
62
|
-
serialized_property = object.secondary_key
|
63
|
-
output_object['secondaryKey'] = serialized_property unless serialized_property.nil?
|
64
|
-
|
65
|
-
serialized_property = object.key_name
|
66
|
-
output_object['keyName'] = serialized_property unless serialized_property.nil?
|
67
|
-
|
68
|
-
serialized_property = object.claim_type
|
69
|
-
output_object['claimType'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
serialized_property = object.claim_value
|
72
|
-
output_object['claimValue'] = serialized_property unless serialized_property.nil?
|
73
|
-
|
74
|
-
serialized_property = object.rights
|
75
|
-
output_object['rights'] = serialized_property unless serialized_property.nil?
|
76
|
-
|
77
|
-
serialized_property = object.created_time
|
78
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
79
|
-
output_object['createdTime'] = serialized_property unless serialized_property.nil?
|
80
|
-
|
81
|
-
serialized_property = object.modified_time
|
82
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
83
|
-
output_object['modifiedTime'] = serialized_property unless serialized_property.nil?
|
84
|
-
|
85
|
-
serialized_property = object.revision
|
86
|
-
output_object['revision'] = serialized_property unless serialized_property.nil?
|
87
|
-
|
88
|
-
output_object
|
89
|
-
end
|
90
|
-
|
91
|
-
#
|
92
|
-
# Deserializes given Ruby Hash into Model object.
|
93
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
94
|
-
# @return [SharedAccessAuthorizationRuleProperties] Deserialized object.
|
95
|
-
#
|
96
|
-
def self.deserialize_object(object)
|
97
|
-
return if object.nil?
|
98
|
-
output_object = SharedAccessAuthorizationRuleProperties.new
|
99
|
-
|
100
|
-
deserialized_property = object['primaryKey']
|
101
|
-
output_object.primary_key = deserialized_property
|
102
|
-
|
103
|
-
deserialized_property = object['secondaryKey']
|
104
|
-
output_object.secondary_key = deserialized_property
|
105
|
-
|
106
|
-
deserialized_property = object['keyName']
|
107
|
-
output_object.key_name = deserialized_property
|
108
|
-
|
109
|
-
deserialized_property = object['claimType']
|
110
|
-
output_object.claim_type = deserialized_property
|
111
|
-
|
112
|
-
deserialized_property = object['claimValue']
|
113
|
-
output_object.claim_value = deserialized_property
|
114
|
-
|
115
|
-
deserialized_property = object['rights']
|
116
|
-
unless deserialized_property.nil?
|
117
|
-
deserialized_array = []
|
118
|
-
deserialized_property.each do |element1|
|
119
|
-
if (!element1.nil? && !element1.empty?)
|
120
|
-
enum_is_valid = AccessRights.constants.any? { |e| AccessRights.const_get(e).to_s.downcase == element1.downcase }
|
121
|
-
warn 'Enum AccessRights does not contain ' + element1.downcase + ', but was received from the server.' unless enum_is_valid
|
122
|
-
end
|
123
|
-
deserialized_array.push(element1)
|
124
|
-
end
|
125
|
-
deserialized_property = deserialized_array
|
126
|
-
end
|
127
|
-
output_object.rights = deserialized_property
|
128
|
-
|
129
|
-
deserialized_property = object['createdTime']
|
130
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
131
|
-
output_object.created_time = deserialized_property
|
132
|
-
|
133
|
-
deserialized_property = object['modifiedTime']
|
134
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
135
|
-
output_object.modified_time = deserialized_property
|
136
|
-
|
137
|
-
deserialized_property = object['revision']
|
138
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
139
|
-
output_object.revision = deserialized_property
|
140
|
-
|
141
|
-
output_object
|
142
|
-
end
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
@@ -1,113 +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 AuthorizationRules.
|
10
|
-
#
|
11
|
-
class SharedAccessAuthorizationRuleResource
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the id of the created Namespace
|
16
|
-
# AuthorizationRules.
|
17
|
-
attr_accessor :id
|
18
|
-
|
19
|
-
# @return [String] Gets or sets datacenter location of the Namespace
|
20
|
-
# AuthorizationRules.
|
21
|
-
attr_accessor :location
|
22
|
-
|
23
|
-
# @return [String] Gets or sets name of the Namespace AuthorizationRules.
|
24
|
-
attr_accessor :name
|
25
|
-
|
26
|
-
# @return [String] Gets or sets resource type of the Namespace
|
27
|
-
# AuthorizationRules.
|
28
|
-
attr_accessor :type
|
29
|
-
|
30
|
-
# @return [Hash{String => String}] Gets or sets tags of the Namespace
|
31
|
-
# AuthorizationRules.
|
32
|
-
attr_accessor :tags
|
33
|
-
|
34
|
-
# @return [SharedAccessAuthorizationRuleProperties] Gets or sets
|
35
|
-
# properties of the Namespace.
|
36
|
-
attr_accessor :properties
|
37
|
-
|
38
|
-
#
|
39
|
-
# Validate the object. Throws ValidationError if validation fails.
|
40
|
-
#
|
41
|
-
def validate
|
42
|
-
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
43
|
-
@properties.validate unless @properties.nil?
|
44
|
-
end
|
45
|
-
|
46
|
-
#
|
47
|
-
# Serializes given Model object into Ruby Hash.
|
48
|
-
# @param object Model object to serialize.
|
49
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
50
|
-
#
|
51
|
-
def self.serialize_object(object)
|
52
|
-
object.validate
|
53
|
-
output_object = {}
|
54
|
-
|
55
|
-
serialized_property = object.id
|
56
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
57
|
-
|
58
|
-
serialized_property = object.location
|
59
|
-
output_object['location'] = serialized_property unless serialized_property.nil?
|
60
|
-
|
61
|
-
serialized_property = object.name
|
62
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
63
|
-
|
64
|
-
serialized_property = object.type
|
65
|
-
output_object['type'] = serialized_property unless serialized_property.nil?
|
66
|
-
|
67
|
-
serialized_property = object.tags
|
68
|
-
output_object['tags'] = serialized_property unless serialized_property.nil?
|
69
|
-
|
70
|
-
serialized_property = object.properties
|
71
|
-
unless serialized_property.nil?
|
72
|
-
serialized_property = SharedAccessAuthorizationRuleProperties.serialize_object(serialized_property)
|
73
|
-
end
|
74
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
75
|
-
|
76
|
-
output_object
|
77
|
-
end
|
78
|
-
|
79
|
-
#
|
80
|
-
# Deserializes given Ruby Hash into Model object.
|
81
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
82
|
-
# @return [SharedAccessAuthorizationRuleResource] Deserialized object.
|
83
|
-
#
|
84
|
-
def self.deserialize_object(object)
|
85
|
-
return if object.nil?
|
86
|
-
output_object = SharedAccessAuthorizationRuleResource.new
|
87
|
-
|
88
|
-
deserialized_property = object['id']
|
89
|
-
output_object.id = deserialized_property
|
90
|
-
|
91
|
-
deserialized_property = object['location']
|
92
|
-
output_object.location = deserialized_property
|
93
|
-
|
94
|
-
deserialized_property = object['name']
|
95
|
-
output_object.name = deserialized_property
|
96
|
-
|
97
|
-
deserialized_property = object['type']
|
98
|
-
output_object.type = deserialized_property
|
99
|
-
|
100
|
-
deserialized_property = object['tags']
|
101
|
-
output_object.tags = deserialized_property
|
102
|
-
|
103
|
-
deserialized_property = object['properties']
|
104
|
-
unless deserialized_property.nil?
|
105
|
-
deserialized_property = SharedAccessAuthorizationRuleProperties.deserialize_object(deserialized_property)
|
106
|
-
end
|
107
|
-
output_object.properties = deserialized_property
|
108
|
-
|
109
|
-
output_object
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
@@ -1,63 +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 NotificationHub WnsCredential.
|
10
|
-
#
|
11
|
-
class WnsCredential
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [WnsCredentialProperties] Gets or sets properties of
|
16
|
-
# NotificationHub WnsCredential.
|
17
|
-
attr_accessor :properties
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
@properties.validate unless @properties.nil?
|
24
|
-
end
|
25
|
-
|
26
|
-
#
|
27
|
-
# Serializes given Model object into Ruby Hash.
|
28
|
-
# @param object Model object to serialize.
|
29
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
30
|
-
#
|
31
|
-
def self.serialize_object(object)
|
32
|
-
object.validate
|
33
|
-
output_object = {}
|
34
|
-
|
35
|
-
serialized_property = object.properties
|
36
|
-
unless serialized_property.nil?
|
37
|
-
serialized_property = WnsCredentialProperties.serialize_object(serialized_property)
|
38
|
-
end
|
39
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
40
|
-
|
41
|
-
output_object
|
42
|
-
end
|
43
|
-
|
44
|
-
#
|
45
|
-
# Deserializes given Ruby Hash into Model object.
|
46
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
47
|
-
# @return [WnsCredential] Deserialized object.
|
48
|
-
#
|
49
|
-
def self.deserialize_object(object)
|
50
|
-
return if object.nil?
|
51
|
-
output_object = WnsCredential.new
|
52
|
-
|
53
|
-
deserialized_property = object['properties']
|
54
|
-
unless deserialized_property.nil?
|
55
|
-
deserialized_property = WnsCredentialProperties.deserialize_object(deserialized_property)
|
56
|
-
end
|
57
|
-
output_object.properties = deserialized_property
|
58
|
-
|
59
|
-
output_object
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
@@ -1,74 +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 NotificationHub WnsCredential.
|
10
|
-
#
|
11
|
-
class WnsCredentialProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the package ID for this credential.
|
16
|
-
attr_accessor :package_sid
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the secret key.
|
19
|
-
attr_accessor :secret_key
|
20
|
-
|
21
|
-
# @return [String] Gets or sets the Windows Live endpoint.
|
22
|
-
attr_accessor :windows_live_endpoint
|
23
|
-
|
24
|
-
#
|
25
|
-
# Validate the object. Throws ValidationError if validation fails.
|
26
|
-
#
|
27
|
-
def validate
|
28
|
-
# Nothing to validate
|
29
|
-
end
|
30
|
-
|
31
|
-
#
|
32
|
-
# Serializes given Model object into Ruby Hash.
|
33
|
-
# @param object Model object to serialize.
|
34
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
35
|
-
#
|
36
|
-
def self.serialize_object(object)
|
37
|
-
object.validate
|
38
|
-
output_object = {}
|
39
|
-
|
40
|
-
serialized_property = object.package_sid
|
41
|
-
output_object['packageSid'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
serialized_property = object.secret_key
|
44
|
-
output_object['secretKey'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
serialized_property = object.windows_live_endpoint
|
47
|
-
output_object['windowsLiveEndpoint'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
output_object
|
50
|
-
end
|
51
|
-
|
52
|
-
#
|
53
|
-
# Deserializes given Ruby Hash into Model object.
|
54
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
55
|
-
# @return [WnsCredentialProperties] Deserialized object.
|
56
|
-
#
|
57
|
-
def self.deserialize_object(object)
|
58
|
-
return if object.nil?
|
59
|
-
output_object = WnsCredentialProperties.new
|
60
|
-
|
61
|
-
deserialized_property = object['packageSid']
|
62
|
-
output_object.package_sid = deserialized_property
|
63
|
-
|
64
|
-
deserialized_property = object['secretKey']
|
65
|
-
output_object.secret_key = deserialized_property
|
66
|
-
|
67
|
-
deserialized_property = object['windowsLiveEndpoint']
|
68
|
-
output_object.windows_live_endpoint = deserialized_property
|
69
|
-
|
70
|
-
output_object
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|