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.
Files changed (66) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_notification_hubs.gemspec +4 -5
  3. data/lib/azure_mgmt_notification_hubs.rb +3 -56
  4. data/lib/generated/azure_mgmt_notification_hubs.rb +58 -0
  5. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/models/access_rights.rb +0 -0
  6. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential.rb +46 -0
  7. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +64 -0
  8. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential.rb +46 -0
  9. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +74 -0
  10. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb +46 -0
  11. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +64 -0
  12. data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +83 -0
  13. data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_resource.rb +102 -0
  14. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb +46 -0
  15. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +54 -0
  16. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb +46 -0
  17. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +64 -0
  18. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +72 -0
  19. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb +95 -0
  20. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_properties.rb +153 -0
  21. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +102 -0
  22. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/models/namespace_type.rb +0 -0
  23. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +73 -0
  24. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +95 -0
  25. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_properties.rb +145 -0
  26. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +105 -0
  27. data/lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb +56 -0
  28. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +67 -0
  29. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +97 -0
  30. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +133 -0
  31. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +107 -0
  32. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb +46 -0
  33. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +64 -0
  34. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/module_definition.rb +0 -0
  35. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/namespaces.rb +166 -82
  36. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/notification_hubs.rb +119 -72
  37. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/notification_hubs_management_client.rb +4 -4
  38. data/lib/{azure_mgmt_notification_hubs → generated/azure_mgmt_notification_hubs}/version.rb +1 -1
  39. metadata +56 -76
  40. data/lib/azure_mgmt_notification_hubs/models/adm_credential.rb +0 -63
  41. data/lib/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +0 -74
  42. data/lib/azure_mgmt_notification_hubs/models/apns_credential.rb +0 -63
  43. data/lib/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +0 -83
  44. data/lib/azure_mgmt_notification_hubs/models/baidu_credential.rb +0 -63
  45. data/lib/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +0 -74
  46. data/lib/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +0 -86
  47. data/lib/azure_mgmt_notification_hubs/models/check_availability_resource.rb +0 -102
  48. data/lib/azure_mgmt_notification_hubs/models/gcm_credential.rb +0 -63
  49. data/lib/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +0 -65
  50. data/lib/azure_mgmt_notification_hubs/models/mpns_credential.rb +0 -63
  51. data/lib/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +0 -74
  52. data/lib/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +0 -83
  53. data/lib/azure_mgmt_notification_hubs/models/namespace_list_result.rb +0 -87
  54. data/lib/azure_mgmt_notification_hubs/models/namespace_properties.rb +0 -159
  55. data/lib/azure_mgmt_notification_hubs/models/namespace_resource.rb +0 -108
  56. data/lib/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +0 -84
  57. data/lib/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +0 -87
  58. data/lib/azure_mgmt_notification_hubs/models/notification_hub_properties.rb +0 -197
  59. data/lib/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +0 -111
  60. data/lib/azure_mgmt_notification_hubs/models/resource_list_keys.rb +0 -67
  61. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +0 -83
  62. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +0 -87
  63. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +0 -145
  64. data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +0 -113
  65. data/lib/azure_mgmt_notification_hubs/models/wns_credential.rb +0 -63
  66. data/lib/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +0 -74
