azure_mgmt_notification_hubs 0.16.0 → 0.17.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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs.rb +15 -12
  3. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +1 -1
  4. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb +1 -1
  5. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/debug_send_response.rb +128 -0
  6. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/error_response.rb +58 -0
  7. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +35 -1
  8. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +35 -1
  9. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +1 -1
  10. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_patch_parameters.rb +216 -0
  11. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +1 -1
  12. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/{check_name_availability_request_parameters.rb → operation.rb} +15 -15
  13. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/{check_name_availability_response.rb → operation_display.rb} +22 -21
  14. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_list_result.rb +103 -0
  15. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb +1 -1
  16. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/resource.rb +1 -1
  17. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +1 -61
  18. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +98 -0
  19. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +99 -1
  20. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb +7 -7
  21. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb +228 -6
  22. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +11 -14
  23. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/operations.rb +215 -0
  24. data/lib/profiles/latest/modules/notificationhubs_profile_module.rb +53 -39
  25. data/lib/version.rb +1 -1
  26. metadata +12 -9
  27. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb +0 -131
  28. data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb +0 -129
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf527a6005dfe5f5944e4b579c5b68c849cb3606
4
- data.tar.gz: 49748d58024697bb944b5745972f3477f6a106e2
3
+ metadata.gz: 4fba156f720f5ba048f15c157a0a367cd66d5bc3
4
+ data.tar.gz: b593b7bf8a75a6cbea8911d37125e727d9b17052
5
5
  SHA512:
6
- metadata.gz: 408b8b2290adb392de170aa51a03b564866018c29a773a655f913e1fce8518cf52949246639d91366e2ece62aa091c4eee01b1f141405222837a82f3c03d1107
7
- data.tar.gz: 455148038b06d83a65c6ef55b48a7c6baa85d36b3ba48d66dc063e1136eb122c526b3d088ab225f90c1d991e5c4ad39bdcded060af2a465d8356912a1edfaa5f
6
+ metadata.gz: 4113c81d741b1f03f1a5a707c5a7dfd3a37ba03597e28831ff9225ab1b57aac34a98df4adbd161e95e31f2b955fd710ff760426b891ba59409f384da3355ed0b
7
+ data.tar.gz: d0640aebf49689cad82760413166b507e0daf8b95648c9e795209e9827ea19219de378fa3880bbba06240e636e94ec42e4b98f35fe9f484baf03a5da401a93ec
@@ -20,39 +20,42 @@ require '2017-04-01/generated/azure_mgmt_notification_hubs/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::NotificationHubs::Mgmt::V2017_04_01
23
+ autoload :Operations, '2017-04-01/generated/azure_mgmt_notification_hubs/operations.rb'
23
24
  autoload :Namespaces, '2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb'
24
- autoload :Name, '2017-04-01/generated/azure_mgmt_notification_hubs/name.rb'
25
25
  autoload :NotificationHubs, '2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb'
26
- autoload :Hubs, '2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb'
27
26
  autoload :NotificationHubsManagementClient, '2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb'
28
27
 
29
28
  module Models
30
29
  autoload :ResourceListKeys, '2017-04-01/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb'
31
30
  autoload :PolicykeyResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb'
32
- autoload :CheckNameAvailabilityResponse, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb'
31
+ autoload :Operation, '2017-04-01/generated/azure_mgmt_notification_hubs/models/operation.rb'
33
32
  autoload :ApnsCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/apns_credential.rb'
34
- autoload :CheckAvailabilityParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb'
33
+ autoload :ErrorResponse, '2017-04-01/generated/azure_mgmt_notification_hubs/models/error_response.rb'
35
34
  autoload :WnsCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/wns_credential.rb'
36
- autoload :CheckNameAvailabilityRequestParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb'
37
- autoload :NamespacePatchParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb'
35
+ autoload :CheckAvailabilityParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb'
36
+ autoload :GcmCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb'
37
+ autoload :OperationDisplay, '2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_display.rb'
38
+ autoload :OperationListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_list_result.rb'
38
39
  autoload :Sku, '2017-04-01/generated/azure_mgmt_notification_hubs/models/sku.rb'
39
- autoload :SharedAccessAuthorizationRuleProperties, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb'
40
+ autoload :SharedAccessAuthorizationRuleCreateOrUpdateParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb'
40
41
  autoload :SubResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/sub_resource.rb'
41
- autoload :BaiduCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb'
42
- autoload :NamespaceListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb'
43
42
  autoload :NotificationHubListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb'
44
- autoload :GcmCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb'
45
43
  autoload :SharedAccessAuthorizationRuleListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb'
46
- autoload :MpnsCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb'
47
44
  autoload :Resource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/resource.rb'
