From 7168a53201579dfb220af64389495a2e83d6f5ef Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Fri, 11 May 2018 14:26:48 -0700 Subject: [PATCH 1/9] Add suppressions for linting errors. Approved by Gaurav --- .../notificationhubs/resource-manager/readme.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/notificationhubs/resource-manager/readme.md b/specification/notificationhubs/resource-manager/readme.md index 085cc8581171..ef6b97edb0c0 100644 --- a/specification/notificationhubs/resource-manager/readme.md +++ b/specification/notificationhubs/resource-manager/readme.md @@ -24,6 +24,16 @@ To see additional help and options, run: ### Basic Information These are the global settings for the NotificationHubs API. +directive: + - where: + - $.definitions.NamespaceCreateOrUpdateParameters + suppress: + - TrackedResourcePatchOperation + - where: + - $.definitions.NamespaceCreateOrUpdateParameters + suppress: + - TrackedResourceGetOperation + ``` yaml openapi-type: arm tag: package-2017-04 From 01edec5fd7a2a02c2d9855146656bfef4c7f423f Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Mon, 11 Jun 2018 17:44:36 -0700 Subject: [PATCH 2/9] Add debugsend and NH patch operation --- .../NHNameSpaceCheckNameAvailability.json | 3 +- .../NotificationHubDebugSend.json | 25 ++++ .../NotificationHubPatch.json | 31 +++++ .../stable/2017-04-01/notificationhubs.json | 130 +++++++++++++++++- 4 files changed, 185 insertions(+), 4 deletions(-) create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json index 112850de67ad..404417e9d9b4 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json @@ -3,8 +3,7 @@ "api-version": "2017-04-01", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { - "name": "sdk-Namespace-2924", - "location": "West Europe" + "name": "sdk-Namespace-2924" } }, "responses": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json new file mode 100644 index 000000000000..50cbac5d049a --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sdkresourceGroup/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "South Central US", + "tags": null, + "properties": { + "success": 1, + "failure": 0, + "results": null + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json new file mode 100644 index 000000000000..3284cd0a597f --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "sdkresourceGroup", + "notificationHubName": "sdk-notificationHubs-8708", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "properties": { + "properties": { + "maxSizeInMegabytes": 1024, + "maxDeliveryCount": 5, + "enableExpress": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sdkresourceGroup/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "South Central US", + "tags": null, + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + } + } + } \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index 8a2e7b6e6be4..830acdd17efe 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -820,6 +820,64 @@ } } }, + "patch": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubCreate": { + "$ref": "./examples/NotificationHubs/NotificationHubPatch.json" + } + }, + "operationId": "NotificationHubs_Patch", + "description": "Patch a NotificationHub in a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationHubPatchParameters" + }, + "description": "Parameters supplied to patch a NotificationHub Resource." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "NotificationHub is patched", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + } + } + }, "delete": { "tags": [ "NotificationHubs" @@ -916,6 +974,60 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { + "post": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "debugsend": { + "$ref": "./examples/NotificationHubs/NotificationHubDebugSend.json" + } + }, + "operationId": "NotificationHubs_DebugSend", + "description": "test send a push notification", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "type": "string" + }, + "description": "The shared access authorization rule." + } + ], + "responses": { + "201": { + "description": "push send status", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}": { "put": { "tags": [ @@ -1474,8 +1586,7 @@ } }, "required": [ - "name", - "location" + "name" ], "description": "Parameters supplied to the Check Name Availability for Namespace and NotificationHubs." }, @@ -2017,6 +2128,21 @@ ], "description": "Parameters supplied to the CreateOrUpdate NotificationHub operation." }, + "NotificationHubPatchParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NotificationHubProperties", + "description": "Properties of the NotificationHub." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Parameters supplied to the patch NotificationHub operation." + }, "NotificationHubResource": { "properties": { "properties": { From 0238c4239dec40fef6679fd36f8498b82c6157c8 Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Tue, 12 Jun 2018 14:20:51 -0700 Subject: [PATCH 3/9] Fix build error due to missing parameterId --- .../stable/2017-04-01/notificationhubs.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index 830acdd17efe..1346c401b109 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -1016,6 +1016,12 @@ "type": "string" }, "description": "The shared access authorization rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { From b6cd19c06d8bee2ebf7abd9de9b3118ed4f8fd55 Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Tue, 12 Jun 2018 15:01:33 -0700 Subject: [PATCH 4/9] Fix build errors --- .../NotificationHubs/NotificationHubDebugSend.json | 2 +- .../NotificationHubs/NotificationHubPatch.json | 2 -- .../notificationhubs/resource-manager/readme.md | 11 +++-------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json index 50cbac5d049a..058d185e5d5a 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json @@ -7,7 +7,7 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { - "200": { + "201": { "body": { "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sdkresourceGroup/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub", "name": "nh-sdk-hub", diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json index 3284cd0a597f..98e180b22b13 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json @@ -6,11 +6,9 @@ "api-version": "2017-04-01", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "properties": { - "properties": { "maxSizeInMegabytes": 1024, "maxDeliveryCount": 5, "enableExpress": true - } } }, "responses": { diff --git a/specification/notificationhubs/resource-manager/readme.md b/specification/notificationhubs/resource-manager/readme.md index ef6b97edb0c0..92947d05c996 100644 --- a/specification/notificationhubs/resource-manager/readme.md +++ b/specification/notificationhubs/resource-manager/readme.md @@ -24,22 +24,17 @@ To see additional help and options, run: ### Basic Information These are the global settings for the NotificationHubs API. +``` yaml +openapi-type: arm +tag: package-2017-04 directive: - where: - $.definitions.NamespaceCreateOrUpdateParameters suppress: - TrackedResourcePatchOperation - - where: - - $.definitions.NamespaceCreateOrUpdateParameters - suppress: - TrackedResourceGetOperation - -``` yaml -openapi-type: arm -tag: package-2017-04 ``` - ### Tag: package-2017-04 These settings apply only when `--tag=package-2017-04` is specified on the command line. From 2f2ca999f5033c50ea6ad7ce9a493b9d1bd5c993 Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Tue, 12 Jun 2018 15:17:53 -0700 Subject: [PATCH 5/9] Fix more errors --- .../examples/NotificationHubs/NotificationHubPatch.json | 4 +++- .../stable/2017-04-01/notificationhubs.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json index 98e180b22b13..8901c4bb0389 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json @@ -5,10 +5,12 @@ "notificationHubName": "sdk-notificationHubs-8708", "api-version": "2017-04-01", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "properties": { + "parameters": { + "properties": { "maxSizeInMegabytes": 1024, "maxDeliveryCount": 5, "enableExpress": true + } } }, "responses": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index 1346c401b109..b7696c101d68 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -825,7 +825,7 @@ "NotificationHubs" ], "x-ms-examples": { - "notificationhubCreate": { + "notificationhubPatch": { "$ref": "./examples/NotificationHubs/NotificationHubPatch.json" } }, @@ -856,7 +856,7 @@ { "name": "parameters", "in": "body", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/NotificationHubPatchParameters" }, From 3b57f480cb371a58ae1c0feb24e6a0270c671acd Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Tue, 12 Jun 2018 15:46:04 -0700 Subject: [PATCH 6/9] Fix build errors due to mismatch parameters --- .../NotificationHubPatch.json | 5 --- .../stable/2017-04-01/notificationhubs.json | 34 ++++++++++++++++++- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json index 8901c4bb0389..fddb1ce919ef 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json @@ -6,11 +6,6 @@ "api-version": "2017-04-01", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { - "properties": { - "maxSizeInMegabytes": 1024, - "maxDeliveryCount": 5, - "enableExpress": true - } } }, "responses": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index b7696c101d68..1d7efd3cfed7 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -1028,7 +1028,7 @@ "201": { "description": "push send status", "schema": { - "$ref": "#/definitions/NotificationHubResource" + "$ref": "#/definitions/DebugSendResponse" } } } @@ -2164,6 +2164,21 @@ ], "description": "Description of a NotificationHub Resource." }, + "DebugSendResponse": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DebugSendResult", + "description": "Properties of the NotificationHub." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of a NotificationHub Resource." + }, "PnsCredentialsResource": { "properties": { "properties": { @@ -2268,6 +2283,23 @@ }, "x-ms-azure-resource": true }, + "DebugSendResult": { + "properties": { + "success": { + "type": "number", + "description": "successful send" + }, + "failure": { + "type": "number", + "description": "send failure" + }, + "results": { + "type": "string", + "description": "actual failure description" + } + }, + "x-ms-azure-resource": true + }, "Sku": { "properties": { "name": { From edb81a4b9052ef17263836b0b079b7204c6a33ce Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Tue, 12 Jun 2018 16:15:30 -0700 Subject: [PATCH 7/9] Fix error with missing parameters value for DebugSend --- .../stable/2017-04-01/notificationhubs.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index 1d7efd3cfed7..c9c4f17baf49 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -1011,11 +1011,11 @@ { "name": "parameters", "in": "body", - "required": true, + "required": false, "schema": { "type": "string" }, - "description": "The shared access authorization rule." + "description": "Debug send message payload" }, { "$ref": "#/parameters/ApiVersionParameter" From 3e947825fd1f50e39862de452aa599a4e4bc74b1 Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Tue, 12 Jun 2018 16:40:41 -0700 Subject: [PATCH 8/9] Change DebugSendResult from string to object --- .../stable/2017-04-01/notificationhubs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index c9c4f17baf49..70b1c8f6db1a 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -2294,7 +2294,7 @@ "description": "send failure" }, "results": { - "type": "string", + "type": "object", "description": "actual failure description" } }, From 65b541d42b26f877d8ec658d93e103417c2db181 Mon Sep 17 00:00:00 2001 From: Loc Phan Date: Tue, 12 Jun 2018 17:24:19 -0700 Subject: [PATCH 9/9] Fix DebugSend build errors --- .../NotificationHubs/NotificationHubDebugSend.json | 7 ++++++- .../stable/2017-04-01/notificationhubs.json | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json index 058d185e5d5a..938171fc063c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json @@ -4,7 +4,12 @@ "resourceGroupName": "5ktrial", "notificationHubName": "nh-sdk-hub", "api-version": "2017-04-01", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "data": { + "message": "Hello" + } + } }, "responses": { "201": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index 70b1c8f6db1a..4b324fbb5659 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -1013,9 +1013,9 @@ "in": "body", "required": false, "schema": { - "type": "string" + "$ref": "#/definitions/DebugSendParameters" }, - "description": "Debug send message payload" + "description": "Debug send parameters" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -2149,6 +2149,10 @@ ], "description": "Parameters supplied to the patch NotificationHub operation." }, + "DebugSendParameters": { + "description": "Debug Send payload", + "type": "object" + }, "NotificationHubResource": { "properties": { "properties": {