@@ -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 AdmCredential.
10
- #
11
- class AdmCredential
12
-
13
- include MsRestAzure
14
-
15
- # @return [AdmCredentialProperties] Gets or sets properties of
16
- # NotificationHub AdmCredential.
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 = AdmCredentialProperties.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 [AdmCredential] Deserialized object.
48
- #
49
- def self.deserialize_object(object)
50
- return if object.nil?
51
- output_object = AdmCredential.new
52
-
53
- deserialized_property = object['properties']
54
- unless deserialized_property.nil?
55
- deserialized_property = AdmCredentialProperties.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 AdmCredential.
10
- #
11
- class AdmCredentialProperties
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets or sets the client identifier.
16
- attr_accessor :client_id
17
-
18
- # @return [String] Gets or sets the credential secret access key.
19
- attr_accessor :client_secret
20
-
21
- # @return [String] Gets or sets the URL of the authorization token.
22
- attr_accessor :auth_token_url
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.client_id
41
- output_object['clientId'] = serialized_property unless serialized_property.nil?
42
-
43
- serialized_property = object.client_secret
44
- output_object['clientSecret'] = serialized_property unless serialized_property.nil?
45
-
46
- serialized_property = object.auth_token_url
47
- output_object['authTokenUrl'] = 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 [AdmCredentialProperties] Deserialized object.
56
- #
57
- def self.deserialize_object(object)
58
- return if object.nil?
59
- output_object = AdmCredentialProperties.new
60
-
61
- deserialized_property = object['clientId']
62
- output_object.client_id = deserialized_property
63
-
64
- deserialized_property = object['clientSecret']
65
- output_object.client_secret = deserialized_property
66
-
67
- deserialized_property = object['authTokenUrl']
68
- output_object.auth_token_url = deserialized_property
69
-
70
- output_object
71
- end
72
- end
73
- end
74
- 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 ApnsCredential.
10
- #
11
- class ApnsCredential
12
-
13
- include MsRestAzure
14
-
15
- # @return [ApnsCredentialProperties] Gets or sets properties of
16
- # NotificationHub ApnsCredential.
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 = ApnsCredentialProperties.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 [ApnsCredential] Deserialized object.
48
- #
49
- def self.deserialize_object(object)
50
- return if object.nil?
51
- output_object = ApnsCredential.new
52
-
53
- deserialized_property = object['properties']
54
- unless deserialized_property.nil?
55
- deserialized_property = ApnsCredentialProperties.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,83 +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 ApnsCredential.
10
- #
11
- class ApnsCredentialProperties
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets or sets the APNS certificate.
16
- attr_accessor :apns_certificate
17
-
18
- # @return [String] Gets or sets the certificate key.
19
- attr_accessor :certificate_key
20
-
21
- # @return [String] Gets or sets the endpoint of this credential.
22
- attr_accessor :endpoint
23
-
24
- # @return [String] Gets or sets the Apns certificate Thumbprint
25
- attr_accessor :thumbprint
26
-
27
- #
28
- # Validate the object. Throws ValidationError if validation fails.
29
- #
30
- def validate
31
- # Nothing to validate
32
- end
33
-
34
- #
35
- # Serializes given Model object into Ruby Hash.
36
- # @param object Model object to serialize.
37
- # @return [Hash] Serialized object in form of Ruby Hash.
38
- #
39
- def self.serialize_object(object)
40
- object.validate
41
- output_object = {}
42
-
43
- serialized_property = object.apns_certificate
44
- output_object['apnsCertificate'] = serialized_property unless serialized_property.nil?
45
-
46
- serialized_property = object.certificate_key
47
- output_object['certificateKey'] = serialized_property unless serialized_property.nil?
48
-
49
- serialized_property = object.endpoint
50
- output_object['endpoint'] = serialized_property unless serialized_property.nil?
51
-
52
- serialized_property = object.thumbprint
53
- output_object['thumbprint'] = 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 [ApnsCredentialProperties] Deserialized object.
62
- #
63
- def self.deserialize_object(object)
64
- return if object.nil?
65
- output_object = ApnsCredentialProperties.new
66
-
67
- deserialized_property = object['apnsCertificate']
68
- output_object.apns_certificate = deserialized_property
69
-
70
- deserialized_property = object['certificateKey']
71
- output_object.certificate_key = deserialized_property
72
-
73
- deserialized_property = object['endpoint']
74
- output_object.endpoint = deserialized_property
75
-
76
- deserialized_property = object['thumbprint']
77
- output_object.thumbprint = deserialized_property
78
-
79
- output_object
80
- end
81
- end
82
- end
83
- 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 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
@@ -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 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
@@ -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::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