45
+ autoload :SharedAccessAuthorizationRuleProperties, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb'
46
+ autoload :MpnsCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb'
47
+ autoload :NamespacePatchParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb'
48
48
  autoload :AdmCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/adm_credential.rb'
49
+ autoload :NamespaceListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb'
50
+ autoload :BaiduCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb'
49
51
  autoload :CheckAvailabilityResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb'
50
52
  autoload :NamespaceCreateOrUpdateParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb'
51
53
  autoload :NamespaceResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb'
52
- autoload :SharedAccessAuthorizationRuleCreateOrUpdateParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb'
53
54
  autoload :SharedAccessAuthorizationRuleResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb'
54
55
  autoload :NotificationHubCreateOrUpdateParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb'
56
+ autoload :NotificationHubPatchParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_patch_parameters.rb'
55
57
  autoload :NotificationHubResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb'
58
+ autoload :DebugSendResponse, '2017-04-01/generated/azure_mgmt_notification_hubs/models/debug_send_response.rb'
56
59
  autoload :PnsCredentialsResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb'
57
60
  autoload :SkuName, '2017-04-01/generated/azure_mgmt_notification_hubs/models/sku_name.rb'
58
61
  autoload :NamespaceType, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_type.rb'
@@ -77,7 +77,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
77
77
  },
78
78
  location: {
79
79
  client_side_validation: true,
80
- required: true,
80
+ required: false,
81
81
  serialized_name: 'location',
82
82
  type: {
83
83
  name: 'String'
@@ -59,7 +59,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
59
59
  },
60
60
  location: {
61
61
  client_side_validation: true,
62
- required: true,
62
+ required: false,
63
63
  serialized_name: 'location',
64
64
  type: {
65
65
  name: 'String'
@@ -0,0 +1,128 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::NotificationHubs::Mgmt::V2017_04_01
7
+ module Models
8
+ #
9
+ # Description of a NotificationHub Resource.
10
+ #
11
+ class DebugSendResponse < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Float] successful send
16
+ attr_accessor :success
17
+
18
+ # @return [Float] send failure
19
+ attr_accessor :failure
20
+
21
+ # @return actual failure description
22
+ attr_accessor :results
23
+
24
+
25
+ #
26
+ # Mapper for DebugSendResponse class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'DebugSendResponse',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'DebugSendResponse',
37
+ model_properties: {
38
+ id: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'id',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ name: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'name',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ type: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'type',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ location: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'location',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ tags: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'tags',
77
+ type: {
78
+ name: 'Dictionary',
79
+ value: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'StringElementType',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ }
87
+ }
88
+ },
89
+ sku: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'sku',
93
+ type: {
94
+ name: 'Composite',
95
+ class_name: 'Sku'
96
+ }
97
+ },
98
+ success: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'properties.success',
102
+ type: {
103
+ name: 'Double'
104
+ }
105
+ },
106
+ failure: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ serialized_name: 'properties.failure',
110
+ type: {
111
+ name: 'Double'
112
+ }
113
+ },
114
+ results: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'properties.results',
118
+ type: {
119
+ name: 'Object'
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ end
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,58 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::NotificationHubs::Mgmt::V2017_04_01
7
+ module Models
8
+ #
9
+ # Error reponse indicates NotificationHubs service is not able to process
10
+ # the incoming request. The reason is provided in the error message.
11
+ #
12
+ class ErrorResponse
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Error code.
17
+ attr_accessor :code
18
+
19
+ # @return [String] Error message indicating why the operation failed.
20
+ attr_accessor :message
21
+
22
+
23
+ #
24
+ # Mapper for ErrorResponse class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'ErrorResponse',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ErrorResponse',
35
+ model_properties: {
36
+ code: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'code',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ message: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'message',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -25,6 +25,9 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
25
25
  # WestNorth EuropeWest Europe
26
26
  attr_accessor :region
27
27
 
28
+ # @return [String] Identifier for Azure Insights metrics
29
+ attr_accessor :metric_id
30
+
28
31
  # @return [String] Status of the namespace. It can be any of these
29
32
  # values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
30
33
  attr_accessor :status
@@ -32,6 +35,9 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
32
35
  # @return [DateTime] The time the namespace was created.
33
36
  attr_accessor :created_at
34
37
 
38
+ # @return [DateTime] The time the namespace was updated.
39
+ attr_accessor :updated_at
40
+
35
41
  # @return [String] Endpoint you can use to perform NotificationHub
36
42
  # operations.
37
43
  attr_accessor :service_bus_endpoint
@@ -49,6 +55,9 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
49
55
  # @return [Boolean] Whether or not the namespace is set as Critical.
50
56
  attr_accessor :critical
51
57
 
58
+ # @return [String] Data center for the namespace
59
+ attr_accessor :data_center
60
+
52
61
  # @return [NamespaceType] The namespace type. Possible values include:
53
62
  # 'Messaging', 'NotificationHub'
54
63
  attr_accessor :namespace_type
@@ -96,7 +105,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
96
105
  },
97
106
  location: {
98
107
  client_side_validation: true,
99
- required: true,
108
+ required: false,
100
109
  serialized_name: 'location',
101
110
  type: {
102
111
  name: 'String'
@@ -151,6 +160,15 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
151
160
  name: 'String'
152
161
  }
153
162
  },
163
+ metric_id: {
164
+ client_side_validation: true,
165
+ required: false,
166
+ read_only: true,
167
+ serialized_name: 'properties.metricId',
168
+ type: {
169
+ name: 'String'
170
+ }
171
+ },
154
172
  status: {
155
173
  client_side_validation: true,
156
174
  required: false,
@@ -167,6 +185,14 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
167
185
  name: 'DateTime'
168
186
  }
169
187
  },
