azure_mgmt_notification_hubs 0.2.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.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE.txt +21 -0
  4. data/Rakefile +5 -0
  5. data/azure_mgmt_notification_hubs.gemspec +35 -0
  6. data/lib/azure_mgmt_notification_hubs.rb +57 -0
  7. data/lib/azure_mgmt_notification_hubs/models/access_rights.rb +17 -0
  8. data/lib/azure_mgmt_notification_hubs/models/adm_credential.rb +63 -0
  9. data/lib/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +74 -0
  10. data/lib/azure_mgmt_notification_hubs/models/apns_credential.rb +63 -0
  11. data/lib/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +83 -0
  12. data/lib/azure_mgmt_notification_hubs/models/baidu_credential.rb +63 -0
  13. data/lib/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +74 -0
  14. data/lib/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +86 -0
  15. data/lib/azure_mgmt_notification_hubs/models/check_availability_resource.rb +102 -0
  16. data/lib/azure_mgmt_notification_hubs/models/gcm_credential.rb +63 -0
  17. data/lib/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +65 -0
  18. data/lib/azure_mgmt_notification_hubs/models/mpns_credential.rb +63 -0
  19. data/lib/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +74 -0
  20. data/lib/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +83 -0
  21. data/lib/azure_mgmt_notification_hubs/models/namespace_list_result.rb +87 -0
  22. data/lib/azure_mgmt_notification_hubs/models/namespace_properties.rb +159 -0
  23. data/lib/azure_mgmt_notification_hubs/models/namespace_resource.rb +108 -0
  24. data/lib/azure_mgmt_notification_hubs/models/namespace_type.rb +16 -0
  25. data/lib/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +84 -0
  26. data/lib/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +87 -0
  27. data/lib/azure_mgmt_notification_hubs/models/notification_hub_properties.rb +197 -0
  28. data/lib/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +111 -0
  29. data/lib/azure_mgmt_notification_hubs/models/resource_list_keys.rb +67 -0
  30. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +83 -0
  31. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +87 -0
  32. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +145 -0
  33. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +113 -0
  34. data/lib/azure_mgmt_notification_hubs/models/wns_credential.rb +63 -0
  35. data/lib/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +74 -0
  36. data/lib/azure_mgmt_notification_hubs/module_definition.rb +8 -0
  37. data/lib/azure_mgmt_notification_hubs/namespaces.rb +1012 -0
  38. data/lib/azure_mgmt_notification_hubs/notification_hubs.rb +896 -0
  39. data/lib/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +72 -0
  40. data/lib/azure_mgmt_notification_hubs/version.rb +8 -0
  41. metadata +167 -0
