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,102 +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 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
@@ -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 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
@@ -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::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
@@ -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 MpnsCredential.
10
- #
11
- class MpnsCredential
12
-
13
- include MsRestAzure
14
-
15
- # @return [MpnsCredentialProperties] Gets or sets properties of
16
- # NotificationHub MpnsCredential.
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 = MpnsCredentialProperties.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 [MpnsCredential] Deserialized object.
48
- #
49
- def self.deserialize_object(object)
50
- return if object.nil?
51
- output_object = MpnsCredential.new
52
-
53
- deserialized_property = object['properties']
54
- unless deserialized_property.nil?
55
- deserialized_property = MpnsCredentialProperties.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 MpnsCredential.
10
- #
11
- class MpnsCredentialProperties
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets or sets the MPNS certificate.
16
- attr_accessor :mpns_certificate
17
-
18
- # @return [String] Gets or sets the certificate key for this credential.
19
- attr_accessor :certificate_key
20
-
21
- # @return [String] Gets or sets the Mpns certificate Thumbprint
22
- attr_accessor :thumbprint
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.mpns_certificate
41
- output_object['mpnsCertificate'] = serialized_property unless serialized_property.nil?
42
-
43
- serialized_property = object.certificate_key
44
- output_object['certificateKey'] = serialized_property unless serialized_property.nil?
45
-
46
- serialized_property = object.thumbprint
47
- output_object['thumbprint'] = 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 [MpnsCredentialProperties] Deserialized object.
56
- #
57
- def self.deserialize_object(object)
58
- return if object.nil?
59
- output_object = MpnsCredentialProperties.new
60
-
61
- deserialized_property = object['mpnsCertificate']
62
- output_object.mpns_certificate = deserialized_property
63
-
64
- deserialized_property = object['certificateKey']
65
- output_object.certificate_key = deserialized_property
66
-
67
- deserialized_property = object['thumbprint']
68
- output_object.thumbprint = deserialized_property
69
-
70
- output_object
71
- end
72
- end
73
- end
74
- 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
- # Parameters supplied to the CreateOrUpdate Namespace operation.
10
- #
11
- class NamespaceCreateOrUpdateParameters
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets or sets Namespace data center location.
16
- attr_accessor :location
17
-
18
- # @return [Hash{String => String}] Gets or sets Namespace tags.
19
- attr_accessor :tags
20
-
21
- # @return [NamespaceProperties] Gets or sets properties of the Namespace.
22
- attr_accessor :properties
23
-
24
- #
25
- # Validate the object. Throws ValidationError if validation fails.
26
- #
27
- def validate
28
- fail MsRest::ValidationError, 'property location is nil' if @location.nil?
29
- fail MsRest::ValidationError, 'property properties is nil' if @properties.nil?
30
- @tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
31
- @properties.validate unless @properties.nil?
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.location
44
- output_object['location'] = serialized_property unless serialized_property.nil?
45
-
46
- serialized_property = object.properties
47
- unless serialized_property.nil?
48
- serialized_property = NamespaceProperties.serialize_object(serialized_property)
49
- end
50
- output_object['properties'] = serialized_property unless serialized_property.nil?
51
-
52
- serialized_property = object.tags
53
- output_object['tags'] = 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 [NamespaceCreateOrUpdateParameters] Deserialized object.
62
- #
63
- def self.deserialize_object(object)
64
- return if object.nil?
65
- output_object = NamespaceCreateOrUpdateParameters.new
66
-
67
- deserialized_property = object['location']
68
- output_object.location = deserialized_property
69
-
70
- deserialized_property = object['properties']
71
- unless deserialized_property.nil?
72
- deserialized_property = NamespaceProperties.deserialize_object(deserialized_property)
73
- end
74
- output_object.properties = deserialized_property
75
-
76
- deserialized_property = object['tags']
77
- output_object.tags = deserialized_property
78
-
79
- output_object
80
- end
81
- end
82
- end
83
- end