188
+ updated_at: {
189
+ client_side_validation: true,
190
+ required: false,
191
+ serialized_name: 'properties.updatedAt',
192
+ type: {
193
+ name: 'DateTime'
194
+ }
195
+ },
170
196
  service_bus_endpoint: {
171
197
  client_side_validation: true,
172
198
  required: false,
@@ -207,6 +233,14 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
207
233
  name: 'Boolean'
208
234
  }
209
235
  },
236
+ data_center: {
237
+ client_side_validation: true,
238
+ required: false,
239
+ serialized_name: 'properties.dataCenter',
240
+ type: {
241
+ name: 'String'
242
+ }
243
+ },
210
244
  namespace_type: {
211
245
  client_side_validation: true,
212
246
  required: false,
@@ -25,6 +25,9 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
25
25
  # WestNorth EuropeWest Europe
26
26
  attr_accessor :region
27
27
 
28
+ # @return [String] Identifier for Azure Insights metrics
29
+ attr_accessor :metric_id
30
+
28
31
  # @return [String] Status of the namespace. It can be any of these
29
32
  # values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
30
33
  attr_accessor :status
@@ -32,6 +35,9 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
32
35
  # @return [DateTime] The time the namespace was created.
33
36
  attr_accessor :created_at
34
37
 
38
+ # @return [DateTime] The time the namespace was updated.
39
+ attr_accessor :updated_at
40
+
35
41
  # @return [String] Endpoint you can use to perform NotificationHub
36
42
  # operations.
37
43
  attr_accessor :service_bus_endpoint
@@ -49,6 +55,9 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
49
55
  # @return [Boolean] Whether or not the namespace is set as Critical.
50
56
  attr_accessor :critical
51
57
 
58
+ # @return [String] Data center for the namespace
59
+ attr_accessor :data_center
60
+
52
61
  # @return [NamespaceType] The namespace type. Possible values include:
53
62
  # 'Messaging', 'NotificationHub'
54
63
  attr_accessor :namespace_type
@@ -96,7 +105,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
96
105
  },
97
106
  location: {
98
107
  client_side_validation: true,
99
- required: true,
108
+ required: false,
100
109
  serialized_name: 'location',
101
110
  type: {
102
111
  name: 'String'
@@ -151,6 +160,15 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
151
160
  name: 'String'
152
161
  }
153
162
  },
163
+ metric_id: {
164
+ client_side_validation: true,
165
+ required: false,
166
+ read_only: true,
167
+ serialized_name: 'properties.metricId',
168
+ type: {
169
+ name: 'String'
170
+ }
171
+ },
154
172
  status: {
155
173
  client_side_validation: true,
156
174
  required: false,
@@ -167,6 +185,14 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
167
185
  name: 'DateTime'
168
186
  }
169
187
  },
188
+ updated_at: {
189
+ client_side_validation: true,
190
+ required: false,
191
+ serialized_name: 'properties.updatedAt',
192
+ type: {
193
+ name: 'DateTime'
194
+ }
195
+ },
170
196
  service_bus_endpoint: {
171
197
  client_side_validation: true,
172
198
  required: false,
@@ -207,6 +233,14 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
207
233
  name: 'Boolean'
208
234
  }
209
235
  },
236
+ data_center: {
237
+ client_side_validation: true,
238
+ required: false,
239
+ serialized_name: 'properties.dataCenter',
240
+ type: {
241
+ name: 'String'
242
+ }
243
+ },
210
244
  namespace_type: {
211
245
  client_side_validation: true,
212
246
  required: false,
@@ -89,7 +89,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
89
89
  },
90
90
  location: {
91
91
  client_side_validation: true,
92
- required: true,
92
+ required: false,
93
93
  serialized_name: 'location',
94
94
  type: {
95
95
  name: 'String'