azure_mgmt_notification_hubs 0.7.0 → 0.8.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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_notification_hubs.rb +17 -20
  3. data/lib/generated/azure_mgmt_notification_hubs/models/access_rights.rb +1 -1
  4. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential.rb +26 -8
  5. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential.rb +36 -8
  6. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb +26 -8
  7. data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +40 -7
  8. data/lib/generated/azure_mgmt_notification_hubs/models/{check_availability_resource.rb → check_availability_result.rb} +25 -29
  9. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb +16 -8
  10. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb +26 -8
  11. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +146 -12
  12. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb +5 -5
  13. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb +62 -0
  14. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +128 -24
  15. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_type.rb +1 -1
  16. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +138 -13
  17. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +5 -5
  18. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +120 -27
  19. data/lib/generated/azure_mgmt_notification_hubs/models/{notification_hub_properties.rb → pns_credentials_resource.rb} +45 -31
  20. data/lib/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb +46 -0
  21. data/lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb +34 -5
  22. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +45 -12
  23. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +5 -5
  24. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +1 -82
  25. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +32 -34
  26. data/lib/generated/azure_mgmt_notification_hubs/models/sku.rb +85 -0
  27. data/lib/generated/azure_mgmt_notification_hubs/models/sku_name.rb +17 -0
  28. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb +26 -8
  29. data/lib/generated/azure_mgmt_notification_hubs/module_definition.rb +1 -1
  30. data/lib/generated/azure_mgmt_notification_hubs/namespaces.rb +379 -243
  31. data/lib/generated/azure_mgmt_notification_hubs/notification_hubs.rb +192 -71
  32. data/lib/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +15 -2
  33. data/lib/generated/azure_mgmt_notification_hubs/version.rb +2 -2
  34. metadata +10 -13
  35. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +0 -64
  36. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +0 -74
  37. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +0 -64
  38. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +0 -54
  39. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +0 -64
  40. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_properties.rb +0 -153
  41. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +0 -64
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -31,7 +31,7 @@ module Azure::ARM::NotificationHubs
31
31
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
32
  # will be added to the HTTP request.
33
33
  #
34
- # @return [CheckAvailabilityResource] operation results.
34
+ # @return [CheckAvailabilityResult] operation results.
35
35
  #
36
36
  def check_availability(resource_group_name, namespace_name, parameters, custom_headers = nil)
37
37
  response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value!
@@ -113,7 +113,7 @@ module Azure::ARM::NotificationHubs
113
113
  if status_code == 200
114
114
  begin
115
115
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
116
- result_mapper = CheckAvailabilityResource.mapper()
116
+ result_mapper = CheckAvailabilityResult.mapper()
117
117
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
118
118
  rescue Exception => e
119
119
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -433,8 +433,8 @@ module Azure::ARM::NotificationHubs
433
433
  # @param namespace_name [String] The namespace name.
434
434
  # @param notification_hub_name [String] The notification hub name.
435
435
  # @param authorization_rule_name [String] Authorization Rule Name.
436
- # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
437
- # The shared access authorization rule.
436
+ # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
437
+ # shared access authorization rule.
438
438
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
439
439
  # will be added to the HTTP request.
440
440
  #
@@ -452,8 +452,8 @@ module Azure::ARM::NotificationHubs
452
452
  # @param namespace_name [String] The namespace name.
453
453
  # @param notification_hub_name [String] The notification hub name.
454
454
  # @param authorization_rule_name [String] Authorization Rule Name.
455
- # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
456
- # The shared access authorization rule.
455
+ # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
456
+ # shared access authorization rule.
457
457
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
458
458
  # will be added to the HTTP request.
459
459
  #
@@ -470,8 +470,8 @@ module Azure::ARM::NotificationHubs
470
470
  # @param namespace_name [String] The namespace name.
471
471
  # @param notification_hub_name [String] The notification hub name.
472
472
  # @param authorization_rule_name [String] Authorization Rule Name.
473
- # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
474
- # The shared access authorization rule.
473
+ # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
474
+ # shared access authorization rule.
475
475
  # @param [Hash{String => String}] A hash of custom headers that will be added
476
476
  # to the HTTP request.
477
477
  #
@@ -699,7 +699,7 @@ module Azure::ARM::NotificationHubs
699
699
  headers: request_headers.merge(custom_headers || {}),
700
700
  base_url: request_url
701
701
  }
702
- promise = @client.make_request_async(:post, path_template, options)
702
+ promise = @client.make_request_async(:get, path_template, options)
703
703
 
704
704
  promise = promise.then do |result|
705
705
  http_response = result.response
@@ -728,28 +728,6 @@ module Azure::ARM::NotificationHubs
728
728
  promise.execute
729
729
  end
730
730
 
731
- #
732
- # Lists the notification hubs associated with a namespace.
733
- #
734
- # @param resource_group_name [String] The name of the resource group.
735
- # @param namespace_name [String] The namespace name.
736
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
737
- # will be added to the HTTP request.
738
- #
739
- # @return [NotificationHubListResult] which provide lazy access to pages of
740
- # the response.
741
- #
742
- def list_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
743
- response = list_async(resource_group_name, namespace_name, custom_headers).value!
744
- unless response.nil?
745
- page = response.body
746
- page.next_method = Proc.new do |next_page_link|
747
- list_next_async(next_page_link, custom_headers)
748
- end
749
- page
750
- end
751
- end
752
-
753
731
  #
754
732
  # Lists the notification hubs associated with a namespace.
755
733
  #
@@ -841,29 +819,6 @@ module Azure::ARM::NotificationHubs
841
819
  promise.execute
842
820
  end
843
821
 
844
- #
845
- # Gets the authorization rules for a NotificationHub.
846
- #
847
- # @param resource_group_name [String] The name of the resource group.
848
- # @param namespace_name [String] The namespace name
849
- # @param notification_hub_name [String] The notification hub name.
850
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
851
- # will be added to the HTTP request.
852
- #
853
- # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access
854
- # to pages of the response.
855
- #
856
- def list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
857
- response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
858
- unless response.nil?
859
- page = response.body
860
- page.next_method = Proc.new do |next_page_link|
861
- list_authorization_rules_next_async(next_page_link, custom_headers)
862
- end
863
- page
864
- end
865
- end
866
-
867
822
  #
868
823
  # Gets the authorization rules for a NotificationHub.
869
824
  #
@@ -930,7 +885,7 @@ module Azure::ARM::NotificationHubs
930
885
  headers: request_headers.merge(custom_headers || {}),
931
886
  base_url: request_url
932
887
  }
933
- promise = @client.make_request_async(:post, path_template, options)
888
+ promise = @client.make_request_async(:get, path_template, options)
934
889
 
935
890
  promise = promise.then do |result|
936
891
  http_response = result.response
@@ -1061,6 +1016,127 @@ module Azure::ARM::NotificationHubs
1061
1016
  promise.execute
1062
1017
  end
1063
1018
 
1019
+ #
1020
+ # Regenerates the Primary/Secondary Keys to the NotificationHub Authorization
1021
+ # Rule
1022
+ #
1023
+ # @param resource_group_name [String] The name of the resource group.
1024
+ # @param namespace_name [String] The namespace name.
1025
+ # @param notification_hub_name [String] The notification hub name.
1026
+ # @param authorization_rule_name [String] The connection string of the
1027
+ # NotificationHub for the specified authorizationRule.
1028
+ # @param parameters [PolicykeyResource] Parameters supplied to regenerate the
1029
+ # NotificationHub Authorization Rule Key.
1030
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1031
+ # will be added to the HTTP request.
1032
+ #
1033
+ # @return [ResourceListKeys] operation results.
1034
+ #
1035
+ def regenerate_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil)
1036
+ response = regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value!
1037
+ response.body unless response.nil?
1038
+ end
1039
+
1040
+ #
1041
+ # Regenerates the Primary/Secondary Keys to the NotificationHub Authorization
1042
+ # Rule
1043
+ #
1044
+ # @param resource_group_name [String] The name of the resource group.
1045
+ # @param namespace_name [String] The namespace name.
1046
+ # @param notification_hub_name [String] The notification hub name.
1047
+ # @param authorization_rule_name [String] The connection string of the
1048
+ # NotificationHub for the specified authorizationRule.
1049
+ # @param parameters [PolicykeyResource] Parameters supplied to regenerate the
1050
+ # NotificationHub Authorization Rule Key.
1051
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1052
+ # will be added to the HTTP request.
1053
+ #
1054
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1055
+ #
1056
+ def regenerate_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil)
1057
+ regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value!
1058
+ end
1059
+
1060
+ #
1061
+ # Regenerates the Primary/Secondary Keys to the NotificationHub Authorization
1062
+ # Rule
1063
+ #
1064
+ # @param resource_group_name [String] The name of the resource group.
1065
+ # @param namespace_name [String] The namespace name.
1066
+ # @param notification_hub_name [String] The notification hub name.
1067
+ # @param authorization_rule_name [String] The connection string of the
1068
+ # NotificationHub for the specified authorizationRule.
1069
+ # @param parameters [PolicykeyResource] Parameters supplied to regenerate the
1070
+ # NotificationHub Authorization Rule Key.
1071
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1072
+ # to the HTTP request.
1073
+ #
1074
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1075
+ #
1076
+ def regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil)
1077
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1078
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1079
+ fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
1080
+ fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1081
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1082
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1083
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1084
+
1085
+
1086
+ request_headers = {}
1087
+
1088
+ # Set Headers
1089
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1090
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1091
+
1092
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1093
+
1094
+ # Serialize Request
1095
+ request_mapper = PolicykeyResource.mapper()
1096
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
1097
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1098
+
1099
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys'
1100
+
1101
+ request_url = @base_url || @client.base_url
1102
+
1103
+ options = {
1104
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1105
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'notificationHubName' => notification_hub_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
1106
+ query_params: {'api-version' => @client.api_version},
1107
+ body: request_content,
1108
+ headers: request_headers.merge(custom_headers || {}),
1109
+ base_url: request_url
1110
+ }
1111
+ promise = @client.make_request_async(:post, path_template, options)
1112
+
1113
+ promise = promise.then do |result|
1114
+ http_response = result.response
1115
+ status_code = http_response.status
1116
+ response_content = http_response.body
1117
+ unless status_code == 200
1118
+ error_model = JSON.load(response_content)
1119
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1120
+ end
1121
+
1122
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1123
+ # Deserialize Response
1124
+ if status_code == 200
1125
+ begin
1126
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1127
+ result_mapper = ResourceListKeys.mapper()
1128
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1129
+ rescue Exception => e
1130
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1131
+ end
1132
+ end
1133
+
1134
+ result
1135
+ end
1136
+
1137
+ promise.execute
1138
+ end
1139
+
1064
1140
  #
1065
1141
  # Lists the PNS Credentials associated with a notification hub .
1066
1142
  #
@@ -1070,7 +1146,7 @@ module Azure::ARM::NotificationHubs
1070
1146
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1071
1147
  # will be added to the HTTP request.
1072
1148
  #
1073
- # @return [NotificationHubResource] operation results.
1149
+ # @return [PnsCredentialsResource] operation results.
1074
1150
  #
1075
1151
  def get_pns_credentials(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
1076
1152
  response = get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
@@ -1143,7 +1219,7 @@ module Azure::ARM::NotificationHubs
1143
1219
  if status_code == 200
1144
1220
  begin
1145
1221
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1146
- result_mapper = NotificationHubResource.mapper()
1222
+ result_mapper = PnsCredentialsResource.mapper()
1147
1223
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1148
1224
  rescue Exception => e
1149
1225
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1159,8 +1235,8 @@ module Azure::ARM::NotificationHubs
1159
1235
  #
1160
1236
  # Lists the notification hubs associated with a namespace.
1161
1237
  #
1162
- # @param next_page_link [String] The NextLink from the previous successful
1163
- # call to List operation.
1238
+ # @param next_page_link [String] The NextLink from the previous successful call
1239
+ # to List operation.
1164
1240
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1165
1241
  # will be added to the HTTP request.
1166
1242
  #
@@ -1174,8 +1250,8 @@ module Azure::ARM::NotificationHubs
1174
1250
  #
1175
1251
  # Lists the notification hubs associated with a namespace.
1176
1252
  #
1177
- # @param next_page_link [String] The NextLink from the previous successful
1178
- # call to List operation.
1253
+ # @param next_page_link [String] The NextLink from the previous successful call
1254
+ # to List operation.
1179
1255
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1180
1256
  # will be added to the HTTP request.
1181
1257
  #
@@ -1188,8 +1264,8 @@ module Azure::ARM::NotificationHubs
1188
1264
  #
1189
1265
  # Lists the notification hubs associated with a namespace.
1190
1266
  #
1191
- # @param next_page_link [String] The NextLink from the previous successful
1192
- # call to List operation.
1267
+ # @param next_page_link [String] The NextLink from the previous successful call
1268
+ # to List operation.
1193
1269
  # @param [Hash{String => String}] A hash of custom headers that will be added
1194
1270
  # to the HTTP request.
1195
1271
  #
@@ -1246,8 +1322,8 @@ module Azure::ARM::NotificationHubs
1246
1322
  #
1247
1323
  # Gets the authorization rules for a NotificationHub.
1248
1324
  #
1249
- # @param next_page_link [String] The NextLink from the previous successful
1250
- # call to List operation.
1325
+ # @param next_page_link [String] The NextLink from the previous successful call
1326
+ # to List operation.
1251
1327
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1252
1328
  # will be added to the HTTP request.
1253
1329
  #
@@ -1261,8 +1337,8 @@ module Azure::ARM::NotificationHubs
1261
1337
  #
1262
1338
  # Gets the authorization rules for a NotificationHub.
1263
1339
  #
1264
- # @param next_page_link [String] The NextLink from the previous successful
1265
- # call to List operation.
1340
+ # @param next_page_link [String] The NextLink from the previous successful call
1341
+ # to List operation.
1266
1342
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1267
1343
  # will be added to the HTTP request.
1268
1344
  #
@@ -1275,8 +1351,8 @@ module Azure::ARM::NotificationHubs
1275
1351
  #
1276
1352
  # Gets the authorization rules for a NotificationHub.
1277
1353
  #
1278
- # @param next_page_link [String] The NextLink from the previous successful
1279
- # call to List operation.
1354
+ # @param next_page_link [String] The NextLink from the previous successful call
1355
+ # to List operation.
1280
1356
  # @param [Hash{String => String}] A hash of custom headers that will be added
1281
1357
  # to the HTTP request.
1282
1358
  #
@@ -1301,7 +1377,7 @@ module Azure::ARM::NotificationHubs
1301
1377
  headers: request_headers.merge(custom_headers || {}),
1302
1378
  base_url: request_url
1303
1379
  }
1304
- promise = @client.make_request_async(:post, path_template, options)
1380
+ promise = @client.make_request_async(:get, path_template, options)
1305
1381
 
1306
1382
  promise = promise.then do |result|
1307
1383
  http_response = result.response
@@ -1330,5 +1406,50 @@ module Azure::ARM::NotificationHubs
1330
1406
  promise.execute
1331
1407
  end
1332
1408
 
1409
+ #
1410
+ # Lists the notification hubs associated with a namespace.
1411
+ #
1412
+ # @param resource_group_name [String] The name of the resource group.
1413
+ # @param namespace_name [String] The namespace name.
1414
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1415
+ # will be added to the HTTP request.
1416
+ #
1417
+ # @return [NotificationHubListResult] which provide lazy access to pages of the
1418
+ # response.
1419
+ #
1420
+ def list_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
1421
+ response = list_async(resource_group_name, namespace_name, custom_headers).value!
1422
+ unless response.nil?
1423
+ page = response.body
1424
+ page.next_method = Proc.new do |next_page_link|
1425
+ list_next_async(next_page_link, custom_headers)
1426
+ end
1427
+ page
1428
+ end
1429
+ end
1430
+
1431
+ #
1432
+ # Gets the authorization rules for a NotificationHub.
1433
+ #
1434
+ # @param resource_group_name [String] The name of the resource group.
1435
+ # @param namespace_name [String] The namespace name
1436
+ # @param notification_hub_name [String] The notification hub name.
1437
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1438
+ # will be added to the HTTP request.
1439
+ #
1440
+ # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access
1441
+ # to pages of the response.
1442
+ #
1443
+ def list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
1444
+ response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
1445
+ unless response.nil?
1446
+ page = response.body
1447
+ page.next_method = Proc.new do |next_page_link|
1448
+ list_authorization_rules_next_async(next_page_link, custom_headers)
1449
+ end
1450
+ page
1451
+ end
1452
+ end
1453
+
1333
1454
  end
1334
1455
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -58,10 +58,11 @@ module Azure::ARM::NotificationHubs
58
58
 
59
59
  @namespaces = Namespaces.new(self)
60
60
  @notification_hubs = NotificationHubs.new(self)
61
- @api_version = '2014-09-01'
61
+ @api_version = '2016-03-01'
62
62
  @accept_language = 'en-US'
63
63
  @long_running_operation_retry_timeout = 30
64
64
  @generate_client_request_id = true
65
+ add_telemetry
65
66
  end
66
67
 
67
68
  #
@@ -119,5 +120,17 @@ module Azure::ARM::NotificationHubs
119
120
  super(request_url, method, path, options)
120
121
  end
121
122
 
123
+
124
+ private
125
+ #
126
+ # Adds telemetry information.
127
+ #
128
+ def add_telemetry
129
+ sdk_information = 'azure_mgmt_notification_hubs'
130
+ if defined? Azure::ARM::NotificationHubs::VERSION
131
+ sdk_information = "#{sdk_information}/#{Azure::ARM::NotificationHubs::VERSION}"
132
+ end
133
+ add_user_agent_information(sdk_information)
134
+ end
122
135
  end
123
136
  end
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::NotificationHubs
7
- VERSION = '0.7.0'
7
+ VERSION = '0.8.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_notification_hubs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-14 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.0
75
+ version: 0.6.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.0
82
+ version: 0.6.2
83
83
  description: Microsoft Azure Notification Hubs Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -91,33 +91,30 @@ files:
91
91
  - lib/generated/azure_mgmt_notification_hubs.rb
92
92
  - lib/generated/azure_mgmt_notification_hubs/models/access_rights.rb
93
93
  - lib/generated/azure_mgmt_notification_hubs/models/adm_credential.rb
94
- - lib/generated/azure_mgmt_notification_hubs/models/adm_credential_properties.rb
95
94
  - lib/generated/azure_mgmt_notification_hubs/models/apns_credential.rb
96
- - lib/generated/azure_mgmt_notification_hubs/models/apns_credential_properties.rb
97
95
  - lib/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb
98
- - lib/generated/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb
99
96
  - lib/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb
100
- - lib/generated/azure_mgmt_notification_hubs/models/check_availability_resource.rb
97
+ - lib/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb
101
98
  - lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb
102
- - lib/generated/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb
103
99
  - lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb
104
- - lib/generated/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb
105
100
  - lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb
106
101
  - lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb
107
- - lib/generated/azure_mgmt_notification_hubs/models/namespace_properties.rb
102
+ - lib/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb
108
103
  - lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb
109
104
  - lib/generated/azure_mgmt_notification_hubs/models/namespace_type.rb
110
105
  - lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb
111
106
  - lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb
112
- - lib/generated/azure_mgmt_notification_hubs/models/notification_hub_properties.rb
113
107
  - lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb
108
+ - lib/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb
109
+ - lib/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb
114
110
  - lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb
115
111
  - lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb
116
112
  - lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb
117
113
  - lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb
118
114
  - lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb
115
+ - lib/generated/azure_mgmt_notification_hubs/models/sku.rb
116
+ - lib/generated/azure_mgmt_notification_hubs/models/sku_name.rb
119
117
  - lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb
120
- - lib/generated/azure_mgmt_notification_hubs/models/wns_credential_properties.rb
121
118
  - lib/generated/azure_mgmt_notification_hubs/module_definition.rb
122
119
  - lib/generated/azure_mgmt_notification_hubs/namespaces.rb
123
120
  - lib/generated/azure_mgmt_notification_hubs/notification_hubs.rb