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
@@ -0,0 +1,95 @@
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
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<NotificationHubResource>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [NotificationHubListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for NotificationHubListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ required: false,
62
+ serialized_name: 'NotificationHubListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'NotificationHubListResult',
66
+ model_properties: {
67
+ value: {
68
+ required: false,
69
+ serialized_name: 'value',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ required: false,
74
+ serialized_name: 'NotificationHubResourceElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'NotificationHubResource'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ next_link: {
83
+ required: false,
84
+ serialized_name: 'nextLink',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,145 @@
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
+ # NotificationHub properties.
10
+ #
11
+ class NotificationHubProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The NotificationHub name.
16
+ attr_accessor :name
17
+
18
+ # @return [String] The RegistrationTtl of the created NotificationHub
19
+ attr_accessor :registration_ttl
20
+
21
+ # @return [Array<SharedAccessAuthorizationRuleProperties>] The
22
+ # AuthorizationRules of the created NotificationHub
23
+ attr_accessor :authorization_rules
24
+
25
+ # @return [ApnsCredential] The ApnsCredential of the created
26
+ # NotificationHub
27
+ attr_accessor :apns_credential
28
+
29
+ # @return [WnsCredential] The WnsCredential of the created
30
+ # NotificationHub
31
+ attr_accessor :wns_credential
32
+
33
+ # @return [GcmCredential] The GcmCredential of the created
34
+ # NotificationHub
35
+ attr_accessor :gcm_credential
36
+
37
+ # @return [MpnsCredential] The MpnsCredential of the created
38
+ # NotificationHub
39
+ attr_accessor :mpns_credential
40
+
41
+ # @return [AdmCredential] The AdmCredential of the created
42
+ # NotificationHub
43
+ attr_accessor :adm_credential
44
+
45
+ # @return [BaiduCredential] The BaiduCredential of the created
46
+ # NotificationHub
47
+ attr_accessor :baidu_credential
48
+
49
+
50
+ #
51
+ # Mapper for NotificationHubProperties class as Ruby Hash.
52
+ # This will be used for serialization/deserialization.
53
+ #
54
+ def self.mapper()
55
+ {
56
+ required: false,
57
+ serialized_name: 'NotificationHubProperties',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'NotificationHubProperties',
61
+ model_properties: {
62
+ name: {
63
+ required: false,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ registration_ttl: {
70
+ required: false,
71
+ serialized_name: 'registrationTtl',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ authorization_rules: {
77
+ required: false,
78
+ serialized_name: 'authorizationRules',
79
+ type: {
80
+ name: 'Sequence',
81
+ element: {
82
+ required: false,
83
+ serialized_name: 'SharedAccessAuthorizationRulePropertiesElementType',
84
+ type: {
85
+ name: 'Composite',
86
+ class_name: 'SharedAccessAuthorizationRuleProperties'
87
+ }
88
+ }
89
+ }
90
+ },
91
+ apns_credential: {
92
+ required: false,
93
+ serialized_name: 'apnsCredential',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'ApnsCredential'
97
+ }
98
+ },
99
+ wns_credential: {
100
+ required: false,
101
+ serialized_name: 'wnsCredential',
102
+ type: {
103
+ name: 'Composite',
104
+ class_name: 'WnsCredential'
105
+ }
106
+ },
107
+ gcm_credential: {
108
+ required: false,
109
+ serialized_name: 'gcmCredential',
110
+ type: {
111
+ name: 'Composite',
112
+ class_name: 'GcmCredential'
113
+ }
114
+ },
115
+ mpns_credential: {
116
+ required: false,
117
+ serialized_name: 'mpnsCredential',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'MpnsCredential'
121
+ }
122
+ },
123
+ adm_credential: {
124
+ required: false,
125
+ serialized_name: 'admCredential',
126
+ type: {
127
+ name: 'Composite',
128
+ class_name: 'AdmCredential'
129
+ }
130
+ },
131
+ baidu_credential: {
132
+ required: false,
133
+ serialized_name: 'baiduCredential',
134
+ type: {
135
+ name: 'Composite',
136
+ class_name: 'BaiduCredential'
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ end
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,105 @@
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 Resource.
10
+ #
11
+ class NotificationHubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the id of the created NotificationHub.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets or sets datacenter location of the
19
+ # NotificationHub.
20
+ attr_accessor :location
21
+
22
+ # @return [String] Gets or sets name of the NotificationHub.
23
+ attr_accessor :name
24
+
25
+ # @return [String] Gets or sets resource type of the NotificationHub.
26
+ attr_accessor :type
27
+
28
+ # @return [Hash{String => String}] Gets or sets tags of the
29
+ # NotificationHub.
30
+ attr_accessor :tags
31
+
32
+ # @return [NotificationHubProperties] Gets or sets properties of the
33
+ # NotificationHub.
34
+ attr_accessor :properties
35
+
36
+
37
+ #
38
+ # Mapper for NotificationHubResource class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ required: false,
44
+ serialized_name: 'NotificationHubResource',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'NotificationHubResource',
48
+ model_properties: {
49
+ id: {
50
+ required: false,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ location: {
57
+ required: false,
58
+ serialized_name: 'location',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ name: {
64
+ required: false,
65
+ serialized_name: 'name',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ type: {
71
+ required: false,
72
+ serialized_name: 'type',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ tags: {
78
+ required: false,
79
+ serialized_name: 'tags',
80
+ type: {
81
+ name: 'Dictionary',
82
+ value: {
83
+ required: false,
84
+ serialized_name: 'StringElementType',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ },
91
+ properties: {
92
+ required: false,
93
+ serialized_name: 'properties',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'NotificationHubProperties'
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,56 @@
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/NotificationHub Connection String
10
+ #
11
+ class ResourceListKeys
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the primaryConnectionString of the
16
+ # created Namespace AuthorizationRule.
17
+ attr_accessor :primary_connection_string
18
+
19
+ # @return [String] Gets or sets the secondaryConnectionString of the
20
+ # created Namespace AuthorizationRule
21
+ attr_accessor :secondary_connection_string
22
+
23
+
24
+ #
25
+ # Mapper for ResourceListKeys class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'ResourceListKeys',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ResourceListKeys',
35
+ model_properties: {
36
+ primary_connection_string: {
37
+ required: false,
38
+ serialized_name: 'primaryConnectionString',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ secondary_connection_string: {
44
+ required: false,
45
+ serialized_name: 'secondaryConnectionString',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,67 @@
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 AuthorizationRules.
10
+ #
11
+ class SharedAccessAuthorizationRuleCreateOrUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets Namespace data center location.
16
+ attr_accessor :location
17
+
18
+ # @return [String] Gets or sets Name of the Namespace AuthorizationRule.
19
+ attr_accessor :name
20
+
21
+ # @return [SharedAccessAuthorizationRuleProperties] Gets or sets
22
+ # properties of the Namespace AuthorizationRules.
23
+ attr_accessor :properties
24
+
25
+
26
+ #
27
+ # Mapper for SharedAccessAuthorizationRuleCreateOrUpdateParameters class
28
+ # as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
38
+ model_properties: {
39
+ location: {
40
+ required: false,
41
+ serialized_name: 'location',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ name: {
47
+ required: false,
48
+ serialized_name: 'name',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ properties: {
54
+ required: true,
55
+ serialized_name: 'properties',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'SharedAccessAuthorizationRuleProperties'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ end