diff --git a/gulpfile.js b/gulpfile.js index 29a83f42d..a802fa6a1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -83,7 +83,7 @@ var mappings = { }, 'notificationHubs':{ 'dir': 'notificationHubsManagement/lib', - 'source': 'arm-notificationhubs/2014-09-01/swagger/notificationhubs.json' + 'source': 'arm-notificationhubs/2016-03-01/swagger/notificationhubs.json' }, 'powerbiembedded': { 'dir': 'powerbiembedded/lib', @@ -140,7 +140,7 @@ var mappings = { } }; -var defaultAutoRestVersion = '0.17.0-Nightly20160630'; +var defaultAutoRestVersion = '0.17.0-Nightly20160811'; var usingAutoRestVersion; var specRoot = args['spec-root'] || "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master"; var project = args['project']; diff --git a/lib/services/notificationHubsManagement/lib/models/admCredential.js b/lib/services/notificationHubsManagement/lib/models/admCredential.js index fb00a4550..d7922270c 100644 --- a/lib/services/notificationHubsManagement/lib/models/admCredential.js +++ b/lib/services/notificationHubsManagement/lib/models/admCredential.js @@ -10,23 +10,17 @@ 'use strict'; -var models = require('./index'); - /** * @class * Initializes a new instance of the AdmCredential class. * @constructor * Description of a NotificationHub AdmCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * AdmCredential. + * + * @member {string} [clientId] The client identifier. * - * @member {string} [properties.clientId] Gets or sets the client identifier. + * @member {string} [clientSecret] The credential secret access key. * - * @member {string} [properties.clientSecret] Gets or sets the credential - * secret access key. - * - * @member {string} [properties.authTokenUrl] Gets or sets the URL of the - * authorization token. + * @member {string} [authTokenUrl] The URL of the authorization token. * */ function AdmCredential() { @@ -46,12 +40,25 @@ AdmCredential.prototype.mapper = function () { name: 'Composite', className: 'AdmCredential', modelProperties: { - properties: { + clientId: { required: false, - serializedName: 'properties', + serializedName: 'properties.clientId', type: { - name: 'Composite', - className: 'AdmCredentialProperties' + name: 'String' + } + }, + clientSecret: { + required: false, + serializedName: 'properties.clientSecret', + type: { + name: 'String' + } + }, + authTokenUrl: { + required: false, + serializedName: 'properties.authTokenUrl', + type: { + name: 'String' } } } diff --git a/lib/services/notificationHubsManagement/lib/models/apnsCredential.js b/lib/services/notificationHubsManagement/lib/models/apnsCredential.js index 83422ba88..379cfbdf8 100644 --- a/lib/services/notificationHubsManagement/lib/models/apnsCredential.js +++ b/lib/services/notificationHubsManagement/lib/models/apnsCredential.js @@ -10,27 +10,19 @@ 'use strict'; -var models = require('./index'); - /** * @class * Initializes a new instance of the ApnsCredential class. * @constructor * Description of a NotificationHub ApnsCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * ApnsCredential. + * + * @member {string} [apnsCertificate] The APNS certificate. * - * @member {string} [properties.apnsCertificate] Gets or sets the APNS - * certificate. + * @member {string} [certificateKey] The certificate key. * - * @member {string} [properties.certificateKey] Gets or sets the certificate - * key. + * @member {string} [endpoint] The endpoint of this credential. * - * @member {string} [properties.endpoint] Gets or sets the endpoint of this - * credential. - * - * @member {string} [properties.thumbprint] Gets or sets the Apns certificate - * Thumbprint + * @member {string} [thumbprint] The Apns certificate Thumbprint * */ function ApnsCredential() { @@ -50,12 +42,32 @@ ApnsCredential.prototype.mapper = function () { name: 'Composite', className: 'ApnsCredential', modelProperties: { - properties: { + apnsCertificate: { required: false, - serializedName: 'properties', + serializedName: 'properties.apnsCertificate', type: { - name: 'Composite', - className: 'ApnsCredentialProperties' + name: 'String' + } + }, + certificateKey: { + required: false, + serializedName: 'properties.certificateKey', + type: { + name: 'String' + } + }, + endpoint: { + required: false, + serializedName: 'properties.endpoint', + type: { + name: 'String' + } + }, + thumbprint: { + required: false, + serializedName: 'properties.thumbprint', + type: { + name: 'String' } } } diff --git a/lib/services/notificationHubsManagement/lib/models/baiduCredential.js b/lib/services/notificationHubsManagement/lib/models/baiduCredential.js index 07739df56..b54001fc3 100644 --- a/lib/services/notificationHubsManagement/lib/models/baiduCredential.js +++ b/lib/services/notificationHubsManagement/lib/models/baiduCredential.js @@ -10,21 +10,17 @@ 'use strict'; -var models = require('./index'); - /** * @class * Initializes a new instance of the BaiduCredential class. * @constructor * Description of a NotificationHub BaiduCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * BaiduCredential. + * + * @member {string} [baiduApiKey] Baidu Api Key. * - * @member {string} [properties.baiduApiKey] Get or Set Baidu Api Key. + * @member {string} [baiduEndPoint] Baidu Endpoint. * - * @member {string} [properties.baiduEndPoint] Get or Set Baidu Endpoint. - * - * @member {string} [properties.baiduSecretKey] Get or Set Baidu Secret Key + * @member {string} [baiduSecretKey] Baidu Secret Key * */ function BaiduCredential() { @@ -44,12 +40,25 @@ BaiduCredential.prototype.mapper = function () { name: 'Composite', className: 'BaiduCredential', modelProperties: { - properties: { + baiduApiKey: { required: false, - serializedName: 'properties', + serializedName: 'properties.baiduApiKey', type: { - name: 'Composite', - className: 'BaiduCredentialProperties' + name: 'String' + } + }, + baiduEndPoint: { + required: false, + serializedName: 'properties.baiduEndPoint', + type: { + name: 'String' + } + }, + baiduSecretKey: { + required: false, + serializedName: 'properties.baiduSecretKey', + type: { + name: 'String' } } } diff --git a/lib/services/notificationHubsManagement/lib/models/checkAvailabilityParameters.js b/lib/services/notificationHubsManagement/lib/models/checkAvailabilityParameters.js index 89ba6baf8..6481edb06 100644 --- a/lib/services/notificationHubsManagement/lib/models/checkAvailabilityParameters.js +++ b/lib/services/notificationHubsManagement/lib/models/checkAvailabilityParameters.js @@ -10,25 +10,27 @@ 'use strict'; +var models = require('./index'); + +var util = require('util'); + /** * @class * Initializes a new instance of the CheckAvailabilityParameters class. * @constructor * Parameters supplied to the Check Name Availability for Namespace and * NotificationHubs. - * @member {string} name Gets or sets name - * - * @member {string} [location] Gets or sets location. - * - * @member {object} [tags] Gets or sets tags. - * - * @member {boolean} [isAvailiable] Gets or sets true if the name is available - * and can be used to create new Namespace/NotificationHub. Otherwise false. + * + * @member {boolean} [isAvailiable] True if the name is available and can be + * used to create new Namespace/NotificationHub. Otherwise false. * */ function CheckAvailabilityParameters() { + CheckAvailabilityParameters['super_'].call(this); } +util.inherits(CheckAvailabilityParameters, models['Resource']); + /** * Defines the metadata of CheckAvailabilityParameters * @@ -43,15 +45,32 @@ CheckAvailabilityParameters.prototype.mapper = function () { name: 'Composite', className: 'CheckAvailabilityParameters', modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, name: { - required: true, + required: false, + readOnly: true, serializedName: 'name', type: { name: 'String' } }, - location: { + type: { required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: true, serializedName: 'location', type: { name: 'String' diff --git a/lib/services/notificationHubsManagement/lib/models/checkAvailabilityResult.js b/lib/services/notificationHubsManagement/lib/models/checkAvailabilityResult.js new file mode 100644 index 000000000..77bbd8abb --- /dev/null +++ b/lib/services/notificationHubsManagement/lib/models/checkAvailabilityResult.js @@ -0,0 +1,104 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +var models = require('./index'); + +var util = require('util'); + +/** + * @class + * Initializes a new instance of the CheckAvailabilityResult class. + * @constructor + * Description of a CheckAvailibility resource. + * + * @member {boolean} [isAvailiable] True if the name is available and can be + * used to create new Namespace/NotificationHub. Otherwise false. + * + */ +function CheckAvailabilityResult() { + CheckAvailabilityResult['super_'].call(this); +} + +util.inherits(CheckAvailabilityResult, models['Resource']); + +/** + * Defines the metadata of CheckAvailabilityResult + * + * @returns {object} metadata of CheckAvailabilityResult + * + */ +CheckAvailabilityResult.prototype.mapper = function () { + return { + required: false, + serializedName: 'CheckAvailabilityResult', + type: { + name: 'Composite', + className: 'CheckAvailabilityResult', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + isAvailiable: { + required: false, + serializedName: 'isAvailiable', + type: { + name: 'Boolean' + } + } + } + } + }; +}; + +module.exports = CheckAvailabilityResult; diff --git a/lib/services/notificationHubsManagement/lib/models/gcmCredential.js b/lib/services/notificationHubsManagement/lib/models/gcmCredential.js index fe5b187b1..cb176785f 100644 --- a/lib/services/notificationHubsManagement/lib/models/gcmCredential.js +++ b/lib/services/notificationHubsManagement/lib/models/gcmCredential.js @@ -10,19 +10,15 @@ 'use strict'; -var models = require('./index'); - /** * @class * Initializes a new instance of the GcmCredential class. * @constructor * Description of a NotificationHub GcmCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * GcmCredential. + * + * @member {string} [gcmEndpoint] The GCM endpoint. * - * @member {string} [properties.gcmEndpoint] Gets or sets the GCM endpoint. - * - * @member {string} [properties.googleApiKey] Gets or sets the Google API key. + * @member {string} [googleApiKey] The Google API key. * */ function GcmCredential() { @@ -42,12 +38,18 @@ GcmCredential.prototype.mapper = function () { name: 'Composite', className: 'GcmCredential', modelProperties: { - properties: { + gcmEndpoint: { required: false, - serializedName: 'properties', + serializedName: 'properties.gcmEndpoint', type: { - name: 'Composite', - className: 'GcmCredentialProperties' + name: 'String' + } + }, + googleApiKey: { + required: false, + serializedName: 'properties.googleApiKey', + type: { + name: 'String' } } } diff --git a/lib/services/notificationHubsManagement/lib/models/index.d.ts b/lib/services/notificationHubsManagement/lib/models/index.d.ts index 1af0b9080..ea3a0e721 100644 --- a/lib/services/notificationHubsManagement/lib/models/index.d.ts +++ b/lib/services/notificationHubsManagement/lib/models/index.d.ts @@ -10,967 +10,6 @@ */ -/** - * @class - * Initializes a new instance of the CheckAvailabilityParameters class. - * @constructor - * Parameters supplied to the Check Name Availability for Namespace and - * NotificationHubs. - * @member {string} name Gets or sets name - * - * @member {string} [location] Gets or sets location. - * - * @member {object} [tags] Gets or sets tags. - * - * @member {boolean} [isAvailiable] Gets or sets true if the name is available - * and can be used to create new Namespace/NotificationHub. Otherwise false. - * - */ -export interface CheckAvailabilityParameters { - name: string; - location?: string; - tags?: { [propertyName: string]: string }; - isAvailiable?: boolean; -} - -/** - * @class - * Initializes a new instance of the CheckAvailabilityResource class. - * @constructor - * Description of a CheckAvailibility resource. - * @member {string} [id] Gets or sets the id - * - * @member {string} [location] Gets or sets datacenter location - * - * @member {string} [name] Gets or sets name - * - * @member {string} [type] Gets or sets resource type - * - * @member {object} [tags] Gets or sets tags - * - * @member {boolean} [isAvailiable] Gets or sets true if the name is available - * and can be used to create new Namespace/NotificationHub. Otherwise false. - * - */ -export interface CheckAvailabilityResource { - id?: string; - location?: string; - name?: string; - type?: string; - tags?: { [propertyName: string]: string }; - isAvailiable?: boolean; -} - -/** - * @class - * Initializes a new instance of the NamespaceProperties class. - * @constructor - * Namespace properties. - * @member {string} [name] The name of the namespace. - * - * @member {string} [provisioningState] Gets or sets provisioning state of the - * Namespace. - * - * @member {string} [region] Specifies the targeted region in which the - * namespace should be created. It can be any of the following values: - * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth - * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan - * EastJapan WestNorth EuropeWest Europe - * - * @member {string} [status] Status of the namespace. It can be any of these - * values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting - * - * @member {date} [createdAt] The time the namespace was created. - * - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform - * NotificationHub operations. - * - * @member {string} [subscriptionId] The Id of the Azure subscription - * associated with the namespace. - * - * @member {string} [scaleUnit] ScaleUnit where the namespace gets created - * - * @member {boolean} [enabled] Whether or not the namespace is currently - * enabled. - * - * @member {boolean} [critical] Whether or not the namespace is set as - * Critical. - * - * @member {string} [namespaceType] Gets or sets the namespace type. Possible - * values include: 'Messaging', 'NotificationHub' - * - */ -export interface NamespaceProperties { - name?: string; - provisioningState?: string; - region?: string; - status?: string; - createdAt?: Date; - serviceBusEndpoint?: string; - subscriptionId?: string; - scaleUnit?: string; - enabled?: boolean; - critical?: boolean; - namespaceType?: string; -} - -/** - * @class - * Initializes a new instance of the NamespaceCreateOrUpdateParameters class. - * @constructor - * Parameters supplied to the CreateOrUpdate Namespace operation. - * @member {string} location Gets or sets Namespace data center location. - * - * @member {object} [tags] Gets or sets Namespace tags. - * - * @member {object} properties Gets or sets properties of the Namespace. - * - * @member {string} [properties.name] The name of the namespace. - * - * @member {string} [properties.provisioningState] Gets or sets provisioning - * state of the Namespace. - * - * @member {string} [properties.region] Specifies the targeted region in which - * the namespace should be created. It can be any of the following values: - * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth - * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan - * EastJapan WestNorth EuropeWest Europe - * - * @member {string} [properties.status] Status of the namespace. It can be any - * of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting - * - * @member {date} [properties.createdAt] The time the namespace was created. - * - * @member {string} [properties.serviceBusEndpoint] Endpoint you can use to - * perform NotificationHub operations. - * - * @member {string} [properties.subscriptionId] The Id of the Azure - * subscription associated with the namespace. - * - * @member {string} [properties.scaleUnit] ScaleUnit where the namespace gets - * created - * - * @member {boolean} [properties.enabled] Whether or not the namespace is - * currently enabled. - * - * @member {boolean} [properties.critical] Whether or not the namespace is set - * as Critical. - * - * @member {string} [properties.namespaceType] Gets or sets the namespace - * type. Possible values include: 'Messaging', 'NotificationHub' - * - */ -export interface NamespaceCreateOrUpdateParameters { - location: string; - tags?: { [propertyName: string]: string }; - properties: NamespaceProperties; -} - -/** - * @class - * Initializes a new instance of the NamespaceResource class. - * @constructor - * Description of a Namespace resource. - * @member {string} [id] Gets or sets the id of the created Namespace. - * - * @member {string} [location] Gets or sets datacenter location of the - * Namespace. - * - * @member {string} [name] Gets or sets name of the Namespace. - * - * @member {string} [type] Gets or sets resource type of the Namespace. - * - * @member {object} [tags] Gets or sets tags of the Namespace. - * - * @member {object} [properties] Gets or sets properties of the Namespace. - * - * @member {string} [properties.name] The name of the namespace. - * - * @member {string} [properties.provisioningState] Gets or sets provisioning - * state of the Namespace. - * - * @member {string} [properties.region] Specifies the targeted region in which - * the namespace should be created. It can be any of the following values: - * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth - * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan - * EastJapan WestNorth EuropeWest Europe - * - * @member {string} [properties.status] Status of the namespace. It can be any - * of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting - * - * @member {date} [properties.createdAt] The time the namespace was created. - * - * @member {string} [properties.serviceBusEndpoint] Endpoint you can use to - * perform NotificationHub operations. - * - * @member {string} [properties.subscriptionId] The Id of the Azure - * subscription associated with the namespace. - * - * @member {string} [properties.scaleUnit] ScaleUnit where the namespace gets - * created - * - * @member {boolean} [properties.enabled] Whether or not the namespace is - * currently enabled. - * - * @member {boolean} [properties.critical] Whether or not the namespace is set - * as Critical. - * - * @member {string} [properties.namespaceType] Gets or sets the namespace - * type. Possible values include: 'Messaging', 'NotificationHub' - * - */ -export interface NamespaceResource { - id?: string; - location?: string; - name?: string; - type?: string; - tags?: { [propertyName: string]: string }; - properties?: NamespaceProperties; -} - -/** - * @class - * Initializes a new instance of the SharedAccessAuthorizationRuleProperties class. - * @constructor - * SharedAccessAuthorizationRule properties. - * @member {string} [primaryKey] The primary key that was used. - * - * @member {string} [secondaryKey] The secondary key that was used. - * - * @member {string} [keyName] The name of the key that was used. - * - * @member {string} [claimType] The type of the claim. - * - * @member {string} [claimValue] The value of the claim. - * - * @member {array} [rights] The rights associated with the rule. - * - * @member {date} [createdTime] The time at which the authorization rule was - * created. - * - * @member {date} [modifiedTime] The most recent time the rule was updated. - * - * @member {number} [revision] The revision number for the rule. - * - */ -export interface SharedAccessAuthorizationRuleProperties { - primaryKey?: string; - secondaryKey?: string; - keyName?: string; - claimType?: string; - claimValue?: string; - rights?: string[]; - createdTime?: Date; - modifiedTime?: Date; - revision?: number; -} - -/** - * @class - * Initializes a new instance of the SharedAccessAuthorizationRuleCreateOrUpdateParameters class. - * @constructor - * Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. - * @member {string} [location] Gets or sets Namespace data center location. - * - * @member {string} [name] Gets or sets Name of the Namespace - * AuthorizationRule. - * - * @member {object} properties Gets or sets properties of the Namespace - * AuthorizationRules. - * - * @member {string} [properties.primaryKey] The primary key that was used. - * - * @member {string} [properties.secondaryKey] The secondary key that was used. - * - * @member {string} [properties.keyName] The name of the key that was used. - * - * @member {string} [properties.claimType] The type of the claim. - * - * @member {string} [properties.claimValue] The value of the claim. - * - * @member {array} [properties.rights] The rights associated with the rule. - * - * @member {date} [properties.createdTime] The time at which the authorization - * rule was created. - * - * @member {date} [properties.modifiedTime] The most recent time the rule was - * updated. - * - * @member {number} [properties.revision] The revision number for the rule. - * - */ -export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters { - location?: string; - name?: string; - properties: SharedAccessAuthorizationRuleProperties; -} - -/** - * @class - * Initializes a new instance of the SharedAccessAuthorizationRuleResource class. - * @constructor - * Description of a Namespace AuthorizationRules. - * @member {string} [id] Gets or sets the id of the created Namespace - * AuthorizationRules. - * - * @member {string} [location] Gets or sets datacenter location of the - * Namespace AuthorizationRules. - * - * @member {string} [name] Gets or sets name of the Namespace - * AuthorizationRules. - * - * @member {string} [type] Gets or sets resource type of the Namespace - * AuthorizationRules. - * - * @member {object} [tags] Gets or sets tags of the Namespace - * AuthorizationRules. - * - * @member {object} [properties] Gets or sets properties of the Namespace. - * - * @member {string} [properties.primaryKey] The primary key that was used. - * - * @member {string} [properties.secondaryKey] The secondary key that was used. - * - * @member {string} [properties.keyName] The name of the key that was used. - * - * @member {string} [properties.claimType] The type of the claim. - * - * @member {string} [properties.claimValue] The value of the claim. - * - * @member {array} [properties.rights] The rights associated with the rule. - * - * @member {date} [properties.createdTime] The time at which the authorization - * rule was created. - * - * @member {date} [properties.modifiedTime] The most recent time the rule was - * updated. - * - * @member {number} [properties.revision] The revision number for the rule. - * - */ -export interface SharedAccessAuthorizationRuleResource { - id?: string; - location?: string; - name?: string; - type?: string; - tags?: { [propertyName: string]: string }; - properties?: SharedAccessAuthorizationRuleProperties; -} - -/** - * @class - * Initializes a new instance of the ResourceListKeys class. - * @constructor - * Namespace/NotificationHub Connection String - * @member {string} [primaryConnectionString] Gets or sets the - * primaryConnectionString of the created Namespace AuthorizationRule. - * - * @member {string} [secondaryConnectionString] Gets or sets the - * secondaryConnectionString of the created Namespace AuthorizationRule - * - */ -export interface ResourceListKeys { - primaryConnectionString?: string; - secondaryConnectionString?: string; -} - -/** - * @class - * Initializes a new instance of the ApnsCredentialProperties class. - * @constructor - * Description of a NotificationHub ApnsCredential. - * @member {string} [apnsCertificate] Gets or sets the APNS certificate. - * - * @member {string} [certificateKey] Gets or sets the certificate key. - * - * @member {string} [endpoint] Gets or sets the endpoint of this credential. - * - * @member {string} [thumbprint] Gets or sets the Apns certificate Thumbprint - * - */ -export interface ApnsCredentialProperties { - apnsCertificate?: string; - certificateKey?: string; - endpoint?: string; - thumbprint?: string; -} - -/** - * @class - * Initializes a new instance of the ApnsCredential class. - * @constructor - * Description of a NotificationHub ApnsCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * ApnsCredential. - * - * @member {string} [properties.apnsCertificate] Gets or sets the APNS - * certificate. - * - * @member {string} [properties.certificateKey] Gets or sets the certificate - * key. - * - * @member {string} [properties.endpoint] Gets or sets the endpoint of this - * credential. - * - * @member {string} [properties.thumbprint] Gets or sets the Apns certificate - * Thumbprint - * - */ -export interface ApnsCredential { - properties?: ApnsCredentialProperties; -} - -/** - * @class - * Initializes a new instance of the WnsCredentialProperties class. - * @constructor - * Description of a NotificationHub WnsCredential. - * @member {string} [packageSid] Gets or sets the package ID for this - * credential. - * - * @member {string} [secretKey] Gets or sets the secret key. - * - * @member {string} [windowsLiveEndpoint] Gets or sets the Windows Live - * endpoint. - * - */ -export interface WnsCredentialProperties { - packageSid?: string; - secretKey?: string; - windowsLiveEndpoint?: string; -} - -/** - * @class - * Initializes a new instance of the WnsCredential class. - * @constructor - * Description of a NotificationHub WnsCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * WnsCredential. - * - * @member {string} [properties.packageSid] Gets or sets the package ID for - * this credential. - * - * @member {string} [properties.secretKey] Gets or sets the secret key. - * - * @member {string} [properties.windowsLiveEndpoint] Gets or sets the Windows - * Live endpoint. - * - */ -export interface WnsCredential { - properties?: WnsCredentialProperties; -} - -/** - * @class - * Initializes a new instance of the GcmCredentialProperties class. - * @constructor - * Description of a NotificationHub GcmCredential. - * @member {string} [gcmEndpoint] Gets or sets the GCM endpoint. - * - * @member {string} [googleApiKey] Gets or sets the Google API key. - * - */ -export interface GcmCredentialProperties { - gcmEndpoint?: string; - googleApiKey?: string; -} - -/** - * @class - * Initializes a new instance of the GcmCredential class. - * @constructor - * Description of a NotificationHub GcmCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * GcmCredential. - * - * @member {string} [properties.gcmEndpoint] Gets or sets the GCM endpoint. - * - * @member {string} [properties.googleApiKey] Gets or sets the Google API key. - * - */ -export interface GcmCredential { - properties?: GcmCredentialProperties; -} - -/** - * @class - * Initializes a new instance of the MpnsCredentialProperties class. - * @constructor - * Description of a NotificationHub MpnsCredential. - * @member {string} [mpnsCertificate] Gets or sets the MPNS certificate. - * - * @member {string} [certificateKey] Gets or sets the certificate key for this - * credential. - * - * @member {string} [thumbprint] Gets or sets the Mpns certificate Thumbprint - * - */ -export interface MpnsCredentialProperties { - mpnsCertificate?: string; - certificateKey?: string; - thumbprint?: string; -} - -/** - * @class - * Initializes a new instance of the MpnsCredential class. - * @constructor - * Description of a NotificationHub MpnsCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * MpnsCredential. - * - * @member {string} [properties.mpnsCertificate] Gets or sets the MPNS - * certificate. - * - * @member {string} [properties.certificateKey] Gets or sets the certificate - * key for this credential. - * - * @member {string} [properties.thumbprint] Gets or sets the Mpns certificate - * Thumbprint - * - */ -export interface MpnsCredential { - properties?: MpnsCredentialProperties; -} - -/** - * @class - * Initializes a new instance of the AdmCredentialProperties class. - * @constructor - * Description of a NotificationHub AdmCredential. - * @member {string} [clientId] Gets or sets the client identifier. - * - * @member {string} [clientSecret] Gets or sets the credential secret access - * key. - * - * @member {string} [authTokenUrl] Gets or sets the URL of the authorization - * token. - * - */ -export interface AdmCredentialProperties { - clientId?: string; - clientSecret?: string; - authTokenUrl?: string; -} - -/** - * @class - * Initializes a new instance of the AdmCredential class. - * @constructor - * Description of a NotificationHub AdmCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * AdmCredential. - * - * @member {string} [properties.clientId] Gets or sets the client identifier. - * - * @member {string} [properties.clientSecret] Gets or sets the credential - * secret access key. - * - * @member {string} [properties.authTokenUrl] Gets or sets the URL of the - * authorization token. - * - */ -export interface AdmCredential { - properties?: AdmCredentialProperties; -} - -/** - * @class - * Initializes a new instance of the BaiduCredentialProperties class. - * @constructor - * Description of a NotificationHub BaiduCredential. - * @member {string} [baiduApiKey] Get or Set Baidu Api Key. - * - * @member {string} [baiduEndPoint] Get or Set Baidu Endpoint. - * - * @member {string} [baiduSecretKey] Get or Set Baidu Secret Key - * - */ -export interface BaiduCredentialProperties { - baiduApiKey?: string; - baiduEndPoint?: string; - baiduSecretKey?: string; -} - -/** - * @class - * Initializes a new instance of the BaiduCredential class. - * @constructor - * Description of a NotificationHub BaiduCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * BaiduCredential. - * - * @member {string} [properties.baiduApiKey] Get or Set Baidu Api Key. - * - * @member {string} [properties.baiduEndPoint] Get or Set Baidu Endpoint. - * - * @member {string} [properties.baiduSecretKey] Get or Set Baidu Secret Key - * - */ -export interface BaiduCredential { - properties?: BaiduCredentialProperties; -} - -/** - * @class - * Initializes a new instance of the NotificationHubProperties class. - * @constructor - * NotificationHub properties. - * @member {string} [name] The NotificationHub name. - * - * @member {string} [registrationTtl] The RegistrationTtl of the created - * NotificationHub - * - * @member {array} [authorizationRules] The AuthorizationRules of the created - * NotificationHub - * - * @member {object} [apnsCredential] The ApnsCredential of the created - * NotificationHub - * - * @member {object} [apnsCredential.properties] Gets or sets properties of - * NotificationHub ApnsCredential. - * - * @member {string} [apnsCredential.properties.apnsCertificate] Gets or sets - * the APNS certificate. - * - * @member {string} [apnsCredential.properties.certificateKey] Gets or sets - * the certificate key. - * - * @member {string} [apnsCredential.properties.endpoint] Gets or sets the - * endpoint of this credential. - * - * @member {string} [apnsCredential.properties.thumbprint] Gets or sets the - * Apns certificate Thumbprint - * - * @member {object} [wnsCredential] The WnsCredential of the created - * NotificationHub - * - * @member {object} [wnsCredential.properties] Gets or sets properties of - * NotificationHub WnsCredential. - * - * @member {string} [wnsCredential.properties.packageSid] Gets or sets the - * package ID for this credential. - * - * @member {string} [wnsCredential.properties.secretKey] Gets or sets the - * secret key. - * - * @member {string} [wnsCredential.properties.windowsLiveEndpoint] Gets or - * sets the Windows Live endpoint. - * - * @member {object} [gcmCredential] The GcmCredential of the created - * NotificationHub - * - * @member {object} [gcmCredential.properties] Gets or sets properties of - * NotificationHub GcmCredential. - * - * @member {string} [gcmCredential.properties.gcmEndpoint] Gets or sets the - * GCM endpoint. - * - * @member {string} [gcmCredential.properties.googleApiKey] Gets or sets the - * Google API key. - * - * @member {object} [mpnsCredential] The MpnsCredential of the created - * NotificationHub - * - * @member {object} [mpnsCredential.properties] Gets or sets properties of - * NotificationHub MpnsCredential. - * - * @member {string} [mpnsCredential.properties.mpnsCertificate] Gets or sets - * the MPNS certificate. - * - * @member {string} [mpnsCredential.properties.certificateKey] Gets or sets - * the certificate key for this credential. - * - * @member {string} [mpnsCredential.properties.thumbprint] Gets or sets the - * Mpns certificate Thumbprint - * - * @member {object} [admCredential] The AdmCredential of the created - * NotificationHub - * - * @member {object} [admCredential.properties] Gets or sets properties of - * NotificationHub AdmCredential. - * - * @member {string} [admCredential.properties.clientId] Gets or sets the - * client identifier. - * - * @member {string} [admCredential.properties.clientSecret] Gets or sets the - * credential secret access key. - * - * @member {string} [admCredential.properties.authTokenUrl] Gets or sets the - * URL of the authorization token. - * - * @member {object} [baiduCredential] The BaiduCredential of the created - * NotificationHub - * - * @member {object} [baiduCredential.properties] Gets or sets properties of - * NotificationHub BaiduCredential. - * - * @member {string} [baiduCredential.properties.baiduApiKey] Get or Set Baidu - * Api Key. - * - * @member {string} [baiduCredential.properties.baiduEndPoint] Get or Set - * Baidu Endpoint. - * - * @member {string} [baiduCredential.properties.baiduSecretKey] Get or Set - * Baidu Secret Key - * - */ -export interface NotificationHubProperties { - name?: string; - registrationTtl?: string; - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - apnsCredential?: ApnsCredential; - wnsCredential?: WnsCredential; - gcmCredential?: GcmCredential; - mpnsCredential?: MpnsCredential; - admCredential?: AdmCredential; - baiduCredential?: BaiduCredential; -} - -/** - * @class - * Initializes a new instance of the NotificationHubCreateOrUpdateParameters class. - * @constructor - * Parameters supplied to the CreateOrUpdate NotificationHub operation. - * @member {string} location Gets or sets NotificationHub data center location. - * - * @member {object} [tags] Gets or sets NotificationHub tags. - * - * @member {object} properties Gets or sets properties of the NotificationHub. - * - * @member {string} [properties.name] The NotificationHub name. - * - * @member {string} [properties.registrationTtl] The RegistrationTtl of the - * created NotificationHub - * - * @member {array} [properties.authorizationRules] The AuthorizationRules of - * the created NotificationHub - * - * @member {object} [properties.apnsCredential] The ApnsCredential of the - * created NotificationHub - * - * @member {object} [properties.apnsCredential.properties] Gets or sets - * properties of NotificationHub ApnsCredential. - * - * @member {string} [properties.apnsCredential.properties.apnsCertificate] - * Gets or sets the APNS certificate. - * - * @member {string} [properties.apnsCredential.properties.certificateKey] Gets - * or sets the certificate key. - * - * @member {string} [properties.apnsCredential.properties.endpoint] Gets or - * sets the endpoint of this credential. - * - * @member {string} [properties.apnsCredential.properties.thumbprint] Gets or - * sets the Apns certificate Thumbprint - * - * @member {object} [properties.wnsCredential] The WnsCredential of the - * created NotificationHub - * - * @member {object} [properties.wnsCredential.properties] Gets or sets - * properties of NotificationHub WnsCredential. - * - * @member {string} [properties.wnsCredential.properties.packageSid] Gets or - * sets the package ID for this credential. - * - * @member {string} [properties.wnsCredential.properties.secretKey] Gets or - * sets the secret key. - * - * @member {string} [properties.wnsCredential.properties.windowsLiveEndpoint] - * Gets or sets the Windows Live endpoint. - * - * @member {object} [properties.gcmCredential] The GcmCredential of the - * created NotificationHub - * - * @member {object} [properties.gcmCredential.properties] Gets or sets - * properties of NotificationHub GcmCredential. - * - * @member {string} [properties.gcmCredential.properties.gcmEndpoint] Gets or - * sets the GCM endpoint. - * - * @member {string} [properties.gcmCredential.properties.googleApiKey] Gets or - * sets the Google API key. - * - * @member {object} [properties.mpnsCredential] The MpnsCredential of the - * created NotificationHub - * - * @member {object} [properties.mpnsCredential.properties] Gets or sets - * properties of NotificationHub MpnsCredential. - * - * @member {string} [properties.mpnsCredential.properties.mpnsCertificate] - * Gets or sets the MPNS certificate. - * - * @member {string} [properties.mpnsCredential.properties.certificateKey] Gets - * or sets the certificate key for this credential. - * - * @member {string} [properties.mpnsCredential.properties.thumbprint] Gets or - * sets the Mpns certificate Thumbprint - * - * @member {object} [properties.admCredential] The AdmCredential of the - * created NotificationHub - * - * @member {object} [properties.admCredential.properties] Gets or sets - * properties of NotificationHub AdmCredential. - * - * @member {string} [properties.admCredential.properties.clientId] Gets or - * sets the client identifier. - * - * @member {string} [properties.admCredential.properties.clientSecret] Gets or - * sets the credential secret access key. - * - * @member {string} [properties.admCredential.properties.authTokenUrl] Gets or - * sets the URL of the authorization token. - * - * @member {object} [properties.baiduCredential] The BaiduCredential of the - * created NotificationHub - * - * @member {object} [properties.baiduCredential.properties] Gets or sets - * properties of NotificationHub BaiduCredential. - * - * @member {string} [properties.baiduCredential.properties.baiduApiKey] Get or - * Set Baidu Api Key. - * - * @member {string} [properties.baiduCredential.properties.baiduEndPoint] Get - * or Set Baidu Endpoint. - * - * @member {string} [properties.baiduCredential.properties.baiduSecretKey] Get - * or Set Baidu Secret Key - * - */ -export interface NotificationHubCreateOrUpdateParameters { - location: string; - tags?: { [propertyName: string]: string }; - properties: NotificationHubProperties; -} - -/** - * @class - * Initializes a new instance of the NotificationHubResource class. - * @constructor - * Description of a NotificationHub Resource. - * @member {string} [id] Gets or sets the id of the created NotificationHub. - * - * @member {string} [location] Gets or sets datacenter location of the - * NotificationHub. - * - * @member {string} [name] Gets or sets name of the NotificationHub. - * - * @member {string} [type] Gets or sets resource type of the NotificationHub. - * - * @member {object} [tags] Gets or sets tags of the NotificationHub. - * - * @member {object} [properties] Gets or sets properties of the - * NotificationHub. - * - * @member {string} [properties.name] The NotificationHub name. - * - * @member {string} [properties.registrationTtl] The RegistrationTtl of the - * created NotificationHub - * - * @member {array} [properties.authorizationRules] The AuthorizationRules of - * the created NotificationHub - * - * @member {object} [properties.apnsCredential] The ApnsCredential of the - * created NotificationHub - * - * @member {object} [properties.apnsCredential.properties] Gets or sets - * properties of NotificationHub ApnsCredential. - * - * @member {string} [properties.apnsCredential.properties.apnsCertificate] - * Gets or sets the APNS certificate. - * - * @member {string} [properties.apnsCredential.properties.certificateKey] Gets - * or sets the certificate key. - * - * @member {string} [properties.apnsCredential.properties.endpoint] Gets or - * sets the endpoint of this credential. - * - * @member {string} [properties.apnsCredential.properties.thumbprint] Gets or - * sets the Apns certificate Thumbprint - * - * @member {object} [properties.wnsCredential] The WnsCredential of the - * created NotificationHub - * - * @member {object} [properties.wnsCredential.properties] Gets or sets - * properties of NotificationHub WnsCredential. - * - * @member {string} [properties.wnsCredential.properties.packageSid] Gets or - * sets the package ID for this credential. - * - * @member {string} [properties.wnsCredential.properties.secretKey] Gets or - * sets the secret key. - * - * @member {string} [properties.wnsCredential.properties.windowsLiveEndpoint] - * Gets or sets the Windows Live endpoint. - * - * @member {object} [properties.gcmCredential] The GcmCredential of the - * created NotificationHub - * - * @member {object} [properties.gcmCredential.properties] Gets or sets - * properties of NotificationHub GcmCredential. - * - * @member {string} [properties.gcmCredential.properties.gcmEndpoint] Gets or - * sets the GCM endpoint. - * - * @member {string} [properties.gcmCredential.properties.googleApiKey] Gets or - * sets the Google API key. - * - * @member {object} [properties.mpnsCredential] The MpnsCredential of the - * created NotificationHub - * - * @member {object} [properties.mpnsCredential.properties] Gets or sets - * properties of NotificationHub MpnsCredential. - * - * @member {string} [properties.mpnsCredential.properties.mpnsCertificate] - * Gets or sets the MPNS certificate. - * - * @member {string} [properties.mpnsCredential.properties.certificateKey] Gets - * or sets the certificate key for this credential. - * - * @member {string} [properties.mpnsCredential.properties.thumbprint] Gets or - * sets the Mpns certificate Thumbprint - * - * @member {object} [properties.admCredential] The AdmCredential of the - * created NotificationHub - * - * @member {object} [properties.admCredential.properties] Gets or sets - * properties of NotificationHub AdmCredential. - * - * @member {string} [properties.admCredential.properties.clientId] Gets or - * sets the client identifier. - * - * @member {string} [properties.admCredential.properties.clientSecret] Gets or - * sets the credential secret access key. - * - * @member {string} [properties.admCredential.properties.authTokenUrl] Gets or - * sets the URL of the authorization token. - * - * @member {object} [properties.baiduCredential] The BaiduCredential of the - * created NotificationHub - * - * @member {object} [properties.baiduCredential.properties] Gets or sets - * properties of NotificationHub BaiduCredential. - * - * @member {string} [properties.baiduCredential.properties.baiduApiKey] Get or - * Set Baidu Api Key. - * - * @member {string} [properties.baiduCredential.properties.baiduEndPoint] Get - * or Set Baidu Endpoint. - * - * @member {string} [properties.baiduCredential.properties.baiduSecretKey] Get - * or Set Baidu Secret Key - * - */ -export interface NotificationHubResource { - id?: string; - location?: string; - name?: string; - type?: string; - tags?: { [propertyName: string]: string }; - properties?: NotificationHubProperties; -} - /** * @class * Initializes a new instance of the Resource class. @@ -994,6 +33,573 @@ export interface Resource extends BaseResource { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the CheckAvailabilityParameters class. + * @constructor + * Parameters supplied to the Check Name Availability for Namespace and + * NotificationHubs. + * + * @member {boolean} [isAvailiable] True if the name is available and can be + * used to create new Namespace/NotificationHub. Otherwise false. + * + */ +export interface CheckAvailabilityParameters extends Resource { + isAvailiable?: boolean; +} + +/** + * @class + * Initializes a new instance of the CheckAvailabilityResult class. + * @constructor + * Description of a CheckAvailibility resource. + * + * @member {boolean} [isAvailiable] True if the name is available and can be + * used to create new Namespace/NotificationHub. Otherwise false. + * + */ +export interface CheckAvailabilityResult extends Resource { + isAvailiable?: boolean; +} + +/** + * @class + * Initializes a new instance of the NamespaceCreateOrUpdateParameters class. + * @constructor + * Parameters supplied to the CreateOrUpdate Namespace operation. + * + * @member {string} [namespaceCreateOrUpdateParametersName] The name of the + * namespace. + * + * @member {string} [provisioningState] Provisioning state of the Namespace. + * + * @member {string} [region] Specifies the targeted region in which the + * namespace should be created. It can be any of the following values: + * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth + * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan + * EastJapan WestNorth EuropeWest Europe + * + * @member {string} [status] Status of the namespace. It can be any of these + * values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting + * + * @member {date} [createdAt] The time the namespace was created. + * + * @member {string} [serviceBusEndpoint] Endpoint you can use to perform + * NotificationHub operations. + * + * @member {string} [subscriptionId] The Id of the Azure subscription + * associated with the namespace. + * + * @member {string} [scaleUnit] ScaleUnit where the namespace gets created + * + * @member {boolean} [enabled] Whether or not the namespace is currently + * enabled. + * + * @member {boolean} [critical] Whether or not the namespace is set as + * Critical. + * + * @member {string} [namespaceType] The namespace type. Possible values + * include: 'Messaging', 'NotificationHub' + * + */ +export interface NamespaceCreateOrUpdateParameters extends Resource { + namespaceCreateOrUpdateParametersName?: string; + provisioningState?: string; + region?: string; + status?: string; + createdAt?: Date; + serviceBusEndpoint?: string; + subscriptionId?: string; + scaleUnit?: string; + enabled?: boolean; + critical?: boolean; + namespaceType?: string; +} + +/** + * @class + * Initializes a new instance of the NamespaceResource class. + * @constructor + * Description of a Namespace resource. + * + * @member {string} [namespaceResourceName] The name of the namespace. + * + * @member {string} [provisioningState] Provisioning state of the Namespace. + * + * @member {string} [region] Specifies the targeted region in which the + * namespace should be created. It can be any of the following values: + * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth + * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan + * EastJapan WestNorth EuropeWest Europe + * + * @member {string} [status] Status of the namespace. It can be any of these + * values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting + * + * @member {date} [createdAt] The time the namespace was created. + * + * @member {string} [serviceBusEndpoint] Endpoint you can use to perform + * NotificationHub operations. + * + * @member {string} [subscriptionId] The Id of the Azure subscription + * associated with the namespace. + * + * @member {string} [scaleUnit] ScaleUnit where the namespace gets created + * + * @member {boolean} [enabled] Whether or not the namespace is currently + * enabled. + * + * @member {boolean} [critical] Whether or not the namespace is set as + * Critical. + * + * @member {string} [namespaceType] The namespace type. Possible values + * include: 'Messaging', 'NotificationHub' + * + */ +export interface NamespaceResource extends Resource { + namespaceResourceName?: string; + provisioningState?: string; + region?: string; + status?: string; + createdAt?: Date; + serviceBusEndpoint?: string; + subscriptionId?: string; + scaleUnit?: string; + enabled?: boolean; + critical?: boolean; + namespaceType?: string; +} + +/** + * @class + * Initializes a new instance of the SharedAccessAuthorizationRuleCreateOrUpdateParameters class. + * @constructor + * Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. + * + * @member {array} [rights] The rights associated with the rule. + * + */ +export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters extends Resource { + rights?: string[]; +} + +/** + * @class + * Initializes a new instance of the SharedAccessAuthorizationRuleResource class. + * @constructor + * Description of a Namespace AuthorizationRules. + * + * @member {array} [rights] The rights associated with the rule. + * + */ +export interface SharedAccessAuthorizationRuleResource extends Resource { + rights?: string[]; +} + +/** + * @class + * Initializes a new instance of the ResourceListKeys class. + * @constructor + * Namespace/NotificationHub Connection String + * + * @member {string} [primaryConnectionString] PrimaryConnectionString of the + * AuthorizationRule. + * + * @member {string} [secondaryConnectionString] SecondaryConnectionString of + * the created AuthorizationRule + * + * @member {string} [primaryKey] PrimaryKey of the created AuthorizationRule. + * + * @member {string} [secondaryKey] SecondaryKey of the created + * AuthorizationRule + * + * @member {string} [keyName] KeyName of the created AuthorizationRule + * + */ +export interface ResourceListKeys { + primaryConnectionString?: string; + secondaryConnectionString?: string; + primaryKey?: string; + secondaryKey?: string; + keyName?: string; +} + +/** + * @class + * Initializes a new instance of the PolicykeyResource class. + * @constructor + * Namespace/NotificationHub Regenerate Keys + * + * @member {string} [policyKey] Name of the key that has to be regenerated for + * the Namespace/Notification Hub Authorization Rule. The value can be + * Primary Key/Secondary Key. + * + */ +export interface PolicykeyResource { + policyKey?: string; +} + +/** + * @class + * Initializes a new instance of the ApnsCredential class. + * @constructor + * Description of a NotificationHub ApnsCredential. + * + * @member {string} [apnsCertificate] The APNS certificate. + * + * @member {string} [certificateKey] The certificate key. + * + * @member {string} [endpoint] The endpoint of this credential. + * + * @member {string} [thumbprint] The Apns certificate Thumbprint + * + */ +export interface ApnsCredential { + apnsCertificate?: string; + certificateKey?: string; + endpoint?: string; + thumbprint?: string; +} + +/** + * @class + * Initializes a new instance of the WnsCredential class. + * @constructor + * Description of a NotificationHub WnsCredential. + * + * @member {string} [packageSid] The package ID for this credential. + * + * @member {string} [secretKey] The secret key. + * + * @member {string} [windowsLiveEndpoint] The Windows Live endpoint. + * + */ +export interface WnsCredential { + packageSid?: string; + secretKey?: string; + windowsLiveEndpoint?: string; +} + +/** + * @class + * Initializes a new instance of the GcmCredential class. + * @constructor + * Description of a NotificationHub GcmCredential. + * + * @member {string} [gcmEndpoint] The GCM endpoint. + * + * @member {string} [googleApiKey] The Google API key. + * + */ +export interface GcmCredential { + gcmEndpoint?: string; + googleApiKey?: string; +} + +/** + * @class + * Initializes a new instance of the MpnsCredential class. + * @constructor + * Description of a NotificationHub MpnsCredential. + * + * @member {string} [mpnsCertificate] The MPNS certificate. + * + * @member {string} [certificateKey] The certificate key for this credential. + * + * @member {string} [thumbprint] The Mpns certificate Thumbprint + * + */ +export interface MpnsCredential { + mpnsCertificate?: string; + certificateKey?: string; + thumbprint?: string; +} + +/** + * @class + * Initializes a new instance of the AdmCredential class. + * @constructor + * Description of a NotificationHub AdmCredential. + * + * @member {string} [clientId] The client identifier. + * + * @member {string} [clientSecret] The credential secret access key. + * + * @member {string} [authTokenUrl] The URL of the authorization token. + * + */ +export interface AdmCredential { + clientId?: string; + clientSecret?: string; + authTokenUrl?: string; +} + +/** + * @class + * Initializes a new instance of the BaiduCredential class. + * @constructor + * Description of a NotificationHub BaiduCredential. + * + * @member {string} [baiduApiKey] Baidu Api Key. + * + * @member {string} [baiduEndPoint] Baidu Endpoint. + * + * @member {string} [baiduSecretKey] Baidu Secret Key + * + */ +export interface BaiduCredential { + baiduApiKey?: string; + baiduEndPoint?: string; + baiduSecretKey?: string; +} + +/** + * @class + * Initializes a new instance of the NotificationHubCreateOrUpdateParameters class. + * @constructor + * Parameters supplied to the CreateOrUpdate NotificationHub operation. + * + * @member {string} [notificationHubCreateOrUpdateParametersName] The + * NotificationHub name. + * + * @member {string} [registrationTtl] The RegistrationTtl of the created + * NotificationHub + * + * @member {array} [authorizationRules] The AuthorizationRules of the created + * NotificationHub + * + * @member {object} [apnsCredential] The ApnsCredential of the created + * NotificationHub + * + * @member {string} [apnsCredential.apnsCertificate] The APNS certificate. + * + * @member {string} [apnsCredential.certificateKey] The certificate key. + * + * @member {string} [apnsCredential.endpoint] The endpoint of this credential. + * + * @member {string} [apnsCredential.thumbprint] The Apns certificate Thumbprint + * + * @member {object} [wnsCredential] The WnsCredential of the created + * NotificationHub + * + * @member {string} [wnsCredential.packageSid] The package ID for this + * credential. + * + * @member {string} [wnsCredential.secretKey] The secret key. + * + * @member {string} [wnsCredential.windowsLiveEndpoint] The Windows Live + * endpoint. + * + * @member {object} [gcmCredential] The GcmCredential of the created + * NotificationHub + * + * @member {string} [gcmCredential.gcmEndpoint] The GCM endpoint. + * + * @member {string} [gcmCredential.googleApiKey] The Google API key. + * + * @member {object} [mpnsCredential] The MpnsCredential of the created + * NotificationHub + * + * @member {string} [mpnsCredential.mpnsCertificate] The MPNS certificate. + * + * @member {string} [mpnsCredential.certificateKey] The certificate key for + * this credential. + * + * @member {string} [mpnsCredential.thumbprint] The Mpns certificate Thumbprint + * + * @member {object} [admCredential] The AdmCredential of the created + * NotificationHub + * + * @member {string} [admCredential.clientId] The client identifier. + * + * @member {string} [admCredential.clientSecret] The credential secret access + * key. + * + * @member {string} [admCredential.authTokenUrl] The URL of the authorization + * token. + * + * @member {object} [baiduCredential] The BaiduCredential of the created + * NotificationHub + * + * @member {string} [baiduCredential.baiduApiKey] Baidu Api Key. + * + * @member {string} [baiduCredential.baiduEndPoint] Baidu Endpoint. + * + * @member {string} [baiduCredential.baiduSecretKey] Baidu Secret Key + * + */ +export interface NotificationHubCreateOrUpdateParameters extends Resource { + notificationHubCreateOrUpdateParametersName?: string; + registrationTtl?: string; + authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + apnsCredential?: ApnsCredential; + wnsCredential?: WnsCredential; + gcmCredential?: GcmCredential; + mpnsCredential?: MpnsCredential; + admCredential?: AdmCredential; + baiduCredential?: BaiduCredential; +} + +/** + * @class + * Initializes a new instance of the NotificationHubResource class. + * @constructor + * Description of a NotificationHub Resource. + * + * @member {string} [notificationHubResourceName] The NotificationHub name. + * + * @member {string} [registrationTtl] The RegistrationTtl of the created + * NotificationHub + * + * @member {array} [authorizationRules] The AuthorizationRules of the created + * NotificationHub + * + * @member {object} [apnsCredential] The ApnsCredential of the created + * NotificationHub + * + * @member {string} [apnsCredential.apnsCertificate] The APNS certificate. + * + * @member {string} [apnsCredential.certificateKey] The certificate key. + * + * @member {string} [apnsCredential.endpoint] The endpoint of this credential. + * + * @member {string} [apnsCredential.thumbprint] The Apns certificate Thumbprint + * + * @member {object} [wnsCredential] The WnsCredential of the created + * NotificationHub + * + * @member {string} [wnsCredential.packageSid] The package ID for this + * credential. + * + * @member {string} [wnsCredential.secretKey] The secret key. + * + * @member {string} [wnsCredential.windowsLiveEndpoint] The Windows Live + * endpoint. + * + * @member {object} [gcmCredential] The GcmCredential of the created + * NotificationHub + * + * @member {string} [gcmCredential.gcmEndpoint] The GCM endpoint. + * + * @member {string} [gcmCredential.googleApiKey] The Google API key. + * + * @member {object} [mpnsCredential] The MpnsCredential of the created + * NotificationHub + * + * @member {string} [mpnsCredential.mpnsCertificate] The MPNS certificate. + * + * @member {string} [mpnsCredential.certificateKey] The certificate key for + * this credential. + * + * @member {string} [mpnsCredential.thumbprint] The Mpns certificate Thumbprint + * + * @member {object} [admCredential] The AdmCredential of the created + * NotificationHub + * + * @member {string} [admCredential.clientId] The client identifier. + * + * @member {string} [admCredential.clientSecret] The credential secret access + * key. + * + * @member {string} [admCredential.authTokenUrl] The URL of the authorization + * token. + * + * @member {object} [baiduCredential] The BaiduCredential of the created + * NotificationHub + * + * @member {string} [baiduCredential.baiduApiKey] Baidu Api Key. + * + * @member {string} [baiduCredential.baiduEndPoint] Baidu Endpoint. + * + * @member {string} [baiduCredential.baiduSecretKey] Baidu Secret Key + * + */ +export interface NotificationHubResource extends Resource { + notificationHubResourceName?: string; + registrationTtl?: string; + authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + apnsCredential?: ApnsCredential; + wnsCredential?: WnsCredential; + gcmCredential?: GcmCredential; + mpnsCredential?: MpnsCredential; + admCredential?: AdmCredential; + baiduCredential?: BaiduCredential; +} + +/** + * @class + * Initializes a new instance of the PnsCredentialsResource class. + * @constructor + * Description of a NotificationHub PNS Credentials. + * + * @member {object} [apnsCredential] The ApnsCredential of the created + * NotificationHub + * + * @member {string} [apnsCredential.apnsCertificate] The APNS certificate. + * + * @member {string} [apnsCredential.certificateKey] The certificate key. + * + * @member {string} [apnsCredential.endpoint] The endpoint of this credential. + * + * @member {string} [apnsCredential.thumbprint] The Apns certificate Thumbprint + * + * @member {object} [wnsCredential] The WnsCredential of the created + * NotificationHub + * + * @member {string} [wnsCredential.packageSid] The package ID for this + * credential. + * + * @member {string} [wnsCredential.secretKey] The secret key. + * + * @member {string} [wnsCredential.windowsLiveEndpoint] The Windows Live + * endpoint. + * + * @member {object} [gcmCredential] The GcmCredential of the created + * NotificationHub + * + * @member {string} [gcmCredential.gcmEndpoint] The GCM endpoint. + * + * @member {string} [gcmCredential.googleApiKey] The Google API key. + * + * @member {object} [mpnsCredential] The MpnsCredential of the created + * NotificationHub + * + * @member {string} [mpnsCredential.mpnsCertificate] The MPNS certificate. + * + * @member {string} [mpnsCredential.certificateKey] The certificate key for + * this credential. + * + * @member {string} [mpnsCredential.thumbprint] The Mpns certificate Thumbprint + * + * @member {object} [admCredential] The AdmCredential of the created + * NotificationHub + * + * @member {string} [admCredential.clientId] The client identifier. + * + * @member {string} [admCredential.clientSecret] The credential secret access + * key. + * + * @member {string} [admCredential.authTokenUrl] The URL of the authorization + * token. + * + * @member {object} [baiduCredential] The BaiduCredential of the created + * NotificationHub + * + * @member {string} [baiduCredential.baiduApiKey] Baidu Api Key. + * + * @member {string} [baiduCredential.baiduEndPoint] Baidu Endpoint. + * + * @member {string} [baiduCredential.baiduSecretKey] Baidu Secret Key + * + */ +export interface PnsCredentialsResource extends Resource { + apnsCredential?: ApnsCredential; + wnsCredential?: WnsCredential; + gcmCredential?: GcmCredential; + mpnsCredential?: MpnsCredential; + admCredential?: AdmCredential; + baiduCredential?: BaiduCredential; +} + /** * @class * Initializes a new instance of the SubResource class. diff --git a/lib/services/notificationHubsManagement/lib/models/index.js b/lib/services/notificationHubsManagement/lib/models/index.js index 8923da70c..f3eb8acd5 100644 --- a/lib/services/notificationHubsManagement/lib/models/index.js +++ b/lib/services/notificationHubsManagement/lib/models/index.js @@ -18,31 +18,24 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; +exports.Resource = require('./resource'); exports.CheckAvailabilityParameters = require('./checkAvailabilityParameters'); -exports.CheckAvailabilityResource = require('./checkAvailabilityResource'); -exports.NamespaceProperties = require('./namespaceProperties'); +exports.CheckAvailabilityResult = require('./checkAvailabilityResult'); exports.NamespaceCreateOrUpdateParameters = require('./namespaceCreateOrUpdateParameters'); exports.NamespaceResource = require('./namespaceResource'); -exports.SharedAccessAuthorizationRuleProperties = require('./sharedAccessAuthorizationRuleProperties'); exports.SharedAccessAuthorizationRuleCreateOrUpdateParameters = require('./sharedAccessAuthorizationRuleCreateOrUpdateParameters'); exports.SharedAccessAuthorizationRuleResource = require('./sharedAccessAuthorizationRuleResource'); exports.ResourceListKeys = require('./resourceListKeys'); -exports.ApnsCredentialProperties = require('./apnsCredentialProperties'); +exports.PolicykeyResource = require('./policykeyResource'); exports.ApnsCredential = require('./apnsCredential'); -exports.WnsCredentialProperties = require('./wnsCredentialProperties'); exports.WnsCredential = require('./wnsCredential'); -exports.GcmCredentialProperties = require('./gcmCredentialProperties'); exports.GcmCredential = require('./gcmCredential'); -exports.MpnsCredentialProperties = require('./mpnsCredentialProperties'); exports.MpnsCredential = require('./mpnsCredential'); -exports.AdmCredentialProperties = require('./admCredentialProperties'); exports.AdmCredential = require('./admCredential'); -exports.BaiduCredentialProperties = require('./baiduCredentialProperties'); exports.BaiduCredential = require('./baiduCredential'); -exports.NotificationHubProperties = require('./notificationHubProperties'); exports.NotificationHubCreateOrUpdateParameters = require('./notificationHubCreateOrUpdateParameters'); exports.NotificationHubResource = require('./notificationHubResource'); -exports.Resource = require('./resource'); +exports.PnsCredentialsResource = require('./pnsCredentialsResource'); exports.SubResource = require('./subResource'); exports.NamespaceListResult = require('./namespaceListResult'); exports.SharedAccessAuthorizationRuleListResult = require('./sharedAccessAuthorizationRuleListResult'); diff --git a/lib/services/notificationHubsManagement/lib/models/mpnsCredential.js b/lib/services/notificationHubsManagement/lib/models/mpnsCredential.js index 45d3eb107..c897eaffb 100644 --- a/lib/services/notificationHubsManagement/lib/models/mpnsCredential.js +++ b/lib/services/notificationHubsManagement/lib/models/mpnsCredential.js @@ -10,24 +10,17 @@ 'use strict'; -var models = require('./index'); - /** * @class * Initializes a new instance of the MpnsCredential class. * @constructor * Description of a NotificationHub MpnsCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * MpnsCredential. + * + * @member {string} [mpnsCertificate] The MPNS certificate. * - * @member {string} [properties.mpnsCertificate] Gets or sets the MPNS - * certificate. + * @member {string} [certificateKey] The certificate key for this credential. * - * @member {string} [properties.certificateKey] Gets or sets the certificate - * key for this credential. - * - * @member {string} [properties.thumbprint] Gets or sets the Mpns certificate - * Thumbprint + * @member {string} [thumbprint] The Mpns certificate Thumbprint * */ function MpnsCredential() { @@ -47,12 +40,25 @@ MpnsCredential.prototype.mapper = function () { name: 'Composite', className: 'MpnsCredential', modelProperties: { - properties: { + mpnsCertificate: { required: false, - serializedName: 'properties', + serializedName: 'properties.mpnsCertificate', type: { - name: 'Composite', - className: 'MpnsCredentialProperties' + name: 'String' + } + }, + certificateKey: { + required: false, + serializedName: 'properties.certificateKey', + type: { + name: 'String' + } + }, + thumbprint: { + required: false, + serializedName: 'properties.thumbprint', + type: { + name: 'String' } } } diff --git a/lib/services/notificationHubsManagement/lib/models/namespaceCreateOrUpdateParameters.js b/lib/services/notificationHubsManagement/lib/models/namespaceCreateOrUpdateParameters.js index f7f1060e6..de9d4fce9 100644 --- a/lib/services/notificationHubsManagement/lib/models/namespaceCreateOrUpdateParameters.js +++ b/lib/services/notificationHubsManagement/lib/models/namespaceCreateOrUpdateParameters.js @@ -12,55 +12,54 @@ var models = require('./index'); +var util = require('util'); + /** * @class * Initializes a new instance of the NamespaceCreateOrUpdateParameters class. * @constructor * Parameters supplied to the CreateOrUpdate Namespace operation. - * @member {string} location Gets or sets Namespace data center location. + * + * @member {string} [namespaceCreateOrUpdateParametersName] The name of the + * namespace. * - * @member {object} [tags] Gets or sets Namespace tags. + * @member {string} [provisioningState] Provisioning state of the Namespace. * - * @member {object} properties Gets or sets properties of the Namespace. - * - * @member {string} [properties.name] The name of the namespace. - * - * @member {string} [properties.provisioningState] Gets or sets provisioning - * state of the Namespace. - * - * @member {string} [properties.region] Specifies the targeted region in which - * the namespace should be created. It can be any of the following values: + * @member {string} [region] Specifies the targeted region in which the + * namespace should be created. It can be any of the following values: * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan * EastJapan WestNorth EuropeWest Europe * - * @member {string} [properties.status] Status of the namespace. It can be any - * of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting + * @member {string} [status] Status of the namespace. It can be any of these + * values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting * - * @member {date} [properties.createdAt] The time the namespace was created. + * @member {date} [createdAt] The time the namespace was created. * - * @member {string} [properties.serviceBusEndpoint] Endpoint you can use to - * perform NotificationHub operations. + * @member {string} [serviceBusEndpoint] Endpoint you can use to perform + * NotificationHub operations. * - * @member {string} [properties.subscriptionId] The Id of the Azure - * subscription associated with the namespace. + * @member {string} [subscriptionId] The Id of the Azure subscription + * associated with the namespace. * - * @member {string} [properties.scaleUnit] ScaleUnit where the namespace gets - * created + * @member {string} [scaleUnit] ScaleUnit where the namespace gets created * - * @member {boolean} [properties.enabled] Whether or not the namespace is - * currently enabled. + * @member {boolean} [enabled] Whether or not the namespace is currently + * enabled. * - * @member {boolean} [properties.critical] Whether or not the namespace is set - * as Critical. + * @member {boolean} [critical] Whether or not the namespace is set as + * Critical. * - * @member {string} [properties.namespaceType] Gets or sets the namespace - * type. Possible values include: 'Messaging', 'NotificationHub' + * @member {string} [namespaceType] The namespace type. Possible values + * include: 'Messaging', 'NotificationHub' * */ function NamespaceCreateOrUpdateParameters() { + NamespaceCreateOrUpdateParameters['super_'].call(this); } +util.inherits(NamespaceCreateOrUpdateParameters, models['Resource']); + /** * Defines the metadata of NamespaceCreateOrUpdateParameters * @@ -75,6 +74,30 @@ NamespaceCreateOrUpdateParameters.prototype.mapper = function () { name: 'Composite', className: 'NamespaceCreateOrUpdateParameters', modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, location: { required: true, serializedName: 'location', @@ -96,12 +119,82 @@ NamespaceCreateOrUpdateParameters.prototype.mapper = function () { } } }, - properties: { - required: true, - serializedName: 'properties', + namespaceCreateOrUpdateParametersName: { + required: false, + serializedName: 'properties.name', type: { - name: 'Composite', - className: 'NamespaceProperties' + name: 'String' + } + }, + provisioningState: { + required: false, + serializedName: 'properties.provisioningState', + type: { + name: 'String' + } + }, + region: { + required: false, + serializedName: 'properties.region', + type: { + name: 'String' + } + }, + status: { + required: false, + serializedName: 'properties.status', + type: { + name: 'String' + } + }, + createdAt: { + required: false, + serializedName: 'properties.createdAt', + type: { + name: 'DateTime' + } + }, + serviceBusEndpoint: { + required: false, + serializedName: 'properties.serviceBusEndpoint', + type: { + name: 'String' + } + }, + subscriptionId: { + required: false, + serializedName: 'properties.subscriptionId', + type: { + name: 'String' + } + }, + scaleUnit: { + required: false, + serializedName: 'properties.scaleUnit', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serializedName: 'properties.enabled', + type: { + name: 'Boolean' + } + }, + critical: { + required: false, + serializedName: 'properties.critical', + type: { + name: 'Boolean' + } + }, + namespaceType: { + required: false, + serializedName: 'properties.namespaceType', + type: { + name: 'Enum', + allowedValues: [ 'Messaging', 'NotificationHub' ] } } } diff --git a/lib/services/notificationHubsManagement/lib/models/namespaceListResult.js b/lib/services/notificationHubsManagement/lib/models/namespaceListResult.js index a2b1c3a06..39c479ed3 100644 --- a/lib/services/notificationHubsManagement/lib/models/namespaceListResult.js +++ b/lib/services/notificationHubsManagement/lib/models/namespaceListResult.js @@ -17,10 +17,10 @@ var util = require('util'); * Initializes a new instance of the NamespaceListResult class. * @constructor * The response of the List Namespace operation. - * @member {array} [value] Gets or sets result of the List Namespace operation. + * @member {array} [value] Result of the List Namespace operation. * - * @member {string} [nextLink] Gets or sets link to the next set of results. - * Not empty if Value contains incomplete list of Namespaces + * @member {string} [nextLink] Link to the next set of results. Not empty if + * Value contains incomplete list of Namespaces * */ function NamespaceListResult() { diff --git a/lib/services/notificationHubsManagement/lib/models/namespaceResource.js b/lib/services/notificationHubsManagement/lib/models/namespaceResource.js index 926b3eb0f..f2ffccacb 100644 --- a/lib/services/notificationHubsManagement/lib/models/namespaceResource.js +++ b/lib/services/notificationHubsManagement/lib/models/namespaceResource.js @@ -12,62 +12,53 @@ var models = require('./index'); +var util = require('util'); + /** * @class * Initializes a new instance of the NamespaceResource class. * @constructor * Description of a Namespace resource. - * @member {string} [id] Gets or sets the id of the created Namespace. + * + * @member {string} [namespaceResourceName] The name of the namespace. * - * @member {string} [location] Gets or sets datacenter location of the - * Namespace. + * @member {string} [provisioningState] Provisioning state of the Namespace. * - * @member {string} [name] Gets or sets name of the Namespace. - * - * @member {string} [type] Gets or sets resource type of the Namespace. - * - * @member {object} [tags] Gets or sets tags of the Namespace. - * - * @member {object} [properties] Gets or sets properties of the Namespace. - * - * @member {string} [properties.name] The name of the namespace. - * - * @member {string} [properties.provisioningState] Gets or sets provisioning - * state of the Namespace. - * - * @member {string} [properties.region] Specifies the targeted region in which - * the namespace should be created. It can be any of the following values: + * @member {string} [region] Specifies the targeted region in which the + * namespace should be created. It can be any of the following values: * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan * EastJapan WestNorth EuropeWest Europe * - * @member {string} [properties.status] Status of the namespace. It can be any - * of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting + * @member {string} [status] Status of the namespace. It can be any of these + * values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting * - * @member {date} [properties.createdAt] The time the namespace was created. + * @member {date} [createdAt] The time the namespace was created. * - * @member {string} [properties.serviceBusEndpoint] Endpoint you can use to - * perform NotificationHub operations. + * @member {string} [serviceBusEndpoint] Endpoint you can use to perform + * NotificationHub operations. * - * @member {string} [properties.subscriptionId] The Id of the Azure - * subscription associated with the namespace. + * @member {string} [subscriptionId] The Id of the Azure subscription + * associated with the namespace. * - * @member {string} [properties.scaleUnit] ScaleUnit where the namespace gets - * created + * @member {string} [scaleUnit] ScaleUnit where the namespace gets created * - * @member {boolean} [properties.enabled] Whether or not the namespace is - * currently enabled. + * @member {boolean} [enabled] Whether or not the namespace is currently + * enabled. * - * @member {boolean} [properties.critical] Whether or not the namespace is set - * as Critical. + * @member {boolean} [critical] Whether or not the namespace is set as + * Critical. * - * @member {string} [properties.namespaceType] Gets or sets the namespace - * type. Possible values include: 'Messaging', 'NotificationHub' + * @member {string} [namespaceType] The namespace type. Possible values + * include: 'Messaging', 'NotificationHub' * */ function NamespaceResource() { + NamespaceResource['super_'].call(this); } +util.inherits(NamespaceResource, models['Resource']); + /** * Defines the metadata of NamespaceResource * @@ -84,20 +75,15 @@ NamespaceResource.prototype.mapper = function () { modelProperties: { id: { required: false, + readOnly: true, serializedName: 'id', type: { name: 'String' } }, - location: { - required: false, - serializedName: 'location', - type: { - name: 'String' - } - }, name: { required: false, + readOnly: true, serializedName: 'name', type: { name: 'String' @@ -105,11 +91,19 @@ NamespaceResource.prototype.mapper = function () { }, type: { required: false, + readOnly: true, serializedName: 'type', type: { name: 'String' } }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, tags: { required: false, serializedName: 'tags', @@ -124,12 +118,82 @@ NamespaceResource.prototype.mapper = function () { } } }, - properties: { + namespaceResourceName: { required: false, - serializedName: 'properties', + serializedName: 'properties.name', type: { - name: 'Composite', - className: 'NamespaceProperties' + name: 'String' + } + }, + provisioningState: { + required: false, + serializedName: 'properties.provisioningState', + type: { + name: 'String' + } + }, + region: { + required: false, + serializedName: 'properties.region', + type: { + name: 'String' + } + }, + status: { + required: false, + serializedName: 'properties.status', + type: { + name: 'String' + } + }, + createdAt: { + required: false, + serializedName: 'properties.createdAt', + type: { + name: 'DateTime' + } + }, + serviceBusEndpoint: { + required: false, + serializedName: 'properties.serviceBusEndpoint', + type: { + name: 'String' + } + }, + subscriptionId: { + required: false, + serializedName: 'properties.subscriptionId', + type: { + name: 'String' + } + }, + scaleUnit: { + required: false, + serializedName: 'properties.scaleUnit', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serializedName: 'properties.enabled', + type: { + name: 'Boolean' + } + }, + critical: { + required: false, + serializedName: 'properties.critical', + type: { + name: 'Boolean' + } + }, + namespaceType: { + required: false, + serializedName: 'properties.namespaceType', + type: { + name: 'Enum', + allowedValues: [ 'Messaging', 'NotificationHub' ] } } } diff --git a/lib/services/notificationHubsManagement/lib/models/notificationHubCreateOrUpdateParameters.js b/lib/services/notificationHubsManagement/lib/models/notificationHubCreateOrUpdateParameters.js index 5ff12707c..ffc368991 100644 --- a/lib/services/notificationHubsManagement/lib/models/notificationHubCreateOrUpdateParameters.js +++ b/lib/services/notificationHubsManagement/lib/models/notificationHubCreateOrUpdateParameters.js @@ -12,119 +12,89 @@ var models = require('./index'); +var util = require('util'); + /** * @class * Initializes a new instance of the NotificationHubCreateOrUpdateParameters class. * @constructor * Parameters supplied to the CreateOrUpdate NotificationHub operation. - * @member {string} location Gets or sets NotificationHub data center location. + * + * @member {string} [notificationHubCreateOrUpdateParametersName] The + * NotificationHub name. * - * @member {object} [tags] Gets or sets NotificationHub tags. + * @member {string} [registrationTtl] The RegistrationTtl of the created + * NotificationHub * - * @member {object} properties Gets or sets properties of the NotificationHub. + * @member {array} [authorizationRules] The AuthorizationRules of the created + * NotificationHub * - * @member {string} [properties.name] The NotificationHub name. + * @member {object} [apnsCredential] The ApnsCredential of the created + * NotificationHub * - * @member {string} [properties.registrationTtl] The RegistrationTtl of the - * created NotificationHub + * @member {string} [apnsCredential.apnsCertificate] The APNS certificate. * - * @member {array} [properties.authorizationRules] The AuthorizationRules of - * the created NotificationHub + * @member {string} [apnsCredential.certificateKey] The certificate key. * - * @member {object} [properties.apnsCredential] The ApnsCredential of the - * created NotificationHub + * @member {string} [apnsCredential.endpoint] The endpoint of this credential. * - * @member {object} [properties.apnsCredential.properties] Gets or sets - * properties of NotificationHub ApnsCredential. + * @member {string} [apnsCredential.thumbprint] The Apns certificate Thumbprint * - * @member {string} [properties.apnsCredential.properties.apnsCertificate] - * Gets or sets the APNS certificate. + * @member {object} [wnsCredential] The WnsCredential of the created + * NotificationHub * - * @member {string} [properties.apnsCredential.properties.certificateKey] Gets - * or sets the certificate key. + * @member {string} [wnsCredential.packageSid] The package ID for this + * credential. * - * @member {string} [properties.apnsCredential.properties.endpoint] Gets or - * sets the endpoint of this credential. + * @member {string} [wnsCredential.secretKey] The secret key. * - * @member {string} [properties.apnsCredential.properties.thumbprint] Gets or - * sets the Apns certificate Thumbprint + * @member {string} [wnsCredential.windowsLiveEndpoint] The Windows Live + * endpoint. * - * @member {object} [properties.wnsCredential] The WnsCredential of the - * created NotificationHub + * @member {object} [gcmCredential] The GcmCredential of the created + * NotificationHub * - * @member {object} [properties.wnsCredential.properties] Gets or sets - * properties of NotificationHub WnsCredential. + * @member {string} [gcmCredential.gcmEndpoint] The GCM endpoint. * - * @member {string} [properties.wnsCredential.properties.packageSid] Gets or - * sets the package ID for this credential. + * @member {string} [gcmCredential.googleApiKey] The Google API key. * - * @member {string} [properties.wnsCredential.properties.secretKey] Gets or - * sets the secret key. + * @member {object} [mpnsCredential] The MpnsCredential of the created + * NotificationHub * - * @member {string} [properties.wnsCredential.properties.windowsLiveEndpoint] - * Gets or sets the Windows Live endpoint. + * @member {string} [mpnsCredential.mpnsCertificate] The MPNS certificate. * - * @member {object} [properties.gcmCredential] The GcmCredential of the - * created NotificationHub + * @member {string} [mpnsCredential.certificateKey] The certificate key for + * this credential. * - * @member {object} [properties.gcmCredential.properties] Gets or sets - * properties of NotificationHub GcmCredential. + * @member {string} [mpnsCredential.thumbprint] The Mpns certificate Thumbprint * - * @member {string} [properties.gcmCredential.properties.gcmEndpoint] Gets or - * sets the GCM endpoint. + * @member {object} [admCredential] The AdmCredential of the created + * NotificationHub * - * @member {string} [properties.gcmCredential.properties.googleApiKey] Gets or - * sets the Google API key. + * @member {string} [admCredential.clientId] The client identifier. * - * @member {object} [properties.mpnsCredential] The MpnsCredential of the - * created NotificationHub + * @member {string} [admCredential.clientSecret] The credential secret access + * key. * - * @member {object} [properties.mpnsCredential.properties] Gets or sets - * properties of NotificationHub MpnsCredential. + * @member {string} [admCredential.authTokenUrl] The URL of the authorization + * token. * - * @member {string} [properties.mpnsCredential.properties.mpnsCertificate] - * Gets or sets the MPNS certificate. + * @member {object} [baiduCredential] The BaiduCredential of the created + * NotificationHub * - * @member {string} [properties.mpnsCredential.properties.certificateKey] Gets - * or sets the certificate key for this credential. + * @member {string} [baiduCredential.baiduApiKey] Baidu Api Key. * - * @member {string} [properties.mpnsCredential.properties.thumbprint] Gets or - * sets the Mpns certificate Thumbprint + * @member {string} [baiduCredential.baiduEndPoint] Baidu Endpoint. * - * @member {object} [properties.admCredential] The AdmCredential of the - * created NotificationHub - * - * @member {object} [properties.admCredential.properties] Gets or sets - * properties of NotificationHub AdmCredential. - * - * @member {string} [properties.admCredential.properties.clientId] Gets or - * sets the client identifier. - * - * @member {string} [properties.admCredential.properties.clientSecret] Gets or - * sets the credential secret access key. - * - * @member {string} [properties.admCredential.properties.authTokenUrl] Gets or - * sets the URL of the authorization token. - * - * @member {object} [properties.baiduCredential] The BaiduCredential of the - * created NotificationHub - * - * @member {object} [properties.baiduCredential.properties] Gets or sets - * properties of NotificationHub BaiduCredential. - * - * @member {string} [properties.baiduCredential.properties.baiduApiKey] Get or - * Set Baidu Api Key. - * - * @member {string} [properties.baiduCredential.properties.baiduEndPoint] Get - * or Set Baidu Endpoint. - * - * @member {string} [properties.baiduCredential.properties.baiduSecretKey] Get - * or Set Baidu Secret Key + * @member {string} [baiduCredential.baiduSecretKey] Baidu Secret Key * */ function NotificationHubCreateOrUpdateParameters() { + NotificationHubCreateOrUpdateParameters['super_'].call(this); } +util.inherits(NotificationHubCreateOrUpdateParameters, models['Resource']); + /** * Defines the metadata of NotificationHubCreateOrUpdateParameters * @@ -139,6 +109,30 @@ NotificationHubCreateOrUpdateParameters.prototype.mapper = function () { name: 'Composite', className: 'NotificationHubCreateOrUpdateParameters', modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, location: { required: true, serializedName: 'location', @@ -160,12 +154,81 @@ NotificationHubCreateOrUpdateParameters.prototype.mapper = function () { } } }, - properties: { - required: true, - serializedName: 'properties', + notificationHubCreateOrUpdateParametersName: { + required: false, + serializedName: 'properties.name', + type: { + name: 'String' + } + }, + registrationTtl: { + required: false, + serializedName: 'properties.registrationTtl', + type: { + name: 'String' + } + }, + authorizationRules: { + required: false, + serializedName: 'properties.authorizationRules', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'SharedAccessAuthorizationRulePropertiesElementType', + type: { + name: 'Composite', + className: 'SharedAccessAuthorizationRuleProperties' + } + } + } + }, + apnsCredential: { + required: false, + serializedName: 'properties.apnsCredential', type: { name: 'Composite', - className: 'NotificationHubProperties' + className: 'ApnsCredential' + } + }, + wnsCredential: { + required: false, + serializedName: 'properties.wnsCredential', + type: { + name: 'Composite', + className: 'WnsCredential' + } + }, + gcmCredential: { + required: false, + serializedName: 'properties.gcmCredential', + type: { + name: 'Composite', + className: 'GcmCredential' + } + }, + mpnsCredential: { + required: false, + serializedName: 'properties.mpnsCredential', + type: { + name: 'Composite', + className: 'MpnsCredential' + } + }, + admCredential: { + required: false, + serializedName: 'properties.admCredential', + type: { + name: 'Composite', + className: 'AdmCredential' + } + }, + baiduCredential: { + required: false, + serializedName: 'properties.baiduCredential', + type: { + name: 'Composite', + className: 'BaiduCredential' } } } diff --git a/lib/services/notificationHubsManagement/lib/models/notificationHubListResult.js b/lib/services/notificationHubsManagement/lib/models/notificationHubListResult.js index 40e13dc4f..7dde9d850 100644 --- a/lib/services/notificationHubsManagement/lib/models/notificationHubListResult.js +++ b/lib/services/notificationHubsManagement/lib/models/notificationHubListResult.js @@ -17,11 +17,10 @@ var util = require('util'); * Initializes a new instance of the NotificationHubListResult class. * @constructor * The response of the List NotificationHub operation. - * @member {array} [value] Gets or sets result of the List NotificationHub - * operation. + * @member {array} [value] Result of the List NotificationHub operation. * - * @member {string} [nextLink] Gets or sets link to the next set of results. - * Not empty if Value contains incomplete list of NotificationHub + * @member {string} [nextLink] Link to the next set of results. Not empty if + * Value contains incomplete list of NotificationHub * */ function NotificationHubListResult() { diff --git a/lib/services/notificationHubsManagement/lib/models/notificationHubResource.js b/lib/services/notificationHubsManagement/lib/models/notificationHubResource.js index 6dbdd6b2c..62656a982 100644 --- a/lib/services/notificationHubsManagement/lib/models/notificationHubResource.js +++ b/lib/services/notificationHubsManagement/lib/models/notificationHubResource.js @@ -12,127 +12,88 @@ var models = require('./index'); +var util = require('util'); + /** * @class * Initializes a new instance of the NotificationHubResource class. * @constructor * Description of a NotificationHub Resource. - * @member {string} [id] Gets or sets the id of the created NotificationHub. + * + * @member {string} [notificationHubResourceName] The NotificationHub name. * - * @member {string} [location] Gets or sets datacenter location of the - * NotificationHub. + * @member {string} [registrationTtl] The RegistrationTtl of the created + * NotificationHub * - * @member {string} [name] Gets or sets name of the NotificationHub. + * @member {array} [authorizationRules] The AuthorizationRules of the created + * NotificationHub * - * @member {string} [type] Gets or sets resource type of the NotificationHub. + * @member {object} [apnsCredential] The ApnsCredential of the created + * NotificationHub * - * @member {object} [tags] Gets or sets tags of the NotificationHub. + * @member {string} [apnsCredential.apnsCertificate] The APNS certificate. * - * @member {object} [properties] Gets or sets properties of the - * NotificationHub. + * @member {string} [apnsCredential.certificateKey] The certificate key. * - * @member {string} [properties.name] The NotificationHub name. + * @member {string} [apnsCredential.endpoint] The endpoint of this credential. * - * @member {string} [properties.registrationTtl] The RegistrationTtl of the - * created NotificationHub + * @member {string} [apnsCredential.thumbprint] The Apns certificate Thumbprint * - * @member {array} [properties.authorizationRules] The AuthorizationRules of - * the created NotificationHub + * @member {object} [wnsCredential] The WnsCredential of the created + * NotificationHub * - * @member {object} [properties.apnsCredential] The ApnsCredential of the - * created NotificationHub + * @member {string} [wnsCredential.packageSid] The package ID for this + * credential. * - * @member {object} [properties.apnsCredential.properties] Gets or sets - * properties of NotificationHub ApnsCredential. + * @member {string} [wnsCredential.secretKey] The secret key. * - * @member {string} [properties.apnsCredential.properties.apnsCertificate] - * Gets or sets the APNS certificate. + * @member {string} [wnsCredential.windowsLiveEndpoint] The Windows Live + * endpoint. * - * @member {string} [properties.apnsCredential.properties.certificateKey] Gets - * or sets the certificate key. + * @member {object} [gcmCredential] The GcmCredential of the created + * NotificationHub * - * @member {string} [properties.apnsCredential.properties.endpoint] Gets or - * sets the endpoint of this credential. + * @member {string} [gcmCredential.gcmEndpoint] The GCM endpoint. * - * @member {string} [properties.apnsCredential.properties.thumbprint] Gets or - * sets the Apns certificate Thumbprint + * @member {string} [gcmCredential.googleApiKey] The Google API key. * - * @member {object} [properties.wnsCredential] The WnsCredential of the - * created NotificationHub + * @member {object} [mpnsCredential] The MpnsCredential of the created + * NotificationHub * - * @member {object} [properties.wnsCredential.properties] Gets or sets - * properties of NotificationHub WnsCredential. + * @member {string} [mpnsCredential.mpnsCertificate] The MPNS certificate. * - * @member {string} [properties.wnsCredential.properties.packageSid] Gets or - * sets the package ID for this credential. + * @member {string} [mpnsCredential.certificateKey] The certificate key for + * this credential. * - * @member {string} [properties.wnsCredential.properties.secretKey] Gets or - * sets the secret key. + * @member {string} [mpnsCredential.thumbprint] The Mpns certificate Thumbprint * - * @member {string} [properties.wnsCredential.properties.windowsLiveEndpoint] - * Gets or sets the Windows Live endpoint. + * @member {object} [admCredential] The AdmCredential of the created + * NotificationHub * - * @member {object} [properties.gcmCredential] The GcmCredential of the - * created NotificationHub + * @member {string} [admCredential.clientId] The client identifier. * - * @member {object} [properties.gcmCredential.properties] Gets or sets - * properties of NotificationHub GcmCredential. + * @member {string} [admCredential.clientSecret] The credential secret access + * key. * - * @member {string} [properties.gcmCredential.properties.gcmEndpoint] Gets or - * sets the GCM endpoint. + * @member {string} [admCredential.authTokenUrl] The URL of the authorization + * token. * - * @member {string} [properties.gcmCredential.properties.googleApiKey] Gets or - * sets the Google API key. + * @member {object} [baiduCredential] The BaiduCredential of the created + * NotificationHub * - * @member {object} [properties.mpnsCredential] The MpnsCredential of the - * created NotificationHub + * @member {string} [baiduCredential.baiduApiKey] Baidu Api Key. * - * @member {object} [properties.mpnsCredential.properties] Gets or sets - * properties of NotificationHub MpnsCredential. + * @member {string} [baiduCredential.baiduEndPoint] Baidu Endpoint. * - * @member {string} [properties.mpnsCredential.properties.mpnsCertificate] - * Gets or sets the MPNS certificate. - * - * @member {string} [properties.mpnsCredential.properties.certificateKey] Gets - * or sets the certificate key for this credential. - * - * @member {string} [properties.mpnsCredential.properties.thumbprint] Gets or - * sets the Mpns certificate Thumbprint - * - * @member {object} [properties.admCredential] The AdmCredential of the - * created NotificationHub - * - * @member {object} [properties.admCredential.properties] Gets or sets - * properties of NotificationHub AdmCredential. - * - * @member {string} [properties.admCredential.properties.clientId] Gets or - * sets the client identifier. - * - * @member {string} [properties.admCredential.properties.clientSecret] Gets or - * sets the credential secret access key. - * - * @member {string} [properties.admCredential.properties.authTokenUrl] Gets or - * sets the URL of the authorization token. - * - * @member {object} [properties.baiduCredential] The BaiduCredential of the - * created NotificationHub - * - * @member {object} [properties.baiduCredential.properties] Gets or sets - * properties of NotificationHub BaiduCredential. - * - * @member {string} [properties.baiduCredential.properties.baiduApiKey] Get or - * Set Baidu Api Key. - * - * @member {string} [properties.baiduCredential.properties.baiduEndPoint] Get - * or Set Baidu Endpoint. - * - * @member {string} [properties.baiduCredential.properties.baiduSecretKey] Get - * or Set Baidu Secret Key + * @member {string} [baiduCredential.baiduSecretKey] Baidu Secret Key * */ function NotificationHubResource() { + NotificationHubResource['super_'].call(this); } +util.inherits(NotificationHubResource, models['Resource']); + /** * Defines the metadata of NotificationHubResource * @@ -149,20 +110,15 @@ NotificationHubResource.prototype.mapper = function () { modelProperties: { id: { required: false, + readOnly: true, serializedName: 'id', type: { name: 'String' } }, - location: { - required: false, - serializedName: 'location', - type: { - name: 'String' - } - }, name: { required: false, + readOnly: true, serializedName: 'name', type: { name: 'String' @@ -170,11 +126,19 @@ NotificationHubResource.prototype.mapper = function () { }, type: { required: false, + readOnly: true, serializedName: 'type', type: { name: 'String' } }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, tags: { required: false, serializedName: 'tags', @@ -189,12 +153,81 @@ NotificationHubResource.prototype.mapper = function () { } } }, - properties: { + notificationHubResourceName: { required: false, - serializedName: 'properties', + serializedName: 'properties.name', + type: { + name: 'String' + } + }, + registrationTtl: { + required: false, + serializedName: 'properties.registrationTtl', + type: { + name: 'String' + } + }, + authorizationRules: { + required: false, + serializedName: 'properties.authorizationRules', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'SharedAccessAuthorizationRulePropertiesElementType', + type: { + name: 'Composite', + className: 'SharedAccessAuthorizationRuleProperties' + } + } + } + }, + apnsCredential: { + required: false, + serializedName: 'properties.apnsCredential', type: { name: 'Composite', - className: 'NotificationHubProperties' + className: 'ApnsCredential' + } + }, + wnsCredential: { + required: false, + serializedName: 'properties.wnsCredential', + type: { + name: 'Composite', + className: 'WnsCredential' + } + }, + gcmCredential: { + required: false, + serializedName: 'properties.gcmCredential', + type: { + name: 'Composite', + className: 'GcmCredential' + } + }, + mpnsCredential: { + required: false, + serializedName: 'properties.mpnsCredential', + type: { + name: 'Composite', + className: 'MpnsCredential' + } + }, + admCredential: { + required: false, + serializedName: 'properties.admCredential', + type: { + name: 'Composite', + className: 'AdmCredential' + } + }, + baiduCredential: { + required: false, + serializedName: 'properties.baiduCredential', + type: { + name: 'Composite', + className: 'BaiduCredential' } } } diff --git a/lib/services/notificationHubsManagement/lib/models/pnsCredentialsResource.js b/lib/services/notificationHubsManagement/lib/models/pnsCredentialsResource.js new file mode 100644 index 000000000..e4ce5c176 --- /dev/null +++ b/lib/services/notificationHubsManagement/lib/models/pnsCredentialsResource.js @@ -0,0 +1,201 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +var models = require('./index'); + +var util = require('util'); + +/** + * @class + * Initializes a new instance of the PnsCredentialsResource class. + * @constructor + * Description of a NotificationHub PNS Credentials. + * + * @member {object} [apnsCredential] The ApnsCredential of the created + * NotificationHub + * + * @member {string} [apnsCredential.apnsCertificate] The APNS certificate. + * + * @member {string} [apnsCredential.certificateKey] The certificate key. + * + * @member {string} [apnsCredential.endpoint] The endpoint of this credential. + * + * @member {string} [apnsCredential.thumbprint] The Apns certificate Thumbprint + * + * @member {object} [wnsCredential] The WnsCredential of the created + * NotificationHub + * + * @member {string} [wnsCredential.packageSid] The package ID for this + * credential. + * + * @member {string} [wnsCredential.secretKey] The secret key. + * + * @member {string} [wnsCredential.windowsLiveEndpoint] The Windows Live + * endpoint. + * + * @member {object} [gcmCredential] The GcmCredential of the created + * NotificationHub + * + * @member {string} [gcmCredential.gcmEndpoint] The GCM endpoint. + * + * @member {string} [gcmCredential.googleApiKey] The Google API key. + * + * @member {object} [mpnsCredential] The MpnsCredential of the created + * NotificationHub + * + * @member {string} [mpnsCredential.mpnsCertificate] The MPNS certificate. + * + * @member {string} [mpnsCredential.certificateKey] The certificate key for + * this credential. + * + * @member {string} [mpnsCredential.thumbprint] The Mpns certificate Thumbprint + * + * @member {object} [admCredential] The AdmCredential of the created + * NotificationHub + * + * @member {string} [admCredential.clientId] The client identifier. + * + * @member {string} [admCredential.clientSecret] The credential secret access + * key. + * + * @member {string} [admCredential.authTokenUrl] The URL of the authorization + * token. + * + * @member {object} [baiduCredential] The BaiduCredential of the created + * NotificationHub + * + * @member {string} [baiduCredential.baiduApiKey] Baidu Api Key. + * + * @member {string} [baiduCredential.baiduEndPoint] Baidu Endpoint. + * + * @member {string} [baiduCredential.baiduSecretKey] Baidu Secret Key + * + */ +function PnsCredentialsResource() { + PnsCredentialsResource['super_'].call(this); +} + +util.inherits(PnsCredentialsResource, models['Resource']); + +/** + * Defines the metadata of PnsCredentialsResource + * + * @returns {object} metadata of PnsCredentialsResource + * + */ +PnsCredentialsResource.prototype.mapper = function () { + return { + required: false, + serializedName: 'PnsCredentialsResource', + type: { + name: 'Composite', + className: 'PnsCredentialsResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + apnsCredential: { + required: false, + serializedName: 'properties.apnsCredential', + type: { + name: 'Composite', + className: 'ApnsCredential' + } + }, + wnsCredential: { + required: false, + serializedName: 'properties.wnsCredential', + type: { + name: 'Composite', + className: 'WnsCredential' + } + }, + gcmCredential: { + required: false, + serializedName: 'properties.gcmCredential', + type: { + name: 'Composite', + className: 'GcmCredential' + } + }, + mpnsCredential: { + required: false, + serializedName: 'properties.mpnsCredential', + type: { + name: 'Composite', + className: 'MpnsCredential' + } + }, + admCredential: { + required: false, + serializedName: 'properties.admCredential', + type: { + name: 'Composite', + className: 'AdmCredential' + } + }, + baiduCredential: { + required: false, + serializedName: 'properties.baiduCredential', + type: { + name: 'Composite', + className: 'BaiduCredential' + } + } + } + } + }; +}; + +module.exports = PnsCredentialsResource; diff --git a/lib/services/notificationHubsManagement/lib/models/policykeyResource.js b/lib/services/notificationHubsManagement/lib/models/policykeyResource.js new file mode 100644 index 000000000..eb0f94db7 --- /dev/null +++ b/lib/services/notificationHubsManagement/lib/models/policykeyResource.js @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * @class + * Initializes a new instance of the PolicykeyResource class. + * @constructor + * Namespace/NotificationHub Regenerate Keys + * + * @member {string} [policyKey] Name of the key that has to be regenerated for + * the Namespace/Notification Hub Authorization Rule. The value can be + * Primary Key/Secondary Key. + * + */ +function PolicykeyResource() { +} + +/** + * Defines the metadata of PolicykeyResource + * + * @returns {object} metadata of PolicykeyResource + * + */ +PolicykeyResource.prototype.mapper = function () { + return { + required: false, + serializedName: 'PolicykeyResource', + type: { + name: 'Composite', + className: 'PolicykeyResource', + modelProperties: { + policyKey: { + required: false, + serializedName: 'policyKey', + type: { + name: 'String' + } + } + } + } + }; +}; + +module.exports = PolicykeyResource; diff --git a/lib/services/notificationHubsManagement/lib/models/resourceListKeys.js b/lib/services/notificationHubsManagement/lib/models/resourceListKeys.js index 89865f180..80e97f61b 100644 --- a/lib/services/notificationHubsManagement/lib/models/resourceListKeys.js +++ b/lib/services/notificationHubsManagement/lib/models/resourceListKeys.js @@ -15,11 +15,19 @@ * Initializes a new instance of the ResourceListKeys class. * @constructor * Namespace/NotificationHub Connection String - * @member {string} [primaryConnectionString] Gets or sets the - * primaryConnectionString of the created Namespace AuthorizationRule. + * + * @member {string} [primaryConnectionString] PrimaryConnectionString of the + * AuthorizationRule. * - * @member {string} [secondaryConnectionString] Gets or sets the - * secondaryConnectionString of the created Namespace AuthorizationRule + * @member {string} [secondaryConnectionString] SecondaryConnectionString of + * the created AuthorizationRule + * + * @member {string} [primaryKey] PrimaryKey of the created AuthorizationRule. + * + * @member {string} [secondaryKey] SecondaryKey of the created + * AuthorizationRule + * + * @member {string} [keyName] KeyName of the created AuthorizationRule * */ function ResourceListKeys() { @@ -52,6 +60,27 @@ ResourceListKeys.prototype.mapper = function () { type: { name: 'String' } + }, + primaryKey: { + required: false, + serializedName: 'primaryKey', + type: { + name: 'String' + } + }, + secondaryKey: { + required: false, + serializedName: 'secondaryKey', + type: { + name: 'String' + } + }, + keyName: { + required: false, + serializedName: 'keyName', + type: { + name: 'String' + } } } } diff --git a/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleCreateOrUpdateParameters.js b/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleCreateOrUpdateParameters.js index 61fb729f4..313ccc421 100644 --- a/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleCreateOrUpdateParameters.js +++ b/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleCreateOrUpdateParameters.js @@ -12,43 +12,23 @@ var models = require('./index'); +var util = require('util'); + /** * @class * Initializes a new instance of the SharedAccessAuthorizationRuleCreateOrUpdateParameters class. * @constructor * Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. - * @member {string} [location] Gets or sets Namespace data center location. - * - * @member {string} [name] Gets or sets Name of the Namespace - * AuthorizationRule. - * - * @member {object} properties Gets or sets properties of the Namespace - * AuthorizationRules. - * - * @member {string} [properties.primaryKey] The primary key that was used. - * - * @member {string} [properties.secondaryKey] The secondary key that was used. - * - * @member {string} [properties.keyName] The name of the key that was used. - * - * @member {string} [properties.claimType] The type of the claim. - * - * @member {string} [properties.claimValue] The value of the claim. - * - * @member {array} [properties.rights] The rights associated with the rule. - * - * @member {date} [properties.createdTime] The time at which the authorization - * rule was created. - * - * @member {date} [properties.modifiedTime] The most recent time the rule was - * updated. - * - * @member {number} [properties.revision] The revision number for the rule. + * + * @member {array} [rights] The rights associated with the rule. * */ function SharedAccessAuthorizationRuleCreateOrUpdateParameters() { + SharedAccessAuthorizationRuleCreateOrUpdateParameters['super_'].call(this); } +util.inherits(SharedAccessAuthorizationRuleCreateOrUpdateParameters, models['Resource']); + /** * Defines the metadata of SharedAccessAuthorizationRuleCreateOrUpdateParameters * @@ -63,26 +43,64 @@ SharedAccessAuthorizationRuleCreateOrUpdateParameters.prototype.mapper = functio name: 'Composite', className: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters', modelProperties: { - location: { + id: { required: false, - serializedName: 'location', + readOnly: true, + serializedName: 'id', type: { name: 'String' } }, name: { required: false, + readOnly: true, serializedName: 'name', type: { name: 'String' } }, - properties: { - required: true, - serializedName: 'properties', + type: { + required: false, + readOnly: true, + serializedName: 'type', type: { - name: 'Composite', - className: 'SharedAccessAuthorizationRuleProperties' + name: 'String' + } + }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + rights: { + required: false, + serializedName: 'properties.rights', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'AccessRightsElementType', + type: { + name: 'Enum', + allowedValues: [ 'Manage', 'Send', 'Listen' ] + } + } } } } diff --git a/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleListResult.js b/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleListResult.js index a4538646d..1dbd2bbf9 100644 --- a/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleListResult.js +++ b/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleListResult.js @@ -17,11 +17,10 @@ var util = require('util'); * Initializes a new instance of the SharedAccessAuthorizationRuleListResult class. * @constructor * The response of the List Namespace operation. - * @member {array} [value] Gets or sets result of the List AuthorizationRules - * operation. + * @member {array} [value] Result of the List AuthorizationRules operation. * - * @member {string} [nextLink] Gets or sets link to the next set of results. - * Not empty if Value contains incomplete list of AuthorizationRules + * @member {string} [nextLink] Link to the next set of results. Not empty if + * Value contains incomplete list of AuthorizationRules * */ function SharedAccessAuthorizationRuleListResult() { diff --git a/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleResource.js b/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleResource.js index 99c6340b1..2a00db2d4 100644 --- a/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleResource.js +++ b/lib/services/notificationHubsManagement/lib/models/sharedAccessAuthorizationRuleResource.js @@ -12,52 +12,23 @@ var models = require('./index'); +var util = require('util'); + /** * @class * Initializes a new instance of the SharedAccessAuthorizationRuleResource class. * @constructor * Description of a Namespace AuthorizationRules. - * @member {string} [id] Gets or sets the id of the created Namespace - * AuthorizationRules. - * - * @member {string} [location] Gets or sets datacenter location of the - * Namespace AuthorizationRules. - * - * @member {string} [name] Gets or sets name of the Namespace - * AuthorizationRules. - * - * @member {string} [type] Gets or sets resource type of the Namespace - * AuthorizationRules. - * - * @member {object} [tags] Gets or sets tags of the Namespace - * AuthorizationRules. - * - * @member {object} [properties] Gets or sets properties of the Namespace. - * - * @member {string} [properties.primaryKey] The primary key that was used. - * - * @member {string} [properties.secondaryKey] The secondary key that was used. - * - * @member {string} [properties.keyName] The name of the key that was used. - * - * @member {string} [properties.claimType] The type of the claim. - * - * @member {string} [properties.claimValue] The value of the claim. - * - * @member {array} [properties.rights] The rights associated with the rule. - * - * @member {date} [properties.createdTime] The time at which the authorization - * rule was created. - * - * @member {date} [properties.modifiedTime] The most recent time the rule was - * updated. - * - * @member {number} [properties.revision] The revision number for the rule. + * + * @member {array} [rights] The rights associated with the rule. * */ function SharedAccessAuthorizationRuleResource() { + SharedAccessAuthorizationRuleResource['super_'].call(this); } +util.inherits(SharedAccessAuthorizationRuleResource, models['Resource']); + /** * Defines the metadata of SharedAccessAuthorizationRuleResource * @@ -74,20 +45,15 @@ SharedAccessAuthorizationRuleResource.prototype.mapper = function () { modelProperties: { id: { required: false, + readOnly: true, serializedName: 'id', type: { name: 'String' } }, - location: { - required: false, - serializedName: 'location', - type: { - name: 'String' - } - }, name: { required: false, + readOnly: true, serializedName: 'name', type: { name: 'String' @@ -95,11 +61,19 @@ SharedAccessAuthorizationRuleResource.prototype.mapper = function () { }, type: { required: false, + readOnly: true, serializedName: 'type', type: { name: 'String' } }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, tags: { required: false, serializedName: 'tags', @@ -114,12 +88,19 @@ SharedAccessAuthorizationRuleResource.prototype.mapper = function () { } } }, - properties: { + rights: { required: false, - serializedName: 'properties', + serializedName: 'properties.rights', type: { - name: 'Composite', - className: 'SharedAccessAuthorizationRuleProperties' + name: 'Sequence', + element: { + required: false, + serializedName: 'AccessRightsElementType', + type: { + name: 'Enum', + allowedValues: [ 'Manage', 'Send', 'Listen' ] + } + } } } } diff --git a/lib/services/notificationHubsManagement/lib/models/wnsCredential.js b/lib/services/notificationHubsManagement/lib/models/wnsCredential.js index f7a69187d..22e9f79b8 100644 --- a/lib/services/notificationHubsManagement/lib/models/wnsCredential.js +++ b/lib/services/notificationHubsManagement/lib/models/wnsCredential.js @@ -10,23 +10,17 @@ 'use strict'; -var models = require('./index'); - /** * @class * Initializes a new instance of the WnsCredential class. * @constructor * Description of a NotificationHub WnsCredential. - * @member {object} [properties] Gets or sets properties of NotificationHub - * WnsCredential. + * + * @member {string} [packageSid] The package ID for this credential. * - * @member {string} [properties.packageSid] Gets or sets the package ID for - * this credential. + * @member {string} [secretKey] The secret key. * - * @member {string} [properties.secretKey] Gets or sets the secret key. - * - * @member {string} [properties.windowsLiveEndpoint] Gets or sets the Windows - * Live endpoint. + * @member {string} [windowsLiveEndpoint] The Windows Live endpoint. * */ function WnsCredential() { @@ -46,12 +40,25 @@ WnsCredential.prototype.mapper = function () { name: 'Composite', className: 'WnsCredential', modelProperties: { - properties: { + packageSid: { required: false, - serializedName: 'properties', + serializedName: 'properties.packageSid', type: { - name: 'Composite', - className: 'WnsCredentialProperties' + name: 'String' + } + }, + secretKey: { + required: false, + serializedName: 'properties.secretKey', + type: { + name: 'String' + } + }, + windowsLiveEndpoint: { + required: false, + serializedName: 'properties.windowsLiveEndpoint', + type: { + name: 'String' } } } diff --git a/lib/services/notificationHubsManagement/lib/notificationHubsManagementClient.d.ts b/lib/services/notificationHubsManagement/lib/notificationHubsManagementClient.d.ts index d3164338b..e0a1cfa84 100644 --- a/lib/services/notificationHubsManagement/lib/notificationHubsManagementClient.d.ts +++ b/lib/services/notificationHubsManagement/lib/notificationHubsManagementClient.d.ts @@ -17,7 +17,7 @@ declare class NotificationHubsManagementClient { * Initializes a new instance of the NotificationHubsManagementClient class. * @constructor * - * @param {credentials} credentials - Gets Azure subscription credentials. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. * * @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * diff --git a/lib/services/notificationHubsManagement/lib/notificationHubsManagementClient.js b/lib/services/notificationHubsManagement/lib/notificationHubsManagementClient.js index 5d7d5c9f6..82815349d 100644 --- a/lib/services/notificationHubsManagement/lib/notificationHubsManagementClient.js +++ b/lib/services/notificationHubsManagement/lib/notificationHubsManagementClient.js @@ -27,7 +27,7 @@ var operations = require('./operations'); * Initializes a new instance of the NotificationHubsManagementClient class. * @constructor * - * @param {credentials} credentials - Gets Azure subscription credentials. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. * * @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * @@ -52,7 +52,7 @@ var operations = require('./operations'); * */ function NotificationHubsManagementClient(credentials, subscriptionId, baseUri, options) { - this.apiVersion = '2014-09-01'; + this.apiVersion = '2016-03-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; diff --git a/lib/services/notificationHubsManagement/lib/operations/index.d.ts b/lib/services/notificationHubsManagement/lib/operations/index.d.ts index 953e3f14b..f28723411 100644 --- a/lib/services/notificationHubsManagement/lib/operations/index.d.ts +++ b/lib/services/notificationHubsManagement/lib/operations/index.d.ts @@ -21,21 +21,18 @@ import * as models from '../models'; export interface Namespaces { /** - * Checks the availability of the given service namespace across all Windows - * Azure subscriptions. This is useful because the domain name is created - * based on the service namespace name. + * Checks the availability of the given service namespace across all Azure + * subscriptions. This is useful because the domain name is created based on + * the service namespace name. * * @param {object} parameters The namespace name. * - * @param {string} [parameters.name] Gets or sets name + * @param {boolean} [parameters.isAvailiable] True if the name is available + * and can be used to create new Namespace/NotificationHub. Otherwise false. * - * @param {string} [parameters.location] Gets or sets location. + * @param {string} parameters.location Resource location * - * @param {object} [parameters.tags] Gets or sets tags. - * - * @param {boolean} [parameters.isAvailiable] Gets or sets true if the name is - * available and can be used to create new Namespace/NotificationHub. - * Otherwise false. + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -45,8 +42,8 @@ export interface Namespaces { * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ - checkAvailability(parameters: models.CheckAvailabilityParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - checkAvailability(parameters: models.CheckAvailabilityParameters, callback: ServiceCallback): void; + checkAvailability(parameters: models.CheckAvailabilityParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + checkAvailability(parameters: models.CheckAvailabilityParameters, callback: ServiceCallback): void; /** * Creates/Updates a service namespace. Once created, this namespace's @@ -59,49 +56,44 @@ export interface Namespaces { * @param {object} parameters Parameters supplied to create a Namespace * Resource. * - * @param {string} [parameters.location] Gets or sets Namespace data center - * location. + * @param {string} [parameters.namespaceCreateOrUpdateParametersName] The name + * of the namespace. * - * @param {object} [parameters.tags] Gets or sets Namespace tags. - * - * @param {object} [parameters.properties] Gets or sets properties of the + * @param {string} [parameters.provisioningState] Provisioning state of the * Namespace. * - * @param {string} [parameters.properties.name] The name of the namespace. + * @param {string} [parameters.region] Specifies the targeted region in which + * the namespace should be created. It can be any of the following values: + * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth + * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan + * EastJapan WestNorth EuropeWest Europe * - * @param {string} [parameters.properties.provisioningState] Gets or sets - * provisioning state of the Namespace. + * @param {string} [parameters.status] Status of the namespace. It can be any + * of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting * - * @param {string} [parameters.properties.region] Specifies the targeted - * region in which the namespace should be created. It can be any of the - * following values: Australia EastAustralia SoutheastCentral USEast USEast - * US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil - * SouthJapan EastJapan WestNorth EuropeWest Europe + * @param {date} [parameters.createdAt] The time the namespace was created. * - * @param {string} [parameters.properties.status] Status of the namespace. It - * can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = - * Deleting + * @param {string} [parameters.serviceBusEndpoint] Endpoint you can use to + * perform NotificationHub operations. * - * @param {date} [parameters.properties.createdAt] The time the namespace was - * created. - * - * @param {string} [parameters.properties.serviceBusEndpoint] Endpoint you can - * use to perform NotificationHub operations. - * - * @param {string} [parameters.properties.subscriptionId] The Id of the Azure + * @param {string} [parameters.subscriptionId] The Id of the Azure * subscription associated with the namespace. * - * @param {string} [parameters.properties.scaleUnit] ScaleUnit where the - * namespace gets created + * @param {string} [parameters.scaleUnit] ScaleUnit where the namespace gets + * created * - * @param {boolean} [parameters.properties.enabled] Whether or not the - * namespace is currently enabled. + * @param {boolean} [parameters.enabled] Whether or not the namespace is + * currently enabled. * - * @param {boolean} [parameters.properties.critical] Whether or not the - * namespace is set as Critical. + * @param {boolean} [parameters.critical] Whether or not the namespace is set + * as Critical. * - * @param {string} [parameters.properties.namespaceType] Gets or sets the - * namespace type. Possible values include: 'Messaging', 'NotificationHub' + * @param {string} [parameters.namespaceType] The namespace type. Possible + * values include: 'Messaging', 'NotificationHub' + * + * @param {string} parameters.location Resource location + * + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -181,39 +173,11 @@ export interface Namespaces { * * @param {object} parameters The shared access authorization rule. * - * @param {string} [parameters.location] Gets or sets Namespace data center - * location. + * @param {array} [parameters.rights] The rights associated with the rule. * - * @param {string} [parameters.name] Gets or sets Name of the Namespace - * AuthorizationRule. + * @param {string} parameters.location Resource location * - * @param {object} [parameters.properties] Gets or sets properties of the - * Namespace AuthorizationRules. - * - * @param {string} [parameters.properties.primaryKey] The primary key that was - * used. - * - * @param {string} [parameters.properties.secondaryKey] The secondary key that - * was used. - * - * @param {string} [parameters.properties.keyName] The name of the key that - * was used. - * - * @param {string} [parameters.properties.claimType] The type of the claim. - * - * @param {string} [parameters.properties.claimValue] The value of the claim. - * - * @param {array} [parameters.properties.rights] The rights associated with - * the rule. - * - * @param {date} [parameters.properties.createdTime] The time at which the - * authorization rule was created. - * - * @param {date} [parameters.properties.modifiedTime] The most recent time the - * rule was updated. - * - * @param {number} [parameters.properties.revision] The revision number for - * the rule. + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -266,26 +230,6 @@ export interface Namespaces { getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: ServiceCallback): void; - /** - * The Get Operation Status operation returns the status of the specified - * operation. After calling an asynchronous operation, you can call Get - * Operation Status to determine whether the operation has succeeded, failed, - * or is still in progress. - * - * @param {string} operationStatusLink Location value returned by the Begin - * operation. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [callback] callback function; see ServiceCallback - * doc in ms-rest index.d.ts for details - */ - getLongRunningOperationStatus(operationStatusLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - getLongRunningOperationStatus(operationStatusLink: string, callback: ServiceCallback): void; - /** * Lists the available namespaces within a resourceGroup. * @@ -358,6 +302,34 @@ export interface Namespaces { listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: ServiceCallback): void; + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} namespaceName The namespace name. + * + * @param {string} authorizationRuleName The connection string of the + * namespace for the specified authorizationRule. + * + * @param {object} parameters Parameters supplied to regenerate the Namespace + * Authorization Rule Key. + * + * @param {string} [parameters.policyKey] Name of the key that has to be + * regenerated for the Namespace/Notification Hub Authorization Rule. The + * value can be Primary Key/Secondary Key. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [callback] callback function; see ServiceCallback + * doc in ms-rest index.d.ts for details + */ + regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: models.PolicykeyResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: models.PolicykeyResource, callback: ServiceCallback): void; + /** * Lists the available namespaces within a resourceGroup. * @@ -428,15 +400,12 @@ export interface NotificationHubs { * * @param {object} parameters The notificationHub name. * - * @param {string} [parameters.name] Gets or sets name + * @param {boolean} [parameters.isAvailiable] True if the name is available + * and can be used to create new Namespace/NotificationHub. Otherwise false. * - * @param {string} [parameters.location] Gets or sets location. + * @param {string} parameters.location Resource location * - * @param {object} [parameters.tags] Gets or sets tags. - * - * @param {boolean} [parameters.isAvailiable] Gets or sets true if the name is - * available and can be used to create new Namespace/NotificationHub. - * Otherwise false. + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -446,8 +415,8 @@ export interface NotificationHubs { * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ - checkAvailability(resourceGroupName: string, namespaceName: string, parameters: models.CheckAvailabilityParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - checkAvailability(resourceGroupName: string, namespaceName: string, parameters: models.CheckAvailabilityParameters, callback: ServiceCallback): void; + checkAvailability(resourceGroupName: string, namespaceName: string, parameters: models.CheckAvailabilityParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + checkAvailability(resourceGroupName: string, namespaceName: string, parameters: models.CheckAvailabilityParameters, callback: ServiceCallback): void; /** * Creates/Update a NotificationHub in a namespace. @@ -461,125 +430,83 @@ export interface NotificationHubs { * @param {object} parameters Parameters supplied to the create/update a * NotificationHub Resource. * - * @param {string} [parameters.location] Gets or sets NotificationHub data - * center location. + * @param {string} [parameters.notificationHubCreateOrUpdateParametersName] + * The NotificationHub name. * - * @param {object} [parameters.tags] Gets or sets NotificationHub tags. + * @param {string} [parameters.registrationTtl] The RegistrationTtl of the + * created NotificationHub * - * @param {object} [parameters.properties] Gets or sets properties of the - * NotificationHub. - * - * @param {string} [parameters.properties.name] The NotificationHub name. - * - * @param {string} [parameters.properties.registrationTtl] The RegistrationTtl - * of the created NotificationHub - * - * @param {array} [parameters.properties.authorizationRules] The - * AuthorizationRules of the created NotificationHub - * - * @param {object} [parameters.properties.apnsCredential] The ApnsCredential - * of the created NotificationHub - * - * @param {object} [parameters.properties.apnsCredential.properties] Gets or - * sets properties of NotificationHub ApnsCredential. - * - * @param {string} - * [parameters.properties.apnsCredential.properties.apnsCertificate] Gets or - * sets the APNS certificate. - * - * @param {string} - * [parameters.properties.apnsCredential.properties.certificateKey] Gets or - * sets the certificate key. - * - * @param {string} [parameters.properties.apnsCredential.properties.endpoint] - * Gets or sets the endpoint of this credential. - * - * @param {string} - * [parameters.properties.apnsCredential.properties.thumbprint] Gets or sets - * the Apns certificate Thumbprint - * - * @param {object} [parameters.properties.wnsCredential] The WnsCredential of + * @param {array} [parameters.authorizationRules] The AuthorizationRules of * the created NotificationHub * - * @param {object} [parameters.properties.wnsCredential.properties] Gets or - * sets properties of NotificationHub WnsCredential. + * @param {object} [parameters.apnsCredential] The ApnsCredential of the + * created NotificationHub * - * @param {string} [parameters.properties.wnsCredential.properties.packageSid] - * Gets or sets the package ID for this credential. + * @param {string} [parameters.apnsCredential.apnsCertificate] The APNS + * certificate. * - * @param {string} [parameters.properties.wnsCredential.properties.secretKey] - * Gets or sets the secret key. + * @param {string} [parameters.apnsCredential.certificateKey] The certificate + * key. * - * @param {string} - * [parameters.properties.wnsCredential.properties.windowsLiveEndpoint] Gets - * or sets the Windows Live endpoint. + * @param {string} [parameters.apnsCredential.endpoint] The endpoint of this + * credential. * - * @param {object} [parameters.properties.gcmCredential] The GcmCredential of - * the created NotificationHub + * @param {string} [parameters.apnsCredential.thumbprint] The Apns certificate + * Thumbprint * - * @param {object} [parameters.properties.gcmCredential.properties] Gets or - * sets properties of NotificationHub GcmCredential. + * @param {object} [parameters.wnsCredential] The WnsCredential of the created + * NotificationHub * - * @param {string} - * [parameters.properties.gcmCredential.properties.gcmEndpoint] Gets or sets - * the GCM endpoint. + * @param {string} [parameters.wnsCredential.packageSid] The package ID for + * this credential. * - * @param {string} - * [parameters.properties.gcmCredential.properties.googleApiKey] Gets or sets - * the Google API key. + * @param {string} [parameters.wnsCredential.secretKey] The secret key. * - * @param {object} [parameters.properties.mpnsCredential] The MpnsCredential - * of the created NotificationHub + * @param {string} [parameters.wnsCredential.windowsLiveEndpoint] The Windows + * Live endpoint. * - * @param {object} [parameters.properties.mpnsCredential.properties] Gets or - * sets properties of NotificationHub MpnsCredential. + * @param {object} [parameters.gcmCredential] The GcmCredential of the created + * NotificationHub * - * @param {string} - * [parameters.properties.mpnsCredential.properties.mpnsCertificate] Gets or - * sets the MPNS certificate. + * @param {string} [parameters.gcmCredential.gcmEndpoint] The GCM endpoint. * - * @param {string} - * [parameters.properties.mpnsCredential.properties.certificateKey] Gets or - * sets the certificate key for this credential. + * @param {string} [parameters.gcmCredential.googleApiKey] The Google API key. * - * @param {string} - * [parameters.properties.mpnsCredential.properties.thumbprint] Gets or sets - * the Mpns certificate Thumbprint + * @param {object} [parameters.mpnsCredential] The MpnsCredential of the + * created NotificationHub * - * @param {object} [parameters.properties.admCredential] The AdmCredential of - * the created NotificationHub + * @param {string} [parameters.mpnsCredential.mpnsCertificate] The MPNS + * certificate. * - * @param {object} [parameters.properties.admCredential.properties] Gets or - * sets properties of NotificationHub AdmCredential. + * @param {string} [parameters.mpnsCredential.certificateKey] The certificate + * key for this credential. * - * @param {string} [parameters.properties.admCredential.properties.clientId] - * Gets or sets the client identifier. + * @param {string} [parameters.mpnsCredential.thumbprint] The Mpns certificate + * Thumbprint * - * @param {string} - * [parameters.properties.admCredential.properties.clientSecret] Gets or sets - * the credential secret access key. + * @param {object} [parameters.admCredential] The AdmCredential of the created + * NotificationHub * - * @param {string} - * [parameters.properties.admCredential.properties.authTokenUrl] Gets or sets - * the URL of the authorization token. + * @param {string} [parameters.admCredential.clientId] The client identifier. * - * @param {object} [parameters.properties.baiduCredential] The BaiduCredential - * of the created NotificationHub + * @param {string} [parameters.admCredential.clientSecret] The credential + * secret access key. * - * @param {object} [parameters.properties.baiduCredential.properties] Gets or - * sets properties of NotificationHub BaiduCredential. + * @param {string} [parameters.admCredential.authTokenUrl] The URL of the + * authorization token. * - * @param {string} - * [parameters.properties.baiduCredential.properties.baiduApiKey] Get or Set - * Baidu Api Key. + * @param {object} [parameters.baiduCredential] The BaiduCredential of the + * created NotificationHub * - * @param {string} - * [parameters.properties.baiduCredential.properties.baiduEndPoint] Get or - * Set Baidu Endpoint. + * @param {string} [parameters.baiduCredential.baiduApiKey] Baidu Api Key. * - * @param {string} - * [parameters.properties.baiduCredential.properties.baiduSecretKey] Get or - * Set Baidu Secret Key + * @param {string} [parameters.baiduCredential.baiduEndPoint] Baidu Endpoint. + * + * @param {string} [parameters.baiduCredential.baiduSecretKey] Baidu Secret Key + * + * @param {string} parameters.location Resource location + * + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -645,39 +572,11 @@ export interface NotificationHubs { * * @param {object} parameters The shared access authorization rule. * - * @param {string} [parameters.location] Gets or sets Namespace data center - * location. + * @param {array} [parameters.rights] The rights associated with the rule. * - * @param {string} [parameters.name] Gets or sets Name of the Namespace - * AuthorizationRule. + * @param {string} parameters.location Resource location * - * @param {object} [parameters.properties] Gets or sets properties of the - * Namespace AuthorizationRules. - * - * @param {string} [parameters.properties.primaryKey] The primary key that was - * used. - * - * @param {string} [parameters.properties.secondaryKey] The secondary key that - * was used. - * - * @param {string} [parameters.properties.keyName] The name of the key that - * was used. - * - * @param {string} [parameters.properties.claimType] The type of the claim. - * - * @param {string} [parameters.properties.claimValue] The value of the claim. - * - * @param {array} [parameters.properties.rights] The rights associated with - * the rule. - * - * @param {date} [parameters.properties.createdTime] The time at which the - * authorization rule was created. - * - * @param {date} [parameters.properties.modifiedTime] The most recent time the - * rule was updated. - * - * @param {number} [parameters.properties.revision] The revision number for - * the rule. + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -795,6 +694,37 @@ export interface NotificationHubs { listKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; listKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, callback: ServiceCallback): void; + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization + * Rule + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} namespaceName The namespace name. + * + * @param {string} notificationHubName The notification hub name. + * + * @param {string} authorizationRuleName The connection string of the + * NotificationHub for the specified authorizationRule. + * + * @param {object} parameters Parameters supplied to regenerate the + * NotificationHub Authorization Rule Key. + * + * @param {string} [parameters.policyKey] Name of the key that has to be + * regenerated for the Namespace/Notification Hub Authorization Rule. The + * value can be Primary Key/Secondary Key. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [callback] callback function; see ServiceCallback + * doc in ms-rest index.d.ts for details + */ + regenerateKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: models.PolicykeyResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + regenerateKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: models.PolicykeyResource, callback: ServiceCallback): void; + /** * Lists the PNS Credentials associated with a notification hub . * @@ -812,8 +742,8 @@ export interface NotificationHubs { * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ - getPnsCredentials(resourceGroupName: string, namespaceName: string, notificationHubName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - getPnsCredentials(resourceGroupName: string, namespaceName: string, notificationHubName: string, callback: ServiceCallback): void; + getPnsCredentials(resourceGroupName: string, namespaceName: string, notificationHubName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getPnsCredentials(resourceGroupName: string, namespaceName: string, notificationHubName: string, callback: ServiceCallback): void; /** * Lists the notification hubs associated with a namespace. diff --git a/lib/services/notificationHubsManagement/lib/operations/namespaces.js b/lib/services/notificationHubsManagement/lib/operations/namespaces.js index 72fa81361..ace80fcc3 100644 --- a/lib/services/notificationHubsManagement/lib/operations/namespaces.js +++ b/lib/services/notificationHubsManagement/lib/operations/namespaces.js @@ -30,21 +30,18 @@ function Namespaces(client) { } /** - * Checks the availability of the given service namespace across all Windows - * Azure subscriptions. This is useful because the domain name is created - * based on the service namespace name. + * Checks the availability of the given service namespace across all Azure + * subscriptions. This is useful because the domain name is created based on + * the service namespace name. * * @param {object} parameters The namespace name. * - * @param {string} [parameters.name] Gets or sets name + * @param {boolean} [parameters.isAvailiable] True if the name is available + * and can be used to create new Namespace/NotificationHub. Otherwise false. * - * @param {string} [parameters.location] Gets or sets location. + * @param {string} parameters.location Resource location * - * @param {object} [parameters.tags] Gets or sets tags. - * - * @param {boolean} [parameters.isAvailiable] Gets or sets true if the name is - * available and can be used to create new Namespace/NotificationHub. - * Otherwise false. + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -58,7 +55,7 @@ function Namespaces(client) { * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object. - * See {@link CheckAvailabilityResource} for more + * See {@link CheckAvailabilityResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. @@ -96,14 +93,14 @@ Namespaces.prototype.checkAvailability = function (parameters, options, callback var requestUrl = this.client.baseUri + '//subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -181,7 +178,7 @@ Namespaces.prototype.checkAvailability = function (parameters, options, callback parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - var resultMapper = new client.models['CheckAvailabilityResource']().mapper(); + var resultMapper = new client.models['CheckAvailabilityResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -207,49 +204,44 @@ Namespaces.prototype.checkAvailability = function (parameters, options, callback * @param {object} parameters Parameters supplied to create a Namespace * Resource. * - * @param {string} [parameters.location] Gets or sets Namespace data center - * location. + * @param {string} [parameters.namespaceCreateOrUpdateParametersName] The name + * of the namespace. * - * @param {object} [parameters.tags] Gets or sets Namespace tags. - * - * @param {object} [parameters.properties] Gets or sets properties of the + * @param {string} [parameters.provisioningState] Provisioning state of the * Namespace. * - * @param {string} [parameters.properties.name] The name of the namespace. + * @param {string} [parameters.region] Specifies the targeted region in which + * the namespace should be created. It can be any of the following values: + * Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth + * Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan + * EastJapan WestNorth EuropeWest Europe * - * @param {string} [parameters.properties.provisioningState] Gets or sets - * provisioning state of the Namespace. + * @param {string} [parameters.status] Status of the namespace. It can be any + * of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting * - * @param {string} [parameters.properties.region] Specifies the targeted - * region in which the namespace should be created. It can be any of the - * following values: Australia EastAustralia SoutheastCentral USEast USEast - * US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil - * SouthJapan EastJapan WestNorth EuropeWest Europe + * @param {date} [parameters.createdAt] The time the namespace was created. * - * @param {string} [parameters.properties.status] Status of the namespace. It - * can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = - * Deleting + * @param {string} [parameters.serviceBusEndpoint] Endpoint you can use to + * perform NotificationHub operations. * - * @param {date} [parameters.properties.createdAt] The time the namespace was - * created. - * - * @param {string} [parameters.properties.serviceBusEndpoint] Endpoint you can - * use to perform NotificationHub operations. - * - * @param {string} [parameters.properties.subscriptionId] The Id of the Azure + * @param {string} [parameters.subscriptionId] The Id of the Azure * subscription associated with the namespace. * - * @param {string} [parameters.properties.scaleUnit] ScaleUnit where the - * namespace gets created + * @param {string} [parameters.scaleUnit] ScaleUnit where the namespace gets + * created * - * @param {boolean} [parameters.properties.enabled] Whether or not the - * namespace is currently enabled. + * @param {boolean} [parameters.enabled] Whether or not the namespace is + * currently enabled. * - * @param {boolean} [parameters.properties.critical] Whether or not the - * namespace is set as Critical. + * @param {boolean} [parameters.critical] Whether or not the namespace is set + * as Critical. * - * @param {string} [parameters.properties.namespaceType] Gets or sets the - * namespace type. Possible values include: 'Messaging', 'NotificationHub' + * @param {string} [parameters.namespaceType] The namespace type. Possible + * values include: 'Messaging', 'NotificationHub' + * + * @param {string} parameters.location Resource location + * + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -308,14 +300,14 @@ Namespaces.prototype.createOrUpdate = function (resourceGroupName, namespaceName requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -470,7 +462,7 @@ Namespaces.prototype.deleteMethod = function (resourceGroupName, namespaceName, initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -548,14 +540,14 @@ Namespaces.prototype.beginDeleteMethod = function (resourceGroupName, namespaceN requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -674,14 +666,14 @@ Namespaces.prototype.get = function (resourceGroupName, namespaceName, options, requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -771,39 +763,11 @@ Namespaces.prototype.get = function (resourceGroupName, namespaceName, options, * * @param {object} parameters The shared access authorization rule. * - * @param {string} [parameters.location] Gets or sets Namespace data center - * location. + * @param {array} [parameters.rights] The rights associated with the rule. * - * @param {string} [parameters.name] Gets or sets Name of the Namespace - * AuthorizationRule. + * @param {string} parameters.location Resource location * - * @param {object} [parameters.properties] Gets or sets properties of the - * Namespace AuthorizationRules. - * - * @param {string} [parameters.properties.primaryKey] The primary key that was - * used. - * - * @param {string} [parameters.properties.secondaryKey] The secondary key that - * was used. - * - * @param {string} [parameters.properties.keyName] The name of the key that - * was used. - * - * @param {string} [parameters.properties.claimType] The type of the claim. - * - * @param {string} [parameters.properties.claimValue] The value of the claim. - * - * @param {array} [parameters.properties.rights] The rights associated with - * the rule. - * - * @param {date} [parameters.properties.createdTime] The time at which the - * authorization rule was created. - * - * @param {date} [parameters.properties.modifiedTime] The most recent time the - * rule was updated. - * - * @param {number} [parameters.properties.revision] The revision number for - * the rule. + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -867,14 +831,14 @@ Namespaces.prototype.createOrUpdateAuthorizationRule = function (resourceGroupNa requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1033,14 +997,14 @@ Namespaces.prototype.deleteAuthorizationRule = function (resourceGroupName, name requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1166,18 +1130,18 @@ Namespaces.prototype.getAuthorizationRule = function (resourceGroupName, namespa requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1252,121 +1216,6 @@ Namespaces.prototype.getAuthorizationRule = function (resourceGroupName, namespa }); }; -/** - * The Get Operation Status operation returns the status of the specified - * operation. After calling an asynchronous operation, you can call Get - * Operation Status to determine whether the operation has succeeded, failed, - * or is still in progress. - * - * @param {string} operationStatusLink Location value returned by the Begin - * operation. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} callback - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -Namespaces.prototype.getLongRunningOperationStatus = function (operationStatusLink, options, callback) { - var client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - // Validate - try { - if (operationStatusLink === null || operationStatusLink === undefined || typeof operationStatusLink.valueOf() !== 'string') { - throw new Error('operationStatusLink cannot be null or undefined and it must be of type string.'); - } - if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.client.acceptLanguage must be of type string.'); - } - } catch (error) { - return callback(error); - } - - // Construct URL - var requestUrl = this.client.baseUri + - '//{operationStatusLink}'; - requestUrl = requestUrl.replace('{operationStatusLink}', operationStatusLink); - var queryParameters = []; - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); - - // Create HTTP transport objects - var httpRequest = new WebResource(); - httpRequest.method = 'GET'; - httpRequest.headers = {}; - httpRequest.url = requestUrl; - // Set Headers - if (this.client.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.client.acceptLanguage; - } - if(options) { - for(var headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; - // Send Request - return client.pipeline(httpRequest, function (err, response, responseBody) { - if (err) { - return callback(err); - } - var statusCode = response.statusCode; - if (statusCode !== 404 && statusCode !== 202 && statusCode !== 200) { - var error = new Error(responseBody); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - var parsedErrorResponse; - try { - parsedErrorResponse = JSON.parse(responseBody); - if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; - } - } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + - '- "%s" for the default response.', defaultError.message, responseBody); - return callback(error); - } - return callback(error); - } - // Create Result - var result = null; - if (responseBody === '') responseBody = null; - - return callback(null, result, httpRequest, response); - }); -}; - /** * Lists the available namespaces within a resourceGroup. * @@ -1424,14 +1273,14 @@ Namespaces.prototype.list = function (resourceGroupName, options, callback) { '//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces'; requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1560,14 +1409,14 @@ Namespaces.prototype.listAll = function (options, callback) { var requestUrl = this.client.baseUri + '//subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1708,18 +1557,18 @@ Namespaces.prototype.listAuthorizationRules = function (resourceGroupName, names requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1862,14 +1711,14 @@ Namespaces.prototype.listKeys = function (resourceGroupName, namespaceName, auth requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1948,6 +1797,184 @@ Namespaces.prototype.listKeys = function (resourceGroupName, namespaceName, auth }); }; +/** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} namespaceName The namespace name. + * + * @param {string} authorizationRuleName The connection string of the + * namespace for the specified authorizationRule. + * + * @param {object} parameters Parameters supplied to regenerate the Namespace + * Authorization Rule Key. + * + * @param {string} [parameters.policyKey] Name of the key that has to be + * regenerated for the Namespace/Notification Hub Authorization Rule. The + * value can be Primary Key/Secondary Key. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object. + * See {@link ResourceListKeys} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +Namespaces.prototype.regenerateKeys = function (resourceGroupName, namespaceName, authorizationRuleName, parameters, options, callback) { + var client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (namespaceName === null || namespaceName === undefined || typeof namespaceName.valueOf() !== 'string') { + throw new Error('namespaceName cannot be null or undefined and it must be of type string.'); + } + if (authorizationRuleName === null || authorizationRuleName === undefined || typeof authorizationRuleName.valueOf() !== 'string') { + throw new Error('authorizationRuleName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + var requestUrl = this.client.baseUri + + '//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); + requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); + var queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + var httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.headers = {}; + httpRequest.url = requestUrl; + // Set Headers + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(var headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + // Serialize Request + var requestContent = null; + var requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + var requestModelMapper = new client.models['PolicykeyResource']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + 'payload - "%s"', error.message, util.inspect(parameters, {depth: null}))); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, function (err, response, responseBody) { + if (err) { + return callback(err); + } + var statusCode = response.statusCode; + if (statusCode !== 200) { + var error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + var parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + var resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + '- "%s" for the default response.', defaultError.message, responseBody); + return callback(error); + } + return callback(error); + } + // Create Result + var result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + var parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + var resultMapper = new client.models['ResourceListKeys']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody)); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +}; + /** * Lists the available namespaces within a resourceGroup. * @@ -2262,7 +2289,7 @@ Namespaces.prototype.listAuthorizationRulesNext = function (nextPageLink, option // Create HTTP transport objects var httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers diff --git a/lib/services/notificationHubsManagement/lib/operations/notificationHubs.js b/lib/services/notificationHubsManagement/lib/operations/notificationHubs.js index 81b6ef8be..e66047991 100644 --- a/lib/services/notificationHubsManagement/lib/operations/notificationHubs.js +++ b/lib/services/notificationHubsManagement/lib/operations/notificationHubs.js @@ -38,15 +38,12 @@ function NotificationHubs(client) { * * @param {object} parameters The notificationHub name. * - * @param {string} [parameters.name] Gets or sets name + * @param {boolean} [parameters.isAvailiable] True if the name is available + * and can be used to create new Namespace/NotificationHub. Otherwise false. * - * @param {string} [parameters.location] Gets or sets location. + * @param {string} parameters.location Resource location * - * @param {object} [parameters.tags] Gets or sets tags. - * - * @param {boolean} [parameters.isAvailiable] Gets or sets true if the name is - * available and can be used to create new Namespace/NotificationHub. - * Otherwise false. + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -60,7 +57,7 @@ function NotificationHubs(client) { * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object. - * See {@link CheckAvailabilityResource} for more + * See {@link CheckAvailabilityResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. @@ -106,14 +103,14 @@ NotificationHubs.prototype.checkAvailability = function (resourceGroupName, name requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -191,7 +188,7 @@ NotificationHubs.prototype.checkAvailability = function (resourceGroupName, name parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - var resultMapper = new client.models['CheckAvailabilityResource']().mapper(); + var resultMapper = new client.models['CheckAvailabilityResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -218,125 +215,83 @@ NotificationHubs.prototype.checkAvailability = function (resourceGroupName, name * @param {object} parameters Parameters supplied to the create/update a * NotificationHub Resource. * - * @param {string} [parameters.location] Gets or sets NotificationHub data - * center location. + * @param {string} [parameters.notificationHubCreateOrUpdateParametersName] + * The NotificationHub name. * - * @param {object} [parameters.tags] Gets or sets NotificationHub tags. + * @param {string} [parameters.registrationTtl] The RegistrationTtl of the + * created NotificationHub * - * @param {object} [parameters.properties] Gets or sets properties of the - * NotificationHub. - * - * @param {string} [parameters.properties.name] The NotificationHub name. - * - * @param {string} [parameters.properties.registrationTtl] The RegistrationTtl - * of the created NotificationHub - * - * @param {array} [parameters.properties.authorizationRules] The - * AuthorizationRules of the created NotificationHub - * - * @param {object} [parameters.properties.apnsCredential] The ApnsCredential - * of the created NotificationHub - * - * @param {object} [parameters.properties.apnsCredential.properties] Gets or - * sets properties of NotificationHub ApnsCredential. - * - * @param {string} - * [parameters.properties.apnsCredential.properties.apnsCertificate] Gets or - * sets the APNS certificate. - * - * @param {string} - * [parameters.properties.apnsCredential.properties.certificateKey] Gets or - * sets the certificate key. - * - * @param {string} [parameters.properties.apnsCredential.properties.endpoint] - * Gets or sets the endpoint of this credential. - * - * @param {string} - * [parameters.properties.apnsCredential.properties.thumbprint] Gets or sets - * the Apns certificate Thumbprint - * - * @param {object} [parameters.properties.wnsCredential] The WnsCredential of + * @param {array} [parameters.authorizationRules] The AuthorizationRules of * the created NotificationHub * - * @param {object} [parameters.properties.wnsCredential.properties] Gets or - * sets properties of NotificationHub WnsCredential. + * @param {object} [parameters.apnsCredential] The ApnsCredential of the + * created NotificationHub * - * @param {string} [parameters.properties.wnsCredential.properties.packageSid] - * Gets or sets the package ID for this credential. + * @param {string} [parameters.apnsCredential.apnsCertificate] The APNS + * certificate. * - * @param {string} [parameters.properties.wnsCredential.properties.secretKey] - * Gets or sets the secret key. + * @param {string} [parameters.apnsCredential.certificateKey] The certificate + * key. * - * @param {string} - * [parameters.properties.wnsCredential.properties.windowsLiveEndpoint] Gets - * or sets the Windows Live endpoint. + * @param {string} [parameters.apnsCredential.endpoint] The endpoint of this + * credential. * - * @param {object} [parameters.properties.gcmCredential] The GcmCredential of - * the created NotificationHub + * @param {string} [parameters.apnsCredential.thumbprint] The Apns certificate + * Thumbprint * - * @param {object} [parameters.properties.gcmCredential.properties] Gets or - * sets properties of NotificationHub GcmCredential. + * @param {object} [parameters.wnsCredential] The WnsCredential of the created + * NotificationHub * - * @param {string} - * [parameters.properties.gcmCredential.properties.gcmEndpoint] Gets or sets - * the GCM endpoint. + * @param {string} [parameters.wnsCredential.packageSid] The package ID for + * this credential. * - * @param {string} - * [parameters.properties.gcmCredential.properties.googleApiKey] Gets or sets - * the Google API key. + * @param {string} [parameters.wnsCredential.secretKey] The secret key. * - * @param {object} [parameters.properties.mpnsCredential] The MpnsCredential - * of the created NotificationHub + * @param {string} [parameters.wnsCredential.windowsLiveEndpoint] The Windows + * Live endpoint. * - * @param {object} [parameters.properties.mpnsCredential.properties] Gets or - * sets properties of NotificationHub MpnsCredential. + * @param {object} [parameters.gcmCredential] The GcmCredential of the created + * NotificationHub * - * @param {string} - * [parameters.properties.mpnsCredential.properties.mpnsCertificate] Gets or - * sets the MPNS certificate. + * @param {string} [parameters.gcmCredential.gcmEndpoint] The GCM endpoint. * - * @param {string} - * [parameters.properties.mpnsCredential.properties.certificateKey] Gets or - * sets the certificate key for this credential. + * @param {string} [parameters.gcmCredential.googleApiKey] The Google API key. * - * @param {string} - * [parameters.properties.mpnsCredential.properties.thumbprint] Gets or sets - * the Mpns certificate Thumbprint + * @param {object} [parameters.mpnsCredential] The MpnsCredential of the + * created NotificationHub * - * @param {object} [parameters.properties.admCredential] The AdmCredential of - * the created NotificationHub + * @param {string} [parameters.mpnsCredential.mpnsCertificate] The MPNS + * certificate. * - * @param {object} [parameters.properties.admCredential.properties] Gets or - * sets properties of NotificationHub AdmCredential. + * @param {string} [parameters.mpnsCredential.certificateKey] The certificate + * key for this credential. * - * @param {string} [parameters.properties.admCredential.properties.clientId] - * Gets or sets the client identifier. + * @param {string} [parameters.mpnsCredential.thumbprint] The Mpns certificate + * Thumbprint * - * @param {string} - * [parameters.properties.admCredential.properties.clientSecret] Gets or sets - * the credential secret access key. + * @param {object} [parameters.admCredential] The AdmCredential of the created + * NotificationHub * - * @param {string} - * [parameters.properties.admCredential.properties.authTokenUrl] Gets or sets - * the URL of the authorization token. + * @param {string} [parameters.admCredential.clientId] The client identifier. * - * @param {object} [parameters.properties.baiduCredential] The BaiduCredential - * of the created NotificationHub + * @param {string} [parameters.admCredential.clientSecret] The credential + * secret access key. * - * @param {object} [parameters.properties.baiduCredential.properties] Gets or - * sets properties of NotificationHub BaiduCredential. + * @param {string} [parameters.admCredential.authTokenUrl] The URL of the + * authorization token. * - * @param {string} - * [parameters.properties.baiduCredential.properties.baiduApiKey] Get or Set - * Baidu Api Key. + * @param {object} [parameters.baiduCredential] The BaiduCredential of the + * created NotificationHub * - * @param {string} - * [parameters.properties.baiduCredential.properties.baiduEndPoint] Get or - * Set Baidu Endpoint. + * @param {string} [parameters.baiduCredential.baiduApiKey] Baidu Api Key. * - * @param {string} - * [parameters.properties.baiduCredential.properties.baiduSecretKey] Get or - * Set Baidu Secret Key + * @param {string} [parameters.baiduCredential.baiduEndPoint] Baidu Endpoint. + * + * @param {string} [parameters.baiduCredential.baiduSecretKey] Baidu Secret Key + * + * @param {string} parameters.location Resource location + * + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -400,14 +355,14 @@ NotificationHubs.prototype.createOrUpdate = function (resourceGroupName, namespa requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -583,14 +538,14 @@ NotificationHubs.prototype.deleteMethod = function (resourceGroupName, namespace requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -716,14 +671,14 @@ NotificationHubs.prototype.get = function (resourceGroupName, namespaceName, not requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -815,39 +770,11 @@ NotificationHubs.prototype.get = function (resourceGroupName, namespaceName, not * * @param {object} parameters The shared access authorization rule. * - * @param {string} [parameters.location] Gets or sets Namespace data center - * location. + * @param {array} [parameters.rights] The rights associated with the rule. * - * @param {string} [parameters.name] Gets or sets Name of the Namespace - * AuthorizationRule. + * @param {string} parameters.location Resource location * - * @param {object} [parameters.properties] Gets or sets properties of the - * Namespace AuthorizationRules. - * - * @param {string} [parameters.properties.primaryKey] The primary key that was - * used. - * - * @param {string} [parameters.properties.secondaryKey] The secondary key that - * was used. - * - * @param {string} [parameters.properties.keyName] The name of the key that - * was used. - * - * @param {string} [parameters.properties.claimType] The type of the claim. - * - * @param {string} [parameters.properties.claimValue] The value of the claim. - * - * @param {array} [parameters.properties.rights] The rights associated with - * the rule. - * - * @param {date} [parameters.properties.createdTime] The time at which the - * authorization rule was created. - * - * @param {date} [parameters.properties.modifiedTime] The most recent time the - * rule was updated. - * - * @param {number} [parameters.properties.revision] The revision number for - * the rule. + * @param {object} [parameters.tags] Resource tags * * @param {object} [options] Optional Parameters. * @@ -915,14 +842,14 @@ NotificationHubs.prototype.createOrUpdateAuthorizationRule = function (resourceG requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1087,14 +1014,14 @@ NotificationHubs.prototype.deleteAuthorizationRule = function (resourceGroupName requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1226,18 +1153,18 @@ NotificationHubs.prototype.getAuthorizationRule = function (resourceGroupName, n requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1374,14 +1301,14 @@ NotificationHubs.prototype.list = function (resourceGroupName, namespaceName, op requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1528,18 +1455,18 @@ NotificationHubs.prototype.listAuthorizationRules = function (resourceGroupName, requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1688,14 +1615,14 @@ NotificationHubs.prototype.listKeys = function (resourceGroupName, namespaceName requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1774,6 +1701,191 @@ NotificationHubs.prototype.listKeys = function (resourceGroupName, namespaceName }); }; +/** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization + * Rule + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} namespaceName The namespace name. + * + * @param {string} notificationHubName The notification hub name. + * + * @param {string} authorizationRuleName The connection string of the + * NotificationHub for the specified authorizationRule. + * + * @param {object} parameters Parameters supplied to regenerate the + * NotificationHub Authorization Rule Key. + * + * @param {string} [parameters.policyKey] Name of the key that has to be + * regenerated for the Namespace/Notification Hub Authorization Rule. The + * value can be Primary Key/Secondary Key. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object. + * See {@link ResourceListKeys} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +NotificationHubs.prototype.regenerateKeys = function (resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters, options, callback) { + var client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (namespaceName === null || namespaceName === undefined || typeof namespaceName.valueOf() !== 'string') { + throw new Error('namespaceName cannot be null or undefined and it must be of type string.'); + } + if (notificationHubName === null || notificationHubName === undefined || typeof notificationHubName.valueOf() !== 'string') { + throw new Error('notificationHubName cannot be null or undefined and it must be of type string.'); + } + if (authorizationRuleName === null || authorizationRuleName === undefined || typeof authorizationRuleName.valueOf() !== 'string') { + throw new Error('authorizationRuleName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + var requestUrl = this.client.baseUri + + '//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); + requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); + requestUrl = requestUrl.replace('{authorizationRuleName}', encodeURIComponent(authorizationRuleName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); + var queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + var httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.headers = {}; + httpRequest.url = requestUrl; + // Set Headers + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(var headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + // Serialize Request + var requestContent = null; + var requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + var requestModelMapper = new client.models['PolicykeyResource']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + 'payload - "%s"', error.message, util.inspect(parameters, {depth: null}))); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, function (err, response, responseBody) { + if (err) { + return callback(err); + } + var statusCode = response.statusCode; + if (statusCode !== 200) { + var error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + var parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + var resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + '- "%s" for the default response.', defaultError.message, responseBody); + return callback(error); + } + return callback(error); + } + // Create Result + var result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + var parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + var resultMapper = new client.models['ResourceListKeys']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody)); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +}; + /** * Lists the PNS Credentials associated with a notification hub . * @@ -1795,7 +1907,7 @@ NotificationHubs.prototype.listKeys = function (resourceGroupName, namespaceName * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object. - * See {@link NotificationHubResource} for more + * See {@link PnsCredentialsResource} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. @@ -1842,14 +1954,14 @@ NotificationHubs.prototype.getPnsCredentials = function (resourceGroupName, name requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{notificationHubName}', encodeURIComponent(notificationHubName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + // trim all duplicate forward slashes in the url + var regex = /([^:]\/)\/+/gi; + requestUrl = requestUrl.replace(regex, '$1'); var queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } - // trim all duplicate forward slashes in the url - var regex = /([^:]\/)\/+/gi; - requestUrl = requestUrl.replace(regex, '$1'); // Create HTTP transport objects var httpRequest = new WebResource(); @@ -1913,7 +2025,7 @@ NotificationHubs.prototype.getPnsCredentials = function (resourceGroupName, name parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - var resultMapper = new client.models['NotificationHubResource']().mapper(); + var resultMapper = new client.models['PnsCredentialsResource']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -2113,7 +2225,7 @@ NotificationHubs.prototype.listAuthorizationRulesNext = function (nextPageLink, // Create HTTP transport objects var httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers diff --git a/nodeSDK.njsproj b/nodeSDK.njsproj index 8f77b9d41..80aa2ea75 100644 --- a/nodeSDK.njsproj +++ b/nodeSDK.njsproj @@ -303,6 +303,7 @@ + @@ -316,6 +317,8 @@ + + diff --git a/test/recordings/notificationhubsservice-Hub-tests/Notification_Hubs_Management_NotificationHub_Tests_CRUD.nock.js b/test/recordings/notificationhubsservice-Hub-tests/Notification_Hubs_Management_NotificationHub_Tests_CRUD.nock.js index 165f91df2..7b6f8dc7e 100644 --- a/test/recordings/notificationhubsservice-Hub-tests/Notification_Hubs_Management_NotificationHub_Tests_CRUD.nock.js +++ b/test/recordings/notificationhubsservice-Hub-tests/Notification_Hubs_Management_NotificationHub_Tests_CRUD.nock.js @@ -9,379 +9,457 @@ exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901?api-version=2014-09-01', '*') - .reply(201, "{\"id\":null,\"name\":null,\"type\":null,\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\"}}", { 'cache-control': 'no-cache', +.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507?api-version=2016-03-01', '*') + .reply(201, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507\",\"name\":\"testHub9507\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '138', + 'content-length': '369', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'a1cc3657-9129-4065-bd7e-7f0d97fb1eb8_M0_M0', + 'x-ms-request-id': '9ad08ca8-e372-43c3-9de1-3a19873d6039_M4_M4', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': '692b9584-b9b2-422d-9fbe-5118c40ed6af', - 'x-ms-routing-request-id': 'WESTUS:20160518T013619Z:692b9584-b9b2-422d-9fbe-5118c40ed6af', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'ef1b872b-42a0-4956-ac16-a9c0c39e0a94', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230245Z:ef1b872b-42a0-4956-ac16-a9c0c39e0a94', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:18 GMT', + date: 'Fri, 12 Aug 2016 23:02:45 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901?api-version=2014-09-01', '*') - .reply(201, "{\"id\":null,\"name\":null,\"type\":null,\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\"}}", { 'cache-control': 'no-cache', +.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507?api-version=2016-03-01', '*') + .reply(201, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507\",\"name\":\"testHub9507\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '138', + 'content-length': '369', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'a1cc3657-9129-4065-bd7e-7f0d97fb1eb8_M0_M0', + 'x-ms-request-id': '9ad08ca8-e372-43c3-9de1-3a19873d6039_M4_M4', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': '692b9584-b9b2-422d-9fbe-5118c40ed6af', - 'x-ms-routing-request-id': 'WESTUS:20160518T013619Z:692b9584-b9b2-422d-9fbe-5118c40ed6af', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'ef1b872b-42a0-4956-ac16-a9c0c39e0a94', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230245Z:ef1b872b-42a0-4956-ac16-a9c0c39e0a94', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:18 GMT', + date: 'Fri, 12 Aug 2016 23:02:45 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901\",\"name\":\"testHub1901\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\",\"authorizationRules\":[]}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507\",\"name\":\"testHub9507\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\",\"authorizationRules\":[]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '392', + 'content-length': '393', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'ffa678ca-c050-4152-8530-17336e22167d_M1_M1', + 'x-ms-request-id': 'af856406-c9d4-48e5-b29b-d3362ad89874_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads': '14998', - 'x-ms-correlation-request-id': '5496a52e-9603-4666-8ec2-bedffbbca5c1', - 'x-ms-routing-request-id': 'WESTUS:20160518T013620Z:5496a52e-9603-4666-8ec2-bedffbbca5c1', + 'x-ms-ratelimit-remaining-subscription-reads': '14995', + 'x-ms-correlation-request-id': '2f747e99-33ca-427a-ac88-49e82a031b24', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230246Z:2f747e99-33ca-427a-ac88-49e82a031b24', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:20 GMT', + date: 'Fri, 12 Aug 2016 23:02:45 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901\",\"name\":\"testHub1901\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\",\"authorizationRules\":[]}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507\",\"name\":\"testHub9507\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\",\"authorizationRules\":[]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '392', + 'content-length': '393', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'ffa678ca-c050-4152-8530-17336e22167d_M1_M1', + 'x-ms-request-id': 'af856406-c9d4-48e5-b29b-d3362ad89874_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads': '14998', - 'x-ms-correlation-request-id': '5496a52e-9603-4666-8ec2-bedffbbca5c1', - 'x-ms-routing-request-id': 'WESTUS:20160518T013620Z:5496a52e-9603-4666-8ec2-bedffbbca5c1', + 'x-ms-ratelimit-remaining-subscription-reads': '14995', + 'x-ms-correlation-request-id': '2f747e99-33ca-427a-ac88-49e82a031b24', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230246Z:2f747e99-33ca-427a-ac88-49e82a031b24', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:20 GMT', + date: 'Fri, 12 Aug 2016 23:02:45 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testhub1901\",\"name\":\"testhub1901\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\",\"authorizationRules\":[]}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testhub9507\",\"name\":\"testhub9507\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\",\"authorizationRules\":[]}}],\"nextLink\":null}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '420', + 'content-length': '421', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '10d8b690-e801-40b8-bd53-1d785908456a_M3_M3', + 'x-ms-request-id': '3c61c7ef-ff3c-49ca-9d80-cef5dbfae372_M1_M1', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads': '14998', - 'x-ms-correlation-request-id': 'b1998eae-2fe5-4bdc-932d-9c5812878987', - 'x-ms-routing-request-id': 'WESTUS:20160518T013621Z:b1998eae-2fe5-4bdc-932d-9c5812878987', + 'x-ms-ratelimit-remaining-subscription-reads': '14995', + 'x-ms-correlation-request-id': 'c128ced6-c0bc-463e-b48f-ac39a2be1381', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230247Z:c128ced6-c0bc-463e-b48f-ac39a2be1381', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:21 GMT', + date: 'Fri, 12 Aug 2016 23:02:46 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testhub1901\",\"name\":\"testhub1901\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\",\"authorizationRules\":[]}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testhub9507\",\"name\":\"testhub9507\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs\",\"location\":\"South Central US\",\"tags\":null,\"properties\":{\"registrationTtl\":\"10675199.02:48:05.4775807\",\"authorizationRules\":[]}}],\"nextLink\":null}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '420', + 'content-length': '421', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '10d8b690-e801-40b8-bd53-1d785908456a_M3_M3', + 'x-ms-request-id': '3c61c7ef-ff3c-49ca-9d80-cef5dbfae372_M1_M1', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads': '14998', - 'x-ms-correlation-request-id': 'b1998eae-2fe5-4bdc-932d-9c5812878987', - 'x-ms-routing-request-id': 'WESTUS:20160518T013621Z:b1998eae-2fe5-4bdc-932d-9c5812878987', + 'x-ms-ratelimit-remaining-subscription-reads': '14995', + 'x-ms-correlation-request-id': 'c128ced6-c0bc-463e-b48f-ac39a2be1381', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230247Z:c128ced6-c0bc-463e-b48f-ac39a2be1381', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:21 GMT', + date: 'Fri, 12 Aug 2016 23:02:46 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/pnsCredentials?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/pnsCredentials\",\"name\":\"testHub1901\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials\",\"location\":null,\"tags\":null,\"properties\":{}}", { 'cache-control': 'no-cache', + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/pnsCredentials?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/pnsCredentials\",\"name\":\"testHub9507\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials\",\"location\":null,\"tags\":null,\"properties\":{\"wnsCredential\":{\"properties\":{\"packageSid\":\"ms-app://s-1-15-2-1817505189-427745171-3213743798-2985869298-800724128-1004923984-4143860699\",\"secretKey\":\"w7TBprR-9tJxn9mUOdK4PPHLCAzSYFhp\",\"windowsLiveEndpoint\":\"http://pushtestservice.cloudapp.net/LiveID/accesstoken.srf\"}}}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '339', + 'content-length': '610', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '73bfbb15-4f66-472d-8037-f1ac5e27ce2f_M1_M1', + 'x-ms-request-id': '8b303a70-0f44-459e-8baa-8dc5055ca45e_M2_M2', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': 'ccd3d77f-78e3-4447-a0fd-bb224b1c3e2e', - 'x-ms-routing-request-id': 'WESTUS:20160518T013622Z:ccd3d77f-78e3-4447-a0fd-bb224b1c3e2e', + 'x-ms-correlation-request-id': 'db7d8e83-2302-434e-bc34-f584c78ef298', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230247Z:db7d8e83-2302-434e-bc34-f584c78ef298', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:22 GMT', + date: 'Fri, 12 Aug 2016 23:02:47 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/pnsCredentials?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/pnsCredentials\",\"name\":\"testHub1901\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials\",\"location\":null,\"tags\":null,\"properties\":{}}", { 'cache-control': 'no-cache', + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/pnsCredentials?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/pnsCredentials\",\"name\":\"testHub9507\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials\",\"location\":null,\"tags\":null,\"properties\":{\"wnsCredential\":{\"properties\":{\"packageSid\":\"ms-app://s-1-15-2-1817505189-427745171-3213743798-2985869298-800724128-1004923984-4143860699\",\"secretKey\":\"w7TBprR-9tJxn9mUOdK4PPHLCAzSYFhp\",\"windowsLiveEndpoint\":\"http://pushtestservice.cloudapp.net/LiveID/accesstoken.srf\"}}}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '339', + 'content-length': '610', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '73bfbb15-4f66-472d-8037-f1ac5e27ce2f_M1_M1', + 'x-ms-request-id': '8b303a70-0f44-459e-8baa-8dc5055ca45e_M2_M2', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': 'ccd3d77f-78e3-4447-a0fd-bb224b1c3e2e', - 'x-ms-routing-request-id': 'WESTUS:20160518T013622Z:ccd3d77f-78e3-4447-a0fd-bb224b1c3e2e', + 'x-ms-correlation-request-id': 'db7d8e83-2302-434e-bc34-f584c78ef298', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230247Z:db7d8e83-2302-434e-bc34-f584c78ef298', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:22 GMT', + date: 'Fri, 12 Aug 2016 23:02:47 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859?api-version=2014-09-01', '*') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859\",\"name\":\"testAuth7859\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth7859\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:36:24.0584314Z\",\"modifiedTime\":\"2016-05-18T01:36:24.0584314Z\"}}", { 'cache-control': 'no-cache', +.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570?api-version=2016-03-01', '*') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570\",\"name\":\"testAuth3570\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '675', + 'content-length': '388', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'dd2071a4-8a2a-4836-8ad1-4638261f43ae_M0_M0', + 'x-ms-request-id': 'c1a6c9d7-8abd-4fc5-a32f-5f5cea1a9940_M2_M2', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '1b950752-8d74-4c62-922b-33adbd5c4077', - 'x-ms-routing-request-id': 'WESTUS:20160518T013623Z:1b950752-8d74-4c62-922b-33adbd5c4077', + 'x-ms-correlation-request-id': '1d69c725-ea73-4996-904c-26d2a68800f3', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230248Z:1d69c725-ea73-4996-904c-26d2a68800f3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:23 GMT', + date: 'Fri, 12 Aug 2016 23:02:48 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859?api-version=2014-09-01', '*') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859\",\"name\":\"testAuth7859\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth7859\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:36:24.0584314Z\",\"modifiedTime\":\"2016-05-18T01:36:24.0584314Z\"}}", { 'cache-control': 'no-cache', +.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570?api-version=2016-03-01', '*') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570\",\"name\":\"testAuth3570\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '675', + 'content-length': '388', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'dd2071a4-8a2a-4836-8ad1-4638261f43ae_M0_M0', + 'x-ms-request-id': 'c1a6c9d7-8abd-4fc5-a32f-5f5cea1a9940_M2_M2', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '1b950752-8d74-4c62-922b-33adbd5c4077', - 'x-ms-routing-request-id': 'WESTUS:20160518T013623Z:1b950752-8d74-4c62-922b-33adbd5c4077', + 'x-ms-correlation-request-id': '1d69c725-ea73-4996-904c-26d2a68800f3', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230248Z:1d69c725-ea73-4996-904c-26d2a68800f3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:23 GMT', + date: 'Fri, 12 Aug 2016 23:02:48 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859\",\"name\":\"testAuth7859\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth7859\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:36:24.0584314Z\",\"modifiedTime\":\"2016-05-18T01:36:24.0584314Z\"}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570\",\"name\":\"testAuth3570\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '675', + 'content-length': '388', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '5b3d4ec4-0637-4d49-abc6-9053d4cb6b9e_M6_M6', + 'x-ms-request-id': '31b59a09-31b7-4649-a652-e48c85acf796_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '96652709-ac65-41b4-8580-2bc8216f6bf1', - 'x-ms-routing-request-id': 'WESTUS:20160518T013645Z:96652709-ac65-41b4-8580-2bc8216f6bf1', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': '6e291825-ba3a-4f9a-81f0-351e56494db0', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230249Z:6e291825-ba3a-4f9a-81f0-351e56494db0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:44 GMT', + date: 'Fri, 12 Aug 2016 23:02:48 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859\",\"name\":\"testAuth7859\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth7859\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:36:24.0584314Z\",\"modifiedTime\":\"2016-05-18T01:36:24.0584314Z\"}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570\",\"name\":\"testAuth3570\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '675', + 'content-length': '388', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '5b3d4ec4-0637-4d49-abc6-9053d4cb6b9e_M6_M6', + 'x-ms-request-id': '31b59a09-31b7-4649-a652-e48c85acf796_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '96652709-ac65-41b4-8580-2bc8216f6bf1', - 'x-ms-routing-request-id': 'WESTUS:20160518T013645Z:96652709-ac65-41b4-8580-2bc8216f6bf1', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': '6e291825-ba3a-4f9a-81f0-351e56494db0', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230249Z:6e291825-ba3a-4f9a-81f0-351e56494db0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:44 GMT', + date: 'Fri, 12 Aug 2016 23:02:48 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/DefaultListenSharedAccessSignature\",\"name\":\"DefaultListenSharedAccessSignature\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"DefaultListenSharedAccessSignature\",\"primaryKey\":\"lcimblVWlDnpAKpnUYBpukueo7+1DpRQmcGAVeOilDQ=\",\"secondaryKey\":\"BmLKtmGBmfiTx/aeaD+nTroWAMWbKi2bIcYPPWXnTFY=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\"],\"createdTime\":\"2016-05-18T01:36:19.0553766Z\",\"modifiedTime\":\"2016-05-18T01:36:19.0553766Z\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/DefaultFullSharedAccessSignature\",\"name\":\"DefaultFullSharedAccessSignature\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"DefaultFullSharedAccessSignature\",\"primaryKey\":\"EunwSBHt63UvG3LBb1I4LfHIvaHFCDoSM33/6PsPpP8=\",\"secondaryKey\":\"nuCpfitFUXTc9drX3E0BPymlBaKP69PoqPc9H0/Zh28=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Manage\",\"Send\"],\"createdTime\":\"2016-05-18T01:36:19.0553766Z\",\"modifiedTime\":\"2016-05-18T01:36:19.0553766Z\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859\",\"name\":\"testAuth7859\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth7859\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:36:24.0584314Z\",\"modifiedTime\":\"2016-05-18T01:36:24.0584314Z\"}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/DefaultListenSharedAccessSignature\",\"name\":\"DefaultListenSharedAccessSignature\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\"]}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/DefaultFullSharedAccessSignature\",\"name\":\"DefaultFullSharedAccessSignature\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570\",\"name\":\"testAuth3570\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}],\"nextLink\":null}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '2183', + 'content-length': '1280', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'ecac5cd7-cbbf-48cb-bdfa-c29f902cbc7b_M1_M1', + 'x-ms-request-id': '541431f5-eecd-48c9-8481-546e95fe7ac3_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': 'daf81b64-c46e-465c-b61d-b3b9f6cedd33', - 'x-ms-routing-request-id': 'WESTUS:20160518T013654Z:daf81b64-c46e-465c-b61d-b3b9f6cedd33', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': 'e34cf37e-e6fc-4bc6-abea-5faed9d161c6', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230249Z:e34cf37e-e6fc-4bc6-abea-5faed9d161c6', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:53 GMT', + date: 'Fri, 12 Aug 2016 23:02:48 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/DefaultListenSharedAccessSignature\",\"name\":\"DefaultListenSharedAccessSignature\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"DefaultListenSharedAccessSignature\",\"primaryKey\":\"lcimblVWlDnpAKpnUYBpukueo7+1DpRQmcGAVeOilDQ=\",\"secondaryKey\":\"BmLKtmGBmfiTx/aeaD+nTroWAMWbKi2bIcYPPWXnTFY=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\"],\"createdTime\":\"2016-05-18T01:36:19.0553766Z\",\"modifiedTime\":\"2016-05-18T01:36:19.0553766Z\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/DefaultFullSharedAccessSignature\",\"name\":\"DefaultFullSharedAccessSignature\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"DefaultFullSharedAccessSignature\",\"primaryKey\":\"EunwSBHt63UvG3LBb1I4LfHIvaHFCDoSM33/6PsPpP8=\",\"secondaryKey\":\"nuCpfitFUXTc9drX3E0BPymlBaKP69PoqPc9H0/Zh28=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Manage\",\"Send\"],\"createdTime\":\"2016-05-18T01:36:19.0553766Z\",\"modifiedTime\":\"2016-05-18T01:36:19.0553766Z\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859\",\"name\":\"testAuth7859\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth7859\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:36:24.0584314Z\",\"modifiedTime\":\"2016-05-18T01:36:24.0584314Z\"}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/DefaultListenSharedAccessSignature\",\"name\":\"DefaultListenSharedAccessSignature\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\"]}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/DefaultFullSharedAccessSignature\",\"name\":\"DefaultFullSharedAccessSignature\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570\",\"name\":\"testAuth3570\",\"type\":\"Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}],\"nextLink\":null}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '2183', + 'content-length': '1280', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'ecac5cd7-cbbf-48cb-bdfa-c29f902cbc7b_M1_M1', + 'x-ms-request-id': '541431f5-eecd-48c9-8481-546e95fe7ac3_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': 'daf81b64-c46e-465c-b61d-b3b9f6cedd33', - 'x-ms-routing-request-id': 'WESTUS:20160518T013654Z:daf81b64-c46e-465c-b61d-b3b9f6cedd33', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': 'e34cf37e-e6fc-4bc6-abea-5faed9d161c6', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230249Z:e34cf37e-e6fc-4bc6-abea-5faed9d161c6', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:53 GMT', + date: 'Fri, 12 Aug 2016 23:02:48 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859/listKeys?api-version=2014-09-01') - .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns570.servicebus.windows.net/;SharedAccessKeyName=testAuth7859;SharedAccessKey=IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryConnectionString\":\"Endpoint=sb://testns570.servicebus.windows.net/;SharedAccessKeyName=testAuth7859;SharedAccessKey=aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"primaryKey\":null,\"secondaryKey\":null,\"keyName\":null}", { 'cache-control': 'no-cache', + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570/listKeys?api-version=2016-03-01') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=OYfkz5iBezc5WLZR0PEgOUw/Zbu2o8+sWCZQJgF07vo=\",\"secondaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"primaryKey\":\"OYfkz5iBezc5WLZR0PEgOUw/Zbu2o8+sWCZQJgF07vo=\",\"secondaryKey\":\"4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"keyName\":\"testAuth3570\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '396', + 'content-length': '492', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '8a5dc4b9-d640-4063-9e19-5bfaf6e10ad5_M4_M4', + 'x-ms-request-id': '8e5bbd32-f463-48d3-9c52-5c4cee62cccd_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': '208b7e3d-d8c9-496e-9215-7b625d9748dc', - 'x-ms-routing-request-id': 'WESTUS:20160518T013655Z:208b7e3d-d8c9-496e-9215-7b625d9748dc', + 'x-ms-correlation-request-id': '67c746e2-3b86-4e0e-8b59-5ff2106fc622', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230250Z:67c746e2-3b86-4e0e-8b59-5ff2106fc622', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:55 GMT', + date: 'Fri, 12 Aug 2016 23:02:49 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859/listKeys?api-version=2014-09-01') - .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns570.servicebus.windows.net/;SharedAccessKeyName=testAuth7859;SharedAccessKey=IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryConnectionString\":\"Endpoint=sb://testns570.servicebus.windows.net/;SharedAccessKeyName=testAuth7859;SharedAccessKey=aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"primaryKey\":null,\"secondaryKey\":null,\"keyName\":null}", { 'cache-control': 'no-cache', + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570/listKeys?api-version=2016-03-01') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=OYfkz5iBezc5WLZR0PEgOUw/Zbu2o8+sWCZQJgF07vo=\",\"secondaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"primaryKey\":\"OYfkz5iBezc5WLZR0PEgOUw/Zbu2o8+sWCZQJgF07vo=\",\"secondaryKey\":\"4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"keyName\":\"testAuth3570\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '396', + 'content-length': '492', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '8a5dc4b9-d640-4063-9e19-5bfaf6e10ad5_M4_M4', + 'x-ms-request-id': '8e5bbd32-f463-48d3-9c52-5c4cee62cccd_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': '208b7e3d-d8c9-496e-9215-7b625d9748dc', - 'x-ms-routing-request-id': 'WESTUS:20160518T013655Z:208b7e3d-d8c9-496e-9215-7b625d9748dc', + 'x-ms-correlation-request-id': '67c746e2-3b86-4e0e-8b59-5ff2106fc622', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230250Z:67c746e2-3b86-4e0e-8b59-5ff2106fc622', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:55 GMT', + date: 'Fri, 12 Aug 2016 23:02:49 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859?api-version=2014-09-01') + .filteringRequestBody(function (path) { return '*';}) +.post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570/regenerateKeys?api-version=2016-03-01', '*') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=gUVXAIsAw6kjzLeB7JzKX5cKMCuP9P0FtfSLxX2OOqY=;EntityPath=testHub9507\",\"secondaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=;EntityPath=testHub9507\",\"primaryKey\":\"gUVXAIsAw6kjzLeB7JzKX5cKMCuP9P0FtfSLxX2OOqY=\",\"secondaryKey\":\"4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"keyName\":\"testAuth3570\"}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '538', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '9835e3c0-0ad7-4d0c-8a72-bc165e2f9e45_M0_M0', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '62ae9d38-b481-475e-9727-c8393bb17beb', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230250Z:62ae9d38-b481-475e-9727-c8393bb17beb', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 23:02:50 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://management.azure.com:443') + .filteringRequestBody(function (path) { return '*';}) +.post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570/regenerateKeys?api-version=2016-03-01', '*') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=gUVXAIsAw6kjzLeB7JzKX5cKMCuP9P0FtfSLxX2OOqY=;EntityPath=testHub9507\",\"secondaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=;EntityPath=testHub9507\",\"primaryKey\":\"gUVXAIsAw6kjzLeB7JzKX5cKMCuP9P0FtfSLxX2OOqY=\",\"secondaryKey\":\"4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"keyName\":\"testAuth3570\"}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '538', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '9835e3c0-0ad7-4d0c-8a72-bc165e2f9e45_M0_M0', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '62ae9d38-b481-475e-9727-c8393bb17beb', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230250Z:62ae9d38-b481-475e-9727-c8393bb17beb', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 23:02:50 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('http://management.azure.com:443') + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570/listKeys?api-version=2016-03-01') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=gUVXAIsAw6kjzLeB7JzKX5cKMCuP9P0FtfSLxX2OOqY=\",\"secondaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"primaryKey\":\"gUVXAIsAw6kjzLeB7JzKX5cKMCuP9P0FtfSLxX2OOqY=\",\"secondaryKey\":\"4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"keyName\":\"testAuth3570\"}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '492', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': 'f7ed1095-f8bb-4fbd-b2fa-81afbaf7cb9d_M1_M1', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'be54b012-0f5e-4b1f-89c2-23985994d911', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230251Z:be54b012-0f5e-4b1f-89c2-23985994d911', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 23:02:51 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://management.azure.com:443') + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570/listKeys?api-version=2016-03-01') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=gUVXAIsAw6kjzLeB7JzKX5cKMCuP9P0FtfSLxX2OOqY=\",\"secondaryConnectionString\":\"Endpoint=sb://testns9332.servicebus.windows.net/;SharedAccessKeyName=testAuth3570;SharedAccessKey=4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"primaryKey\":\"gUVXAIsAw6kjzLeB7JzKX5cKMCuP9P0FtfSLxX2OOqY=\",\"secondaryKey\":\"4BPzigde3hbyWd17spIT3bDBeSStcHltCijpKq7SeNY=\",\"keyName\":\"testAuth3570\"}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '492', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': 'f7ed1095-f8bb-4fbd-b2fa-81afbaf7cb9d_M1_M1', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'be54b012-0f5e-4b1f-89c2-23985994d911', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230251Z:be54b012-0f5e-4b1f-89c2-23985994d911', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 23:02:51 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('http://management.azure.com:443') + .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570?api-version=2016-03-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': 'b468fe0b-e8b5-4c3b-b0a6-1e3148e429df_M0_M0', + 'x-ms-request-id': 'f2b3833e-ae99-43f5-8104-92a86955dea4_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': 'e68bcaf6-6285-4263-8f72-ef1bae808083', - 'x-ms-routing-request-id': 'WESTUS:20160518T013656Z:e68bcaf6-6285-4263-8f72-ef1bae808083', + 'x-ms-ratelimit-remaining-subscription-writes': '1196', + 'x-ms-correlation-request-id': '58ee5186-69c3-4791-9cf9-64886abf3143', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230252Z:58ee5186-69c3-4791-9cf9-64886abf3143', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:56 GMT', + date: 'Fri, 12 Aug 2016 23:02:52 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901/AuthorizationRules/testAuth7859?api-version=2014-09-01') + .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507/AuthorizationRules/testAuth3570?api-version=2016-03-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': 'b468fe0b-e8b5-4c3b-b0a6-1e3148e429df_M0_M0', + 'x-ms-request-id': 'f2b3833e-ae99-43f5-8104-92a86955dea4_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': 'e68bcaf6-6285-4263-8f72-ef1bae808083', - 'x-ms-routing-request-id': 'WESTUS:20160518T013656Z:e68bcaf6-6285-4263-8f72-ef1bae808083', + 'x-ms-ratelimit-remaining-subscription-writes': '1196', + 'x-ms-correlation-request-id': '58ee5186-69c3-4791-9cf9-64886abf3143', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230252Z:58ee5186-69c3-4791-9cf9-64886abf3143', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:56 GMT', + date: 'Fri, 12 Aug 2016 23:02:52 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901?api-version=2014-09-01') + .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507?api-version=2016-03-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '46b72c9c-30f8-4217-8dc6-0e77aa1276ed_M6_M6', + 'x-ms-request-id': 'caaab360-b284-494f-b94a-4c82e6d56757_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': '7148924d-9b9f-4191-b303-715fa4125ff1', - 'x-ms-routing-request-id': 'WESTUS:20160518T013659Z:7148924d-9b9f-4191-b303-715fa4125ff1', + 'x-ms-correlation-request-id': '6d477d9f-843d-4f7b-89f7-d0477015fb20', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230254Z:6d477d9f-843d-4f7b-89f7-d0477015fb20', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:59 GMT', + date: 'Fri, 12 Aug 2016 23:02:54 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2973/providers/Microsoft.NotificationHubs/namespaces/testNS570/notificationHubs/testHub1901?api-version=2014-09-01') + .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4845/providers/Microsoft.NotificationHubs/namespaces/testNS9332/notificationHubs/testHub9507?api-version=2016-03-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '46b72c9c-30f8-4217-8dc6-0e77aa1276ed_M6_M6', + 'x-ms-request-id': 'caaab360-b284-494f-b94a-4c82e6d56757_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': '7148924d-9b9f-4191-b303-715fa4125ff1', - 'x-ms-routing-request-id': 'WESTUS:20160518T013659Z:7148924d-9b9f-4191-b303-715fa4125ff1', + 'x-ms-correlation-request-id': '6d477d9f-843d-4f7b-89f7-d0477015fb20', + 'x-ms-routing-request-id': 'CENTRALUS:20160812T230254Z:6d477d9f-843d-4f7b-89f7-d0477015fb20', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:36:59 GMT', + date: 'Fri, 12 Aug 2016 23:02:54 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/notificationhubsservice-Hub-tests/suite.notificationhubsservice-Hub-tests.nock.js b/test/recordings/notificationhubsservice-Hub-tests/suite.notificationhubsservice-Hub-tests.nock.js index 140176279..9a0cbc4c1 100644 --- a/test/recordings/notificationhubsservice-Hub-tests/suite.notificationhubsservice-Hub-tests.nock.js +++ b/test/recordings/notificationhubsservice-Hub-tests/suite.notificationhubsservice-Hub-tests.nock.js @@ -7,4 +7,4 @@ exports.setEnvironment = function() { exports.scopes = []; - exports.randomTestIdsGenerated = function() { return ['nodeTestGroup2973','testNS570','testHub1901','testAuth7859'];}; \ No newline at end of file + exports.randomTestIdsGenerated = function() { return ['nodeTestGroup4845','testNS9332','testHub9507','testAuth3570'];}; \ No newline at end of file diff --git a/test/recordings/notificationhubsservice-NS-tests/Notification_Hubs_Management_Namespace_Tests_CRUD.nock.js b/test/recordings/notificationhubsservice-NS-tests/Notification_Hubs_Management_Namespace_Tests_CRUD.nock.js index aeb591fef..c972c9e09 100644 --- a/test/recordings/notificationhubsservice-NS-tests/Notification_Hubs_Management_Namespace_Tests_CRUD.nock.js +++ b/test/recordings/notificationhubsservice-NS-tests/Notification_Hubs_Management_Namespace_Tests_CRUD.nock.js @@ -9,457 +9,649 @@ exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01', '*') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Unknown\",\"enabled\":false,\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', +.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01', '*') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Unknown\",\"metricId\":null,\"enabled\":false,\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '410', + 'content-length': '426', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '63e2debc-a32a-49c3-bfe2-44b07fb17cbe_M0_M0', + 'x-ms-request-id': '201a1dec-c6fb-40c5-82a4-7c0ecbca199b_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '664bcb80-b17f-4cd4-8480-7b4fdb5410f6', - 'x-ms-routing-request-id': 'WESTUS:20160518T011830Z:664bcb80-b17f-4cd4-8480-7b4fdb5410f6', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '061e9d44-3280-433f-8b00-e89728e8b2dd', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225953Z:061e9d44-3280-433f-8b00-e89728e8b2dd', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:29 GMT', + date: 'Fri, 12 Aug 2016 22:59:52 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01', '*') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Unknown\",\"enabled\":false,\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', +.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01', '*') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Unknown\",\"metricId\":null,\"enabled\":false,\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '410', + 'content-length': '426', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '63e2debc-a32a-49c3-bfe2-44b07fb17cbe_M0_M0', + 'x-ms-request-id': '201a1dec-c6fb-40c5-82a4-7c0ecbca199b_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '664bcb80-b17f-4cd4-8480-7b4fdb5410f6', - 'x-ms-routing-request-id': 'WESTUS:20160518T011830Z:664bcb80-b17f-4cd4-8480-7b4fdb5410f6', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '061e9d44-3280-433f-8b00-e89728e8b2dd', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225953Z:061e9d44-3280-433f-8b00-e89728e8b2dd', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:29 GMT', + date: 'Fri, 12 Aug 2016 22:59:52 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"status\":\"Created\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:30.413Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '654', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '4b68f8e5-f910-45e6-be5c-eca03a8285b6_M1_M1', + 'x-ms-request-id': 'f37a74ec-0b49-487b-b212-31f91cde886e_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': 'cb344d69-616a-4e11-8055-85e99ce866ec', - 'x-ms-routing-request-id': 'WESTUS:20160518T011831Z:cb344d69-616a-4e11-8055-85e99ce866ec', + 'x-ms-ratelimit-remaining-subscription-reads': '14997', + 'x-ms-correlation-request-id': 'ad756206-d253-4d4f-8601-9a4d9d8ee257', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225953Z:ad756206-d253-4d4f-8601-9a4d9d8ee257', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:30 GMT', + date: 'Fri, 12 Aug 2016 22:59:52 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"status\":\"Created\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:30.413Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '654', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '4b68f8e5-f910-45e6-be5c-eca03a8285b6_M1_M1', + 'x-ms-request-id': 'f37a74ec-0b49-487b-b212-31f91cde886e_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': 'cb344d69-616a-4e11-8055-85e99ce866ec', - 'x-ms-routing-request-id': 'WESTUS:20160518T011831Z:cb344d69-616a-4e11-8055-85e99ce866ec', + 'x-ms-ratelimit-remaining-subscription-reads': '14997', + 'x-ms-correlation-request-id': 'ad756206-d253-4d4f-8601-9a4d9d8ee257', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225953Z:ad756206-d253-4d4f-8601-9a4d9d8ee257', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:30 GMT', + date: 'Fri, 12 Aug 2016 22:59:52 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"status\":\"Created\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:30.413Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '654', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '2551298d-10a9-4d2b-9ecd-06d0327df5c2_M6_M6', + 'x-ms-request-id': '5e7edb09-774e-4b9d-985a-954e04849e0a_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': '02717e6a-c92f-4b1c-add9-7df45899a47b', - 'x-ms-routing-request-id': 'WESTUS:20160518T011832Z:02717e6a-c92f-4b1c-add9-7df45899a47b', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': 'b019557f-e464-45e5-8bfb-7c9cf67c2610', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225953Z:b019557f-e464-45e5-8bfb-7c9cf67c2610', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:31 GMT', + date: 'Fri, 12 Aug 2016 22:59:53 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"status\":\"Created\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:30.413Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '654', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '2551298d-10a9-4d2b-9ecd-06d0327df5c2_M6_M6', + 'x-ms-request-id': '5e7edb09-774e-4b9d-985a-954e04849e0a_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': '02717e6a-c92f-4b1c-add9-7df45899a47b', - 'x-ms-routing-request-id': 'WESTUS:20160518T011832Z:02717e6a-c92f-4b1c-add9-7df45899a47b', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': 'b019557f-e464-45e5-8bfb-7c9cf67c2610', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225953Z:b019557f-e464-45e5-8bfb-7c9cf67c2610', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:31 GMT', + date: 'Fri, 12 Aug 2016 22:59:53 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"status\":\"Created\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:30.413Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '654', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'b7eb3d92-cf32-468d-b9c8-a18572d484b2_M4_M4', + 'x-ms-request-id': 'bd7813c1-312d-43ff-ada8-e09c548bb4cd_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': 'f03b7304-52c3-499e-85c6-f6faddbf4136', - 'x-ms-routing-request-id': 'WESTUS:20160518T011833Z:f03b7304-52c3-499e-85c6-f6faddbf4136', + 'x-ms-correlation-request-id': 'dda70c66-064e-4162-9137-abc527dd3152', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225954Z:dda70c66-064e-4162-9137-abc527dd3152', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:32 GMT', + date: 'Fri, 12 Aug 2016 22:59:53 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"status\":\"Created\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:30.413Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '654', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'b7eb3d92-cf32-468d-b9c8-a18572d484b2_M4_M4', + 'x-ms-request-id': 'bd7813c1-312d-43ff-ada8-e09c548bb4cd_M6_M6', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': 'f03b7304-52c3-499e-85c6-f6faddbf4136', - 'x-ms-routing-request-id': 'WESTUS:20160518T011833Z:f03b7304-52c3-499e-85c6-f6faddbf4136', + 'x-ms-correlation-request-id': 'dda70c66-064e-4162-9137-abc527dd3152', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225954Z:dda70c66-064e-4162-9137-abc527dd3152', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:32 GMT', + date: 'Fri, 12 Aug 2016 22:59:53 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:33.06Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '651', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '554f6b78-49da-4021-b9e4-8e06bd8b91c4_M1_M1', + 'x-ms-request-id': '1bd10cb9-c2af-471f-b480-b4c0d8b14960_M3_M3', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': 'e0027d48-19c6-4885-ba2c-b4f8e36194d0', - 'x-ms-routing-request-id': 'WESTUS:20160518T011834Z:e0027d48-19c6-4885-ba2c-b4f8e36194d0', + 'x-ms-correlation-request-id': '824d6a12-f58f-47cd-a5f0-bd5a810b97d9', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225954Z:824d6a12-f58f-47cd-a5f0-bd5a810b97d9', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:33 GMT', + date: 'Fri, 12 Aug 2016 22:59:54 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:33.06Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '651', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '554f6b78-49da-4021-b9e4-8e06bd8b91c4_M1_M1', + 'x-ms-request-id': '1bd10cb9-c2af-471f-b480-b4c0d8b14960_M3_M3', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': 'e0027d48-19c6-4885-ba2c-b4f8e36194d0', - 'x-ms-routing-request-id': 'WESTUS:20160518T011834Z:e0027d48-19c6-4885-ba2c-b4f8e36194d0', + 'x-ms-correlation-request-id': '824d6a12-f58f-47cd-a5f0-bd5a810b97d9', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225954Z:824d6a12-f58f-47cd-a5f0-bd5a810b97d9', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:33 GMT', + date: 'Fri, 12 Aug 2016 22:59:54 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:33.06Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '679', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '037bfb6e-e043-4f73-9302-21b6f60c05e6_M3_M3', + 'x-ms-request-id': '41bd5a4a-4003-4d46-a5ae-c945665e41ba_M5_M5', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': '091768cc-4e99-424a-86e6-10e0a0f91d07', - 'x-ms-routing-request-id': 'WESTUS:20160518T011834Z:091768cc-4e99-424a-86e6-10e0a0f91d07', + 'x-ms-correlation-request-id': 'f56a98ba-74b1-4022-8af4-9a6a42e29f96', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225955Z:f56a98ba-74b1-4022-8af4-9a6a42e29f96', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:34 GMT', + date: 'Fri, 12 Aug 2016 22:59:55 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:33.06Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '679', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '037bfb6e-e043-4f73-9302-21b6f60c05e6_M3_M3', + 'x-ms-request-id': '41bd5a4a-4003-4d46-a5ae-c945665e41ba_M5_M5', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': '091768cc-4e99-424a-86e6-10e0a0f91d07', - 'x-ms-routing-request-id': 'WESTUS:20160518T011834Z:091768cc-4e99-424a-86e6-10e0a0f91d07', + 'x-ms-correlation-request-id': 'f56a98ba-74b1-4022-8af4-9a6a42e29f96', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225955Z:f56a98ba-74b1-4022-8af4-9a6a42e29f96', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:34 GMT', + date: 'Fri, 12 Aug 2016 22:59:55 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/providers/Microsoft.NotificationHubs/namespaces?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5492/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1927\",\"name\":\"HydraNH-Namespace1927\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:04:54.09Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1927.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:05:08.22Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7797/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1339\",\"name\":\"HydraNH-Namespace1339\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T23:29:57.37Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1339.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T23:30:09.187Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6304/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2465\",\"name\":\"HydraNH-Namespace2465\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:02:54.267Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2465.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:03:06.707Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9292/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6246\",\"name\":\"HydraNH-Namespace6246\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T17:14:09.5Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6246.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T17:14:15.61Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9144/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2745\",\"name\":\"HydraNH-Namespace2745\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:20:20.967Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2745.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:20:36.853Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5811/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9473\",\"name\":\"HydraNH-Namespace9473\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:10:27.34Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9473.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:10:41.02Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG502/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace89\",\"name\":\"HydraNH-Namespace89\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-12T07:21:53.73Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace89.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-12T07:21:59.83Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1947/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5704\",\"name\":\"HydraNH-Namespace5704\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T23:29:29.523Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5704.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T23:29:31.48Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG328/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7658\",\"name\":\"HydraNH-Namespace7658\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T21:57:50.533Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7658.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T21:57:53.023Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2740/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3915\",\"name\":\"HydraNH-Namespace3915\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:25:13.627Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3915.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:25:32.213Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5918/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6044\",\"name\":\"HydraNH-Namespace6044\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:44:30.58Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6044.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:44:31.453Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/CSM-SBTestInfra\",\"name\":\"CSM-SBTestInfra\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"Messaging\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2014-05-12T18:04:56.787Z\",\"serviceBusEndpoint\":\"https://CSM-SBTestInfra.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-002\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2014-05-12T18:23:13.52Z\",\"createACSNamespace\":true,\"namespaceType\":\"Messaging\",\"messagingSku\":2}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2239/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8768\",\"name\":\"HydraNH-Namespace8768\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-09T00:48:57.073Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8768.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-09T00:48:59.56Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3800/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2562\",\"name\":\"HydraNH-Namespace2562\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:26:47.64Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2562.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:26:50.423Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5468/providers/Microsoft.NotificationHubs/namespaces/testNS7002\",\"name\":\"testNS7002\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:05:41.377Z\",\"serviceBusEndpoint\":\"https://testNS7002.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:05:42.317Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7053/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7393\",\"name\":\"HydraNH-Namespace7393\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:01:16.977Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7393.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:01:29.83Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5953/providers/Microsoft.NotificationHubs/namespaces/testNS8153\",\"name\":\"testNS8153\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:21:46.07Z\",\"serviceBusEndpoint\":\"https://testNS8153.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:21:47.657Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2020/providers/Microsoft.NotificationHubs/namespaces/testNS4182\",\"name\":\"testNS4182\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-17T17:32:49.54Z\",\"serviceBusEndpoint\":\"https://testNS4182.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-17T17:32:51.093Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5453/providers/Microsoft.NotificationHubs/namespaces/testNS9533\",\"name\":\"testNS9533\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:16:08.43Z\",\"serviceBusEndpoint\":\"https://testNS9533.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:16:11.457Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3605/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2992\",\"name\":\"HydraNH-Namespace2992\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:55:53.537Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2992.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:56:06.76Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3366/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2320\",\"name\":\"HydraNH-Namespace2320\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:10:33.943Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2320.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:10:37.233Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9939/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4260\",\"name\":\"HydraNH-Namespace4260\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:54:47.87Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4260.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:55:03.113Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1292/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4418\",\"name\":\"HydraNH-Namespace4418\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T22:46:16.21Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4418.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T22:46:31.107Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5332/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5042\",\"name\":\"HydraNH-Namespace5042\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T23:39:09.16Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5042.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T23:39:15.593Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5237/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5769\",\"name\":\"HydraNH-Namespace5769\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:50:13.54Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5769.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:50:17.14Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1024/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1652\",\"name\":\"HydraNH-Namespace1652\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:06:45.87Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1652.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:07:03.36Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9698/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7349\",\"name\":\"HydraNH-Namespace7349\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:55:45.867Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7349.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:55:56.81Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2667/providers/Microsoft.NotificationHubs/namespaces/testNS5348\",\"name\":\"testNS5348\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:25:08.923Z\",\"serviceBusEndpoint\":\"https://testNS5348.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:25:12.17Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3856/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7885\",\"name\":\"HydraNH-Namespace7885\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:57:15.08Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7885.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:57:28.83Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3689/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9627\",\"name\":\"HydraNH-Namespace9627\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:19:22.523Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9627.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T00:19:25.073Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup343/providers/Microsoft.NotificationHubs/namespaces/testNS7589\",\"name\":\"testNS7589\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T22:46:43.96Z\",\"serviceBusEndpoint\":\"https://testNS7589.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T22:46:45.59Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4618/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9944\",\"name\":\"HydraNH-Namespace9944\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T20:55:05.413Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9944.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T20:55:07.2Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup63/providers/Microsoft.NotificationHubs/namespaces/testNS1438\",\"name\":\"testNS1438\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:43:56.687Z\",\"serviceBusEndpoint\":\"https://testNS1438.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:43:59.267Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2402/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1535\",\"name\":\"HydraNH-Namespace1535\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-09T00:11:59.727Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1535.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-09T00:12:13.233Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8221/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6431\",\"name\":\"HydraNH-Namespace6431\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T23:07:23.813Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6431.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T23:07:26.96Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8335/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace251\",\"name\":\"HydraNH-Namespace251\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:33:01.393Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace251.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:33:13.69Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3062/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2376\",\"name\":\"HydraNH-Namespace2376\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:36:32.113Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2376.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T00:36:34.547Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/111c36dc-4047-4c69-acd5-301072ff1fc2/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7143\",\"name\":\"HydraNH-Namespace7143\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:55:03.03Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7143.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-09-03T22:09:32.387Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5897/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8163\",\"name\":\"HydraNH-Namespace8163\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:06:28.72Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8163.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:06:30.93Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6401/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace226\",\"name\":\"HydraNH-Namespace226\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T21:01:54.48Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace226.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T21:02:00.863Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7444/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9101\",\"name\":\"HydraNH-Namespace9101\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T21:39:03.35Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9101.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T21:39:05.49Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4154/providers/Microsoft.NotificationHubs/namespaces/testNS2735\",\"name\":\"testNS2735\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:08:49.457Z\",\"serviceBusEndpoint\":\"https://testNS2735.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:08:51.473Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4626/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4110\",\"name\":\"HydraNH-Namespace4110\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:27:19.677Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4110.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:30:27.09Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5915/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7983\",\"name\":\"HydraNH-Namespace7983\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T23:26:27.06Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7983.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T23:26:29.313Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/TestRG1231/providers/Microsoft.NotificationHubs/namespaces/TestTTL-NH\",\"name\":\"TestTTL-NH\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-03-25T00:22:25.433Z\",\"serviceBusEndpoint\":\"https://TestTTL-NH.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-03-25T00:22:28.93Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup6482/providers/Microsoft.NotificationHubs/namespaces/testNS2696\",\"name\":\"testNS2696\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-05T23:38:50.797Z\",\"serviceBusEndpoint\":\"https://testNS2696.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-05T23:38:53.02Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4393/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8154\",\"name\":\"HydraNH-Namespace8154\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:17:04.05Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8154.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:17:05.917Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup9905/providers/Microsoft.NotificationHubs/namespaces/testNS9443\",\"name\":\"testNS9443\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:28:40.073Z\",\"serviceBusEndpoint\":\"https://testNS9443.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:28:43.54Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2082/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8262\",\"name\":\"HydraNH-Namespace8262\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-12T03:41:20.96Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8262.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-12T03:41:27.067Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG500/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5264\",\"name\":\"HydraNH-Namespace5264\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T22:27:48.503Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5264.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T22:28:01.393Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9043/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6868\",\"name\":\"HydraNH-Namespace6868\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:08:20.787Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6868.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:08:25.213Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7427/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1704\",\"name\":\"HydraNH-Namespace1704\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:05:47.57Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1704.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:05:48.543Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1763/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5892\",\"name\":\"HydraNH-Namespace5892\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T19:20:44.62Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5892.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T19:20:51.1Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3499/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2455\",\"name\":\"HydraNH-Namespace2455\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:14:49.95Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2455.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T00:14:52.423Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/Default-ServiceBus-EastUS/providers/Microsoft.NotificationHubs/namespaces/prod-6-2-bl2-SBAC2-1\",\"name\":\"prod-6-2-bl2-SBAC2-1\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"East US\",\"kind\":\"Messaging\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2012-06-03T02:47:54.277Z\",\"serviceBusEndpoint\":\"https://prod-6-2-bl2-SBAC2-1.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"BL2-001\",\"dataCenter\":\"BL2\",\"updatedAt\":\"2012-06-03T02:58:56.033Z\",\"createACSNamespace\":true,\"namespaceType\":\"Messaging\",\"messagingSku\":2}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1341/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5206\",\"name\":\"HydraNH-Namespace5206\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:04:15.74Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5206.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:04:28.87Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5215/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3270\",\"name\":\"HydraNH-Namespace3270\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T18:35:46.607Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3270.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T18:35:50.3Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9412/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3119\",\"name\":\"HydraNH-Namespace3119\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T23:23:11.353Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3119.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T23:23:14.56Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6885/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1729\",\"name\":\"HydraNH-Namespace1729\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:46:43.05Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1729.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:46:56.523Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3777/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8871\",\"name\":\"HydraNH-Namespace8871\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:57:04.503Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8871.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:57:20.38Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6515/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4809\",\"name\":\"HydraNH-Namespace4809\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:42:49Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4809.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:42:52.887Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup141/providers/Microsoft.NotificationHubs/namespaces/testNS4891\",\"name\":\"testNS4891\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:07:45.697Z\",\"serviceBusEndpoint\":\"https://testNS4891.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:07:46.667Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1571/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace687\",\"name\":\"HydraNH-Namespace687\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T19:30:03.337Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace687.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T19:30:04.823Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7806/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace265\",\"name\":\"HydraNH-Namespace265\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T16:59:55.577Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace265.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T16:59:58.427Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:33.06Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4301/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5019\",\"name\":\"HydraNH-Namespace5019\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T01:32:58.133Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5019.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T01:33:10.617Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2780/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6970\",\"name\":\"HydraNH-Namespace6970\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:18:08.26Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6970.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:18:23.5Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5307/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5016\",\"name\":\"HydraNH-Namespace5016\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T23:22:02.64Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5016.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T23:22:27.597Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2329/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1169\",\"name\":\"HydraNH-Namespace1169\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-12T07:39:41.147Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1169.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-12T07:39:52.433Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8946/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace921\",\"name\":\"HydraNH-Namespace921\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T19:19:00.23Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace921.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T19:19:04.583Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6513/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2610\",\"name\":\"HydraNH-Namespace2610\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:51:43.667Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2610.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:51:56.793Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8399/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3669\",\"name\":\"HydraNH-Namespace3669\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T18:45:14.04Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3669.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T18:45:15.507Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6550/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7711\",\"name\":\"HydraNH-Namespace7711\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-12T03:51:40.333Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7711.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-12T03:51:46.557Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7453/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6913\",\"name\":\"HydraNH-Namespace6913\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T20:54:40.73Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6913.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T20:54:48.26Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2906/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7137\",\"name\":\"HydraNH-Namespace7137\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T17:42:44.45Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7137.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T17:42:54.713Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup8467/providers/Microsoft.NotificationHubs/namespaces/testNS9683\",\"name\":\"testNS9683\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:37:32.593Z\",\"serviceBusEndpoint\":\"https://testNS9683.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:37:35.87Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup670/providers/Microsoft.NotificationHubs/namespaces/testNS9687\",\"name\":\"testNS9687\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:19:46.727Z\",\"serviceBusEndpoint\":\"https://testNS9687.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:19:49.33Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3832/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3788\",\"name\":\"HydraNH-Namespace3788\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:23:39.56Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3788.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:23:41.643Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '53392', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'b420db24-3c04-4de3-a7f0-f4ab6eb2b110_M5_M5', + 'x-ms-request-id': 'a2615b41-a922-4ee1-bb82-4a9692d9a6f5_M4_M4', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': 'b864cff8-d1bc-4136-a574-bb80f5d5080a', - 'x-ms-routing-request-id': 'WESTUS:20160518T011835Z:b864cff8-d1bc-4136-a574-bb80f5d5080a', + 'x-ms-correlation-request-id': 'f1abbae5-4492-47d5-a5af-c75ed4c1bab2', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225955Z:f1abbae5-4492-47d5-a5af-c75ed4c1bab2', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:35 GMT', + date: 'Fri, 12 Aug 2016 22:59:55 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/providers/Microsoft.NotificationHubs/namespaces?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5492/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1927\",\"name\":\"HydraNH-Namespace1927\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:04:54.09Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1927.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:05:08.22Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7797/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1339\",\"name\":\"HydraNH-Namespace1339\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T23:29:57.37Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1339.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T23:30:09.187Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6304/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2465\",\"name\":\"HydraNH-Namespace2465\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:02:54.267Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2465.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:03:06.707Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9292/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6246\",\"name\":\"HydraNH-Namespace6246\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T17:14:09.5Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6246.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T17:14:15.61Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9144/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2745\",\"name\":\"HydraNH-Namespace2745\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:20:20.967Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2745.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:20:36.853Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5811/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9473\",\"name\":\"HydraNH-Namespace9473\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:10:27.34Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9473.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:10:41.02Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG502/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace89\",\"name\":\"HydraNH-Namespace89\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-12T07:21:53.73Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace89.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-12T07:21:59.83Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1947/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5704\",\"name\":\"HydraNH-Namespace5704\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T23:29:29.523Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5704.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T23:29:31.48Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG328/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7658\",\"name\":\"HydraNH-Namespace7658\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T21:57:50.533Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7658.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T21:57:53.023Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2740/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3915\",\"name\":\"HydraNH-Namespace3915\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:25:13.627Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3915.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:25:32.213Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5918/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6044\",\"name\":\"HydraNH-Namespace6044\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:44:30.58Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6044.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:44:31.453Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/CSM-SBTestInfra\",\"name\":\"CSM-SBTestInfra\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"Messaging\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2014-05-12T18:04:56.787Z\",\"serviceBusEndpoint\":\"https://CSM-SBTestInfra.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-002\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2014-05-12T18:23:13.52Z\",\"createACSNamespace\":true,\"namespaceType\":\"Messaging\",\"messagingSku\":2}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2239/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8768\",\"name\":\"HydraNH-Namespace8768\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-09T00:48:57.073Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8768.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-09T00:48:59.56Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3800/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2562\",\"name\":\"HydraNH-Namespace2562\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:26:47.64Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2562.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:26:50.423Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5468/providers/Microsoft.NotificationHubs/namespaces/testNS7002\",\"name\":\"testNS7002\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:05:41.377Z\",\"serviceBusEndpoint\":\"https://testNS7002.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:05:42.317Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7053/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7393\",\"name\":\"HydraNH-Namespace7393\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:01:16.977Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7393.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:01:29.83Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5953/providers/Microsoft.NotificationHubs/namespaces/testNS8153\",\"name\":\"testNS8153\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:21:46.07Z\",\"serviceBusEndpoint\":\"https://testNS8153.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:21:47.657Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2020/providers/Microsoft.NotificationHubs/namespaces/testNS4182\",\"name\":\"testNS4182\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-17T17:32:49.54Z\",\"serviceBusEndpoint\":\"https://testNS4182.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-17T17:32:51.093Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5453/providers/Microsoft.NotificationHubs/namespaces/testNS9533\",\"name\":\"testNS9533\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:16:08.43Z\",\"serviceBusEndpoint\":\"https://testNS9533.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:16:11.457Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3605/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2992\",\"name\":\"HydraNH-Namespace2992\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:55:53.537Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2992.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:56:06.76Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3366/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2320\",\"name\":\"HydraNH-Namespace2320\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:10:33.943Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2320.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:10:37.233Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9939/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4260\",\"name\":\"HydraNH-Namespace4260\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:54:47.87Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4260.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:55:03.113Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1292/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4418\",\"name\":\"HydraNH-Namespace4418\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T22:46:16.21Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4418.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T22:46:31.107Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5332/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5042\",\"name\":\"HydraNH-Namespace5042\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T23:39:09.16Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5042.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T23:39:15.593Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5237/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5769\",\"name\":\"HydraNH-Namespace5769\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:50:13.54Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5769.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:50:17.14Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1024/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1652\",\"name\":\"HydraNH-Namespace1652\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:06:45.87Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1652.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:07:03.36Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9698/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7349\",\"name\":\"HydraNH-Namespace7349\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:55:45.867Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7349.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:55:56.81Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup2667/providers/Microsoft.NotificationHubs/namespaces/testNS5348\",\"name\":\"testNS5348\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:25:08.923Z\",\"serviceBusEndpoint\":\"https://testNS5348.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:25:12.17Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3856/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7885\",\"name\":\"HydraNH-Namespace7885\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:57:15.08Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7885.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:57:28.83Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3689/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9627\",\"name\":\"HydraNH-Namespace9627\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:19:22.523Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9627.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T00:19:25.073Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup343/providers/Microsoft.NotificationHubs/namespaces/testNS7589\",\"name\":\"testNS7589\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T22:46:43.96Z\",\"serviceBusEndpoint\":\"https://testNS7589.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T22:46:45.59Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4618/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9944\",\"name\":\"HydraNH-Namespace9944\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T20:55:05.413Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9944.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T20:55:07.2Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup63/providers/Microsoft.NotificationHubs/namespaces/testNS1438\",\"name\":\"testNS1438\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:43:56.687Z\",\"serviceBusEndpoint\":\"https://testNS1438.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:43:59.267Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2402/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1535\",\"name\":\"HydraNH-Namespace1535\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-09T00:11:59.727Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1535.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-09T00:12:13.233Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8221/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6431\",\"name\":\"HydraNH-Namespace6431\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T23:07:23.813Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6431.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T23:07:26.96Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8335/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace251\",\"name\":\"HydraNH-Namespace251\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:33:01.393Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace251.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:33:13.69Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3062/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2376\",\"name\":\"HydraNH-Namespace2376\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:36:32.113Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2376.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T00:36:34.547Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/111c36dc-4047-4c69-acd5-301072ff1fc2/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7143\",\"name\":\"HydraNH-Namespace7143\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:55:03.03Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7143.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-09-03T22:09:32.387Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5897/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8163\",\"name\":\"HydraNH-Namespace8163\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:06:28.72Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8163.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:06:30.93Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6401/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace226\",\"name\":\"HydraNH-Namespace226\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T21:01:54.48Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace226.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T21:02:00.863Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7444/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9101\",\"name\":\"HydraNH-Namespace9101\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T21:39:03.35Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9101.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T21:39:05.49Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4154/providers/Microsoft.NotificationHubs/namespaces/testNS2735\",\"name\":\"testNS2735\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:08:49.457Z\",\"serviceBusEndpoint\":\"https://testNS2735.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:08:51.473Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4626/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4110\",\"name\":\"HydraNH-Namespace4110\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:27:19.677Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4110.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:30:27.09Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5915/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7983\",\"name\":\"HydraNH-Namespace7983\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T23:26:27.06Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7983.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T23:26:29.313Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/TestRG1231/providers/Microsoft.NotificationHubs/namespaces/TestTTL-NH\",\"name\":\"TestTTL-NH\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-03-25T00:22:25.433Z\",\"serviceBusEndpoint\":\"https://TestTTL-NH.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-03-25T00:22:28.93Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup6482/providers/Microsoft.NotificationHubs/namespaces/testNS2696\",\"name\":\"testNS2696\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-05T23:38:50.797Z\",\"serviceBusEndpoint\":\"https://testNS2696.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-05T23:38:53.02Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4393/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8154\",\"name\":\"HydraNH-Namespace8154\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:17:04.05Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8154.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:17:05.917Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup9905/providers/Microsoft.NotificationHubs/namespaces/testNS9443\",\"name\":\"testNS9443\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:28:40.073Z\",\"serviceBusEndpoint\":\"https://testNS9443.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:28:43.54Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2082/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8262\",\"name\":\"HydraNH-Namespace8262\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-12T03:41:20.96Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8262.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-12T03:41:27.067Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG500/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5264\",\"name\":\"HydraNH-Namespace5264\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T22:27:48.503Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5264.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T22:28:01.393Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9043/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6868\",\"name\":\"HydraNH-Namespace6868\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:08:20.787Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6868.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:08:25.213Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7427/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1704\",\"name\":\"HydraNH-Namespace1704\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:05:47.57Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1704.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T22:05:48.543Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1763/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5892\",\"name\":\"HydraNH-Namespace5892\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T19:20:44.62Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5892.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T19:20:51.1Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3499/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2455\",\"name\":\"HydraNH-Namespace2455\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:14:49.95Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2455.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T00:14:52.423Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/Default-ServiceBus-EastUS/providers/Microsoft.NotificationHubs/namespaces/prod-6-2-bl2-SBAC2-1\",\"name\":\"prod-6-2-bl2-SBAC2-1\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"East US\",\"kind\":\"Messaging\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2012-06-03T02:47:54.277Z\",\"serviceBusEndpoint\":\"https://prod-6-2-bl2-SBAC2-1.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"BL2-001\",\"dataCenter\":\"BL2\",\"updatedAt\":\"2012-06-03T02:58:56.033Z\",\"createACSNamespace\":true,\"namespaceType\":\"Messaging\",\"messagingSku\":2}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1341/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5206\",\"name\":\"HydraNH-Namespace5206\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:04:15.74Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5206.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:04:28.87Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5215/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3270\",\"name\":\"HydraNH-Namespace3270\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T18:35:46.607Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3270.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T18:35:50.3Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9412/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3119\",\"name\":\"HydraNH-Namespace3119\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-04-21T23:23:11.353Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3119.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-04-21T23:23:14.56Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6885/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1729\",\"name\":\"HydraNH-Namespace1729\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:46:43.05Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1729.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:46:56.523Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3777/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8871\",\"name\":\"HydraNH-Namespace8871\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:57:04.503Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8871.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T21:57:20.38Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6515/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4809\",\"name\":\"HydraNH-Namespace4809\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:42:49Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4809.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:42:52.887Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup141/providers/Microsoft.NotificationHubs/namespaces/testNS4891\",\"name\":\"testNS4891\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:07:45.697Z\",\"serviceBusEndpoint\":\"https://testNS4891.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:07:46.667Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1571/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace687\",\"name\":\"HydraNH-Namespace687\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T19:30:03.337Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace687.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T19:30:04.823Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7806/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace265\",\"name\":\"HydraNH-Namespace265\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T16:59:55.577Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace265.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T16:59:58.427Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663\",\"name\":\"testNS4663\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-18T01:18:30.413Z\",\"serviceBusEndpoint\":\"https://testNS4663.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-18T01:18:33.06Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4301/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5019\",\"name\":\"HydraNH-Namespace5019\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-08T01:32:58.133Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5019.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-08T01:33:10.617Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2780/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6970\",\"name\":\"HydraNH-Namespace6970\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:18:08.26Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6970.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:18:23.5Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5307/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5016\",\"name\":\"HydraNH-Namespace5016\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T23:22:02.64Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5016.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T23:22:27.597Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2329/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1169\",\"name\":\"HydraNH-Namespace1169\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-12T07:39:41.147Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1169.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-12T07:39:52.433Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8946/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace921\",\"name\":\"HydraNH-Namespace921\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-10T19:19:00.23Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace921.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-10T19:19:04.583Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6513/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2610\",\"name\":\"HydraNH-Namespace2610\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:51:43.667Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2610.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T22:51:56.793Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8399/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3669\",\"name\":\"HydraNH-Namespace3669\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T18:45:14.04Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3669.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T18:45:15.507Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6550/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7711\",\"name\":\"HydraNH-Namespace7711\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-12T03:51:40.333Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7711.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-12T03:51:46.557Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7453/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6913\",\"name\":\"HydraNH-Namespace6913\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T20:54:40.73Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6913.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T20:54:48.26Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2906/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7137\",\"name\":\"HydraNH-Namespace7137\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-11T17:42:44.45Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7137.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-11T17:42:54.713Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup8467/providers/Microsoft.NotificationHubs/namespaces/testNS9683\",\"name\":\"testNS9683\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-06T22:37:32.593Z\",\"serviceBusEndpoint\":\"https://testNS9683.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-06T22:37:35.87Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup670/providers/Microsoft.NotificationHubs/namespaces/testNS9687\",\"name\":\"testNS9687\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2016-05-09T23:19:46.727Z\",\"serviceBusEndpoint\":\"https://testNS9687.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-05-09T23:19:49.33Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3832/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3788\",\"name\":\"HydraNH-Namespace3788\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:23:39.56Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3788.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2015-08-07T23:23:41.643Z\",\"namespaceType\":\"NotificationHub\",\"messagingSku\":1}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Activating\",\"metricId\":null,\"status\":\"Created\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:51.63Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '53392', + 'content-length': '673', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'b420db24-3c04-4de3-a7f0-f4ab6eb2b110_M5_M5', + 'x-ms-request-id': 'a2615b41-a922-4ee1-bb82-4a9692d9a6f5_M4_M4', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14999', - 'x-ms-correlation-request-id': 'b864cff8-d1bc-4136-a574-bb80f5d5080a', - 'x-ms-routing-request-id': 'WESTUS:20160518T011835Z:b864cff8-d1bc-4136-a574-bb80f5d5080a', + 'x-ms-correlation-request-id': 'f1abbae5-4492-47d5-a5af-c75ed4c1bab2', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225955Z:f1abbae5-4492-47d5-a5af-c75ed4c1bab2', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:35 GMT', + date: 'Fri, 12 Aug 2016 22:59:55 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('http://management.azure.com:443') + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:54.07Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '671', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '19093b6d-fd82-4e3e-b006-3ef10d45280b_M1_M1', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads': '14999', + 'x-ms-correlation-request-id': '7250ac95-ffea-4478-8fb9-428f3b833d02', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225955Z:7250ac95-ffea-4478-8fb9-428f3b833d02', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 22:59:55 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://management.azure.com:443') + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:54.07Z\",\"namespaceType\":\"NotificationHub\"}}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '671', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '19093b6d-fd82-4e3e-b006-3ef10d45280b_M1_M1', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads': '14999', + 'x-ms-correlation-request-id': '7250ac95-ffea-4478-8fb9-428f3b833d02', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225955Z:7250ac95-ffea-4478-8fb9-428f3b833d02', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 22:59:55 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('http://management.azure.com:443') + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:54.07Z\",\"namespaceType\":\"NotificationHub\"}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '699', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '8449f324-6a9b-4579-8fa1-5f286e4f0651_M4_M4', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads': '14999', + 'x-ms-correlation-request-id': 'd632b313-85ce-4025-a295-b9201a4de2dc', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225956Z:d632b313-85ce-4025-a295-b9201a4de2dc', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 22:59:55 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://management.azure.com:443') + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:54.07Z\",\"namespaceType\":\"NotificationHub\"}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '699', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '8449f324-6a9b-4579-8fa1-5f286e4f0651_M4_M4', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads': '14999', + 'x-ms-correlation-request-id': 'd632b313-85ce-4025-a295-b9201a4de2dc', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225956Z:d632b313-85ce-4025-a295-b9201a4de2dc', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 22:59:55 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('http://management.azure.com:443') + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/providers/Microsoft.NotificationHubs/namespaces?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5492/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1927\",\"name\":\"HydraNH-Namespace1927\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:04:54.09Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1927.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.84Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7797/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1339\",\"name\":\"HydraNH-Namespace1339\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T23:29:57.37Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1339.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.653Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6304/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2465\",\"name\":\"HydraNH-Namespace2465\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:02:54.267Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2465.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.93Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9292/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6246\",\"name\":\"HydraNH-Namespace6246\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T17:14:09.5Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6246.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.53Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9144/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2745\",\"name\":\"HydraNH-Namespace2745\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:20:20.967Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2745.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.98Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5811/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9473\",\"name\":\"HydraNH-Namespace9473\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:10:27.34Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9473.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.417Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG502/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace89\",\"name\":\"HydraNH-Namespace89\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-12T07:21:53.73Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace89.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.343Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1947/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5704\",\"name\":\"HydraNH-Namespace5704\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T23:29:29.523Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5704.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.41Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG328/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7658\",\"name\":\"HydraNH-Namespace7658\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T21:57:50.533Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7658.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.863Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup3293/providers/Microsoft.NotificationHubs/namespaces/testNS7898\",\"name\":\"testNS7898\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T00:46:06.29Z\",\"serviceBusEndpoint\":\"https://testNS7898.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T00:46:08.293Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2740/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3915\",\"name\":\"HydraNH-Namespace3915\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:25:13.627Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3915.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.17Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5918/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6044\",\"name\":\"HydraNH-Namespace6044\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:44:30.58Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6044.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.487Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2239/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8768\",\"name\":\"HydraNH-Namespace8768\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-09T00:48:57.073Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8768.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.157Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3800/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2562\",\"name\":\"HydraNH-Namespace2562\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:26:47.64Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2562.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.947Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7053/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7393\",\"name\":\"HydraNH-Namespace7393\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:01:16.977Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7393.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.817Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:54.07Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3605/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2992\",\"name\":\"HydraNH-Namespace2992\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:55:53.537Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2992.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.063Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4268/providers/Microsoft.NotificationHubs/namespaces/testNS2599\",\"name\":\"testNS2599\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-11T23:22:11.523Z\",\"serviceBusEndpoint\":\"https://testNS2599.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T23:22:14.313Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3366/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2320\",\"name\":\"HydraNH-Namespace2320\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:10:33.943Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2320.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.903Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9939/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4260\",\"name\":\"HydraNH-Namespace4260\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:54:47.87Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4260.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.237Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1292/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4418\",\"name\":\"HydraNH-Namespace4418\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T22:46:16.21Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4418.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.273Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5332/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5042\",\"name\":\"HydraNH-Namespace5042\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T23:39:09.16Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5042.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.36Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5237/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5769\",\"name\":\"HydraNH-Namespace5769\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:50:13.54Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5769.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.457Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1024/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1652\",\"name\":\"HydraNH-Namespace1652\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:06:45.87Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1652.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.733Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9698/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7349\",\"name\":\"HydraNH-Namespace7349\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:55:45.867Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7349.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.78Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3856/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7885\",\"name\":\"HydraNH-Namespace7885\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:57:15.08Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7885.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.96Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3689/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9627\",\"name\":\"HydraNH-Namespace9627\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:19:22.523Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9627.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.423Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4618/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9944\",\"name\":\"HydraNH-Namespace9944\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T20:55:05.413Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9944.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.43Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2402/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1535\",\"name\":\"HydraNH-Namespace1535\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-09T00:11:59.727Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1535.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.69Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8221/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6431\",\"name\":\"HydraNH-Namespace6431\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T23:07:23.813Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6431.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.537Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8335/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace251\",\"name\":\"HydraNH-Namespace251\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:33:01.393Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace251.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.94Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3062/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2376\",\"name\":\"HydraNH-Namespace2376\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:36:32.113Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2376.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.913Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/111c36dc-4047-4c69-acd5-301072ff1fc2/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7143\",\"name\":\"HydraNH-Namespace7143\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:55:03.03Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7143.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.747Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5897/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8163\",\"name\":\"HydraNH-Namespace8163\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:06:28.72Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8163.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.08Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6401/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace226\",\"name\":\"HydraNH-Namespace226\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T21:01:54.48Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace226.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.87Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7444/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9101\",\"name\":\"HydraNH-Namespace9101\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T21:39:03.35Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9101.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.387Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/TestRG/providers/Microsoft.NotificationHubs/namespaces/TestGcmSmithab\",\"name\":\"TestGcmSmithab\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-06-02T19:14:16.673Z\",\"serviceBusEndpoint\":\"https://TestGcmSmithab.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:02:16.91Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4626/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4110\",\"name\":\"HydraNH-Namespace4110\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:27:19.677Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4110.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.197Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5915/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7983\",\"name\":\"HydraNH-Namespace7983\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T23:26:27.06Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7983.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/TestRG1231/providers/Microsoft.NotificationHubs/namespaces/TestTTL-NH\",\"name\":\"TestTTL-NH\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-03-25T00:22:25.433Z\",\"serviceBusEndpoint\":\"https://TestTTL-NH.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:02:17.37Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4393/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8154\",\"name\":\"HydraNH-Namespace8154\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:17:04.05Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8154.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.04Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2082/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8262\",\"name\":\"HydraNH-Namespace8262\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-12T03:41:20.96Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8262.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.127Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG500/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5264\",\"name\":\"HydraNH-Namespace5264\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T22:27:48.503Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5264.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.397Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9043/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6868\",\"name\":\"HydraNH-Namespace6868\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:08:20.787Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6868.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.547Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7427/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1704\",\"name\":\"HydraNH-Namespace1704\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:05:47.57Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1704.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.763Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1763/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5892\",\"name\":\"HydraNH-Namespace5892\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T19:20:44.62Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5892.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.47Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3499/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2455\",\"name\":\"HydraNH-Namespace2455\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:14:49.95Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2455.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.92Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1341/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5206\",\"name\":\"HydraNH-Namespace5206\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:04:15.74Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5206.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.373Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5215/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3270\",\"name\":\"HydraNH-Namespace3270\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T18:35:46.607Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3270.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.133Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9412/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3119\",\"name\":\"HydraNH-Namespace3119\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T23:23:11.353Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3119.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.09Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6885/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1729\",\"name\":\"HydraNH-Namespace1729\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:46:43.05Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1729.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.793Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3777/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8871\",\"name\":\"HydraNH-Namespace8871\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:57:04.503Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8871.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.273Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6515/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4809\",\"name\":\"HydraNH-Namespace4809\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:42:49Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4809.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.31Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1571/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace687\",\"name\":\"HydraNH-Namespace687\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T19:30:03.337Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace687.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.553Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7806/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace265\",\"name\":\"HydraNH-Namespace265\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T16:59:55.577Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace265.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.963Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4301/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5019\",\"name\":\"HydraNH-Namespace5019\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T01:32:58.133Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5019.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.35Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2780/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6970\",\"name\":\"HydraNH-Namespace6970\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:18:08.26Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6970.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.677Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5307/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5016\",\"name\":\"HydraNH-Namespace5016\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T23:22:02.64Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5016.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.337Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2329/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1169\",\"name\":\"HydraNH-Namespace1169\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-12T07:39:41.147Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1169.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.617Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8946/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace921\",\"name\":\"HydraNH-Namespace921\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T19:19:00.23Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace921.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.41Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6513/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2610\",\"name\":\"HydraNH-Namespace2610\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:51:43.667Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2610.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.953Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup231/providers/Microsoft.NotificationHubs/namespaces/testNS1085\",\"name\":\"testNS1085\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T18:20:19.177Z\",\"serviceBusEndpoint\":\"https://testNS1085.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T18:20:20.243Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/Default-NotificationHubs-CentralUS/providers/Microsoft.NotificationHubs/namespaces/testbdsss\",\"name\":\"testbdsss\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-05-24T23:04:35.783Z\",\"serviceBusEndpoint\":\"https://testbdsss.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"DM2-001\",\"dataCenter\":\"DM2\",\"updatedAt\":\"2016-08-11T21:18:18.443Z\",\"eventHubEnabled\":true,\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8399/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3669\",\"name\":\"HydraNH-Namespace3669\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T18:45:14.04Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3669.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.15Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6550/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7711\",\"name\":\"HydraNH-Namespace7711\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-12T03:51:40.333Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7711.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.917Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7453/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6913\",\"name\":\"HydraNH-Namespace6913\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T20:54:40.73Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6913.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.57Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2906/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7137\",\"name\":\"HydraNH-Namespace7137\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T17:42:44.45Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7137.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.707Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3832/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3788\",\"name\":\"HydraNH-Namespace3788\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:23:39.56Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3788.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.16Z\",\"namespaceType\":\"NotificationHub\"}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '48298', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': 'b91f1e95-f6d3-46a6-867d-6457d793e308_M2_M2', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': '26c2f99a-e6fe-47ca-af6c-f04dee889394', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225956Z:26c2f99a-e6fe-47ca-af6c-f04dee889394', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 22:59:56 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://management.azure.com:443') + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/providers/Microsoft.NotificationHubs/namespaces?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5492/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1927\",\"name\":\"HydraNH-Namespace1927\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:04:54.09Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1927.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.84Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7797/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1339\",\"name\":\"HydraNH-Namespace1339\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T23:29:57.37Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1339.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.653Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6304/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2465\",\"name\":\"HydraNH-Namespace2465\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:02:54.267Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2465.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.93Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9292/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6246\",\"name\":\"HydraNH-Namespace6246\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T17:14:09.5Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6246.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.53Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9144/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2745\",\"name\":\"HydraNH-Namespace2745\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:20:20.967Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2745.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.98Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5811/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9473\",\"name\":\"HydraNH-Namespace9473\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:10:27.34Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9473.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.417Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG502/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace89\",\"name\":\"HydraNH-Namespace89\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-12T07:21:53.73Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace89.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.343Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1947/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5704\",\"name\":\"HydraNH-Namespace5704\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T23:29:29.523Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5704.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.41Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG328/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7658\",\"name\":\"HydraNH-Namespace7658\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T21:57:50.533Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7658.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.863Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup3293/providers/Microsoft.NotificationHubs/namespaces/testNS7898\",\"name\":\"testNS7898\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T00:46:06.29Z\",\"serviceBusEndpoint\":\"https://testNS7898.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T00:46:08.293Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2740/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3915\",\"name\":\"HydraNH-Namespace3915\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:25:13.627Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3915.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.17Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5918/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6044\",\"name\":\"HydraNH-Namespace6044\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:44:30.58Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6044.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.487Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2239/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8768\",\"name\":\"HydraNH-Namespace8768\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-09T00:48:57.073Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8768.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.157Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3800/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2562\",\"name\":\"HydraNH-Namespace2562\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:26:47.64Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2562.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.947Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7053/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7393\",\"name\":\"HydraNH-Namespace7393\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:01:16.977Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7393.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.817Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114\",\"name\":\"testNS5114\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T22:59:51.63Z\",\"serviceBusEndpoint\":\"https://testNS5114.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T22:59:54.07Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3605/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2992\",\"name\":\"HydraNH-Namespace2992\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:55:53.537Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2992.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.063Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4268/providers/Microsoft.NotificationHubs/namespaces/testNS2599\",\"name\":\"testNS2599\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-11T23:22:11.523Z\",\"serviceBusEndpoint\":\"https://testNS2599.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T23:22:14.313Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3366/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2320\",\"name\":\"HydraNH-Namespace2320\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:10:33.943Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2320.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.903Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9939/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4260\",\"name\":\"HydraNH-Namespace4260\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:54:47.87Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4260.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.237Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1292/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4418\",\"name\":\"HydraNH-Namespace4418\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T22:46:16.21Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4418.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.273Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5332/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5042\",\"name\":\"HydraNH-Namespace5042\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T23:39:09.16Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5042.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.36Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5237/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5769\",\"name\":\"HydraNH-Namespace5769\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:50:13.54Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5769.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.457Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1024/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1652\",\"name\":\"HydraNH-Namespace1652\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:06:45.87Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1652.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.733Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9698/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7349\",\"name\":\"HydraNH-Namespace7349\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:55:45.867Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7349.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.78Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3856/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7885\",\"name\":\"HydraNH-Namespace7885\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:57:15.08Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7885.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.96Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3689/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9627\",\"name\":\"HydraNH-Namespace9627\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:19:22.523Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9627.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.423Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4618/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9944\",\"name\":\"HydraNH-Namespace9944\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T20:55:05.413Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9944.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.43Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2402/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1535\",\"name\":\"HydraNH-Namespace1535\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-09T00:11:59.727Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1535.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.69Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8221/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6431\",\"name\":\"HydraNH-Namespace6431\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T23:07:23.813Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6431.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.537Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8335/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace251\",\"name\":\"HydraNH-Namespace251\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:33:01.393Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace251.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.94Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3062/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2376\",\"name\":\"HydraNH-Namespace2376\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:36:32.113Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2376.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.913Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/111c36dc-4047-4c69-acd5-301072ff1fc2/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7143\",\"name\":\"HydraNH-Namespace7143\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:55:03.03Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7143.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.747Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5897/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8163\",\"name\":\"HydraNH-Namespace8163\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:06:28.72Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8163.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.08Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6401/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace226\",\"name\":\"HydraNH-Namespace226\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T21:01:54.48Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace226.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.87Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7444/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace9101\",\"name\":\"HydraNH-Namespace9101\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T21:39:03.35Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace9101.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.387Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/TestRG/providers/Microsoft.NotificationHubs/namespaces/TestGcmSmithab\",\"name\":\"TestGcmSmithab\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-06-02T19:14:16.673Z\",\"serviceBusEndpoint\":\"https://TestGcmSmithab.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:02:16.91Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4626/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4110\",\"name\":\"HydraNH-Namespace4110\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:27:19.677Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4110.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.197Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5915/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7983\",\"name\":\"HydraNH-Namespace7983\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T23:26:27.06Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7983.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/TestRG1231/providers/Microsoft.NotificationHubs/namespaces/TestTTL-NH\",\"name\":\"TestTTL-NH\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-03-25T00:22:25.433Z\",\"serviceBusEndpoint\":\"https://TestTTL-NH.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:02:17.37Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4393/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8154\",\"name\":\"HydraNH-Namespace8154\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:17:04.05Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8154.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.04Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2082/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8262\",\"name\":\"HydraNH-Namespace8262\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-12T03:41:20.96Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8262.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.127Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG500/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5264\",\"name\":\"HydraNH-Namespace5264\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T22:27:48.503Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5264.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.397Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9043/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6868\",\"name\":\"HydraNH-Namespace6868\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:08:20.787Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6868.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.547Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7427/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1704\",\"name\":\"HydraNH-Namespace1704\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T22:05:47.57Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1704.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.763Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1763/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5892\",\"name\":\"HydraNH-Namespace5892\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T19:20:44.62Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5892.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.47Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3499/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2455\",\"name\":\"HydraNH-Namespace2455\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T00:14:49.95Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2455.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.92Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1341/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5206\",\"name\":\"HydraNH-Namespace5206\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:04:15.74Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5206.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.373Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5215/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3270\",\"name\":\"HydraNH-Namespace3270\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T18:35:46.607Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3270.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.133Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG9412/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3119\",\"name\":\"HydraNH-Namespace3119\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-04-21T23:23:11.353Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3119.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.09Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6885/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1729\",\"name\":\"HydraNH-Namespace1729\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:46:43.05Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1729.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.793Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3777/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace8871\",\"name\":\"HydraNH-Namespace8871\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T21:57:04.503Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace8871.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.273Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6515/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace4809\",\"name\":\"HydraNH-Namespace4809\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:42:49Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace4809.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.31Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG1571/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace687\",\"name\":\"HydraNH-Namespace687\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T19:30:03.337Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace687.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.553Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7806/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace265\",\"name\":\"HydraNH-Namespace265\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T16:59:55.577Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace265.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.963Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG4301/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5019\",\"name\":\"HydraNH-Namespace5019\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-08T01:32:58.133Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5019.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.35Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2780/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6970\",\"name\":\"HydraNH-Namespace6970\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:18:08.26Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6970.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.677Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG5307/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace5016\",\"name\":\"HydraNH-Namespace5016\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T23:22:02.64Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace5016.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.337Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2329/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace1169\",\"name\":\"HydraNH-Namespace1169\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-12T07:39:41.147Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace1169.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.617Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8946/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace921\",\"name\":\"HydraNH-Namespace921\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-10T19:19:00.23Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace921.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:46.41Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6513/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace2610\",\"name\":\"HydraNH-Namespace2610\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T22:51:43.667Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace2610.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:44.953Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup231/providers/Microsoft.NotificationHubs/namespaces/testNS1085\",\"name\":\"testNS1085\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-08-12T18:20:19.177Z\",\"serviceBusEndpoint\":\"https://testNS1085.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-12T18:20:20.243Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/Default-NotificationHubs-CentralUS/providers/Microsoft.NotificationHubs/namespaces/testbdsss\",\"name\":\"testbdsss\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Free\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2016-05-24T23:04:35.783Z\",\"serviceBusEndpoint\":\"https://testbdsss.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"DM2-001\",\"dataCenter\":\"DM2\",\"updatedAt\":\"2016-08-11T21:18:18.443Z\",\"eventHubEnabled\":true,\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG8399/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3669\",\"name\":\"HydraNH-Namespace3669\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T18:45:14.04Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3669.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.15Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG6550/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7711\",\"name\":\"HydraNH-Namespace7711\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-12T03:51:40.333Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7711.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.917Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG7453/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace6913\",\"name\":\"HydraNH-Namespace6913\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T20:54:40.73Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace6913.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.57Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG2906/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace7137\",\"name\":\"HydraNH-Namespace7137\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\",\"tag3\":\"value3\",\"tag4\":\"value4\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-11T17:42:44.45Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace7137.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":true,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.707Z\",\"namespaceType\":\"NotificationHub\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/NotificationHub-RG3832/providers/Microsoft.NotificationHubs/namespaces/HydraNH-Namespace3788\",\"name\":\"HydraNH-Namespace3788\",\"type\":\"Microsoft.NotificationHubs/namespaces\",\"location\":\"South Central US\",\"kind\":\"NotificationHub\",\"sku\":{\"name\":\"Basic\"},\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"metricId\":null,\"status\":\"Active\",\"createdAt\":\"2015-08-07T23:23:39.56Z\",\"serviceBusEndpoint\":\"https://HydraNH-Namespace3788.servicebus.windows.net:443/\",\"enabled\":true,\"critical\":false,\"scaleUnit\":\"SN1-001\",\"dataCenter\":\"SN1\",\"updatedAt\":\"2016-08-11T21:01:45.16Z\",\"namespaceType\":\"NotificationHub\"}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '48298', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': 'b91f1e95-f6d3-46a6-867d-6457d793e308_M2_M2', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': '26c2f99a-e6fe-47ca-af6c-f04dee889394', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225956Z:26c2f99a-e6fe-47ca-af6c-f04dee889394', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 22:59:56 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622?api-version=2014-09-01', '*') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622\",\"name\":\"testAuth6622\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth6622\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:18:37.3955782Z\",\"modifiedTime\":\"2016-05-18T01:18:37.3955782Z\"}}", { 'cache-control': 'no-cache', +.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630?api-version=2016-03-01', '*') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630\",\"name\":\"testAuth6630\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '619', + 'content-length': '331', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '38de1c66-91a4-4ced-9b21-3004956660f3_M7_M7', + 'x-ms-request-id': '76d0dd11-a3b2-42ae-a364-09993e52739a_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '074359df-731a-4742-bdaa-b1ecfdbbd937', - 'x-ms-routing-request-id': 'WESTUS:20160518T011838Z:074359df-731a-4742-bdaa-b1ecfdbbd937', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '53617a96-2cb7-46a6-8caa-7521462c91ac', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225958Z:53617a96-2cb7-46a6-8caa-7521462c91ac', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:37 GMT', + date: 'Fri, 12 Aug 2016 22:59:58 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622?api-version=2014-09-01', '*') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622\",\"name\":\"testAuth6622\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth6622\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:18:37.3955782Z\",\"modifiedTime\":\"2016-05-18T01:18:37.3955782Z\"}}", { 'cache-control': 'no-cache', +.put('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630?api-version=2016-03-01', '*') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630\",\"name\":\"testAuth6630\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '619', + 'content-length': '331', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '38de1c66-91a4-4ced-9b21-3004956660f3_M7_M7', + 'x-ms-request-id': '76d0dd11-a3b2-42ae-a364-09993e52739a_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '074359df-731a-4742-bdaa-b1ecfdbbd937', - 'x-ms-routing-request-id': 'WESTUS:20160518T011838Z:074359df-731a-4742-bdaa-b1ecfdbbd937', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '53617a96-2cb7-46a6-8caa-7521462c91ac', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225958Z:53617a96-2cb7-46a6-8caa-7521462c91ac', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:37 GMT', + date: 'Fri, 12 Aug 2016 22:59:58 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622\",\"name\":\"testAuth6622\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth6622\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:18:37.3955782Z\",\"modifiedTime\":\"2016-05-18T01:18:37.3955782Z\"}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630\",\"name\":\"testAuth6630\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '619', + 'content-length': '331', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'fcfa1cd5-d87e-470b-a5d3-3ea86a82449a_M6_M6', + 'x-ms-request-id': '2c722bce-da95-412f-930d-cba9932e7890_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': 'e93c5a36-438a-42bf-8641-3d8b625b88fa', - 'x-ms-routing-request-id': 'WESTUS:20160518T011840Z:e93c5a36-438a-42bf-8641-3d8b625b88fa', + 'x-ms-ratelimit-remaining-subscription-reads': '14997', + 'x-ms-correlation-request-id': '0a4c7ec8-ce32-4c06-9dfd-b067c89d097e', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225959Z:0a4c7ec8-ce32-4c06-9dfd-b067c89d097e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:40 GMT', + date: 'Fri, 12 Aug 2016 22:59:58 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622?api-version=2014-09-01') - .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622\",\"name\":\"testAuth6622\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth6622\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:18:37.3955782Z\",\"modifiedTime\":\"2016-05-18T01:18:37.3955782Z\"}}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630?api-version=2016-03-01') + .reply(200, "{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630\",\"name\":\"testAuth6630\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '619', + 'content-length': '331', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'fcfa1cd5-d87e-470b-a5d3-3ea86a82449a_M6_M6', + 'x-ms-request-id': '2c722bce-da95-412f-930d-cba9932e7890_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': 'e93c5a36-438a-42bf-8641-3d8b625b88fa', - 'x-ms-routing-request-id': 'WESTUS:20160518T011840Z:e93c5a36-438a-42bf-8641-3d8b625b88fa', + 'x-ms-ratelimit-remaining-subscription-reads': '14997', + 'x-ms-correlation-request-id': '0a4c7ec8-ce32-4c06-9dfd-b067c89d097e', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225959Z:0a4c7ec8-ce32-4c06-9dfd-b067c89d097e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:40 GMT', + date: 'Fri, 12 Aug 2016 22:59:58 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"RootManageSharedAccessKey\",\"primaryKey\":\"e2kVBW62+Ob6mrIEZoRmoFcMgylwdbfVfcyHPlM0QM4=\",\"secondaryKey\":\"qPMIByOUhv6ffiN1QwiWIecuol8wKPzYmCrIRfX0g9E=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Manage\",\"Send\"],\"createdTime\":\"2016-05-18T01:18:38.1733669Z\",\"modifiedTime\":\"2016-05-18T01:18:38.1733669Z\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622\",\"name\":\"testAuth6622\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth6622\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:18:37.3955782Z\",\"modifiedTime\":\"2016-05-18T01:18:37.3955782Z\"}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630\",\"name\":\"testAuth6630\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}],\"nextLink\":null}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1315', + 'content-length': '726', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '6ce2abb2-0b16-4cf0-ad7e-a44909588138_M2_M2', + 'x-ms-request-id': '6445e602-5d04-4a7f-abde-0831963e2696_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '5348db6c-f173-4040-93c3-e2e169be87f1', - 'x-ms-routing-request-id': 'WESTUS:20160518T011842Z:5348db6c-f173-4040-93c3-e2e169be87f1', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': '6b44db43-aabb-493f-925c-74ad657e0d4d', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225959Z:6b44db43-aabb-493f-925c-74ad657e0d4d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:42 GMT', + date: 'Fri, 12 Aug 2016 22:59:59 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules?api-version=2014-09-01') - .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"RootManageSharedAccessKey\",\"primaryKey\":\"e2kVBW62+Ob6mrIEZoRmoFcMgylwdbfVfcyHPlM0QM4=\",\"secondaryKey\":\"qPMIByOUhv6ffiN1QwiWIecuol8wKPzYmCrIRfX0g9E=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Manage\",\"Send\"],\"createdTime\":\"2016-05-18T01:18:38.1733669Z\",\"modifiedTime\":\"2016-05-18T01:18:38.1733669Z\"}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622\",\"name\":\"testAuth6622\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"keyName\":\"testAuth6622\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"claimType\":\"SharedAccessKey\",\"claimValue\":\"None\",\"rights\":[\"Listen\",\"Send\"],\"createdTime\":\"2016-05-18T01:18:37.3955782Z\",\"modifiedTime\":\"2016-05-18T01:18:37.3955782Z\"}}],\"nextLink\":null}", { 'cache-control': 'no-cache', + .get('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules?api-version=2016-03-01') + .reply(200, "{\"value\":[{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630\",\"name\":\"testAuth6630\",\"type\":\"Microsoft.NotificationHubs/AuthorizationRules\",\"location\":null,\"tags\":null,\"properties\":{\"rights\":[\"Listen\",\"Send\"]}}],\"nextLink\":null}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1315', + 'content-length': '726', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '6ce2abb2-0b16-4cf0-ad7e-a44909588138_M2_M2', + 'x-ms-request-id': '6445e602-5d04-4a7f-abde-0831963e2696_M0_M0', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '5348db6c-f173-4040-93c3-e2e169be87f1', - 'x-ms-routing-request-id': 'WESTUS:20160518T011842Z:5348db6c-f173-4040-93c3-e2e169be87f1', + 'x-ms-ratelimit-remaining-subscription-reads': '14998', + 'x-ms-correlation-request-id': '6b44db43-aabb-493f-925c-74ad657e0d4d', + 'x-ms-routing-request-id': 'WESTUS2:20160812T225959Z:6b44db43-aabb-493f-925c-74ad657e0d4d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:42 GMT', + date: 'Fri, 12 Aug 2016 22:59:59 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622/listKeys?api-version=2014-09-01') - .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns4663.servicebus.windows.net/;SharedAccessKeyName=testAuth6622;SharedAccessKey=IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryConnectionString\":\"Endpoint=sb://testns4663.servicebus.windows.net/;SharedAccessKeyName=testAuth6622;SharedAccessKey=aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"keyName\":\"testAuth6622\"}", { 'cache-control': 'no-cache', + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630/listKeys?api-version=2016-03-01') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=NWT6B76om1+nd5yfmdvh0aOZ4B9KAaRal469cDkVebI=\",\"secondaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"primaryKey\":\"NWT6B76om1+nd5yfmdvh0aOZ4B9KAaRal469cDkVebI=\",\"secondaryKey\":\"UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"keyName\":\"testAuth6630\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '492', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '979f31bc-6209-4afc-994a-5b9407ab67e5_M6_M6', + 'x-ms-request-id': 'ea8c2bcb-fe04-47de-b01c-4a04fb7376aa_M4_M4', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '3d6d9d31-0426-476d-8dce-3cd66403775a', - 'x-ms-routing-request-id': 'WESTUS:20160518T011843Z:3d6d9d31-0426-476d-8dce-3cd66403775a', + 'x-ms-correlation-request-id': '1db20556-b6fa-44a2-8a92-d17a1a94ee14', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230000Z:1db20556-b6fa-44a2-8a92-d17a1a94ee14', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:43 GMT', + date: 'Fri, 12 Aug 2016 22:59:59 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622/listKeys?api-version=2014-09-01') - .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns4663.servicebus.windows.net/;SharedAccessKeyName=testAuth6622;SharedAccessKey=IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryConnectionString\":\"Endpoint=sb://testns4663.servicebus.windows.net/;SharedAccessKeyName=testAuth6622;SharedAccessKey=aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"primaryKey\":\"IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=\",\"secondaryKey\":\"aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=\",\"keyName\":\"testAuth6622\"}", { 'cache-control': 'no-cache', + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630/listKeys?api-version=2016-03-01') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=NWT6B76om1+nd5yfmdvh0aOZ4B9KAaRal469cDkVebI=\",\"secondaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"primaryKey\":\"NWT6B76om1+nd5yfmdvh0aOZ4B9KAaRal469cDkVebI=\",\"secondaryKey\":\"UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"keyName\":\"testAuth6630\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '492', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '979f31bc-6209-4afc-994a-5b9407ab67e5_M6_M6', + 'x-ms-request-id': 'ea8c2bcb-fe04-47de-b01c-4a04fb7376aa_M4_M4', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '3d6d9d31-0426-476d-8dce-3cd66403775a', - 'x-ms-routing-request-id': 'WESTUS:20160518T011843Z:3d6d9d31-0426-476d-8dce-3cd66403775a', + 'x-ms-correlation-request-id': '1db20556-b6fa-44a2-8a92-d17a1a94ee14', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230000Z:1db20556-b6fa-44a2-8a92-d17a1a94ee14', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:43 GMT', + date: 'Fri, 12 Aug 2016 22:59:59 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622?api-version=2014-09-01') - .reply(200, "", { 'cache-control': 'no-cache', + .filteringRequestBody(function (path) { return '*';}) +.post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630/regenerateKeys?api-version=2016-03-01', '*') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=azh9o1EEJsEjIxib25nDXBc2IwCIruzlQyopKXHIkrs=\",\"secondaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"primaryKey\":\"azh9o1EEJsEjIxib25nDXBc2IwCIruzlQyopKXHIkrs=\",\"secondaryKey\":\"UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"keyName\":\"testAuth6630\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '0', + 'content-length': '492', + 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '0cf994be-3ecf-4a29-b859-18195ca77b7b_M7_M7', + 'x-ms-request-id': '81fb62ea-b5e4-480e-9ca7-cf1f9cdebf2e_M1_M1', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': '11937a1b-9494-4432-a457-ac9fa180dfe7', - 'x-ms-routing-request-id': 'WESTUS:20160518T011845Z:11937a1b-9494-4432-a457-ac9fa180dfe7', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'a79301fd-be34-4c29-8025-e7d7eb2b6826', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230002Z:a79301fd-be34-4c29-8025-e7d7eb2b6826', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:44 GMT', + date: 'Fri, 12 Aug 2016 23:00:02 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup4300/providers/Microsoft.NotificationHubs/namespaces/testNS4663/AuthorizationRules/testAuth6622?api-version=2014-09-01') + .filteringRequestBody(function (path) { return '*';}) +.post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630/regenerateKeys?api-version=2016-03-01', '*') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=azh9o1EEJsEjIxib25nDXBc2IwCIruzlQyopKXHIkrs=\",\"secondaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"primaryKey\":\"azh9o1EEJsEjIxib25nDXBc2IwCIruzlQyopKXHIkrs=\",\"secondaryKey\":\"UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"keyName\":\"testAuth6630\"}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '492', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '81fb62ea-b5e4-480e-9ca7-cf1f9cdebf2e_M1_M1', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'a79301fd-be34-4c29-8025-e7d7eb2b6826', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230002Z:a79301fd-be34-4c29-8025-e7d7eb2b6826', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 23:00:02 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('http://management.azure.com:443') + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630/listKeys?api-version=2016-03-01') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=azh9o1EEJsEjIxib25nDXBc2IwCIruzlQyopKXHIkrs=\",\"secondaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"primaryKey\":\"azh9o1EEJsEjIxib25nDXBc2IwCIruzlQyopKXHIkrs=\",\"secondaryKey\":\"UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"keyName\":\"testAuth6630\"}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '492', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': 'd1ee7c2b-6b7b-4c2b-a841-dcf057c52db1_M4_M4', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '983f6339-503e-4291-bc96-c2f0d5b081b1', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230003Z:983f6339-503e-4291-bc96-c2f0d5b081b1', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 23:00:02 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://management.azure.com:443') + .post('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630/listKeys?api-version=2016-03-01') + .reply(200, "{\"primaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=azh9o1EEJsEjIxib25nDXBc2IwCIruzlQyopKXHIkrs=\",\"secondaryConnectionString\":\"Endpoint=sb://testns5114.servicebus.windows.net/;SharedAccessKeyName=testAuth6630;SharedAccessKey=UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"primaryKey\":\"azh9o1EEJsEjIxib25nDXBc2IwCIruzlQyopKXHIkrs=\",\"secondaryKey\":\"UVlhIXJy32Xx8pCpyNDynO1r3mh+b9Ovoy5XCuJ9xlQ=\",\"keyName\":\"testAuth6630\"}", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '492', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': 'd1ee7c2b-6b7b-4c2b-a841-dcf057c52db1_M4_M4', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '983f6339-503e-4291-bc96-c2f0d5b081b1', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230003Z:983f6339-503e-4291-bc96-c2f0d5b081b1', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 23:00:02 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('http://management.azure.com:443') + .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630?api-version=2016-03-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '0cf994be-3ecf-4a29-b859-18195ca77b7b_M7_M7', + 'x-ms-request-id': 'e61b1778-3a0f-4392-b161-dc6bc65f29c6_M1_M1', 'server-sb': 'Service-Bus-Resource-Provider/SN1', server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': '11937a1b-9494-4432-a457-ac9fa180dfe7', - 'x-ms-routing-request-id': 'WESTUS:20160518T011845Z:11937a1b-9494-4432-a457-ac9fa180dfe7', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'e8b269fe-2c45-4399-a3a4-9e437535b50c', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230005Z:e8b269fe-2c45-4399-a3a4-9e437535b50c', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Wed, 18 May 2016 01:18:44 GMT', + date: 'Fri, 12 Aug 2016 23:00:04 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://management.azure.com:443') + .delete('/subscriptions/111c36dc-4047-4c69-acd5-301072ff1fc2/resourceGroups/nodeTestGroup5503/providers/Microsoft.NotificationHubs/namespaces/testNS5114/AuthorizationRules/testAuth6630?api-version=2016-03-01') + .reply(200, "", { 'cache-control': 'no-cache', + pragma: 'no-cache', + 'content-length': '0', + expires: '-1', + 'x-ms-request-id': 'e61b1778-3a0f-4392-b161-dc6bc65f29c6_M1_M1', + 'server-sb': 'Service-Bus-Resource-Provider/SN1', + server: 'Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'e8b269fe-2c45-4399-a3a4-9e437535b50c', + 'x-ms-routing-request-id': 'WESTUS2:20160812T230005Z:e8b269fe-2c45-4399-a3a4-9e437535b50c', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + date: 'Fri, 12 Aug 2016 23:00:04 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/notificationhubsservice-NS-tests/suite.notificationhubsservice-NS-tests.nock.js b/test/recordings/notificationhubsservice-NS-tests/suite.notificationhubsservice-NS-tests.nock.js index 0ea9c0f00..7fc5e0e03 100644 --- a/test/recordings/notificationhubsservice-NS-tests/suite.notificationhubsservice-NS-tests.nock.js +++ b/test/recordings/notificationhubsservice-NS-tests/suite.notificationhubsservice-NS-tests.nock.js @@ -7,4 +7,4 @@ exports.setEnvironment = function() { exports.scopes = []; - exports.randomTestIdsGenerated = function() { return ['nodeTestGroup4300','testNS4663','testAuth6622'];}; \ No newline at end of file + exports.randomTestIdsGenerated = function() { return ['nodeTestGroup5503','testNS5114','testAuth6630'];}; \ No newline at end of file diff --git a/test/recordings/suite-base-tests/Test_Suite_Base_should_properly_record_and_retrieve_mock_variables.nock.js b/test/recordings/suite-base-tests/Test_Suite_Base_should_properly_record_and_retrieve_mock_variables.nock.js index 808cfa0a0..b5134b3a8 100644 --- a/test/recordings/suite-base-tests/Test_Suite_Base_should_properly_record_and_retrieve_mock_variables.nock.js +++ b/test/recordings/suite-base-tests/Test_Suite_Base_should_properly_record_and_retrieve_mock_variables.nock.js @@ -1,7 +1,7 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_SUBSCRIPTION_ID'] = '3d1cd7a8-b035-4563-9288-dbe706cd672e'; + process.env['AZURE_SUBSCRIPTION_ID'] = '111c36dc-4047-4c69-acd5-301072ff1fc2'; }; exports.scopes = [[]]; \ No newline at end of file diff --git a/test/recordings/suite-base-tests/suite.suite-base-tests.nock.js b/test/recordings/suite-base-tests/suite.suite-base-tests.nock.js index 8089651fe..03a5892c6 100644 --- a/test/recordings/suite-base-tests/suite.suite-base-tests.nock.js +++ b/test/recordings/suite-base-tests/suite.suite-base-tests.nock.js @@ -1,7 +1,7 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_SUBSCRIPTION_ID'] = '3d1cd7a8-b035-4563-9288-dbe706cd672e'; + process.env['AZURE_SUBSCRIPTION_ID'] = '111c36dc-4047-4c69-acd5-301072ff1fc2'; }; exports.scopes = []; diff --git a/test/services/notificationHubsManagement/namespace-tests.js b/test/services/notificationHubsManagement/namespace-tests.js index d3c1b7f39..549f9b6f2 100644 --- a/test/services/notificationHubsManagement/namespace-tests.js +++ b/test/services/notificationHubsManagement/namespace-tests.js @@ -27,7 +27,6 @@ var testPrefix = 'notificationhubsservice-NS-tests'; var groupPrefix = 'nodeTestGroup'; var namespacePrefix = 'testNS'; var authPrefix = 'testAuth'; -var namespaceType = 'NotificationHub'; var createdGroups = []; var createdAccounts = []; @@ -43,6 +42,7 @@ var groupName; var namespaceLocation; var createNamespaceParameters; var authRuleParameter; +var regenerateKeyParameter; describe('Notification Hubs Management :', function () { @@ -59,22 +59,18 @@ describe('Notification Hubs Management :', function () { tags: { tag1: 'value1', tag2: 'value2' - }, - properties: { - namespaceType : namespaceType } }; authRuleParameter = { location: namespaceLocation, - properties: { - keyName : authorizationRuleName, - rights : ['Listen', 'Send'], - primaryKey : 'IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=', - secondaryKey : 'aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=', - claimType : 'SharedAccessKey', - claimValue : 'None' - } + name: authorizationRuleName, + rights : ['Listen', 'Send'] + }; + + regenerateKeyParameter = + { + policyKey : 'primary KEY' }; if (suite.isPlayback) { @@ -109,7 +105,7 @@ describe('Notification Hubs Management :', function () { it('CRUD', function (done) { //console.log("Create Namespace : " + namespaceName); - + client.namespaces.createOrUpdate(groupName, namespaceName, createNamespaceParameters, function (err, result, request, response) { should.not.exist(err); should.exist(result); @@ -138,16 +134,16 @@ describe('Notification Hubs Management :', function () { namespaceList.some(function (ns) { return ns.name === namespaceName }).should.be.true; //console.log("Create Namespace Authorization rule : " + authorizationRuleName); + //console.log(authRuleParameter); client.namespaces.createOrUpdateAuthorizationRule(groupName, namespaceName, authorizationRuleName, authRuleParameter, function (err, result, request, response) { should.not.exist(err); should.exist(result); response.statusCode.should.equal(200); var authRule = result; authRule.name.should.equal(authorizationRuleName); - authRule.properties.primaryKey.should.equal(authRuleParameter.properties.primaryKey); - authRule.properties.rights.length.should.be.equal(2); - authRule.properties.rights.indexOf('Listen') > -1; - authRule.properties.rights.indexOf('Send') > -1; + authRule.rights.length.should.be.equal(2); + authRule.rights.indexOf('Listen') > -1; + authRule.rights.indexOf('Send') > -1; //console.log("Get created Namespace Authorization rule"); client.namespaces.getAuthorizationRule(groupName, namespaceName, authorizationRuleName, function (err, result, request, response) { @@ -156,10 +152,9 @@ describe('Notification Hubs Management :', function () { response.statusCode.should.equal(200); var authRule = result; authRule.name.should.equal(authorizationRuleName); - authRule.properties.primaryKey.should.equal(authRuleParameter.properties.primaryKey); - authRule.properties.rights.length.should.be.equal(2); - authRule.properties.rights.indexOf('Listen') > -1; - authRule.properties.rights.indexOf('Send') > -1; + authRule.rights.length.should.be.equal(2); + authRule.rights.indexOf('Listen') > -1; + authRule.rights.indexOf('Send') > -1; //console.log("Get all Namespace Authorizations rules"); client.namespaces.listAuthorizationRules(groupName, namespaceName, authorizationRuleName, function (err, result, request, response) { @@ -176,21 +171,50 @@ describe('Notification Hubs Management :', function () { should.exist(result); response.statusCode.should.equal(200); var authKey = result; - authKey.primaryConnectionString.indexOf(authRuleParameter.properties.primaryKey) > -1; - authKey.secondaryConnectionString.indexOf(authRuleParameter.properties.secondaryKey) > -1; + authKey.primaryConnectionString.indexOf(authKey.primaryKey) > -1; + authKey.secondaryConnectionString.indexOf(authKey.secondaryKey) > -1; - //console.log("Delete Namespace Authorization Rule"); - client.namespaces.deleteAuthorizationRule(groupName, namespaceName, authorizationRuleName, function (err, result, request, response) { + //console.log("Namespace regenerateKey"); + client.namespaces.regenerateKeys(groupName, namespaceName, authorizationRuleName, regenerateKeyParameter, function (err, result, request, response) { should.not.exist(err); + should.exist(result); response.statusCode.should.equal(200); + var authregenerateKey = result; + authregenerateKey.primaryConnectionString.indexOf(authregenerateKey.primaryKey) > -1; + authregenerateKey.secondaryConnectionString.indexOf(authregenerateKey.secondaryKey) > -1; + authregenerateKey.secondaryKey.should.equal(authKey.secondaryKey); + authregenerateKey.primaryKey.should.not.equal(authKey.primaryKey); - //There is a bug in the RP Delete call. Will uncomment this once the fix is in - //console.log("Delete created Namespace"); - //client.namespaces.deleteMethod(groupName, namespaceName, function (err, result, request, response) { - // should.not.exist(err); - // response.statusCode.should.equal(200) || response.statusCode.should.equal(204); - done(); - //}); + //console.log("Namespace listKeys after regenerateKey"); + client.namespaces.listKeys(groupName, namespaceName, authorizationRuleName, function (err, result, request, response) { + should.not.exist(err); + should.exist(result); + response.statusCode.should.equal(200); + var authKeyAfterRegenerate = result; + + authKeyAfterRegenerate.primaryConnectionString.indexOf(authKeyAfterRegenerate.primaryKey) > -1; + authKeyAfterRegenerate.secondaryConnectionString.indexOf(authKeyAfterRegenerate.secondaryKey) > -1; + //A bug in our service. will fix it an uncomment this . Need to add EntityPath everywhere + //authKeyAfterRegenerate.primaryConnectionString.should.equal(authregenerateKey.primaryConnectionString); + //authKeyAfterRegenerate.secondaryConnectionString.should.equal(authregenerateKey.secondaryConnectionString); + authKeyAfterRegenerate.secondaryKey.should.equal(authregenerateKey.secondaryKey); + authKeyAfterRegenerate.primaryKey.should.equal(authregenerateKey.primaryKey); + + //console.log("Delete Namespace Authorization Rule"); + client.namespaces.deleteAuthorizationRule(groupName, namespaceName, authorizationRuleName, function (err, result, request, response) { + should.not.exist(err); + response.statusCode.should.equal(200); + + //There is a bug in the RP Delete call. Will uncomment this once the fix is in + //console.log("Delete created Namespace"); + //client.namespaces.deleteMethod(groupName, namespaceName, function (err, result, request, response) { + //should.not.exist(err); + //response.statusCode.should.equal(200) || response.statusCode.should.equal(204) || response.statusCode.should.equal(202); + done(); + + //}); + }); + }); }); }); }); @@ -214,10 +238,9 @@ describe('Notification Hubs Management :', function () { namespace = result; namespace.name.should.equal(namespaceName); namespace.location.should.equal(namespaceLocation); - namespace.properties.namespaceType.should.equal(namespaceType); - //console.log("State : " + namespace.properties.provisioningState); + //console.log("State : " + namespace.provisioningState); //console.log(namespace); - if (namespace.properties.provisioningState === "Succeeded") + if (namespace.provisioningState === "Succeeded") return callback(null, true); else return IsNamespaceActive(groupName, namespaceName, callback); diff --git a/test/services/notificationHubsManagement/notificationHub-tests.js b/test/services/notificationHubsManagement/notificationHub-tests.js index 0940f2291..ea34fd8d7 100644 --- a/test/services/notificationHubsManagement/notificationHub-tests.js +++ b/test/services/notificationHubsManagement/notificationHub-tests.js @@ -44,6 +44,7 @@ var namespaceLocation; var createNamespaceParameters; var createNotificationHubParameters; var authRuleParameter; +var regenerateKeyParameter; describe('Notification Hubs Management', function () { @@ -61,38 +62,29 @@ describe('Notification Hubs Management', function () { tags: { tag1: 'value1', tag2: 'value2' - }, - properties: { - namespaceType : namespaceType } }; createNotificationHubParameters = { location: namespaceLocation, - properties: { - WnsCredential : { - properties: { - PackageSid : 'ms-app://s-1-15-2-1817505189-427745171-3213743798-2985869298-800724128-1004923984-4143860699', - SecretKey : 'w7TBprR-9tJxn9mUOdK4PPHLCAzSYFhp', - WindowsLiveEndpoint : 'http://pushtestservice.cloudapp.net/LiveID/accesstoken.srf' - } - } + wnsCredential : { + packageSid : 'ms-app://s-1-15-2-1817505189-427745171-3213743798-2985869298-800724128-1004923984-4143860699', + secretKey : 'w7TBprR-9tJxn9mUOdK4PPHLCAzSYFhp', + windowsLiveEndpoint : 'http://pushtestservice.cloudapp.net/LiveID/accesstoken.srf' } }; authRuleParameter = { location: namespaceLocation, - properties: { - keyName : authorizationRuleName, - rights : ['Listen', 'Send'], - primaryKey : 'IR4qH02MB2yXjlekt5fhlgMR9YAoMsXHTkUqarUkATU=', - secondaryKey : 'aVpieJX6Ot7PUnC9N4wUAWbpB6wfX+s893SwXW9WCeQ=', - claimType : 'SharedAccessKey', - claimValue : 'None' - } + name : authorizationRuleName, + rights : ['Listen', 'Send'] }; - + regenerateKeyParameter = + { + policyKey : 'primary KEY' + }; + if (suite.isPlayback) { client.longRunningOperationRetryTimeoutInSeconds = 0; } @@ -181,11 +173,10 @@ describe('Notification Hubs Management', function () { should.exist(result); response.statusCode.should.equal(200); var nhub = result; - - //Uncomment after fixing this bug . - //nhub.properties.WnsCredential.properties.SecretKey.should.equal(createNotificationHubParameters.properties.WnsCredential.properties.SecretKey); - //nhub.properties.WnsCredential.properties.PackageSid.should.equal(createNotificationHubParameters.properties.WnsCredential.properties.PackageSid); - //nhub.properties.WnsCredential.properties.WindowsLiveEndpoint.should.equal(createNotificationHubParameters.properties.WnsCredential.properties.WindowsLiveEndpoint); + + nhub.wnsCredential.secretKey.should.equal(createNotificationHubParameters.wnsCredential.secretKey); + nhub.wnsCredential.packageSid.should.equal(createNotificationHubParameters.wnsCredential.packageSid); + nhub.wnsCredential.windowsLiveEndpoint.should.equal(createNotificationHubParameters.wnsCredential.windowsLiveEndpoint); //console.log("Create Notification Hub Authorization Rules : " + authorizationRuleName); client.notificationHubs.createOrUpdateAuthorizationRule(groupName, namespaceName, notificationHubName, authorizationRuleName, authRuleParameter, function (err, result, request, response) { @@ -194,10 +185,9 @@ describe('Notification Hubs Management', function () { response.statusCode.should.equal(200); var authRule = result; authRule.name.should.equal(authorizationRuleName); - authRule.properties.primaryKey.should.equal(authRuleParameter.properties.primaryKey); - authRule.properties.rights.length.should.be.equal(2); - authRule.properties.rights.indexOf('Listen') > -1; - authRule.properties.rights.indexOf('Send') > -1; + authRule.rights.length.should.be.equal(2); + authRule.rights.indexOf('Listen') > -1; + authRule.rights.indexOf('Send') > -1; //console.log("Get Created Authorization Rules"); client.notificationHubs.getAuthorizationRule(groupName, namespaceName, notificationHubName, authorizationRuleName, function (err, result, request, response) { @@ -206,10 +196,9 @@ describe('Notification Hubs Management', function () { response.statusCode.should.equal(200); var authRule = result; authRule.name.should.equal(authorizationRuleName); - authRule.properties.primaryKey.should.equal(authRuleParameter.properties.primaryKey); - authRule.properties.rights.length.should.be.equal(2); - authRule.properties.rights.indexOf('Listen') > -1; - authRule.properties.rights.indexOf('Send') > -1; + authRule.rights.length.should.be.equal(2); + authRule.rights.indexOf('Listen') > -1; + authRule.rights.indexOf('Send') > -1; //console.log("Get all the Notification Hub Authoirzation Rules"); client.notificationHubs.listAuthorizationRules(groupName, namespaceName, notificationHubName, function (err, result, request, response) { @@ -226,19 +215,47 @@ describe('Notification Hubs Management', function () { should.exist(result); response.statusCode.should.equal(200); var authKey = result; - authKey.primaryConnectionString.indexOf(authRuleParameter.properties.primaryKey) > -1; - authKey.secondaryConnectionString.indexOf(authRuleParameter.properties.secondaryKey) > -1; + authKey.primaryConnectionString.indexOf(authKey.primaryKey) > -1; + authKey.secondaryConnectionString.indexOf(authKey.secondaryKey) > -1; - //console.log("Delete the Created Authorization Rule"); - client.notificationHubs.deleteAuthorizationRule(groupName, namespaceName, notificationHubName, authorizationRuleName, function (err, result, request, response) { + //console.log("NotificationHub regenerateKey"); + client.notificationHubs.regenerateKeys(groupName, namespaceName, notificationHubName, authorizationRuleName, regenerateKeyParameter, function (err, result, request, response) { should.not.exist(err); + should.exist(result); response.statusCode.should.equal(200); + var authregenerateKey = result; + authregenerateKey.primaryConnectionString.indexOf(authregenerateKey.primaryKey) > -1; + authregenerateKey.secondaryConnectionString.indexOf(authregenerateKey.secondaryKey) > -1; + authregenerateKey.secondaryKey.should.equal(authKey.secondaryKey); + authregenerateKey.primaryKey.should.not.equal(authKey.primaryKey); - //console.log("Delete the Created Notification Hub"); - client.notificationHubs.deleteMethod(groupName, namespaceName, notificationHubName, function (err, result, request, response) { + //console.log("NotificationHub listKeys after regenerateKey"); + client.notificationHubs.listKeys(groupName, namespaceName, notificationHubName, authorizationRuleName, function (err, result, request, response) { should.not.exist(err); + should.exist(result); response.statusCode.should.equal(200); - done(); + var authKeyAfterRegenerate = result; + + authKeyAfterRegenerate.primaryConnectionString.indexOf(authKeyAfterRegenerate.primaryKey) > -1; + authKeyAfterRegenerate.secondaryConnectionString.indexOf(authKeyAfterRegenerate.secondaryKey) > -1; + //A bug in our service. will fix it an uncomment this . Need to add EntityPath everywhere + //authKeyAfterRegenerate.primaryConnectionString.should.equal(authregenerateKey.primaryConnectionString); + //authKeyAfterRegenerate.secondaryConnectionString.should.equal(authregenerateKey.secondaryConnectionString); + authKeyAfterRegenerate.secondaryKey.should.equal(authregenerateKey.secondaryKey); + authKeyAfterRegenerate.primaryKey.should.equal(authregenerateKey.primaryKey); + + //console.log("Delete the Created Authorization Rule"); + client.notificationHubs.deleteAuthorizationRule(groupName, namespaceName, notificationHubName, authorizationRuleName, function (err, result, request, response) { + should.not.exist(err); + response.statusCode.should.equal(200); + + //console.log("Delete the Created Notification Hub"); + client.notificationHubs.deleteMethod(groupName, namespaceName, notificationHubName, function (err, result, request, response) { + should.not.exist(err); + response.statusCode.should.equal(200); + done(); + }); + }); }); }); }); @@ -264,10 +281,9 @@ describe('Notification Hubs Management', function () { namespace = result; namespace.name.should.equal(namespaceName); namespace.location.should.equal(namespaceLocation); - namespace.properties.namespaceType.should.equal(namespaceType); - //console.log("State : " + namespace.properties.provisioningState); + //console.log("State : " + namespace.provisioningState); //console.log(namespace); - if (namespace.properties.provisioningState === "Succeeded") + if (namespace.provisioningState === "Succeeded") return callback(null, true); else return IsNamespaceActive(groupName, namespaceName, callback);