azure_mgmt_notification_hubs 0.14.0 → 0.15.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.
- checksums.yaml +4 -4
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs.rb +61 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/hubs.rb +3 -3
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/access_rights.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/adm_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/apns_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/baidu_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/check_availability_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/check_name_availability_response.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/gcm_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/mpns_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_type.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/policykey_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/resource_list_keys.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/sku.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/sku_name.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/sub_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/wns_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/module_definition.rb +3 -2
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/name.rb +3 -3
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/namespaces.rb +21 -21
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/notification_hubs.rb +18 -18
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +3 -3
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/version.rb +2 -2
- data/lib/azure_mgmt_notification_hubs.rb +2 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/notificationhubs_profile_module.rb +168 -0
- data/lib/profiles/latest/notificationhubs_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/notificationhubs_module_definition.rb +9 -0
- data/lib/version.rb +7 -0
- metadata +47 -40
- data/lib/generated/azure_mgmt_notification_hubs.rb +0 -61
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::NotificationHubs::Mgmt::V2017_04_01
|
7
7
|
#
|
8
8
|
# Azure NotificationHub client
|
9
9
|
#
|
@@ -78,7 +78,7 @@ module Azure::ARM::NotificationHubs
|
|
78
78
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
79
|
|
80
80
|
# Serialize Request
|
81
|
-
request_mapper = Azure::
|
81
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters.mapper()
|
82
82
|
request_content = @client.serialize(request_mapper, parameters)
|
83
83
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
84
84
|
|
@@ -110,7 +110,7 @@ module Azure::ARM::NotificationHubs
|
|
110
110
|
if status_code == 200
|
111
111
|
begin
|
112
112
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
113
|
-
result_mapper = Azure::
|
113
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult.mapper()
|
114
114
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
115
115
|
rescue Exception => e
|
116
116
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -188,7 +188,7 @@ module Azure::ARM::NotificationHubs
|
|
188
188
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
189
189
|
|
190
190
|
# Serialize Request
|
191
|
-
request_mapper = Azure::
|
191
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters.mapper()
|
192
192
|
request_content = @client.serialize(request_mapper, parameters)
|
193
193
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
194
194
|
|
@@ -220,7 +220,7 @@ module Azure::ARM::NotificationHubs
|
|
220
220
|
if status_code == 201
|
221
221
|
begin
|
222
222
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
223
|
-
result_mapper = Azure::
|
223
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource.mapper()
|
224
224
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
225
225
|
rescue Exception => e
|
226
226
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -230,7 +230,7 @@ module Azure::ARM::NotificationHubs
|
|
230
230
|
if status_code == 200
|
231
231
|
begin
|
232
232
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
233
|
-
result_mapper = Azure::
|
233
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource.mapper()
|
234
234
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
235
235
|
rescue Exception => e
|
236
236
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -305,7 +305,7 @@ module Azure::ARM::NotificationHubs
|
|
305
305
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
306
306
|
|
307
307
|
# Serialize Request
|
308
|
-
request_mapper = Azure::
|
308
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters.mapper()
|
309
309
|
request_content = @client.serialize(request_mapper, parameters)
|
310
310
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
311
311
|
|
@@ -337,7 +337,7 @@ module Azure::ARM::NotificationHubs
|
|
337
337
|
if status_code == 200
|
338
338
|
begin
|
339
339
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
340
|
-
result_mapper = Azure::
|
340
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource.mapper()
|
341
341
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
342
342
|
rescue Exception => e
|
343
343
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -467,7 +467,7 @@ module Azure::ARM::NotificationHubs
|
|
467
467
|
if status_code == 200
|
468
468
|
begin
|
469
469
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
470
|
-
result_mapper = Azure::
|
470
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource.mapper()
|
471
471
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
472
472
|
rescue Exception => e
|
473
473
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -546,7 +546,7 @@ module Azure::ARM::NotificationHubs
|
|
546
546
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
547
547
|
|
548
548
|
# Serialize Request
|
549
|
-
request_mapper = Azure::
|
549
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
|
550
550
|
request_content = @client.serialize(request_mapper, parameters)
|
551
551
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
552
552
|
|
@@ -578,7 +578,7 @@ module Azure::ARM::NotificationHubs
|
|
578
578
|
if status_code == 200
|
579
579
|
begin
|
580
580
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
581
|
-
result_mapper = Azure::
|
581
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource.mapper()
|
582
582
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
583
583
|
rescue Exception => e
|
584
584
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -757,7 +757,7 @@ module Azure::ARM::NotificationHubs
|
|
757
757
|
if status_code == 200
|
758
758
|
begin
|
759
759
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
760
|
-
result_mapper = Azure::
|
760
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource.mapper()
|
761
761
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
762
762
|
rescue Exception => e
|
763
763
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -850,7 +850,7 @@ module Azure::ARM::NotificationHubs
|
|
850
850
|
if status_code == 200
|
851
851
|
begin
|
852
852
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
853
|
-
result_mapper = Azure::
|
853
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult.mapper()
|
854
854
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
855
855
|
rescue Exception => e
|
856
856
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -936,7 +936,7 @@ module Azure::ARM::NotificationHubs
|
|
936
936
|
if status_code == 200
|
937
937
|
begin
|
938
938
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
939
|
-
result_mapper = Azure::
|
939
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult.mapper()
|
940
940
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
941
941
|
rescue Exception => e
|
942
942
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1027,7 +1027,7 @@ module Azure::ARM::NotificationHubs
|
|
1027
1027
|
if status_code == 200
|
1028
1028
|
begin
|
1029
1029
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1030
|
-
result_mapper = Azure::
|
1030
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult.mapper()
|
1031
1031
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1032
1032
|
rescue Exception => e
|
1033
1033
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1125,7 +1125,7 @@ module Azure::ARM::NotificationHubs
|
|
1125
1125
|
if status_code == 200
|
1126
1126
|
begin
|
1127
1127
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1128
|
-
result_mapper = Azure::
|
1128
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys.mapper()
|
1129
1129
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1130
1130
|
rescue Exception => e
|
1131
1131
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1207,7 +1207,7 @@ module Azure::ARM::NotificationHubs
|
|
1207
1207
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1208
1208
|
|
1209
1209
|
# Serialize Request
|
1210
|
-
request_mapper = Azure::
|
1210
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource.mapper()
|
1211
1211
|
request_content = @client.serialize(request_mapper, parameters)
|
1212
1212
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1213
1213
|
|
@@ -1239,7 +1239,7 @@ module Azure::ARM::NotificationHubs
|
|
1239
1239
|
if status_code == 200
|
1240
1240
|
begin
|
1241
1241
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1242
|
-
result_mapper = Azure::
|
1242
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys.mapper()
|
1243
1243
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1244
1244
|
rescue Exception => e
|
1245
1245
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1409,7 +1409,7 @@ module Azure::ARM::NotificationHubs
|
|
1409
1409
|
if status_code == 200
|
1410
1410
|
begin
|
1411
1411
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1412
|
-
result_mapper = Azure::
|
1412
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult.mapper()
|
1413
1413
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1414
1414
|
rescue Exception => e
|
1415
1415
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1499,7 +1499,7 @@ module Azure::ARM::NotificationHubs
|
|
1499
1499
|
if status_code == 200
|
1500
1500
|
begin
|
1501
1501
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1502
|
-
result_mapper = Azure::
|
1502
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult.mapper()
|
1503
1503
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1504
1504
|
rescue Exception => e
|
1505
1505
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1586,7 +1586,7 @@ module Azure::ARM::NotificationHubs
|
|
1586
1586
|
if status_code == 200
|
1587
1587
|
begin
|
1588
1588
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1589
|
-
result_mapper = Azure::
|
1589
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult.mapper()
|
1590
1590
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1591
1591
|
rescue Exception => e
|
1592
1592
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/notification_hubs.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::NotificationHubs::Mgmt::V2017_04_01
|
7
7
|
#
|
8
8
|
# Azure NotificationHub client
|
9
9
|
#
|
@@ -80,7 +80,7 @@ module Azure::ARM::NotificationHubs
|
|
80
80
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
81
|
|
82
82
|
# Serialize Request
|
83
|
-
request_mapper = Azure::
|
83
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters.mapper()
|
84
84
|
request_content = @client.serialize(request_mapper, parameters)
|
85
85
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
86
86
|
|
@@ -112,7 +112,7 @@ module Azure::ARM::NotificationHubs
|
|
112
112
|
if status_code == 200
|
113
113
|
begin
|
114
114
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
115
|
-
result_mapper = Azure::
|
115
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult.mapper()
|
116
116
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
117
117
|
rescue Exception => e
|
118
118
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -191,7 +191,7 @@ module Azure::ARM::NotificationHubs
|
|
191
191
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
192
192
|
|
193
193
|
# Serialize Request
|
194
|
-
request_mapper = Azure::
|
194
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters.mapper()
|
195
195
|
request_content = @client.serialize(request_mapper, parameters)
|
196
196
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
197
197
|
|
@@ -223,7 +223,7 @@ module Azure::ARM::NotificationHubs
|
|
223
223
|
if status_code == 200
|
224
224
|
begin
|
225
225
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
226
|
-
result_mapper = Azure::
|
226
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource.mapper()
|
227
227
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
228
228
|
rescue Exception => e
|
229
229
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -233,7 +233,7 @@ module Azure::ARM::NotificationHubs
|
|
233
233
|
if status_code == 201
|
234
234
|
begin
|
235
235
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
236
|
-
result_mapper = Azure::
|
236
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource.mapper()
|
237
237
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
238
238
|
rescue Exception => e
|
239
239
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -412,7 +412,7 @@ module Azure::ARM::NotificationHubs
|
|
412
412
|
if status_code == 200
|
413
413
|
begin
|
414
414
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
415
|
-
result_mapper = Azure::
|
415
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource.mapper()
|
416
416
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
417
417
|
rescue Exception => e
|
418
418
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -495,7 +495,7 @@ module Azure::ARM::NotificationHubs
|
|
495
495
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
496
496
|
|
497
497
|
# Serialize Request
|
498
|
-
request_mapper = Azure::
|
498
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
|
499
499
|
request_content = @client.serialize(request_mapper, parameters)
|
500
500
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
501
501
|
|
@@ -527,7 +527,7 @@ module Azure::ARM::NotificationHubs
|
|
527
527
|
if status_code == 200
|
528
528
|
begin
|
529
529
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
530
|
-
result_mapper = Azure::
|
530
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource.mapper()
|
531
531
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
532
532
|
rescue Exception => e
|
533
533
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -714,7 +714,7 @@ module Azure::ARM::NotificationHubs
|
|
714
714
|
if status_code == 200
|
715
715
|
begin
|
716
716
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
717
|
-
result_mapper = Azure::
|
717
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource.mapper()
|
718
718
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
719
719
|
rescue Exception => e
|
720
720
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -805,7 +805,7 @@ module Azure::ARM::NotificationHubs
|
|
805
805
|
if status_code == 200
|
806
806
|
begin
|
807
807
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
808
|
-
result_mapper = Azure::
|
808
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult.mapper()
|
809
809
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
810
810
|
rescue Exception => e
|
811
811
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -900,7 +900,7 @@ module Azure::ARM::NotificationHubs
|
|
900
900
|
if status_code == 200
|
901
901
|
begin
|
902
902
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
903
|
-
result_mapper = Azure::
|
903
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult.mapper()
|
904
904
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
905
905
|
rescue Exception => e
|
906
906
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1002,7 +1002,7 @@ module Azure::ARM::NotificationHubs
|
|
1002
1002
|
if status_code == 200
|
1003
1003
|
begin
|
1004
1004
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1005
|
-
result_mapper = Azure::
|
1005
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys.mapper()
|
1006
1006
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1007
1007
|
rescue Exception => e
|
1008
1008
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1091,7 +1091,7 @@ module Azure::ARM::NotificationHubs
|
|
1091
1091
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1092
1092
|
|
1093
1093
|
# Serialize Request
|
1094
|
-
request_mapper = Azure::
|
1094
|
+
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource.mapper()
|
1095
1095
|
request_content = @client.serialize(request_mapper, parameters)
|
1096
1096
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1097
1097
|
|
@@ -1123,7 +1123,7 @@ module Azure::ARM::NotificationHubs
|
|
1123
1123
|
if status_code == 200
|
1124
1124
|
begin
|
1125
1125
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1126
|
-
result_mapper = Azure::
|
1126
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys.mapper()
|
1127
1127
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1128
1128
|
rescue Exception => e
|
1129
1129
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1218,7 +1218,7 @@ module Azure::ARM::NotificationHubs
|
|
1218
1218
|
if status_code == 200
|
1219
1219
|
begin
|
1220
1220
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1221
|
-
result_mapper = Azure::
|
1221
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource.mapper()
|
1222
1222
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1223
1223
|
rescue Exception => e
|
1224
1224
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1305,7 +1305,7 @@ module Azure::ARM::NotificationHubs
|
|
1305
1305
|
if status_code == 200
|
1306
1306
|
begin
|
1307
1307
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1308
|
-
result_mapper = Azure::
|
1308
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult.mapper()
|
1309
1309
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1310
1310
|
rescue Exception => e
|
1311
1311
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1392,7 +1392,7 @@ module Azure::ARM::NotificationHubs
|
|
1392
1392
|
if status_code == 200
|
1393
1393
|
begin
|
1394
1394
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1395
|
-
result_mapper = Azure::
|
1395
|
+
result_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult.mapper()
|
1396
1396
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1397
1397
|
rescue Exception => e
|
1398
1398
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::NotificationHubs::Mgmt::V2017_04_01
|
7
7
|
#
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
@@ -134,8 +134,8 @@ module Azure::ARM::NotificationHubs
|
|
134
134
|
#
|
135
135
|
def add_telemetry
|
136
136
|
sdk_information = 'azure_mgmt_notification_hubs'
|
137
|
-
if defined? Azure::
|
138
|
-
sdk_information = "#{sdk_information}/#{Azure::
|
137
|
+
if defined? Azure::NotificationHubs::Mgmt::V2017_04_01::VERSION
|
138
|
+
sdk_information = "#{sdk_information}/#{Azure::NotificationHubs::Mgmt::V2017_04_01::VERSION}"
|
139
139
|
end
|
140
140
|
add_user_agent_information(sdk_information)
|
141
141
|
end
|
@@ -2,4 +2,5 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
|
-
require 'generated/azure_mgmt_notification_hubs'
|
5
|
+
require '2017-04-01/generated/azure_mgmt_notification_hubs'
|
6
|
+
require 'profiles/latest/notificationhubs_latest_profile_client'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure end
|
6
|
+
module Azure::NotificationHubs end
|
7
|
+
module Azure::NotificationHubs::Mgmt end
|
8
|
+
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure::ARM
|
6
|
+
# The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
|
7
|
+
module Configurable
|
8
|
+
# @return [String] Azure tenant id (also known as domain).
|
9
|
+
attr_accessor :tenant_id
|
10
|
+
|
11
|
+
# @return [String] Azure client id.
|
12
|
+
attr_accessor :client_id
|
13
|
+
|
14
|
+
# @return [String] Azure secret key.
|
15
|
+
attr_accessor :client_secret
|
16
|
+
|
17
|
+
# @return [String] Azure subscription id.
|
18
|
+
attr_accessor :subscription_id
|
19
|
+
|
20
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
+
attr_accessor :active_directory_settings
|
22
|
+
|
23
|
+
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
+
attr_accessor :credentials
|
25
|
+
|
26
|
+
class << self
|
27
|
+
#
|
28
|
+
# List of configurable keys for {Azure::ARM::Client}.
|
29
|
+
# @return [Array] of option keys.
|
30
|
+
#
|
31
|
+
def keys
|
32
|
+
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Set configuration options using a block.
|
38
|
+
#
|
39
|
+
def configure
|
40
|
+
yield self
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Resets the configurable options to provided options or defaults.
|
45
|
+
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
+
#
|
47
|
+
def reset!(options = {})
|
48
|
+
Azure::ARM::Configurable.keys.each do |key|
|
49
|
+
default_value = Azure::ARM::Default.options[key]
|
50
|
+
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
+
end
|
52
|
+
|
53
|
+
self
|
54
|
+
end
|
55
|
+
|
56
|
+
def config
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
#
|
63
|
+
# configures configurable options to default values
|
64
|
+
#
|
65
|
+
def setup_options
|
66
|
+
opts = {}
|
67
|
+
Azure::ARM::Configurable.keys.map do |key|
|
68
|
+
opts[key] = Azure::ARM::Default.options[key]
|
69
|
+
end
|
70
|
+
opts
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|