@@ -0,0 +1,63 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 BaiduCredential.
10
+ #
11
+ class BaiduCredential
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [BaiduCredentialProperties] Gets or sets properties of
16
+ # NotificationHub BaiduCredential.
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 = BaiduCredentialProperties.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 [BaiduCredential] Deserialized object.
48
+ #
49
+ def self.deserialize_object(object)
50
+ return if object.nil?
51
+ output_object = BaiduCredential.new
52
+
53
+ deserialized_property = object['properties']
54
+ unless deserialized_property.nil?
55
+ deserialized_property = BaiduCredentialProperties.deserialize_object(deserialized_property)
56
+ end
57
+ output_object.properties = deserialized_property
58
+
59
+ output_object
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,74 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 BaiduCredential.
10
+ #
11
+ class BaiduCredentialProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Get or Set Baidu Api Key.
16
+ attr_accessor :baidu_api_key
17
+
18
+ # @return [String] Get or Set Baidu Endpoint.
19
+ attr_accessor :baidu_end_point
20
+
21
+ # @return [String] Get or Set Baidu Secret Key
22
+ attr_accessor :baidu_secret_key
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.baidu_api_key
41
+ output_object['baiduApiKey'] = serialized_property unless serialized_property.nil?
42
+
43
+ serialized_property = object.baidu_end_point
44
+ output_object['baiduEndPoint'] = serialized_property unless serialized_property.nil?
45
+
46
+ serialized_property = object.baidu_secret_key
47
+ output_object['baiduSecretKey'] = 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 [BaiduCredentialProperties] Deserialized object.
56
+ #
57
+ def self.deserialize_object(object)
58
+ return if object.nil?
59
+ output_object = BaiduCredentialProperties.new
60
+
61
+ deserialized_property = object['baiduApiKey']
62
+ output_object.baidu_api_key = deserialized_property
63
+
64
+ deserialized_property = object['baiduEndPoint']
65
+ output_object.baidu_end_point = deserialized_property
66
+
67
+ deserialized_property = object['baiduSecretKey']
68
+ output_object.baidu_secret_key = deserialized_property
69
+
70
+ output_object
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,86 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 Check Name Availability for Namespace and
10
+ # NotificationHubs.
11
+ #
12
+ class CheckAvailabilityParameters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Gets or sets name
17
+ attr_accessor :name
18
+
19
+ # @return [String] Gets or sets location.
20
+ attr_accessor :location
21
+
22
+ # @return [Hash{String => String}] Gets or sets tags.
23
+ attr_accessor :tags
24
+
25
+ # @return [Boolean] Gets or sets true if the name is available and can
26
+ # be used to create new Namespace/NotificationHub. Otherwise false.
27
+ attr_accessor :is_availiable
28
+
29
+ #
30
+ # Validate the object. Throws ValidationError if validation fails.
31
+ #
32
+ def validate
33
+ fail MsRest::ValidationError, 'property name is nil' if @name.nil?
34
+ @tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.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.name
47
+ output_object['name'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.location
50
+ output_object['location'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.tags
53
+ output_object['tags'] = serialized_property unless serialized_property.nil?
54
+
55
+ serialized_property = object.is_availiable
56
+ output_object['isAvailiable'] = 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 [CheckAvailabilityParameters] Deserialized object.
65
+ #
66
+ def self.deserialize_object(object)
67
+ return if object.nil?
68
+ output_object = CheckAvailabilityParameters.new
69
+
70
+ deserialized_property = object['name']
71
+ output_object.name = deserialized_property
72
+
73
+ deserialized_property = object['location']
74
+ output_object.location = deserialized_property
75
+
76
+ deserialized_property = object['tags']
77
+ output_object.tags = deserialized_property
78
+
79
+ deserialized_property = object['isAvailiable']
80
+ output_object.is_availiable = deserialized_property
81
+
82
+ output_object
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,102 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 CheckAvailibility resource.
10
+ #
11
+ class CheckAvailabilityResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the id
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets or sets datacenter location
19
+ attr_accessor :location
20
+
21
+ # @return [String] Gets or sets name
22
+ attr_accessor :name
23
+
24
+ # @return [String] Gets or sets resource type
25
+ attr_accessor :type
26
+
27
+ # @return [Hash{String => String}] Gets or sets tags
28
+ attr_accessor :tags
29
+
30
+ # @return [Boolean] Gets or sets true if the name is available and can
31
+ # be used to create new Namespace/NotificationHub. Otherwise false.
32
+ attr_accessor :is_availiable
33
+
34
+ #
35
+ # Validate the object. Throws ValidationError if validation fails.
36
+ #
37
+ def validate
38
+ @tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.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.is_availiable
66
+ output_object['isAvailiable'] = serialized_property unless serialized_property.nil?
67
+
68
+ output_object
69
+ end
70
+
71
+ #
72
+ # Deserializes given Ruby Hash into Model object.
73
+ # @param object [Hash] Ruby Hash object to deserialize.
74
+ # @return [CheckAvailabilityResource] Deserialized object.
75
+ #
76
+ def self.deserialize_object(object)
77
+ return if object.nil?
78
+ output_object = CheckAvailabilityResource.new
79
+
80
+ deserialized_property = object['id']
81
+ output_object.id = deserialized_property
82
+
83
+ deserialized_property = object['location']
84
+ output_object.location = deserialized_property
85
+
86
+ deserialized_property = object['name']
87
+ output_object.name = deserialized_property
88
+
89
+ deserialized_property = object['type']
90
+ output_object.type = deserialized_property
91
+
92
+ deserialized_property = object['tags']
93
+ output_object.tags = deserialized_property
94
+
95
+ deserialized_property = object['isAvailiable']
96
+ output_object.is_availiable = deserialized_property
97
+
98
+ output_object
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,63 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 GcmCredential.
10
+ #
11
+ class GcmCredential
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [GcmCredentialProperties] Gets or sets properties of
16
+ # NotificationHub GcmCredential.
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 = GcmCredentialProperties.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 [GcmCredential] Deserialized object.
48
+ #
49
+ def self.deserialize_object(object)
50
+ return if object.nil?
51
+ output_object = GcmCredential.new
52
+
53
+ deserialized_property = object['properties']
54
+ unless deserialized_property.nil?
55
+ deserialized_property = GcmCredentialProperties.deserialize_object(deserialized_property)
56
+ end
57
+ output_object.properties = deserialized_property
58
+
59
+ output_object
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,65 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 GcmCredential.
10
+ #
11
+ class GcmCredentialProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the GCM endpoint.
16
+ attr_accessor :gcm_endpoint
17
+
18
+ # @return [String] Gets or sets the Google API key.
19
+ attr_accessor :google_api_key
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.gcm_endpoint
38
+ output_object['gcmEndpoint'] = serialized_property unless serialized_property.nil?
39
+
40
+ serialized_property = object.google_api_key
41
+ output_object['googleApiKey'] = 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 [GcmCredentialProperties] Deserialized object.
50
+ #
51
+ def self.deserialize_object(object)
52
+ return if object.nil?
53
+ output_object = GcmCredentialProperties.new
54
+
55
+ deserialized_property = object['gcmEndpoint']
56
+ output_object.gcm_endpoint = deserialized_property
57
+
58
+ deserialized_property = object['googleApiKey']
59
+ output_object.google_api_key = deserialized_property
60
+
61
+ output_object
62
+ end
63
+ end
64
+ end
65
+ end