From d0a2469481e77c8977165328d02a4419f6ed4eb5 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 25 Apr 2023 20:48:13 +0200 Subject: [PATCH 01/73] Adding initial swagger and examples for Notification Hubs api version 2023-01-01-preview --- .../NHNameSpaceAuthorizationRuleCreate.json | 33 + .../NHNameSpaceAuthorizationRuleDelete.json | 13 + .../NHNameSpaceAuthorizationRuleGet.json | 34 + .../NHNameSpaceAuthorizationRuleListAll.json | 39 + .../NHNameSpaceAuthorizationRuleListKey.json | 20 + ...meSpaceAuthorizationRuleRegenerateKey.json | 23 + .../NHNameSpaceAuthorizationRuleUpdate.json | 39 + .../NHNameSpaceCheckNameAvailability.json | 21 + .../Namespaces/NHNameSpaceCreate.json | 67 + .../Namespaces/NHNameSpaceDelete.json | 13 + .../examples/Namespaces/NHNameSpaceGet.json | 35 + .../examples/Namespaces/NHNameSpaceList.json | 773 +++ .../NHNameSpaceListByResourceGroup.json | 36 + .../Namespaces/NHNameSpaceUpdate.json | 41 + ...otificationHubAuthorizationRuleCreate.json | 41 + ...otificationHubAuthorizationRuleDelete.json | 14 + .../NotificationHubAuthorizationRuleGet.json | 33 + ...tificationHubAuthorizationRuleListAll.json | 57 + ...tificationHubAuthorizationRuleListKey.json | 21 + ...tionHubAuthorizationRuleRegenerateKey.json | 24 + ...otificationHubAuthorizationRuleUpdate.json | 40 + .../NotificationHubCheckNameAvailability.json | 24 + .../NotificationHubCreate.json | 41 + .../NotificationHubDebugSend.json | 30 + .../NotificationHubDelete.json | 12 + .../NotificationHubs/NotificationHubGet.json | 24 + .../NotificationHubListByNameSpace.json | 28 + .../NotificationHubPatch.json | 25 + .../NotificationHubPnsCredentials.json | 27 + .../NotificationHubUpdate.json | 31 + .../2023-01-01-preview/notificationhubs.json | 4162 +++++++++++++++++ 31 files changed, 5821 insertions(+) create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDelete.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json new file mode 100644 index 000000000000..5d4528a86397 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "sdk-AuthRules-1788", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "location": "West Europe", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-6914/AuthorizationRules/sdk-AuthRules-1788", + "name": "sdk-AuthRules-1788", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json new file mode 100644 index 000000000000..d6c6ba08861f --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json new file mode 100644 index 000000000000..08c16411616e --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "location": "South Central US", + "tags": null, + "properties": { + "keyName": "RootManageSharedAccessKey", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen", + "Manage", + "Send" + ], + "createdTime": "2018-05-02T18:24:51.0690674Z", + "modifiedTime": "2018-05-02T18:24:51.0690674Z" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json new file mode 100644 index 000000000000..5ff7803692a5 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "location": null, + "tags": null, + "properties": { + "keyName": "RootManageSharedAccessKey", + "primaryKey": "", + "secondaryKey": "", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen", + "Manage", + "Send" + ], + "createdTime": "2018-05-02T18:24:51.0690674Z", + "modifiedTime": "2018-05-02T18:31:28.5201555Z", + "revision": 1 + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json new file mode 100644 index 000000000000..907d628d2600 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "RootManageSharedAccessKey" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json new file mode 100644 index 000000000000..33644123a735 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "policyKey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "RootManageSharedAccessKey" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json new file mode 100644 index 000000000000..e883a59673da --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "MyManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": { + "rights": [ + "Listen" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/MyManageSharedAccessKey", + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "location": null, + "tags": null, + "properties": { + "keyName": "MyManageSharedAccessKey", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T18:24:51.0690674Z", + "modifiedTime": "2018-05-02T18:24:51.0690674Z" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json new file mode 100644 index 000000000000..a0a5d9175078 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "name": "sdk-Namespace-2924" + } + }, + "responses": { + "200": { + "body": { + "isAvailiable": false, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/CheckNamespaceAvailability", + "name": "mytestnamespace", + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "location": "West Europe", + "tags": null + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json new file mode 100644 index 000000000000..43be236dffb3 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", + "createdAt": "2017-05-25T22:26:36.76Z", + "updatedAt": "2017-05-25T22:26:36.76Z", + "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + } + }, + "201": { + "body": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", + "createdAt": "2017-05-25T22:26:36.76Z", + "updatedAt": "2017-05-25T22:26:36.76Z", + "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json new file mode 100644 index 000000000000..9877b11bc106 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json new file mode 100644 index 000000000000..7240a065d14f --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "location": "South Central US", + "sku": { + "name": "Basic" + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": null, + "status": "Active", + "createdAt": "2018-05-02T00:44:56.58Z", + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "enabled": true, + "critical": false, + "scaleUnit": "SN1-001", + "dataCenter": "SN1", + "updatedAt": "2018-05-02T01:02:19.79Z", + "namespaceType": "NotificationHub" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json new file mode 100644 index 000000000000..839ad0c04980 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json @@ -0,0 +1,773 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20", + "name": "NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-91f08e47-2b04-4943-b0cd-a5fb02b88f20", + "createdAt": "2016-08-23T02:40:17.27Z", + "updatedAt": "2017-02-11T07:15:30.78Z", + "serviceBusEndpoint": "https://NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-41dc63f4-0b08-4029-b3ef-535a131bfa65", + "name": "NS-41dc63f4-0b08-4029-b3ef-535a131bfa65", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-41dc63f4-0b08-4029-b3ef-535a131bfa65", + "createdAt": "2016-08-23T03:50:38.98Z", + "updatedAt": "2017-02-11T10:42:58.003Z", + "serviceBusEndpoint": "https://NS-41dc63f4-0b08-4029-b3ef-535a131bfa65.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-df52cf51-e831-4bf2-bd92-e9885f68a996", + "name": "NS-df52cf51-e831-4bf2-bd92-e9885f68a996", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-df52cf51-e831-4bf2-bd92-e9885f68a996", + "createdAt": "2016-09-16T01:17:54.997Z", + "updatedAt": "2017-02-11T06:44:39.737Z", + "serviceBusEndpoint": "https://NS-df52cf51-e831-4bf2-bd92-e9885f68a996.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sadfsadfsadf/providers/Microsoft.NotificationHubs/namespaces/rrama-ns2", + "name": "rrama-ns2", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-ns2", + "createdAt": "2016-08-23T04:14:00.013Z", + "updatedAt": "2017-02-03T22:53:32.927Z", + "serviceBusEndpoint": "https://rrama-ns2.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-20e57600-29d0-4035-ac85-74f4c54dcda1", + "name": "NS-20e57600-29d0-4035-ac85-74f4c54dcda1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-20e57600-29d0-4035-ac85-74f4c54dcda1", + "createdAt": "2016-08-23T03:30:49.16Z", + "updatedAt": "2017-02-11T04:17:58.483Z", + "serviceBusEndpoint": "https://NS-20e57600-29d0-4035-ac85-74f4c54dcda1.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-3e538a1a-58fb-4315-b2ce-76f5c944114c", + "name": "NS-3e538a1a-58fb-4315-b2ce-76f5c944114c", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-3e538a1a-58fb-4315-b2ce-76f5c944114c", + "createdAt": "2016-09-16T18:07:30.05Z", + "updatedAt": "2017-02-11T10:42:57.747Z", + "serviceBusEndpoint": "https://NS-3e538a1a-58fb-4315-b2ce-76f5c944114c.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", + "name": "NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", + "createdAt": "2016-09-16T01:01:58.73Z", + "updatedAt": "2017-02-11T03:02:59.8Z", + "serviceBusEndpoint": "https://NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", + "name": "NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", + "createdAt": "2016-08-23T03:22:45.327Z", + "updatedAt": "2017-02-11T06:08:01.207Z", + "serviceBusEndpoint": "https://NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-c05e9df3-7737-44ee-a321-15f6e0545b97", + "name": "NS-c05e9df3-7737-44ee-a321-15f6e0545b97", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-c05e9df3-7737-44ee-a321-15f6e0545b97", + "createdAt": "2016-08-05T03:29:19.75Z", + "updatedAt": "2017-02-11T08:10:35.527Z", + "serviceBusEndpoint": "https://NS-c05e9df3-7737-44ee-a321-15f6e0545b97.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-dcb4152c-231b-4c16-a683-07cc6b38fa46", + "name": "NS-dcb4152c-231b-4c16-a683-07cc6b38fa46", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-dcb4152c-231b-4c16-a683-07cc6b38fa46", + "createdAt": "2016-08-05T03:34:35.363Z", + "updatedAt": "2017-02-11T05:33:00.957Z", + "serviceBusEndpoint": "https://NS-dcb4152c-231b-4c16-a683-07cc6b38fa46.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-f501f5e6-1f24-439b-8982-9af665156d40", + "name": "NS-f501f5e6-1f24-439b-8982-9af665156d40", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-f501f5e6-1f24-439b-8982-9af665156d40", + "createdAt": "2016-09-16T01:25:55.707Z", + "updatedAt": "2017-02-11T07:42:59.687Z", + "serviceBusEndpoint": "https://NS-f501f5e6-1f24-439b-8982-9af665156d40.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", + "name": "NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", + "createdAt": "2016-08-23T02:32:08.227Z", + "updatedAt": "2017-02-11T06:32:57.77Z", + "serviceBusEndpoint": "https://NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", + "name": "NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", + "createdAt": "2016-09-16T00:54:05.103Z", + "updatedAt": "2017-02-11T10:43:50.313Z", + "serviceBusEndpoint": "https://NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-6520cc09-01ac-40a3-bc09-c5c431116e92", + "name": "NS-6520cc09-01ac-40a3-bc09-c5c431116e92", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-6520cc09-01ac-40a3-bc09-c5c431116e92", + "createdAt": "2016-09-16T01:49:59.243Z", + "updatedAt": "2017-02-11T08:15:36.95Z", + "serviceBusEndpoint": "https://NS-6520cc09-01ac-40a3-bc09-c5c431116e92.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-bfba6d5c-a425-42d9-85db-0f4da770e29a", + "name": "NS-bfba6d5c-a425-42d9-85db-0f4da770e29a", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-bfba6d5c-a425-42d9-85db-0f4da770e29a", + "createdAt": "2016-08-05T03:23:32.083Z", + "updatedAt": "2017-02-11T09:02:57.433Z", + "serviceBusEndpoint": "https://NS-bfba6d5c-a425-42d9-85db-0f4da770e29a.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-43b136b4-8716-40b2-97c5-0d77cac0062c", + "name": "NS-43b136b4-8716-40b2-97c5-0d77cac0062c", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-43b136b4-8716-40b2-97c5-0d77cac0062c", + "createdAt": "2016-08-23T03:14:50.577Z", + "updatedAt": "2017-02-11T09:23:01.067Z", + "serviceBusEndpoint": "https://NS-43b136b4-8716-40b2-97c5-0d77cac0062c.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-7c0443de-5f88-450c-b574-83f60a097dd1", + "name": "NS-7c0443de-5f88-450c-b574-83f60a097dd1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-7c0443de-5f88-450c-b574-83f60a097dd1", + "createdAt": "2016-08-23T04:07:15.397Z", + "updatedAt": "2017-02-11T04:03:03.097Z", + "serviceBusEndpoint": "https://NS-7c0443de-5f88-450c-b574-83f60a097dd1.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-62dd7753-a5f9-42fd-a354-ca38a4505d69", + "name": "NS-62dd7753-a5f9-42fd-a354-ca38a4505d69", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-62dd7753-a5f9-42fd-a354-ca38a4505d69", + "createdAt": "2016-09-16T01:33:50.45Z", + "updatedAt": "2017-02-11T05:35:33.053Z", + "serviceBusEndpoint": "https://NS-62dd7753-a5f9-42fd-a354-ca38a4505d69.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-ae18a18c-97ab-4089-965d-8acbf4794091", + "name": "NS-ae18a18c-97ab-4089-965d-8acbf4794091", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-ae18a18c-97ab-4089-965d-8acbf4794091", + "createdAt": "2016-08-23T02:43:36.517Z", + "updatedAt": "2017-02-11T12:40:30.587Z", + "serviceBusEndpoint": "https://NS-ae18a18c-97ab-4089-965d-8acbf4794091.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", + "name": "NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", + "createdAt": "2016-09-16T00:46:03.773Z", + "updatedAt": "2017-02-11T04:43:54.56Z", + "serviceBusEndpoint": "https://NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", + "name": "NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", + "createdAt": "2016-08-23T03:59:12.1Z", + "updatedAt": "2017-02-11T06:33:52.23Z", + "serviceBusEndpoint": "https://NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-d9337efd-9b27-454c-b2a5-dcfea56920d9", + "name": "NS-d9337efd-9b27-454c-b2a5-dcfea56920d9", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-d9337efd-9b27-454c-b2a5-dcfea56920d9", + "createdAt": "2016-08-05T03:45:09.27Z", + "updatedAt": "2017-02-11T06:20:31.863Z", + "serviceBusEndpoint": "https://NS-d9337efd-9b27-454c-b2a5-dcfea56920d9.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a", + "name": "NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-ad5ae732-abea-4e62-9de0-c90de0ddec0a", + "createdAt": "2016-08-23T02:34:36.447Z", + "updatedAt": "2017-02-11T06:15:31.607Z", + "serviceBusEndpoint": "https://NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-d447fb03-c7da-40fe-b5eb-14f36888837b", + "name": "NS-d447fb03-c7da-40fe-b5eb-14f36888837b", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-d447fb03-c7da-40fe-b5eb-14f36888837b", + "createdAt": "2016-08-05T00:53:46.697Z", + "updatedAt": "2017-02-11T11:09:41.26Z", + "serviceBusEndpoint": "https://NS-d447fb03-c7da-40fe-b5eb-14f36888837b.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/RapscallionResources/providers/Microsoft.NotificationHubs/namespaces/ReproSB", + "name": "ReproSB", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:reprosb", + "createdAt": "2017-02-27T19:29:34.523Z", + "updatedAt": "2017-02-27T19:29:58.64Z", + "serviceBusEndpoint": "https://ReproSB.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-4c90097f-19a8-42e7-bb3c-4ac088994719", + "name": "NS-4c90097f-19a8-42e7-bb3c-4ac088994719", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-4c90097f-19a8-42e7-bb3c-4ac088994719", + "createdAt": "2016-09-16T17:35:32.61Z", + "updatedAt": "2017-02-11T09:13:52.27Z", + "serviceBusEndpoint": "https://NS-4c90097f-19a8-42e7-bb3c-4ac088994719.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-1-23-17", + "name": "rrama-1-23-17", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-1-23-17", + "createdAt": "2017-01-23T22:54:40.907Z", + "updatedAt": "2017-02-04T00:53:28.777Z", + "serviceBusEndpoint": "https://rrama-1-23-17.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", + "name": "NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", + "createdAt": "2016-09-16T17:43:25.71Z", + "updatedAt": "2017-02-11T11:05:31.89Z", + "serviceBusEndpoint": "https://NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-be903820-3533-46e8-90e4-72c132411848", + "name": "NS-be903820-3533-46e8-90e4-72c132411848", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-be903820-3533-46e8-90e4-72c132411848", + "createdAt": "2016-08-05T03:24:01.923Z", + "updatedAt": "2017-02-11T10:09:42.513Z", + "serviceBusEndpoint": "https://NS-be903820-3533-46e8-90e4-72c132411848.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-namespace1", + "name": "rrama-namespace1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-namespace1", + "createdAt": "2016-08-05T00:47:22.963Z", + "updatedAt": "2016-08-05T00:47:27.297Z", + "serviceBusEndpoint": "https://rrama-namespace1.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9", + "name": "NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-a3c38e9b-32a3-4c51-85d7-263150a8dda9", + "createdAt": "2016-09-16T00:38:02.517Z", + "updatedAt": "2017-02-11T05:03:55.96Z", + "serviceBusEndpoint": "https://NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", + "name": "NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", + "createdAt": "2016-08-23T03:42:40.01Z", + "updatedAt": "2017-02-11T06:33:02.363Z", + "serviceBusEndpoint": "https://NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", + "name": "NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", + "createdAt": "2016-08-05T04:28:10.71Z", + "updatedAt": "2017-02-11T08:43:51.587Z", + "serviceBusEndpoint": "https://NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", + "createdAt": "2017-05-25T22:26:36.76Z", + "updatedAt": "2017-05-25T22:26:59.35Z", + "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-sb1", + "name": "rrama-sb1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-sb1", + "createdAt": "2017-05-01T21:47:34.903Z", + "updatedAt": "2017-05-02T02:10:03.083Z", + "serviceBusEndpoint": "https://rrama-sb1.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/RapscallionResources/providers/Microsoft.NotificationHubs/namespaces/WhackWhack", + "name": "WhackWhack", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:whackwhack", + "createdAt": "2016-10-10T23:39:01.347Z", + "updatedAt": "2017-02-04T00:56:32.687Z", + "serviceBusEndpoint": "https://WhackWhack.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", + "name": "NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", + "createdAt": "2016-09-16T17:51:27.73Z", + "updatedAt": "2017-02-11T08:19:43.383Z", + "serviceBusEndpoint": "https://NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", + "name": "NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", + "createdAt": "2016-08-05T01:14:25.613Z", + "updatedAt": "2017-02-11T12:33:01.727Z", + "serviceBusEndpoint": "https://NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo1", + "name": "bn3-rrama-foo1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "East US 2", + "tags": {}, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo1", + "createdAt": "2017-04-28T23:54:26.927Z", + "updatedAt": "2017-04-28T23:54:26.927Z", + "serviceBusEndpoint": "https://bn3-rrama-foo1.servicebus.int7.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo3", + "name": "bn3-rrama-foo3", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "East US 2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo3", + "createdAt": "2017-04-29T00:24:09.907Z", + "updatedAt": "2017-04-29T00:24:33.233Z", + "serviceBusEndpoint": "https://bn3-rrama-foo3.servicebus.int7.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo2", + "name": "bn3-rrama-foo2", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "East US 2", + "tags": {}, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo2", + "createdAt": "2017-04-28T23:57:40.82Z", + "updatedAt": "2017-04-28T23:57:40.82Z", + "serviceBusEndpoint": "https://bn3-rrama-foo2.servicebus.int7.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/db3-rrama-foo2", + "name": "db3-rrama-foo2", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "North Europe", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:db3-rrama-foo2", + "createdAt": "2017-04-29T00:10:43.463Z", + "updatedAt": "2017-04-29T00:11:09.133Z", + "serviceBusEndpoint": "https://db3-rrama-foo2.servicebus.int7.windows-int.net:443/" + } + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json new file mode 100644 index 000000000000..9e0289b37616 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", + "createdAt": "2017-05-25T22:26:36.76Z", + "updatedAt": "2017-05-25T22:26:59.35Z", + "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json new file mode 100644 index 000000000000..12e083e3a324 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-3285", + "name": "sdk-Namespace-3285", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag3": "value3", + "tag4": "value4" + }, + "properties": { + "provisioningState": "Updating", + "createdAt": "2017-05-25T23:07:58.17Z", + "serviceBusEndpoint": "https://sdk-Namespace-3285.servicebus.windows-int.net:443/" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json new file mode 100644 index 000000000000..13fd9d2fb28e --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": "West Europe", + "tags": null, + "properties": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json new file mode 100644 index 000000000000..05f1199a71ce --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json new file mode 100644 index 000000000000..e9d847191449 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": "West Europe", + "tags": null, + "properties": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json new file mode 100644 index 000000000000..81701e01c8a6 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": "West Europe", + "tags": null, + "properties": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + }, + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultFullSharedAccessSignature", + "name": "DefaultFullSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": "West Europe", + "tags": null, + "properties": { + "keyName": "DefaultFullSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen", + "Manage", + "Send" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json new file mode 100644 index 000000000000..8e8546da690d --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "sdk-AuthRules-5800", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryConnectionString": "Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "sdk-AuthRules-5800" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json new file mode 100644 index 000000000000..7e9a5c4aae22 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "policyKey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=#################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=#################################", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "keyName": "DefaultListenSharedAccessSignature" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json new file mode 100644 index 000000000000..90a539675fc7 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": { + "rights": [ + "Listen" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": null, + "tags": null, + "properties": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json new file mode 100644 index 000000000000..bbd012648a6a --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "namespaceName": "locp-newns", + "resourceGroupName": "5ktrial", + "parameters": { + "name": "sdktest", + "location": "West Europe" + } + }, + "responses": { + "200": { + "body": { + "isAvailiable": true, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/locp-newns/CheckNotificationHubAvailability", + "name": "sdktest", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/checkNotificationHubAvailability", + "location": "West Europe", + "tags": null + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json new file mode 100644 index 000000000000..d69007fa7297 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "location": "eastus", + "properties": {} + } + }, + "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": "eastus", + "tags": null, + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + }, + "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", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "eastus", + "tags": null, + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json new file mode 100644 index 000000000000..d3ef1273923b --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "data": { + "message": "Hello" + } + } + }, + "responses": { + "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", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "South Central US", + "tags": null, + "properties": { + "success": 1, + "failure": 0, + "results": null + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDelete.json new file mode 100644 index 000000000000..375ad404cb25 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json new file mode 100644 index 000000000000..96a0bfbe6c69 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "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": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json new file mode 100644 index 000000000000..34252f635b82 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/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": [] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json new file mode 100644 index 000000000000..73fb23c0e022 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "sdkresourceGroup", + "notificationHubName": "sdk-notificationHubs-8708", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": {} + }, + "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": [] + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json new file mode 100644 index 000000000000..9225bda726e8 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub/pnsCredentials", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials", + "location": "West Europe", + "tags": null, + "properties": { + "mpnsCredential": { + "properties": { + "thumbprint": "#################################" + } + } + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json new file mode 100644 index 000000000000..3904bc88f204 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "sdkresourceGroup", + "notificationHubName": "sdk-notificationHubs-8708", + "api-version": "2023-01-01-preview", + "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": [] + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json new file mode 100644 index 000000000000..3e92668cca00 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -0,0 +1,4162 @@ +{ + "swagger": "2.0", + "info": { + "title": "NotificationHubs RP Client", + "description": "Microsoft Notification Hubs Resource Provider REST API.", + "version": "2023-01-01-preview" + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Checks the availability of the given notificationHub in a namespace.", + "operationId": "NotificationHubs_CheckNotificationHubAvailability", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "description": "Request content.", + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { + "get": { + "tags": [ + "Hubs" + ], + "summary": "Gets the notification hub.", + "operationId": "NotificationHubs_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "put": { + "tags": [ + "Hubs" + ], + "summary": "Creates/Update a NotificationHub in a namespace.", + "operationId": "NotificationHubs_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "patch": { + "tags": [ + "Hubs" + ], + "summary": "Patch a NotificationHub in a namespace.", + "operationId": "NotificationHubs_Patch", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "delete": { + "tags": [ + "Hubs" + ], + "summary": "Deletes a notification hub associated with a namespace.", + "operationId": "NotificationHubs_Delete", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "description": "Added when available. Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { + "get": { + "tags": [ + "Hubs" + ], + "summary": "Lists the notification hubs associated with a namespace.", + "operationId": "NotificationHubs_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "$skipToken", + "description": "Continuation token", + "type": "string" + }, + { + "in": "query", + "name": "$count", + "description": "Page size", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NotificationHubListResult" + } + }, + "default": { + "description": "Error code with reason." + } + }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Test send a push notification.", + "operationId": "NotificationHubs_DebugSend", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/DebugSendResponse" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}": { + "put": { + "tags": [ + "Hubs" + ], + "summary": "Creates/Updates an authorization rule for a NotificationHub", + "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "description": "Authorization Rule Name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "description": "The shared access authorization rule.", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "delete": { + "tags": [ + "Hubs" + ], + "summary": "Deletes a notificationHub authorization rule", + "operationId": "NotificationHubs_DeleteAuthorizationRule", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "description": "Authorization Rule Name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error code with reason." + } + } + }, + "get": { + "tags": [ + "Hubs" + ], + "summary": "Gets an authorization rule for a NotificationHub by name.", + "operationId": "NotificationHubs_GetAuthorizationRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "description": "Authorization Rule Name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "post": { + "tags": [ + "Hubs" + ], + "summary": "Gets an authorization rule for a NotificationHub by name.", + "operationId": "NotificationHubs_GetAuthorizationRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "description": "Authorization Rule Name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules": { + "get": { + "tags": [ + "Hubs" + ], + "summary": "Gets the authorization rules for a NotificationHub.", + "operationId": "NotificationHubs_ListAuthorizationRules", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + }, + "default": { + "description": "Error code with reason." + } + }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Gets the Primary and Secondary ConnectionStrings to the NotificationHub", + "operationId": "NotificationHubs_ListKeys", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "description": "Authorization Rule Name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule", + "operationId": "NotificationHubs_RegenerateKeys", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "description": "Authorization Rule Name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "description": "Parameters supplied to regenerate the NotificationHub Authorization Rule Key.", + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Lists the PNS Credentials associated with a notification hub.", + "operationId": "NotificationHubs_GetPnsCredentials", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "The name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "The namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "notificationHubName", + "description": "The notification hub name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PnsCredentialsResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/moveResources": { + "post": { + "tags": [ + "Move" + ], + "summary": "Moves resources from the resource group to a target resource group.", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "parameters": [ + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MoveResourcesRequest" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { + "post": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_CheckAvailability", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNameAvailability": { + "post": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_CheckAvailability", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "put": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "patch": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_Patch", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "delete": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_Delete", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListAll", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + }, + { + "in": "query", + "name": "$count", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + }, + "default": { + "description": "Error code with reason." + } + }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + }, + { + "in": "query", + "name": "$count", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + }, + "default": { + "description": "Error code with reason." + } + }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}": { + "put": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "delete": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_DeleteAuthorizationRule", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error code with reason." + } + } + }, + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_GetAuthorizationRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + }, + "post": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_GetAuthorizationRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListAuthorizationRules", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + }, + "default": { + "description": "Error code with reason." + } + }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListKeys", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "Error code with reason." + } + }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_RegenerateKeys", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "authorizationRuleName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials": { + "post": { + "tags": [ + "Namespaces" + ], + "summary": "Lists the PNS credentials associated with a namespace.", + "operationId": "Namespaces_GetPnsCredentials", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Azure Subscription Id.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Resource group name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "Namespace name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PnsCredentials" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/providers/Microsoft.NotificationHubs/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error code with reason." + } + }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/operationsStatuses/{operationId}": { + "get": { + "tags": [ + "Operations" + ], + "summary": "API for operation statuses, as defined by the Azure-AsyncOperation header spec\r\nhttps://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.", + "operationId": "OperationStatus", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "operationId", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationStatusResult" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/operationResults/{operationId}": { + "get": { + "tags": [ + "Operations" + ], + "summary": "API for operation results, as defined by the Location header spec\r\nhttps://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.", + "operationId": "OperationStatus", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "operationId", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupId}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/operations/{operationId}": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "NamespaceOperationStatus", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "operationId", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationStatusResult" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupId}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnectionProxies/{proxyName}/operationStatus/{operationId}": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "NamespaceOperationStatus", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "proxyName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "operationId", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationStatusResult" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupId}/moveResources/operationStatus/{operationId}": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ResourceMoveOperationStatus", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "proxyName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "operationId", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "x-ms-client-principal-name", + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationStatusResult" + } + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "put": { + "tags": [ + "PrivateLink" + ], + "summary": "Approves or rejects Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", + "description": "This is an asynchronous API, which sets the Azure-AsyncOperation header. \r\nCaller can use URI from that header to check status of the operation.", + "consumes": [ + "application/json", + "text/json", + "application/*+json" + ], + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Subscription id of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Resource group of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "Namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "privateEndpointConnectionName", + "description": "Private Endpoint Connection name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + }, + { + "in": "body", + "name": "body", + "description": "Description of the Private Endpoint Connection resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + }, + "delete": { + "tags": [ + "PrivateLink" + ], + "summary": "Deletes the Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", + "description": "This is an asynchronous API, which sets the Azure-AsyncOperation header. \r\nCaller can use URI from that header to check status of the operation.", + "parameters": [ + { + "in": "path", + "name": "namespaceName", + "description": "Namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "privateEndpointConnectionName", + "description": "Name of the Private Endpoint Connection to remove.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "subscriptionId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + }, + "get": { + "tags": [ + "PrivateLink" + ], + "summary": "Returns a Private Endpoint Connection with a given name. \r\nThis is a public API that can be called directly by Notification Hubs users.", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Subscription id of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Resource group name of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "Namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "privateEndpointConnectionName", + "description": "Private Endpoint Connection name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateLink" + ], + "summary": "Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace.\r\nThis is a public API that can be called directly by Notification Hubs users.", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Subscription id of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Resource group name of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "Namespace name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}": { + "get": { + "tags": [ + "PrivateLink" + ], + "summary": "Returns Group Id response. \r\nThis is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users.", + "description": "Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called.\r\nThat's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Subscription id of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Resource group name of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "Namespace name.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "subResourceName", + "description": "Name of the Private Link sub-resource. The only supported sub-resource is \"namespace\"", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLink" + ], + "summary": "Returns all Group Ids supported by the Notification Hubs RP.\r\nThis is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users.", + "description": "Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called.\r\nThat's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.", + "parameters": [ + { + "in": "path", + "name": "subscriptionId", + "description": "Subscription id of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Resource group name of the Notification Hubs namespace.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "namespaceName", + "description": "Namespace name.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "api-version", + "description": "API Version - expected 2023-01-01-preview.", + "required": true, + "type": "string", + "default": "2023-01-01-preview" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Error code with reason." + } + } + } + } + }, + "definitions": { + "AccessRights": { + "enum": [ + "Manage", + "Send", + "Listen" + ], + "type": "string", + "x-ms-enum": { + "name": "AccessRights", + "modelAsString": true + } + }, + "AdmCredential": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AdmCredentialProperties" + } + }, + "x-ms-secret": true + }, + "AdmCredentialProperties": { + "required": [ + "authTokenUrl", + "clientId", + "clientSecret" + ], + "type": "object", + "properties": { + "clientId": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "clientSecret": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "authTokenUrl": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "ApnsCredential": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ApnsCredentialProperties" + } + }, + "x-ms-secret": true + }, + "ApnsCredentialProperties": { + "required": [ + "endpoint" + ], + "type": "object", + "properties": { + "apnsCertificate": { + "type": "string", + "x-ms-secret": true + }, + "certificateKey": { + "type": "string", + "x-ms-secret": true + }, + "endpoint": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "thumbprint": { + "type": "string", + "x-ms-secret": true + }, + "keyId": { + "type": "string", + "x-ms-secret": true + }, + "appName": { + "type": "string", + "x-ms-secret": true + }, + "appId": { + "type": "string", + "x-ms-secret": true + }, + "token": { + "type": "string", + "x-ms-secret": true + } + } + }, + "Availability": { + "type": "object", + "properties": { + "timeGrain": { + "type": "string", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "readOnly": true + } + } + }, + "BaiduCredential": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/BaiduCredentialProperties" + } + }, + "x-ms-secret": true + }, + "BaiduCredentialProperties": { + "required": [ + "baiduApiKey", + "baiduEndPoint", + "baiduSecretKey" + ], + "type": "object", + "properties": { + "baiduApiKey": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "baiduEndPoint": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "baiduSecretKey": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "BrowserCredential": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/BrowserCredentialProperties" + } + }, + "x-ms-secret": true + }, + "BrowserCredentialProperties": { + "required": [ + "subject", + "vapidPrivateKey", + "vapidPublicKey" + ], + "type": "object", + "properties": { + "subject": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "vapidPrivateKey": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "vapidPublicKey": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "CheckAvailabilityParameters": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "minLength": 1, + "type": "string" + }, + "type": { + "type": "string", + "readOnly": true + }, + "location": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "isAvailiable": { + "type": "boolean" + } + } + }, + "CheckAvailabilityResult": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "type": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "isAvailiable": { + "type": "boolean" + }, + "location": { + "type": "string", + "readOnly": true + } + } + }, + "ConnectionDetails": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "privateIpAddress": { + "type": "string", + "readOnly": true + }, + "linkIdentifier": { + "type": "string", + "readOnly": true + }, + "groupId": { + "type": "string", + "readOnly": true + }, + "memberName": { + "type": "string", + "readOnly": true + } + } + }, + "DebugSendResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "type": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/DebugSendResult" + }, + "location": { + "type": "string", + "readOnly": true + } + } + }, + "DebugSendResult": { + "type": "object", + "properties": { + "success": { + "format": "int64", + "type": "integer", + "readOnly": true + }, + "failure": { + "format": "int64", + "type": "integer", + "readOnly": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RegistrationResult" + }, + "readOnly": true + } + } + }, + "ErrorDetails": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "minLength": 1, + "type": "string" + }, + "message": { + "minLength": 1, + "type": "string" + }, + "target": { + "type": "string" + } + } + }, + "ErrorResponse": { + "required": [ + "error" + ], + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "GcmCredential": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/GcmCredentialProperties" + } + }, + "x-ms-secret": true + }, + "GcmCredentialProperties": { + "required": [ + "googleApiKey" + ], + "type": "object", + "properties": { + "gcmEndpoint": { + "type": "string", + "x-ms-secret": true + }, + "googleApiKey": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "GroupConnectivityInformation": { + "type": "object", + "properties": { + "groupId": { + "type": "string", + "readOnly": true + }, + "memberName": { + "type": "string", + "readOnly": true + }, + "customerVisibleFqdns": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "internalFqdn": { + "type": "string", + "readOnly": true + }, + "redirectMapId": { + "type": "string", + "readOnly": true + }, + "privateLinkServiceArmRegion": { + "type": "string", + "readOnly": true + } + } + }, + "IpRule": { + "required": [ + "ipMask", + "rights" + ], + "type": "object", + "properties": { + "ipMask": { + "minLength": 1, + "type": "string" + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + } + } + }, + "LinkedNotification": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "properties": { + "$ref": "#/definitions/LinkedNotificationProperties" + } + } + }, + "LinkedNotificationProperties": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + } + }, + "LogSpecification": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "displayName": { + "type": "string", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "readOnly": true + } + } + }, + "MetricSpecification": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "displayName": { + "type": "string", + "readOnly": true + }, + "displayDescription": { + "type": "string", + "readOnly": true + }, + "unit": { + "type": "string", + "readOnly": true + }, + "aggregationType": { + "type": "string", + "readOnly": true + }, + "availabilities": { + "type": "array", + "items": { + "$ref": "#/definitions/Availability" + }, + "readOnly": true + }, + "metricFilterPattern": { + "type": "string", + "readOnly": true + }, + "fillGapWithZero": { + "type": "boolean", + "readOnly": true + } + } + }, + "MoveResourcesRequest": { + "required": [ + "resources", + "targetResourceGroup" + ], + "type": "object", + "properties": { + "targetResourceGroup": { + "minLength": 1, + "type": "string" + }, + "resources": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "MpnsCredential": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MpnsCredentialProperties" + } + }, + "x-ms-secret": true + }, + "MpnsCredentialProperties": { + "required": [ + "certificateKey", + "mpnsCertificate", + "thumbprint" + ], + "type": "object", + "properties": { + "mpnsCertificate": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "certificateKey": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "thumbprint": { + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "NamespaceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NamespaceResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "readOnly": true + } + } + }, + "NamespaceProperties": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/OperationProvisioningState" + }, + "status": { + "$ref": "#/definitions/NamespaceStatus" + }, + "enabled": { + "type": "boolean", + "readOnly": true + }, + "critical": { + "type": "boolean", + "readOnly": true + }, + "subscriptionId": { + "type": "string", + "readOnly": true + }, + "region": { + "type": "string", + "readOnly": true + }, + "metricId": { + "type": "string", + "readOnly": true + }, + "createdAt": { + "format": "date-time", + "type": "string", + "readOnly": true + }, + "updatedAt": { + "format": "date-time", + "type": "string", + "readOnly": true + }, + "namespaceType": { + "$ref": "#/definitions/NamespaceType" + }, + "replicationRegion": { + "$ref": "#/definitions/ReplicationRegion" + }, + "zoneRedundant": { + "type": "boolean", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "networkAcls": { + "$ref": "#/definitions/NetworkAcls" + }, + "pnsCredentials": { + "$ref": "#/definitions/PnsCredentials" + }, + "serviceBusEndpoint": { + "type": "string", + "readOnly": true + }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + }, + "readOnly": true + } + } + }, + "NamespaceResource": { + "required": [ + "location", + "properties", + "sku" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "type": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "location": { + "minLength": 1, + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties" + } + } + }, + "NamespaceStatus": { + "enum": [ + "Created", + "Creating", + "Suspended", + "Deleting" + ], + "type": "string", + "x-ms-enum": { + "name": "NamespaceStatus", + "modelAsString": true + } + }, + "NamespaceType": { + "enum": [ + "Messaging", + "NotificationHub" + ], + "type": "string", + "x-ms-enum": { + "name": "NamespaceType", + "modelAsString": true + } + }, + "NetworkAcls": { + "required": [ + "ipRules", + "publicInternetRule" + ], + "type": "object", + "properties": { + "ipRules": { + "type": "array", + "items": { + "$ref": "#/definitions/IpRule" + } + }, + "publicInternetRule": { + "$ref": "#/definitions/PublicInternetAuthorizationRule" + } + } + }, + "NotificationHubListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NotificationHubResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "readOnly": true + } + } + }, + "NotificationHubProperties": { + "type": "object", + "properties": { + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "registrationTtl": { + "type": "string" + }, + "authorizationRules": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + "readOnly": true, + "x-ms-secret": true + }, + "apnsCredential": { + "$ref": "#/definitions/ApnsCredential" + }, + "wnsCredential": { + "$ref": "#/definitions/WnsCredential" + }, + "gcmCredential": { + "$ref": "#/definitions/GcmCredential" + }, + "mpnsCredential": { + "$ref": "#/definitions/MpnsCredential" + }, + "admCredential": { + "$ref": "#/definitions/AdmCredential" + }, + "baiduCredential": { + "$ref": "#/definitions/BaiduCredential" + }, + "browserCredential": { + "$ref": "#/definitions/BrowserCredential" + }, + "xiaomiCredential": { + "$ref": "#/definitions/XiaomiCredential" + }, + "dailyMaxActiveDevices": { + "format": "int64", + "type": "integer", + "readOnly": true + } + } + }, + "NotificationHubResource": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "type": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "location": { + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/NotificationHubProperties" + } + } + }, + "Operation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "properties": { + "$ref": "#/definitions/OperationProperties" + }, + "isDataAction": { + "type": "boolean", + "readOnly": true + } + } + }, + "OperationDisplay": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "readOnly": true + }, + "resource": { + "type": "string", + "readOnly": true + }, + "operation": { + "type": "string", + "readOnly": true + }, + "description": { + "type": "string", + "readOnly": true + } + } + }, + "OperationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "readOnly": true + } + } + }, + "OperationProperties": { + "type": "object", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification" + } + } + }, + "OperationProvisioningState": { + "enum": [ + "Unknown", + "InProgress", + "Succeeded", + "Failed", + "Canceled", + "Pending", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "OperationProvisioningState", + "modelAsString": true + } + }, + "OperationStatusResult": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/OperationProvisioningState" + }, + "startTime": { + "format": "date-time", + "type": "string", + "readOnly": true + }, + "endTime": { + "format": "date-time", + "type": "string", + "readOnly": true + }, + "percentComplete": { + "format": "int32", + "type": "integer", + "readOnly": true + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + }, + "error": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "PnsCredentials": { + "type": "object", + "properties": { + "admCredential": { + "$ref": "#/definitions/AdmCredential" + }, + "apnsCredential": { + "$ref": "#/definitions/ApnsCredential" + }, + "baiduCredential": { + "$ref": "#/definitions/BaiduCredential" + }, + "browserCredential": { + "$ref": "#/definitions/BrowserCredential" + }, + "gcmCredential": { + "$ref": "#/definitions/GcmCredential" + }, + "mpnsCredential": { + "$ref": "#/definitions/MpnsCredential" + }, + "wnsCredential": { + "$ref": "#/definitions/WnsCredential" + }, + "xiaomiCredential": { + "$ref": "#/definitions/XiaomiCredential" + } + }, + "x-ms-secret": true + }, + "PnsCredentialsResource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "type": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/PnsCredentials" + }, + "location": { + "type": "string", + "readOnly": true + } + } + }, + "PolicyKeyResource": { + "required": [ + "policyKey" + ], + "type": "object", + "properties": { + "policyKey": { + "$ref": "#/definitions/PolicyKeyType" + } + } + }, + "PolicyKeyType": { + "enum": [ + "PrimaryKey", + "SecondaryKey" + ], + "type": "string", + "x-ms-enum": { + "name": "PolicyKeyType", + "modelAsString": true + } + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true + }, + "privateEndpoint": { + "$ref": "#/definitions/RemotePrivateEndpointConnection" + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState" + } + } + }, + "PrivateEndpointConnectionProxy": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true + }, + "etag": { + "type": "string", + "readOnly": true + }, + "location": { + "type": "string", + "readOnly": true + }, + "remotePrivateEndpoint": { + "$ref": "#/definitions/RemotePrivateEndpoint" + } + } + }, + "PrivateEndpointConnectionResource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "type": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + "location": { + "type": "string", + "readOnly": true + } + } + }, + "PrivateLinkConnectionStatus": { + "enum": [ + "Disconnected", + "Pending", + "Approved", + "Rejected" + ], + "type": "string", + "x-ms-enum": { + "name": "PrivateLinkConnectionStatus", + "modelAsString": true + } + }, + "PrivateLinkServiceConnection": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "requestMessage": { + "type": "string" + } + } + }, + "PublicInternetAuthorizationRule": { + "required": [ + "rights" + ], + "type": "object", + "properties": { + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + } + } + }, + "RegistrationResult": { + "type": "object", + "properties": { + "applicationPlatform": { + "type": "string", + "readOnly": true + }, + "pnsHandle": { + "type": "string", + "readOnly": true + }, + "registrationId": { + "type": "string", + "readOnly": true + }, + "outcome": { + "type": "string", + "readOnly": true + } + } + }, + "RemotePrivateEndpoint": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "immutableSubscriptionId": { + "type": "string", + "readOnly": true + }, + "immutableResourceId": { + "type": "string", + "readOnly": true + }, + "location": { + "type": "string", + "readOnly": true + }, + "manualPrivateLinkServiceConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceConnection" + }, + "readOnly": true + }, + "privateLinkServiceConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceConnection" + }, + "readOnly": true + }, + "connectionDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectionDetails" + }, + "readOnly": true + } + } + }, + "RemotePrivateEndpointConnection": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + } + } + }, + "RemotePrivateLinkServiceConnectionState": { + "type": "object", + "properties": { + "status": { + "$ref": "#/definitions/PrivateLinkConnectionStatus" + }, + "description": { + "type": "string", + "readOnly": true + }, + "actionsRequired": { + "type": "string", + "readOnly": true + } + } + }, + "ReplicationRegion": { + "enum": [ + "Default", + "WestUs2", + "NorthEurope", + "AustraliaEast", + "BrazilSouth", + "SouthEastAsia", + "SouthAfricaNorth", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ReplicationRegion", + "modelAsString": true + } + }, + "ResourceListKeys": { + "type": "object", + "properties": { + "primaryConnectionString": { + "type": "string", + "readOnly": true, + "x-ms-secret": true + }, + "secondaryConnectionString": { + "type": "string", + "readOnly": true, + "x-ms-secret": true + }, + "primaryKey": { + "type": "string", + "readOnly": true, + "x-ms-secret": true + }, + "secondaryKey": { + "type": "string", + "readOnly": true, + "x-ms-secret": true + }, + "keyName": { + "type": "string", + "readOnly": true + } + } + }, + "ServiceSpecification": { + "type": "object", + "properties": { + "logSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/LogSpecification" + }, + "readOnly": true + }, + "metricSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "readOnly": true + } + } + }, + "SharedAccessAuthorizationRuleListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "readOnly": true + } + } + }, + "SharedAccessAuthorizationRuleProperties": { + "required": [ + "rights" + ], + "type": "object", + "properties": { + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + }, + "primaryKey": { + "type": "string", + "x-ms-secret": true + }, + "secondaryKey": { + "type": "string", + "x-ms-secret": true + }, + "keyName": { + "type": "string", + "readOnly": true + }, + "modifiedTime": { + "format": "date-time", + "type": "string", + "readOnly": true + }, + "createdTime": { + "format": "date-time", + "type": "string", + "readOnly": true + }, + "claimType": { + "type": "string", + "readOnly": true + }, + "claimValue": { + "type": "string", + "readOnly": true + }, + "revision": { + "format": "int32", + "type": "integer", + "readOnly": true + } + } + }, + "SharedAccessAuthorizationRuleResource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "type": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + "location": { + "type": "string", + "readOnly": true + } + } + }, + "Sku": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "minLength": 1, + "type": "string" + }, + "tier": { + "type": "string" + }, + "size": { + "type": "string" + }, + "family": { + "type": "string" + }, + "capacity": { + "format": "int32", + "type": "integer" + } + } + }, + "WnsCredential": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/WnsCredentialProperties" + } + }, + "x-ms-secret": true + }, + "WnsCredentialProperties": { + "type": "object", + "properties": { + "packageSid": { + "type": "string", + "x-ms-secret": true + }, + "secretKey": { + "type": "string", + "x-ms-secret": true + }, + "windowsLiveEndpoint": { + "type": "string", + "x-ms-secret": true + }, + "certificateKey": { + "type": "string", + "x-ms-secret": true + }, + "wnsCertificate": { + "type": "string", + "x-ms-secret": true + } + } + }, + "XiaomiCredential": { + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/XiaomiCredentialProperties" + } + }, + "x-ms-secret": true + }, + "XiaomiCredentialProperties": { + "type": "object", + "properties": { + "appSecret": { + "type": "string", + "x-ms-secret": true + }, + "endpoint": { + "type": "string", + "x-ms-secret": true + } + } + } + } +} \ No newline at end of file From 533291f2aa1e7604c664ae89672b80b25689f66c Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 26 Apr 2023 14:50:58 +0200 Subject: [PATCH 02/73] Notification Hubs API 2023-01-01-preview: updating examples --- .../NHNameSpaceAuthorizationRuleCreate.json | 14 +- .../NHNameSpaceAuthorizationRuleDelete.json | 1 - .../NHNameSpaceAuthorizationRuleGet.json | 23 +- .../NHNameSpaceAuthorizationRuleListAll.json | 38 +- ...meSpaceAuthorizationRuleRegenerateKey.json | 10 +- .../NHNameSpaceAuthorizationRuleUpdate.json | 21 +- .../NHNameSpaceCheckNameAvailability.json | 15 +- .../Namespaces/NHNameSpaceCreate.json | 122 ++- .../Namespaces/NHNameSpaceDelete.json | 2 - .../examples/Namespaces/NHNameSpaceGet.json | 50 +- .../examples/Namespaces/NHNameSpaceList.json | 826 ++---------------- .../NHNameSpaceListByResourceGroup.json | 86 +- .../Namespaces/NHNameSpaceUpdate.json | 67 +- ...otificationHubAuthorizationRuleCreate.json | 26 +- ...otificationHubAuthorizationRuleDelete.json | 1 - .../NotificationHubAuthorizationRuleGet.json | 24 +- ...tificationHubAuthorizationRuleListAll.json | 42 +- ...tificationHubAuthorizationRuleListKey.json | 4 +- ...tionHubAuthorizationRuleRegenerateKey.json | 8 +- ...otificationHubAuthorizationRuleUpdate.json | 24 +- .../NotificationHubCheckNameAvailability.json | 10 +- .../NotificationHubCreate.json | 30 +- .../NotificationHubDebugSend.json | 18 +- .../NotificationHubs/NotificationHubGet.json | 18 +- .../NotificationHubListByNameSpace.json | 18 +- .../NotificationHubPatch.json | 30 +- .../NotificationHubPnsCredentials.json | 24 +- .../NotificationHubUpdate.json | 29 +- 28 files changed, 509 insertions(+), 1072 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json index 5d4528a86397..6236c55a807b 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json @@ -18,16 +18,18 @@ "responses": { "200": { "body": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-6914/AuthorizationRules/sdk-AuthRules-1788", - "name": "sdk-AuthRules-1788", - "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", "properties": { "rights": [ "Listen", "Send" - ] - } + ], + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "createdTime": "2023-04-26T10:09:19.9675121+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json index d6c6ba08861f..29c27fc9c556 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json @@ -7,7 +7,6 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { - "200": {}, "204": {} } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json index 08c16411616e..48d7dba62cec 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json @@ -9,26 +9,19 @@ "responses": { "200": { "body": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/RootManageSharedAccessKey", - "name": "RootManageSharedAccessKey", - "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", - "location": "South Central US", - "tags": null, "properties": { - "keyName": "RootManageSharedAccessKey", - "primaryKey": "############################################", - "secondaryKey": "############################################", - "claimType": "SharedAccessKey", - "claimValue": "None", "rights": [ - "Listen", "Manage", + "Listen", "Send" ], - "createdTime": "2018-05-02T18:24:51.0690674Z", - "modifiedTime": "2018-05-02T18:24:51.0690674Z" - } + "modifiedTime": "2023-04-26T10:19:36.3315279+00:00", + "createdTime": "2023-04-26T10:19:36.3315279+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json index 5ff7803692a5..296e69bc6a91 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json @@ -10,30 +10,34 @@ "body": { "value": [ { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/RootManageSharedAccessKey", + "properties": { + "rights": [ + "Manage", + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T06:10:44.0407987+00:00", + "createdTime": "2023-04-26T06:10:44.0407982+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", "name": "RootManageSharedAccessKey", - "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", - "location": null, - "tags": null, + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" + }, + { "properties": { - "keyName": "RootManageSharedAccessKey", - "primaryKey": "", - "secondaryKey": "", - "claimType": "SharedAccessKey", - "claimValue": "None", "rights": [ "Listen", - "Manage", "Send" ], - "createdTime": "2018-05-02T18:24:51.0690674Z", - "modifiedTime": "2018-05-02T18:31:28.5201555Z", - "revision": 1 - } + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "createdTime": "2023-04-26T10:09:19.9675121+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" } - ], - "nextLink": null + ] } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json index 33644123a735..c57224e2b74e 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json @@ -12,12 +12,12 @@ "responses": { "200": { "body": { - "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", - "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", - "primaryKey": "############################################", - "secondaryKey": "############################################", + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=########################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=########################################", + "primaryKey": "########################################", + "secondaryKey": "########################################", "keyName": "RootManageSharedAccessKey" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json index e883a59673da..ee428fad516e 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json @@ -16,24 +16,17 @@ "responses": { "200": { "body": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/MyManageSharedAccessKey", - "name": "MyManageSharedAccessKey", - "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", - "location": null, - "tags": null, "properties": { - "keyName": "MyManageSharedAccessKey", - "primaryKey": "############################################", - "secondaryKey": "############################################", - "claimType": "SharedAccessKey", - "claimValue": "None", "rights": [ "Listen" ], - "createdTime": "2018-05-02T18:24:51.0690674Z", - "modifiedTime": "2018-05-02T18:24:51.0690674Z" - } + "modifiedTime": "2023-04-26T10:19:36.3315279+00:00", + "createdTime": "2023-04-26T10:19:36.3315279+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/MyManageSharedAccessKey", + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json index a0a5d9175078..d6e51b64ff62 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json @@ -8,14 +8,11 @@ }, "responses": { "200": { - "body": { - "isAvailiable": false, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/CheckNamespaceAvailability", - "name": "mytestnamespace", - "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", - "location": "West Europe", - "tags": null - } + "isAvailiable": true, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/CheckNamespaceAvailability", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "tags": {} } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json index 43be236dffb3..e8ddc9c349a1 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json @@ -13,55 +13,105 @@ "tags": { "tag1": "value1", "tag2": "value2" + }, + "properties": { + "networkACLs": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicInternetRule": { + "rights": [ + "Listen" + ] + } + } } } }, "responses": { "200": { "body": { + "location": "East US", "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", - "name": "sdk-Namespace-2924", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": { - "tag1": "value1", - "tag2": "value2" + "name": "Standard" }, "properties": { - "provisioningState": "Created", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", - "createdAt": "2017-05-25T22:26:36.76Z", - "updatedAt": "2017-05-25T22:26:36.76Z", - "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" - } - } - }, - "201": { - "body": { - "sku": { - "name": "Standard", - "tier": "Standard" + "name": "nh-sdk-ns", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:16:17.697+00:00", + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicInternetRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "privateEndpointConnections": [] }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", - "name": "sdk-Namespace-2924", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", "tags": { "tag1": "value1", "tag2": "value2" - }, - "properties": { - "provisioningState": "Created", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", - "createdAt": "2017-05-25T22:26:36.76Z", - "updatedAt": "2017-05-25T22:26:36.76Z", - "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + }, + "201": { + "body": { + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicInternetRule": { + "rights": [ + "Listen" + ] + } + } + }, + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value1", + "tag2": "value2" + } } } } - } -} + } \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json index 9877b11bc106..64a9ba5addb8 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json @@ -6,8 +6,6 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { - "200": {}, - "202": {}, "204": {} } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json index 7240a065d14f..8d73c6107577 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json @@ -8,28 +8,48 @@ "responses": { "200": { "body": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", - "name": "nh-sdk-ns", - "type": "Microsoft.NotificationHubs/namespaces", - "location": "South Central US", + "location": "East US", "sku": { - "name": "Basic" + "name": "Standard" }, - "tags": {}, "properties": { + "name": "nh-sdk-ns", "provisioningState": "Succeeded", - "metricId": null, - "status": "Active", - "createdAt": "2018-05-02T00:44:56.58Z", - "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "status": "Created", "enabled": true, "critical": false, - "scaleUnit": "SN1-001", - "dataCenter": "SN1", - "updatedAt": "2018-05-02T01:02:19.79Z", - "namespaceType": "NotificationHub" + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicInternetRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value1", + "tag2": "value2" } } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json index 839ad0c04980..481ef02021c7 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json @@ -8,766 +8,82 @@ "body": { "value": [ { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20", - "name": "NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-91f08e47-2b04-4943-b0cd-a5fb02b88f20", - "createdAt": "2016-08-23T02:40:17.27Z", - "updatedAt": "2017-02-11T07:15:30.78Z", - "serviceBusEndpoint": "https://NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-41dc63f4-0b08-4029-b3ef-535a131bfa65", - "name": "NS-41dc63f4-0b08-4029-b3ef-535a131bfa65", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-41dc63f4-0b08-4029-b3ef-535a131bfa65", - "createdAt": "2016-08-23T03:50:38.98Z", - "updatedAt": "2017-02-11T10:42:58.003Z", - "serviceBusEndpoint": "https://NS-41dc63f4-0b08-4029-b3ef-535a131bfa65.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-df52cf51-e831-4bf2-bd92-e9885f68a996", - "name": "NS-df52cf51-e831-4bf2-bd92-e9885f68a996", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-df52cf51-e831-4bf2-bd92-e9885f68a996", - "createdAt": "2016-09-16T01:17:54.997Z", - "updatedAt": "2017-02-11T06:44:39.737Z", - "serviceBusEndpoint": "https://NS-df52cf51-e831-4bf2-bd92-e9885f68a996.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sadfsadfsadf/providers/Microsoft.NotificationHubs/namespaces/rrama-ns2", - "name": "rrama-ns2", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-ns2", - "createdAt": "2016-08-23T04:14:00.013Z", - "updatedAt": "2017-02-03T22:53:32.927Z", - "serviceBusEndpoint": "https://rrama-ns2.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-20e57600-29d0-4035-ac85-74f4c54dcda1", - "name": "NS-20e57600-29d0-4035-ac85-74f4c54dcda1", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-20e57600-29d0-4035-ac85-74f4c54dcda1", - "createdAt": "2016-08-23T03:30:49.16Z", - "updatedAt": "2017-02-11T04:17:58.483Z", - "serviceBusEndpoint": "https://NS-20e57600-29d0-4035-ac85-74f4c54dcda1.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-3e538a1a-58fb-4315-b2ce-76f5c944114c", - "name": "NS-3e538a1a-58fb-4315-b2ce-76f5c944114c", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-3e538a1a-58fb-4315-b2ce-76f5c944114c", - "createdAt": "2016-09-16T18:07:30.05Z", - "updatedAt": "2017-02-11T10:42:57.747Z", - "serviceBusEndpoint": "https://NS-3e538a1a-58fb-4315-b2ce-76f5c944114c.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", - "name": "NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", - "createdAt": "2016-09-16T01:01:58.73Z", - "updatedAt": "2017-02-11T03:02:59.8Z", - "serviceBusEndpoint": "https://NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", - "name": "NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", - "createdAt": "2016-08-23T03:22:45.327Z", - "updatedAt": "2017-02-11T06:08:01.207Z", - "serviceBusEndpoint": "https://NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-c05e9df3-7737-44ee-a321-15f6e0545b97", - "name": "NS-c05e9df3-7737-44ee-a321-15f6e0545b97", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-c05e9df3-7737-44ee-a321-15f6e0545b97", - "createdAt": "2016-08-05T03:29:19.75Z", - "updatedAt": "2017-02-11T08:10:35.527Z", - "serviceBusEndpoint": "https://NS-c05e9df3-7737-44ee-a321-15f6e0545b97.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-dcb4152c-231b-4c16-a683-07cc6b38fa46", - "name": "NS-dcb4152c-231b-4c16-a683-07cc6b38fa46", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-dcb4152c-231b-4c16-a683-07cc6b38fa46", - "createdAt": "2016-08-05T03:34:35.363Z", - "updatedAt": "2017-02-11T05:33:00.957Z", - "serviceBusEndpoint": "https://NS-dcb4152c-231b-4c16-a683-07cc6b38fa46.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-f501f5e6-1f24-439b-8982-9af665156d40", - "name": "NS-f501f5e6-1f24-439b-8982-9af665156d40", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-f501f5e6-1f24-439b-8982-9af665156d40", - "createdAt": "2016-09-16T01:25:55.707Z", - "updatedAt": "2017-02-11T07:42:59.687Z", - "serviceBusEndpoint": "https://NS-f501f5e6-1f24-439b-8982-9af665156d40.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", - "name": "NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", - "createdAt": "2016-08-23T02:32:08.227Z", - "updatedAt": "2017-02-11T06:32:57.77Z", - "serviceBusEndpoint": "https://NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", - "name": "NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", - "createdAt": "2016-09-16T00:54:05.103Z", - "updatedAt": "2017-02-11T10:43:50.313Z", - "serviceBusEndpoint": "https://NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-6520cc09-01ac-40a3-bc09-c5c431116e92", - "name": "NS-6520cc09-01ac-40a3-bc09-c5c431116e92", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-6520cc09-01ac-40a3-bc09-c5c431116e92", - "createdAt": "2016-09-16T01:49:59.243Z", - "updatedAt": "2017-02-11T08:15:36.95Z", - "serviceBusEndpoint": "https://NS-6520cc09-01ac-40a3-bc09-c5c431116e92.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-bfba6d5c-a425-42d9-85db-0f4da770e29a", - "name": "NS-bfba6d5c-a425-42d9-85db-0f4da770e29a", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-bfba6d5c-a425-42d9-85db-0f4da770e29a", - "createdAt": "2016-08-05T03:23:32.083Z", - "updatedAt": "2017-02-11T09:02:57.433Z", - "serviceBusEndpoint": "https://NS-bfba6d5c-a425-42d9-85db-0f4da770e29a.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-43b136b4-8716-40b2-97c5-0d77cac0062c", - "name": "NS-43b136b4-8716-40b2-97c5-0d77cac0062c", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-43b136b4-8716-40b2-97c5-0d77cac0062c", - "createdAt": "2016-08-23T03:14:50.577Z", - "updatedAt": "2017-02-11T09:23:01.067Z", - "serviceBusEndpoint": "https://NS-43b136b4-8716-40b2-97c5-0d77cac0062c.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-7c0443de-5f88-450c-b574-83f60a097dd1", - "name": "NS-7c0443de-5f88-450c-b574-83f60a097dd1", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-7c0443de-5f88-450c-b574-83f60a097dd1", - "createdAt": "2016-08-23T04:07:15.397Z", - "updatedAt": "2017-02-11T04:03:03.097Z", - "serviceBusEndpoint": "https://NS-7c0443de-5f88-450c-b574-83f60a097dd1.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-62dd7753-a5f9-42fd-a354-ca38a4505d69", - "name": "NS-62dd7753-a5f9-42fd-a354-ca38a4505d69", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-62dd7753-a5f9-42fd-a354-ca38a4505d69", - "createdAt": "2016-09-16T01:33:50.45Z", - "updatedAt": "2017-02-11T05:35:33.053Z", - "serviceBusEndpoint": "https://NS-62dd7753-a5f9-42fd-a354-ca38a4505d69.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-ae18a18c-97ab-4089-965d-8acbf4794091", - "name": "NS-ae18a18c-97ab-4089-965d-8acbf4794091", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-ae18a18c-97ab-4089-965d-8acbf4794091", - "createdAt": "2016-08-23T02:43:36.517Z", - "updatedAt": "2017-02-11T12:40:30.587Z", - "serviceBusEndpoint": "https://NS-ae18a18c-97ab-4089-965d-8acbf4794091.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", - "name": "NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", - "createdAt": "2016-09-16T00:46:03.773Z", - "updatedAt": "2017-02-11T04:43:54.56Z", - "serviceBusEndpoint": "https://NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", - "name": "NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", - "createdAt": "2016-08-23T03:59:12.1Z", - "updatedAt": "2017-02-11T06:33:52.23Z", - "serviceBusEndpoint": "https://NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-d9337efd-9b27-454c-b2a5-dcfea56920d9", - "name": "NS-d9337efd-9b27-454c-b2a5-dcfea56920d9", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-d9337efd-9b27-454c-b2a5-dcfea56920d9", - "createdAt": "2016-08-05T03:45:09.27Z", - "updatedAt": "2017-02-11T06:20:31.863Z", - "serviceBusEndpoint": "https://NS-d9337efd-9b27-454c-b2a5-dcfea56920d9.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a", - "name": "NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-ad5ae732-abea-4e62-9de0-c90de0ddec0a", - "createdAt": "2016-08-23T02:34:36.447Z", - "updatedAt": "2017-02-11T06:15:31.607Z", - "serviceBusEndpoint": "https://NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-d447fb03-c7da-40fe-b5eb-14f36888837b", - "name": "NS-d447fb03-c7da-40fe-b5eb-14f36888837b", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-d447fb03-c7da-40fe-b5eb-14f36888837b", - "createdAt": "2016-08-05T00:53:46.697Z", - "updatedAt": "2017-02-11T11:09:41.26Z", - "serviceBusEndpoint": "https://NS-d447fb03-c7da-40fe-b5eb-14f36888837b.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/RapscallionResources/providers/Microsoft.NotificationHubs/namespaces/ReproSB", - "name": "ReproSB", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:reprosb", - "createdAt": "2017-02-27T19:29:34.523Z", - "updatedAt": "2017-02-27T19:29:58.64Z", - "serviceBusEndpoint": "https://ReproSB.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-4c90097f-19a8-42e7-bb3c-4ac088994719", - "name": "NS-4c90097f-19a8-42e7-bb3c-4ac088994719", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-4c90097f-19a8-42e7-bb3c-4ac088994719", - "createdAt": "2016-09-16T17:35:32.61Z", - "updatedAt": "2017-02-11T09:13:52.27Z", - "serviceBusEndpoint": "https://NS-4c90097f-19a8-42e7-bb3c-4ac088994719.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-1-23-17", - "name": "rrama-1-23-17", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-1-23-17", - "createdAt": "2017-01-23T22:54:40.907Z", - "updatedAt": "2017-02-04T00:53:28.777Z", - "serviceBusEndpoint": "https://rrama-1-23-17.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", - "name": "NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", - "createdAt": "2016-09-16T17:43:25.71Z", - "updatedAt": "2017-02-11T11:05:31.89Z", - "serviceBusEndpoint": "https://NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-be903820-3533-46e8-90e4-72c132411848", - "name": "NS-be903820-3533-46e8-90e4-72c132411848", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-be903820-3533-46e8-90e4-72c132411848", - "createdAt": "2016-08-05T03:24:01.923Z", - "updatedAt": "2017-02-11T10:09:42.513Z", - "serviceBusEndpoint": "https://NS-be903820-3533-46e8-90e4-72c132411848.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-namespace1", - "name": "rrama-namespace1", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Created", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-namespace1", - "createdAt": "2016-08-05T00:47:22.963Z", - "updatedAt": "2016-08-05T00:47:27.297Z", - "serviceBusEndpoint": "https://rrama-namespace1.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9", - "name": "NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-a3c38e9b-32a3-4c51-85d7-263150a8dda9", - "createdAt": "2016-09-16T00:38:02.517Z", - "updatedAt": "2017-02-11T05:03:55.96Z", - "serviceBusEndpoint": "https://NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", - "name": "NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", - "createdAt": "2016-08-23T03:42:40.01Z", - "updatedAt": "2017-02-11T06:33:02.363Z", - "serviceBusEndpoint": "https://NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", - "name": "NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", - "createdAt": "2016-08-05T04:28:10.71Z", - "updatedAt": "2017-02-11T08:43:51.587Z", - "serviceBusEndpoint": "https://NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", - "name": "sdk-Namespace-2924", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "name": "namespace-1", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicInternetRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://namespace-1.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { } + }, + { + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "name": "namespace-2", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ ], + "publicInternetRule": { + "rights": [ + "Manage", "Listen", "Send" + ] + } + }, + "serviceBusEndpoint": "https://namespace-2.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-2", + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", "tags": { "tag1": "value1", "tag2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", - "createdAt": "2017-05-25T22:26:36.76Z", - "updatedAt": "2017-05-25T22:26:59.35Z", - "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-sb1", - "name": "rrama-sb1", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-sb1", - "createdAt": "2017-05-01T21:47:34.903Z", - "updatedAt": "2017-05-02T02:10:03.083Z", - "serviceBusEndpoint": "https://rrama-sb1.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/RapscallionResources/providers/Microsoft.NotificationHubs/namespaces/WhackWhack", - "name": "WhackWhack", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:whackwhack", - "createdAt": "2016-10-10T23:39:01.347Z", - "updatedAt": "2017-02-04T00:56:32.687Z", - "serviceBusEndpoint": "https://WhackWhack.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", - "name": "NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", - "createdAt": "2016-09-16T17:51:27.73Z", - "updatedAt": "2017-02-11T08:19:43.383Z", - "serviceBusEndpoint": "https://NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", - "name": "NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", - "createdAt": "2016-08-05T01:14:25.613Z", - "updatedAt": "2017-02-11T12:33:01.727Z", - "serviceBusEndpoint": "https://NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e.servicebus.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo1", - "name": "bn3-rrama-foo1", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "East US 2", - "tags": {}, - "properties": { - "provisioningState": "Created", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo1", - "createdAt": "2017-04-28T23:54:26.927Z", - "updatedAt": "2017-04-28T23:54:26.927Z", - "serviceBusEndpoint": "https://bn3-rrama-foo1.servicebus.int7.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo3", - "name": "bn3-rrama-foo3", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "East US 2", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo3", - "createdAt": "2017-04-29T00:24:09.907Z", - "updatedAt": "2017-04-29T00:24:33.233Z", - "serviceBusEndpoint": "https://bn3-rrama-foo3.servicebus.int7.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo2", - "name": "bn3-rrama-foo2", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "East US 2", - "tags": {}, - "properties": { - "provisioningState": "Created", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo2", - "createdAt": "2017-04-28T23:57:40.82Z", - "updatedAt": "2017-04-28T23:57:40.82Z", - "serviceBusEndpoint": "https://bn3-rrama-foo2.servicebus.int7.windows-int.net:443/" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/db3-rrama-foo2", - "name": "db3-rrama-foo2", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "North Europe", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:db3-rrama-foo2", - "createdAt": "2017-04-29T00:10:43.463Z", - "updatedAt": "2017-04-29T00:11:09.133Z", - "serviceBusEndpoint": "https://db3-rrama-foo2.servicebus.int7.windows-int.net:443/" } } - ] + ], + "nextLink": "https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces?api-version=2023-01-01-preview&$count=2&$skipToken=##################" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json index 9e0289b37616..5153f34dde62 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json @@ -9,28 +9,84 @@ "body": { "value": [ { + "location": "East US", "sku": { - "name": "Standard", - "tier": "Standard" + "name": "Standard" }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", - "name": "sdk-Namespace-2924", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": { - "tag1": "value1", - "tag2": "value2" + "properties": { + "name": "namespace-1", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicInternetRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://namespace-1.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": {} + }, + { + "location": "East US", + "sku": { + "name": "Standard" }, "properties": { + "name": "namespace-2", "provisioningState": "Succeeded", - "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", - "createdAt": "2017-05-25T22:26:36.76Z", - "updatedAt": "2017-05-25T22:26:59.35Z", - "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [], + "publicInternetRule": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + "serviceBusEndpoint": "https://namespace-2.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-2", + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value1", + "tag2": "value2" } } - ] + ], + "nextLink": "https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces?api-version=2023-01-01-preview&$count=2&$skipToken=##################" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json index 12e083e3a324..1a4b682205cb 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json @@ -6,36 +6,67 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { "sku": { - "name": "Standard", - "tier": "Standard" + "name": "Free" }, "tags": { - "tag1": "value1", - "tag2": "value2" + "tag1": "value3" + }, + "properties": { + "pnsCredentials": { + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "#############################" + } + } + } } } }, "responses": { "200": { "body": { + "location": "East US", "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-3285", - "name": "sdk-Namespace-3285", - "type": "Microsoft.NotificationHubs/Namespaces", - "location": "South Central US", - "tags": { - "tag3": "value3", - "tag4": "value4" + "name": "Free" }, "properties": { - "provisioningState": "Updating", - "createdAt": "2017-05-25T23:07:58.17Z", - "serviceBusEndpoint": "https://sdk-Namespace-3285.servicebus.windows-int.net:443/" + "name": "nh-sdk-ns", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicInternetRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value3" } } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json index 13fd9d2fb28e..0f40995cc448 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json @@ -3,7 +3,7 @@ "resourceGroupName": "5ktrial", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "authorizationRuleName": "DefaultListenSharedAccessSignature", + "authorizationRuleName": "MyManageSharedAccessKey", "api-version": "2023-01-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { @@ -18,24 +18,18 @@ "responses": { "200": { "body": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", - "name": "DefaultListenSharedAccessSignature", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", - "location": "West Europe", - "tags": null, "properties": { - "keyName": "DefaultListenSharedAccessSignature", - "primaryKey": "#################################", - "secondaryKey": "#################################", - "claimType": "SharedAccessKey", - "claimValue": "None", "rights": [ - "Listen" + "Listen", + "Send" ], - "createdTime": "2018-05-02T00:45:22.0150024Z", - "modifiedTime": "2018-05-02T00:45:22.0150024Z" - } + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "createdTime": "2023-04-26T12:24:40.5863818+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/MyManageSharedAccessKey", + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json index 05f1199a71ce..7909a98489a5 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json @@ -8,7 +8,6 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { - "200": {}, "204": {} } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json index e9d847191449..8fb9f8e63e21 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json @@ -10,24 +10,18 @@ "responses": { "200": { "body": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", - "name": "DefaultListenSharedAccessSignature", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", - "location": "West Europe", - "tags": null, "properties": { - "keyName": "DefaultListenSharedAccessSignature", - "primaryKey": "#################################", - "secondaryKey": "#################################", - "claimType": "SharedAccessKey", - "claimValue": "None", "rights": [ - "Listen" + "Listen", + "Send" ], - "createdTime": "2018-05-02T00:45:22.0150024Z", - "modifiedTime": "2018-05-02T00:45:22.0150024Z" - } + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "createdTime": "2023-04-26T12:24:40.5863818+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json index 81701e01c8a6..278d1fa3fb34 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json @@ -11,47 +11,33 @@ "body": { "value": [ { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", - "name": "DefaultListenSharedAccessSignature", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", - "location": "West Europe", - "tags": null, "properties": { - "keyName": "DefaultListenSharedAccessSignature", - "primaryKey": "#################################", - "secondaryKey": "#################################", - "claimType": "SharedAccessKey", - "claimValue": "None", "rights": [ "Listen" ], - "createdTime": "2018-05-02T00:45:22.0150024Z", - "modifiedTime": "2018-05-02T00:45:22.0150024Z" - } + "modifiedTime": "2023-04-26T10:43:00.5320368+00:00", + "createdTime": "2023-04-26T10:43:00.5320365+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" }, { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultFullSharedAccessSignature", - "name": "DefaultFullSharedAccessSignature", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", - "location": "West Europe", - "tags": null, "properties": { - "keyName": "DefaultFullSharedAccessSignature", - "primaryKey": "#################################", - "secondaryKey": "#################################", - "claimType": "SharedAccessKey", - "claimValue": "None", "rights": [ - "Listen", "Manage", + "Listen", "Send" ], - "createdTime": "2018-05-02T00:45:22.0150024Z", - "modifiedTime": "2018-05-02T00:45:22.0150024Z" - } + "modifiedTime": "2023-04-26T10:43:00.5320387+00:00", + "createdTime": "2023-04-26T10:43:00.5320386+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/DefaultFullSharedAccessSignature", + "name": "DefaultFullSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" } ] } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json index 8e8546da690d..c1fb7cbafe61 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json @@ -10,8 +10,8 @@ "responses": { "200": { "body": { - "primaryConnectionString": "Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", - "secondaryConnectionString": "Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", "primaryKey": "############################################", "secondaryKey": "############################################", "keyName": "sdk-AuthRules-5800" diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json index 7e9a5c4aae22..53047178e0ca 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json @@ -13,10 +13,10 @@ "responses": { "200": { "body": { - "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=#################################", - "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=#################################", - "primaryKey": "#################################", - "secondaryKey": "#################################", + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "primaryKey": "############################################", + "secondaryKey": "############################################", "keyName": "DefaultListenSharedAccessSignature" } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json index 90a539675fc7..b6f50416bd87 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json @@ -17,24 +17,12 @@ "responses": { "200": { "body": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", - "name": "DefaultListenSharedAccessSignature", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", - "location": null, - "tags": null, - "properties": { - "keyName": "DefaultListenSharedAccessSignature", - "primaryKey": "#################################", - "secondaryKey": "#################################", - "claimType": "SharedAccessKey", - "claimValue": "None", - "rights": [ - "Listen" - ], - "createdTime": "2018-05-02T00:45:22.0150024Z", - "modifiedTime": "2018-05-02T00:45:22.0150024Z" - } + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=###########################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=###########################################", + "primaryKey": "###########################################", + "secondaryKey": "###########################################", + "keyName": "DefaultListenSharedAccessSignature" } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json index bbd012648a6a..63ec79eacc20 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json @@ -13,12 +13,12 @@ "200": { "body": { "isAvailiable": true, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/locp-newns/CheckNotificationHubAvailability", + "location": "East US", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/checkNotificationHubAvailability", "name": "sdktest", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/checkNotificationHubAvailability", - "location": "West Europe", - "tags": null + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "tags": {} } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json index d69007fa7297..39d676628685 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json @@ -6,6 +6,7 @@ "api-version": "2023-01-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { + "name": "test", "location": "eastus", "properties": {} } @@ -13,29 +14,20 @@ "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": "eastus", - "tags": null, + "location": "East US", "properties": { + "name": "test", "registrationTtl": "10675199.02:48:05.4775807", - "authorizationRules": [] - } - } - }, - "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", + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", - "location": "eastus", - "tags": null, - "properties": { - "registrationTtl": "10675199.02:48:05.4775807", - "authorizationRules": [] + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" } } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json index d3ef1273923b..a38e3e3df2fe 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json @@ -14,17 +14,17 @@ "responses": { "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", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", - "location": "South Central US", - "tags": null, "properties": { - "success": 1, + "success": 0, "failure": 0, - "results": null - } + "results": [] + }, + "location": "East US", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/debugsend", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/debugSend", + "tags": {} } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json index 96a0bfbe6c69..e46b2a7fdb13 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json @@ -9,16 +9,20 @@ "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, + "location": "East US", "properties": { + "name": "test", "registrationTtl": "10675199.02:48:05.4775807", - "authorizationRules": [] + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" } } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json index 34252f635b82..8be9c638f441 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json @@ -10,14 +10,18 @@ "body": { "value": [ { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/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, + "location": "East US", "properties": { + "name": "test", "registrationTtl": "10675199.02:48:05.4775807", - "authorizationRules": [] + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" } } ], @@ -25,4 +29,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json index 73fb23c0e022..7add4e3ec6e1 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json @@ -5,21 +5,35 @@ "notificationHubName": "sdk-notificationHubs-8708", "api-version": "2023-01-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "parameters": {} + "parameters": { + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "###################################" + } + } + } + } }, "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, + "location": "East US", "properties": { + "name": "test", "registrationTtl": "10675199.02:48:05.4775807", - "authorizationRules": [] + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" } } } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json index 9225bda726e8..b8a38b74ae11 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json @@ -8,20 +8,18 @@ }, "responses": { "200": { - "body": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub/pnsCredentials", - "name": "nh-sdk-hub", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials", - "location": "West Europe", - "tags": null, - "properties": { - "mpnsCredential": { - "properties": { - "thumbprint": "#################################" - } + "properties": { + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "###################################" } } - } + }, + "location": "East US", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/pnsCredentials", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials" } } -} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json index 3904bc88f204..5f7852aac05f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json @@ -5,27 +5,32 @@ "notificationHubName": "sdk-notificationHubs-8708", "api-version": "2023-01-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "properties": { - "properties": { - "maxSizeInMegabytes": 1024, - "maxDeliveryCount": 5, - "enableExpress": true + "parameters": { + "location": "{{rp-location}}", + "properties": {}, + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" } } }, "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, + "location": "East US", "properties": { + "name": "test", "registrationTtl": "10675199.02:48:05.4775807", - "authorizationRules": [] + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" } } } } -} +} \ No newline at end of file From fb612b01e4a040c117a93bde0cf582ef85717a3b Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 26 Apr 2023 14:55:15 +0200 Subject: [PATCH 03/73] Notification Hubs API 2023-01-01-preview: updating swagger --- .../preview/2023-01-01-preview/notificationhubs.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 3e92668cca00..0bca134d7e86 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -3471,7 +3471,10 @@ }, "location": { "type": "string", - "readOnly": true + "x-ms-mutability": [ + "create", + "read" + ] }, "properties": { "$ref": "#/definitions/NotificationHubProperties" From 933436f6e9bc0dc1c267f8d79e28ba8fcdae706b Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 27 Apr 2023 18:26:49 +0200 Subject: [PATCH 04/73] Notification Hubs: resolving some of issues found by automation --- ...n => AuthorizationRuleCreateOrUpdate.json} | 0 ...lete.json => AuthorizationRuleDelete.json} | 0 ...RuleGet.json => AuthorizationRuleGet.json} | 0 ...json => AuthorizationRuleGetWithKeys.json} | 21 +- ...istAll.json => AuthorizationRuleList.json} | 0 ...ey.json => AuthorizationRuleListKeys.json} | 0 ...on => AuthorizationRuleRegenerateKey.json} | 0 ...ailability.json => CheckAvailability.json} | 0 ...meSpaceCreate.json => CreateOrUpdate.json} | 0 .../{NHNameSpaceDelete.json => Delete.json} | 0 .../{NHNameSpaceGet.json => Get.json} | 0 ...rceGroup.json => ListByResourceGroup.json} | 0 ...SpaceList.json => ListBySubscription.json} | 0 .../Namespaces/PnsCredentialsGet.json | 27 ++ .../{NHNameSpaceUpdate.json => Update.json} | 0 ...n => AuthorizationRuleCreateOrUpdate.json} | 0 ...lete.json => AuthorizationRuleDelete.json} | 0 ...RuleGet.json => AuthorizationRuleGet.json} | 0 .../AuthorizationRuleGetWithKeys.json | 29 ++ ...istAll.json => AuthorizationRuleList.json} | 0 ...ey.json => AuthorizationRuleListKeys.json} | 0 ...on => AuthorizationRuleRegenerateKey.json} | 0 ...ailability.json => CheckAvailability.json} | 0 ...tionHubCreate.json => CreateOrUpdate.json} | 0 ...cationHubDebugSend.json => DebugSend.json} | 0 ...NotificationHubDelete.json => Delete.json} | 0 .../{NotificationHubGet.json => Get.json} | 0 ...ationHubListByNameSpace.json => List.json} | 0 ...otificationHubAuthorizationRuleUpdate.json | 28 -- ...redentials.json => PnsCredentialsGet.json} | 0 ...NotificationHubUpdate.json => Update.json} | 0 .../2023-01-01-preview/notificationhubs.json | 247 +++++++++++++----- 32 files changed, 247 insertions(+), 105 deletions(-) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceAuthorizationRuleCreate.json => AuthorizationRuleCreateOrUpdate.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceAuthorizationRuleDelete.json => AuthorizationRuleDelete.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceAuthorizationRuleGet.json => AuthorizationRuleGet.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceAuthorizationRuleUpdate.json => AuthorizationRuleGetWithKeys.json} (57%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceAuthorizationRuleListAll.json => AuthorizationRuleList.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceAuthorizationRuleListKey.json => AuthorizationRuleListKeys.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceAuthorizationRuleRegenerateKey.json => AuthorizationRuleRegenerateKey.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceCheckNameAvailability.json => CheckAvailability.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceCreate.json => CreateOrUpdate.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceDelete.json => Delete.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceGet.json => Get.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceListByResourceGroup.json => ListByResourceGroup.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceList.json => ListBySubscription.json} (100%) create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{NHNameSpaceUpdate.json => Update.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubAuthorizationRuleCreate.json => AuthorizationRuleCreateOrUpdate.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubAuthorizationRuleDelete.json => AuthorizationRuleDelete.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubAuthorizationRuleGet.json => AuthorizationRuleGet.json} (100%) create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubAuthorizationRuleListAll.json => AuthorizationRuleList.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubAuthorizationRuleListKey.json => AuthorizationRuleListKeys.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubAuthorizationRuleRegenerateKey.json => AuthorizationRuleRegenerateKey.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubCheckNameAvailability.json => CheckAvailability.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubCreate.json => CreateOrUpdate.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubDebugSend.json => DebugSend.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubDelete.json => Delete.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubGet.json => Get.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubListByNameSpace.json => List.json} (100%) delete mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubPnsCredentials.json => PnsCredentialsGet.json} (100%) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/{NotificationHubUpdate.json => Update.json} (100%) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json similarity index 57% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json index ee428fad516e..18b9b9e0f67c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json @@ -1,30 +1,27 @@ { "parameters": { "namespaceName": "nh-sdk-ns", - "authorizationRuleName": "MyManageSharedAccessKey", + "authorizationRuleName": "RootManageSharedAccessKey", "resourceGroupName": "5ktrial", "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "parameters": { - "properties": { - "rights": [ - "Listen" - ] - } - } + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { "properties": { "rights": [ - "Listen" + "Manage", + "Listen", + "Send" ], + "primaryKey": "############################################", + "secondaryKey": "############################################", "modifiedTime": "2023-04-26T10:19:36.3315279+00:00", "createdTime": "2023-04-26T10:19:36.3315279+00:00" }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/MyManageSharedAccessKey", - "name": "MyManageSharedAccessKey", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenerateKey.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCheckNameAvailability.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceCreate.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceDelete.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceGet.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceListByResourceGroup.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceList.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json new file mode 100644 index 000000000000..8908bc97efa9 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/pnsCredentials", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/pnsCredentials", + "location": "West Europe", + "tags": null, + "properties": { + "mpnsCredential": { + "properties": { + "thumbprint": "#################################" + } + } + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/NHNameSpaceUpdate.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json new file mode 100644 index 000000000000..540874e8cceb --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "primaryKey": "############################################", + "secondaryKey": "############################################", + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "createdTime": "2023-04-26T12:24:40.5863818+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenerateKey.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCheckNameAvailability.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubCreate.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDebugSend.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubDelete.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubGet.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubListByNameSpace.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json deleted file mode 100644 index b6f50416bd87..000000000000 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "5ktrial", - "namespaceName": "nh-sdk-ns", - "notificationHubName": "nh-sdk-hub", - "authorizationRuleName": "DefaultListenSharedAccessSignature", - "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "parameters": { - "properties": { - "rights": [ - "Listen" - ] - } - } - }, - "responses": { - "200": { - "body": { - "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=###########################################", - "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=###########################################", - "primaryKey": "###########################################", - "secondaryKey": "###########################################", - "keyName": "DefaultListenSharedAccessSignature" - } - } - } -} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPnsCredentials.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubUpdate.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 0bca134d7e86..537c72c1b868 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -5,6 +5,10 @@ "description": "Microsoft Notification Hubs Resource Provider REST API.", "version": "2023-01-01-preview" }, + "host": "management.azure.com", + "schemes": [ + "https" + ], "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { "post": { @@ -68,6 +72,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_CheckNotificationHubAvailability": { + "$ref": "./examples/NotificationHubs/CheckAvailability.json" + } } } }, @@ -129,6 +138,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_Get": { + "$ref": "./examples/NotificationHubs/Get.json" + } } }, "put": { @@ -200,6 +214,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_CreateOrUpdate": { + "$ref": "./examples/NotificationHubs/CreateOrUpdate.json" + } } }, "patch": { @@ -265,6 +284,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_Patch": { + "$ref": "./examples/NotificationHubs/Udpate.json" + } } }, "delete": { @@ -324,6 +348,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_Delete": { + "$ref": "./examples/NotificationHubs/Delete.json" + } } } }, @@ -396,6 +425,11 @@ "x-ms-pageable": { "itemName": "value", "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "NotificationHubs_List": { + "$ref": "./examples/NotificationHubs/List.json" + } } } }, @@ -457,6 +491,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_DebugSend": { + "$ref": "./examples/NotificationHubs/DebugSend.json" + } } } }, @@ -536,6 +575,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json" + } } }, "delete": { @@ -596,6 +640,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_DeleteAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleDelete.json" + } } }, "get": { @@ -662,14 +711,19 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_GetAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" + } } }, "post": { "tags": [ "Hubs" ], - "summary": "Gets an authorization rule for a NotificationHub by name.", - "operationId": "NotificationHubs_GetAuthorizationRule", + "summary": "Gets an authorization rule for a NotificationHub by name, including keys.", + "operationId": "NotificationHubs_GetAuthorizationRuleWithKeys", "produces": [ "application/json" ], @@ -728,6 +782,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_GetAuthorizationRuleWithKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleGetWithKeys.json" + } } } }, @@ -793,6 +852,11 @@ "x-ms-pageable": { "itemName": "value", "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "NotificationHubs_ListAuthorizationRules": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleList.json" + } } } }, @@ -861,6 +925,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_ListKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleListKeys.json" + } } } }, @@ -940,6 +1009,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_RegenerateKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleRegenerateKey.json" + } } } }, @@ -1001,6 +1075,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "NotificationHubs_GetPnsCredentials": { + "$ref": "./examples/NotificationHubs/PnsCredentialsGet.json" + } } } }, @@ -1104,53 +1183,10 @@ "default": { "description": "Error code with reason." } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNameAvailability": { - "post": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_CheckAvailability", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/CheckAvailabilityParameters" - } - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/CheckAvailabilityResult" - } - }, - "default": { - "description": "Error code with reason." + }, + "x-ms-examples": { + "Namespaces_CheckAvailability": { + "$ref": "./examples/Namespaces/CheckAvailability" } } } @@ -1207,6 +1243,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_Get": { + "$ref": "./examples/Namespaces/Get.json" + } } }, "put": { @@ -1276,6 +1317,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_CreateOrUpdate": { + "$ref": "./examples/Namespaces/CreateOrUpdate.json" + } } }, "patch": { @@ -1339,6 +1385,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_Patch": { + "$ref": "./examples/Namespaces/Update.json" + } } }, "delete": { @@ -1386,6 +1437,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_Delete": { + "$ref": "./examples/Namespaces/Delete.json" + } } } }, @@ -1440,6 +1496,11 @@ "x-ms-pageable": { "itemName": "value", "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Namespaces_ListAll": { + "$ref": "./examples/Namespaces/ListBySubscription.json" + } } } }, @@ -1500,6 +1561,11 @@ "x-ms-pageable": { "itemName": "value", "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Namespaces_List": { + "$ref": "./examples/Namespaces/ListByResourceGroup.json" + } } } }, @@ -1566,6 +1632,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleCreateOrUpdate.json" + } } }, "delete": { @@ -1614,6 +1685,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_DeleteAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleDelete.json" + } } }, "get": { @@ -1668,13 +1744,18 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_GetAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" + } } }, "post": { "tags": [ "Namespaces" ], - "operationId": "Namespaces_GetAuthorizationRule", + "operationId": "Namespaces_GetAuthorizationRuleWithKeys", "produces": [ "application/json" ], @@ -1722,6 +1803,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_GetAuthorizationRuleWithKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleGetWithKeys.json" + } } } }, @@ -1776,6 +1862,11 @@ "x-ms-pageable": { "itemName": "value", "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Namespaces_ListAuthorizationRules": { + "$ref": "./examples/Namespaces/AuthorizationRuleList.json" + } } } }, @@ -1836,6 +1927,11 @@ "x-ms-pageable": { "itemName": "value", "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Namespaces_ListKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleListKeys.json" + } } } }, @@ -1902,6 +1998,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_RegenerateKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleRegenerateKey.json" + } } } }, @@ -1956,6 +2057,11 @@ "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "Namespaces_GetPnsCredentials": { + "$ref": "./examples/Namespaces/PnsCredentialsGet.json" + } } } }, @@ -1992,6 +2098,11 @@ "x-ms-pageable": { "itemName": "value", "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/NHOperationsList.json" + } } } }, @@ -2051,7 +2162,7 @@ "Operations" ], "summary": "API for operation results, as defined by the Location header spec\r\nhttps://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.", - "operationId": "OperationStatus", + "operationId": "OperationResult", "parameters": [ { "in": "path", @@ -2155,7 +2266,7 @@ "tags": [ "Operations" ], - "operationId": "NamespaceOperationStatus", + "operationId": "NamespacePrivateLinkOperationStatus", "produces": [ "application/json" ], @@ -2239,18 +2350,6 @@ "required": true, "type": "string" }, - { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "proxyName", - "required": true, - "type": "string" - }, { "in": "path", "name": "operationId", @@ -4161,5 +4260,23 @@ } } } - } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] } \ No newline at end of file From abe05606c69c59f0619010b85890675ab49b2618 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 27 Apr 2023 18:53:48 +0200 Subject: [PATCH 05/73] Notification Hubs examples: removing null values --- .../examples/Namespaces/PnsCredentialsGet.json | 1 - .../2023-01-01-preview/examples/NotificationHubs/List.json | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json index 8908bc97efa9..dde663c05885 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json @@ -13,7 +13,6 @@ "name": "nh-sdk-hub", "type": "Microsoft.NotificationHubs/namespaces/pnsCredentials", "location": "West Europe", - "tags": null, "properties": { "mpnsCredential": { "properties": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json index 8be9c638f441..c77a6e5788a8 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json @@ -24,8 +24,7 @@ "hubTag2": "hubTagValue2" } } - ], - "nextLink": null + ] } } } From 03269341b181ea43bcd614e1384ce9b5bd0abb9f Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 10:16:11 +0200 Subject: [PATCH 06/73] Notification Hubs: fixing file name for one of examples --- .../preview/2023-01-01-preview/notificationhubs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 537c72c1b868..d3cd6caa9293 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1186,7 +1186,7 @@ }, "x-ms-examples": { "Namespaces_CheckAvailability": { - "$ref": "./examples/Namespaces/CheckAvailability" + "$ref": "./examples/Namespaces/CheckAvailability.json" } } } From ee04bae02418bfacc90947c3e0692f4e5141ea8f Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 11:08:11 +0200 Subject: [PATCH 07/73] Notification Hubs: adding example for operations --- .../examples/NHOperationsList.json | 1267 +++++++++++++++++ 1 file changed, 1267 insertions(+) create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json new file mode 100644 index 000000000000..2bf062059d0f --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json @@ -0,0 +1,1267 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.NotificationHubs/register/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Registers the NotificationHubs Provider", + "description": "Registers the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs" + } + }, + { + "name": "Microsoft.NotificationHubs/unregister/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Unregisters the NotificationHubs Provider", + "description": "Unregisters the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs" + } + }, + { + "name": "Microsoft.NotificationHubs/operations/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Notification Hubs provider operations", + "description": "Returns a list of supported operations for Notification Hubs provider" + } + }, + { + "name": "Microsoft.NotificationHubs/operationResults/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Operation results for Notification Hubs provider", + "description": "Returns operation results for Notification Hubs provider" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Read diagnostics setting", + "description": "Get Namespace diagnostic settings" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Write diagnostic settings", + "description": "Create or Update Namespace diagnostic settings" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "The log definition of Namespace", + "operation": "Read Namespace log definitions", + "description": "Gets the available logs for Namespace" + }, + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "OperationalLogs", + "displayName": "Operational Logs", + "blobDuration": "PT1H" + } + ] + } + } + }, + { + "name": "Microsoft.NotificationHubs/CheckNamespaceAvailability/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Check Namespace name availability.", + "description": "Checks whether or not a given Namespace resource name is available within the NotificationHub service." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Create Or Update Namespace", + "description": "Create a Namespace Resource and Update its properties. Tags and Capacity of the Namespace are the properties which can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Get Namespace Resource", + "description": "Get the list of Namespace Resource Description" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Delete Namespace", + "description": "Delete Namespace Resource" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Create or Update Namespace Authorization Rules", + "description": "Create a Namespace level Authorization Rules and update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Get Namespace Authorization Rules", + "description": "Get the list of Namespaces Authorization Rules description." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Get Namespace Authorization Rules", + "description": "Get the list of Namespaces Authorization Rules description." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Delete Namespace Authorization Rule", + "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Get Namespace Listkeys", + "description": "Get the Connection String to the Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Namespace Authorization Rule Regenerate Keys", + "description": "Namespace Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/CheckNotificationHubAvailability/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Check NotificationHub name availability.", + "description": "Checks whether or not a given NotificationHub name is available inside a Namespace." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Create or Update Notification Hub", + "description": "Create a Notification Hub and Update its properties. Its properties mainly include PNS Credentials. Authorization Rules and TTL" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/vapidkeys/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Get VAPID keys for a Notification Hub", + "description": "Get new pair of VAPID keys for a Notification Hub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Get Notification Hub", + "description": "Get list of Notification Hub Resource Descriptions" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Delete Notification Hub", + "description": "Delete Notification Hub Resource" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Create or Update Notification hub Authorization Rule", + "description": "Create Notification Hub Authorization Rules and Update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Get Notification Hub Authorization Rules", + "description": "Get the list of Notification Hub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Get Notification Hub Authorization Rules", + "description": "Get the list of Notification Hub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Delete Notification Hub Authorization Rules", + "description": "Delete Notification Hub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Get Notification Hub Listkeys", + "description": "Get the Connection String to the Notification Hub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Notification Hub Authorization Rule Regenerate Keys", + "description": "Notification Hub Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/pnsCredentials/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub PnsCredential", + "operation": "Get Notification Hub PNS Credentials", + "description": "Get All Notification Hub PNS Credentials. This includes, WNS, MPNS, APNS, GCM and Baidu credentials" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/debugSend/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Send a test push notification.", + "description": "Send a test push notification to 10 matched devices." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/metricDefinitions/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace metrics", + "operation": "Get Namespace metrics", + "description": "Get list of Namespace metrics Resource Descriptions" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "registration.all", + "displayName": "Registration Operations", + "displayDescription": "The count of all successful registration operations (creations updates queries and deletions). ", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "registration.create", + "displayName": "Registration Create Operations", + "displayDescription": "The count of all successful registration creations.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "registration.update", + "displayName": "Registration Update Operations", + "displayDescription": "The count of all successful registration updates.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "registration.get", + "displayName": "Registration Read Operations", + "displayDescription": "The count of all successful registration queries.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "registration.delete", + "displayName": "Registration Delete Operations", + "displayDescription": "The count of all successful registration deletions.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming", + "displayName": "Incoming Messages", + "displayDescription": "The count of all successful send API calls. ", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming.scheduled", + "displayName": "Scheduled Push Notifications Sent", + "displayDescription": "Scheduled Push Notifications Sent", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming.scheduled.cancel", + "displayName": "Scheduled Push Notifications Cancelled", + "displayDescription": "Scheduled Push Notifications Cancelled", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "scheduled.pending", + "displayName": "Pending Scheduled Notifications", + "displayDescription": "Pending Scheduled Notifications", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.all", + "displayName": "Installation Management Operations", + "displayDescription": "Installation Management Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.get", + "displayName": "Get Installation Operations", + "displayDescription": "Get Installation Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.upsert", + "displayName": "Create or Update Installation Operations", + "displayDescription": "Create or Update Installation Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.patch", + "displayName": "Patch Installation Operations", + "displayDescription": "Patch Installation Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.delete", + "displayName": "Delete Installation Operations", + "displayDescription": "Delete Installation Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.success", + "displayName": "Successful notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.invalidpayload", + "displayName": "Payload Errors", + "displayDescription": "The count of pushes that failed because the PNS returned a bad payload error.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.pnserror", + "displayName": "External Notification System Errors", + "displayDescription": "The count of pushes that failed because there was a problem communicating with the PNS (excludes authentication problems).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.channelerror", + "displayName": "Channel Errors", + "displayDescription": "The count of pushes that failed because the channel was invalid not associated with the correct app throttled or expired.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.badorexpiredchannel", + "displayName": "Bad or Expired Channel Errors", + "displayDescription": "The count of pushes that failed because the channel/token/registrationId in the registration was expired or invalid.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.success", + "displayName": "WNS Successful Notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.invalidcredentials", + "displayName": "WNS Authorization Errors (Invalid Credentials)", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked. (Windows Live does not recognize the credentials).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.badchannel", + "displayName": "WNS Bad Channel Error", + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was not recognized (WNS status: 404 not found).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.expiredchannel", + "displayName": "WNS Expired Channel Error", + "displayDescription": "The count of pushes that failed because the ChannelURI is expired (WNS status: 410 Gone).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.throttled", + "displayName": "WNS Throttled Notifications", + "displayDescription": "The count of pushes that failed because WNS is throttling this app (WNS status: 406 Not Acceptable).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.tokenproviderunreachable", + "displayName": "WNS Authorization Errors (Unreachable)", + "displayDescription": "Windows Live is not reachable.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.invalidtoken", + "displayName": "WNS Authorization Errors (Invalid Token)", + "displayDescription": "The token provided to WNS is not valid (WNS status: 401 Unauthorized).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.wrongtoken", + "displayName": "WNS Authorization Errors (Wrong Token)", + "displayDescription": "The token provided to WNS is valid but for another application (WNS status: 403 Forbidden). This can happen if the ChannelURI in the registration is associated with another app. Check that the client app is associated with the same app whose credentials are in the notification hub.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.invalidnotificationformat", + "displayName": "WNS Invalid Notification Format", + "displayDescription": "The format of the notification is invalid (WNS status: 400). Note that WNS does not reject all invalid payloads.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.invalidnotificationsize", + "displayName": "WNS Invalid Notification Size Error", + "displayDescription": "The notification payload is too large (WNS status: 413).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.channelthrottled", + "displayName": "WNS Channel Throttled", + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (WNS response header: X-WNS-NotificationStatus:channelThrottled).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.channeldisconnected", + "displayName": "WNS Channel Disconnected", + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (WNS response header: X-WNS-DeviceConnectionStatus: disconnected).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.dropped", + "displayName": "WNS Dropped Notifications", + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (X-WNS-NotificationStatus: dropped but not X-WNS-DeviceConnectionStatus: disconnected).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.pnserror", + "displayName": "WNS Errors", + "displayDescription": "Notification not delivered because of errors communicating with WNS.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.authenticationerror", + "displayName": "WNS Authentication Errors", + "displayDescription": "Notification not delivered because of errors communicating with Windows Live invalid credentials or wrong token.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.success", + "displayName": "APNS Successful Notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.invalidcredentials", + "displayName": "APNS Authorization Errors", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.badchannel", + "displayName": "APNS Bad Channel Error", + "displayDescription": "The count of pushes that failed because the token is invalid (APNS status code: 8).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.expiredchannel", + "displayName": "APNS Expired Channel Error", + "displayDescription": "The count of token that were invalidated by the APNS feedback channel.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.invalidnotificationsize", + "displayName": "APNS Invalid Notification Size Error", + "displayDescription": "The count of pushes that failed because the payload was too large (APNS status code: 7).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.pnserror", + "displayName": "APNS Errors", + "displayDescription": "The count of pushes that failed because of errors communicating with APNS.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.success", + "displayName": "GCM Successful Notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.invalidcredentials", + "displayName": "GCM Authorization Errors (Invalid Credentials)", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.badchannel", + "displayName": "GCM Bad Channel Error", + "displayDescription": "The count of pushes that failed because the registrationId in the registration was not recognized (GCM result: Invalid Registration).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.expiredchannel", + "displayName": "GCM Expired Channel Error", + "displayDescription": "The count of pushes that failed because the registrationId in the registration was expired (GCM result: NotRegistered).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.throttled", + "displayName": "GCM Throttled Notifications", + "displayDescription": "The count of pushes that failed because GCM throttled this app (GCM status code: 501-599 or result:Unavailable).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.invalidnotificationformat", + "displayName": "GCM Invalid Notification Format", + "displayDescription": "The count of pushes that failed because the payload was not formatted correctly (GCM result: InvalidDataKey or InvalidTtl).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.invalidnotificationsize", + "displayName": "GCM Invalid Notification Size Error", + "displayDescription": "The count of pushes that failed because the payload was too large (GCM result: MessageTooBig).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.wrongchannel", + "displayName": "GCM Wrong Channel Error", + "displayDescription": "The count of pushes that failed because the registrationId in the registration is not associated to the current app (GCM result: InvalidPackageName).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.pnserror", + "displayName": "GCM Errors", + "displayDescription": "The count of pushes that failed because of errors communicating with GCM.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.authenticationerror", + "displayName": "GCM Authentication Errors", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials the credentials are blocked or the SenderId is not correctly configured in the app (GCM result: MismatchedSenderId).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.success", + "displayName": "MPNS Successful Notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.invalidcredentials", + "displayName": "MPNS Invalid Credentials", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.badchannel", + "displayName": "MPNS Bad Channel Error", + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was not recognized (MPNS status: 404 not found).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.throttled", + "displayName": "MPNS Throttled Notifications", + "displayDescription": "The count of pushes that failed because MPNS is throttling this app (WNS MPNS: 406 Not Acceptable).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.invalidnotificationformat", + "displayName": "MPNS Invalid Notification Format", + "displayDescription": "The count of pushes that failed because the payload of the notification was too large.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.channeldisconnected", + "displayName": "MPNS Channel Disconnected", + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was disconnected (MPNS status: 412 not found).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.dropped", + "displayName": "MPNS Dropped Notifications", + "displayDescription": "The count of pushes that were dropped by MPNS (MPNS response header: X-NotificationStatus: QueueFull or Suppressed).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.pnserror", + "displayName": "MPNS Errors", + "displayDescription": "The count of pushes that failed because of errors communicating with MPNS.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.authenticationerror", + "displayName": "MPNS Authentication Errors", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "notificationhub.pushes", + "displayName": "All Outgoing Notifications", + "displayDescription": "All outgoing notifications of the notification hub", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming.all.requests", + "displayName": "All Incoming Requests", + "displayDescription": "Total incoming requests for a notification hub", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming.all.failedrequests", + "displayName": "All Incoming Failed Requests", + "displayDescription": "Total incoming failed requests for a notification hub", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + } + ] + } + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionsApproval/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Approve Private Endpoint Connection", + "description": "Approve Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/validate/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Validate Private Endpoint Connection Proxy", + "description": "Validate Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Get Private Endpoint Connection Proxy", + "description": "Get Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Create Private Endpoint Connection Proxy", + "description": "Create Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Delete Private Endpoint Connection Proxy", + "description": "Delete Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/operationstatus/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Private endpoint operation status", + "description": "Get the status of an asynchronous private endpoint operation" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection", + "operation": "Get Private Endpoint Connection", + "description": "Get Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection", + "operation": "Create or Update Private Endpoint Connection", + "description": "Create or Update Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection", + "operation": "Removes Private Endpoint Connection", + "description": "Removes Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/operationstatus/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection", + "operation": "Removes Private Endpoint Connection", + "description": "Removes Private Endpoint Connection" + } + } + ] + } + } + } +} \ No newline at end of file From 86ad29cfe9dc1d26a91fa654c6ed51deb65994b3 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 11:44:39 +0200 Subject: [PATCH 08/73] Notification Hubs: udpating example file name --- .../preview/2023-01-01-preview/notificationhubs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index d3cd6caa9293..c5b1aeeebbba 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -287,7 +287,7 @@ }, "x-ms-examples": { "NotificationHubs_Patch": { - "$ref": "./examples/NotificationHubs/Udpate.json" + "$ref": "./examples/NotificationHubs/Update.json" } } }, From 5745ae4d14214baaec014fe84c1839bd70dd9ce3 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 12:53:17 +0200 Subject: [PATCH 09/73] Notification Hubs: udpating examples --- .../Namespaces/CheckAvailability.json | 12 ++-- .../examples/Namespaces/CreateOrUpdate.json | 55 ++++++++++--------- .../NotificationHubs/CreateOrUpdate.json | 17 ++++++ .../NotificationHubPatch.json | 39 ------------- .../NotificationHubs/PnsCredentialsGet.json | 24 ++++---- .../examples/NotificationHubs/Update.json | 13 +++-- .../2023-01-01-preview/notificationhubs.json | 2 +- 7 files changed, 74 insertions(+), 88 deletions(-) delete mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json index d6e51b64ff62..de9b97b8172b 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json @@ -8,11 +8,13 @@ }, "responses": { "200": { - "isAvailiable": true, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/CheckNamespaceAvailability", - "name": "sdk-Namespace-2924", - "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", - "tags": {} + "body": { + "isAvailiable": true, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/CheckNamespaceAvailability", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "tags": {} + } } } } \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json index e8ddc9c349a1..f43b4d4ee84d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json @@ -79,39 +79,40 @@ "tag1": "value1", "tag2": "value2" } - }, - "201": { - "body": { - "location": "East US", - "sku": { - "name": "Standard" - }, - "properties": { - "networkAcls": { - "ipRules": [ - { - "ipMask": "185.48.100.00/24", - "rights": [ - "Manage", - "Send", - "Listen" - ] - } - ], - "publicInternetRule": { + } + }, + "201": { + "body": { + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", "rights": [ + "Manage", + "Send", "Listen" ] } + ], + "publicInternetRule": { + "rights": [ + "Listen" + ] } - }, - "name": "nh-sdk-ns", - "type": "Microsoft.NotificationHubs/namespaces", - "tags": { - "tag1": "value1", - "tag2": "value2" } + }, + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value1", + "tag2": "value2" } } } - } \ No newline at end of file + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json index 39d676628685..d4ac93ecc020 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json @@ -28,6 +28,23 @@ "hubTag2": "hubTagValue2" } } + }, + "201": { + "body": { + "location": "East US", + "properties": { + "name": "test", + "registrationTtl": "10675199.02:48:05.4775807", + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } } } } \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json deleted file mode 100644 index 7add4e3ec6e1..000000000000 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/NotificationHubPatch.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "namespaceName": "nh-sdk-ns", - "resourceGroupName": "sdkresourceGroup", - "notificationHubName": "sdk-notificationHubs-8708", - "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "parameters": { - "properties": { - "registrationTtl": "10675199.02:48:05.4775807", - "gcmCredential": { - "properties": { - "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", - "googleApiKey": "###################################" - } - } - } - } - }, - "responses": { - "200": { - "body": { - "location": "East US", - "properties": { - "name": "test", - "registrationTtl": "10675199.02:48:05.4775807", - "dailyMaxActiveDevices": 0 - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", - "name": "test", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", - "tags": { - "hubTag1": "hubTagValue1", - "hubTag2": "hubTagValue2" - } - } - } - } -} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json index b8a38b74ae11..c1298eba6351 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json @@ -8,18 +8,20 @@ }, "responses": { "200": { - "properties": { - "gcmCredential": { - "properties": { - "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", - "googleApiKey": "###################################" + "body": { + "properties": { + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "###################################" + } } - } - }, - "location": "East US", - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/pnsCredentials", - "name": "test", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials" + }, + "location": "East US", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/pnsCredentials", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials" + } } } } \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json index 5f7852aac05f..7add4e3ec6e1 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json @@ -6,11 +6,14 @@ "api-version": "2023-01-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { - "location": "{{rp-location}}", - "properties": {}, - "tags": { - "hubTag1": "hubTagValue1", - "hubTag2": "hubTagValue2" + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "###################################" + } + } } } }, diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index c5b1aeeebbba..f89a4a4c07d3 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2051,7 +2051,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/PnsCredentials" + "$ref": "#/definitions/PnsCredentialsResource" } }, "default": { From 258a26c1c414d758d828ac90e60ff81282a8a3c7 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 15:51:11 +0200 Subject: [PATCH 10/73] Notification Hubs: adding Private Link / Private Endpoint Connection examples --- ...vateEndpointConnectionApproveOrReject.json | 40 ++++ .../PrivateEndpointConnectionDelete.json | 12 ++ .../PrivateEndpointConnectionGet.json | 33 ++++ .../PrivateEndpointConnectionList.json | 36 ++++ .../Namespaces/PrivateLinkResourceGet.json | 29 +++ .../Namespaces/PrivateLinkResourceList.json | 32 ++++ .../2023-01-01-preview/notificationhubs.json | 171 +++++++++++++++++- 7 files changed, 345 insertions(+), 8 deletions(-) create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json create mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json new file mode 100644 index 000000000000..87b718306feb --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "parameters": { + "properties": { + "privateEndpoint": {}, + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + } + }, + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial", + "resourceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "name": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "type": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json new file mode 100644 index 000000000000..04eef6c8f3bc --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial", + "resourceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + }, + "responses": { + "202": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json new file mode 100644 index 000000000000..668342ba47b3 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial", + "resourceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + }, + "location": "Central US EUAP", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", + "tags": {} + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json new file mode 100644 index 000000000000..a7dd0f7644bf --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + }, + "location": "Central US EUAP", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", + "tags": {} + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json new file mode 100644 index 000000000000..8b2624957bef --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subResourceName": "namespace", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "properties": { + "groupId": "namespace", + "requiredMembers": [ + "namespace" + ], + "requiredZoneNames": [ + "privatelink.servicebus.windows.net", + "privatelink.notificationhub.windows.net" + ] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", + "tags": {} + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json new file mode 100644 index 000000000000..2b9dccc37386 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "groupId": "namespace", + "requiredMembers": [ + "namespace" + ], + "requiredZoneNames": [ + "privatelink.servicebus.windows.net", + "privatelink.notificationhub.windows.net" + ] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", + "tags": {} + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index f89a4a4c07d3..5513a2011ca2 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2390,11 +2390,17 @@ ], "summary": "Approves or rejects Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", "description": "This is an asynchronous API, which sets the Azure-AsyncOperation header. \r\nCaller can use URI from that header to check status of the operation.", + "operationId": "PrivateEndpointConnections_ApproveOrReject", "consumes": [ "application/json", "text/json", "application/*+json" ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], "parameters": [ { "in": "path", @@ -2442,12 +2448,20 @@ } ], "responses": { - "200": { - "description": "Success" + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } }, "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "PrivateEndpointConnections_ApproveOrReject": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json" + } } }, "delete": { @@ -2456,6 +2470,7 @@ ], "summary": "Deletes the Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", "description": "This is an asynchronous API, which sets the Azure-AsyncOperation header. \r\nCaller can use URI from that header to check status of the operation.", + "operationId": "PrivateEndpointConnections_Delete", "parameters": [ { "in": "path", @@ -2493,12 +2508,17 @@ } ], "responses": { - "200": { - "description": "Success" + "202": { + "description": "Accepted" }, "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Delete": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionDelete.json" + } } }, "get": { @@ -2506,6 +2526,12 @@ "PrivateLink" ], "summary": "Returns a Private Endpoint Connection with a given name. \r\nThis is a public API that can be called directly by Notification Hubs users.", + "operationId": "PrivateEndpointConnections_Get", + "produces": [ + "text/plain", + "application/json", + "text/json" + ], "parameters": [ { "in": "path", @@ -2546,11 +2572,19 @@ ], "responses": { "200": { - "description": "Success" + "description": "Success", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } }, "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Get": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionGet.json" + } } } }, @@ -2560,6 +2594,12 @@ "PrivateLink" ], "summary": "Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace.\r\nThis is a public API that can be called directly by Notification Hubs users.", + "operationId": "PrivateEndpointConnections_List", + "produces": [ + "text/plain", + "application/json", + "text/json" + ], "parameters": [ { "in": "path", @@ -2593,11 +2633,19 @@ ], "responses": { "200": { - "description": "Success" + "description": "Success", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResourcePrivateLinkResourceCollection" + } }, "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "PrivateEndpointConnections_List": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionList.json" + } } } }, @@ -2608,6 +2656,12 @@ ], "summary": "Returns Group Id response. \r\nThis is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users.", "description": "Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called.\r\nThat's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.", + "operationId": "PrivateEndpointConnections_GetGroupId", + "produces": [ + "text/plain", + "application/json", + "text/json" + ], "parameters": [ { "in": "path", @@ -2648,11 +2702,19 @@ ], "responses": { "200": { - "description": "Success" + "description": "Success", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } }, "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "PrivateEndpointConnections_GetGroupId": { + "$ref": "./examples/Namespaces/PrivateLinkResourcesGet.json" + } } } }, @@ -2663,6 +2725,12 @@ ], "summary": "Returns all Group Ids supported by the Notification Hubs RP.\r\nThis is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users.", "description": "Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called.\r\nThat's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.", + "operationId": "PrivateEndpointConnections_ListGroupIds", + "produces": [ + "text/plain", + "application/json", + "text/json" + ], "parameters": [ { "in": "path", @@ -2696,11 +2764,19 @@ ], "responses": { "200": { - "description": "Success" + "description": "Success", + "schema": { + "$ref": "#/definitions/PrivateLinkResourcePrivateLinkResourceCollection" + } }, "default": { "description": "Error code with reason." } + }, + "x-ms-examples": { + "PrivateEndpointConnections_ListGroupIds": { + "$ref": "./examples/Namespaces/PrivateLinkResourceList.json" + } } } } @@ -3875,6 +3951,18 @@ } } }, + "PrivateEndpointConnectionResourcePrivateLinkResourceCollection": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + }, + "readOnly": true + } + } + }, "PrivateLinkConnectionStatus": { "enum": [ "Disconnected", @@ -3888,6 +3976,73 @@ "modelAsString": true } }, + "PrivateLinkResource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "type": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties" + } + } + }, + "PrivateLinkResourcePrivateLinkResourceCollection": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "readOnly": true + } + } + }, + "PrivateLinkResourceProperties": { + "type": "object", + "properties": { + "groupId": { + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "requiredZoneNames": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, "PrivateLinkServiceConnection": { "type": "object", "properties": { From 536042579dae248b31db2205366c3683e8058556 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 16:07:26 +0200 Subject: [PATCH 11/73] Notification Hubs: updating example file name --- .../preview/2023-01-01-preview/notificationhubs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 5513a2011ca2..eac7ea93cdbb 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2713,7 +2713,7 @@ }, "x-ms-examples": { "PrivateEndpointConnections_GetGroupId": { - "$ref": "./examples/Namespaces/PrivateLinkResourcesGet.json" + "$ref": "./examples/Namespaces/PrivateLinkResourceGet.json" } } } From 247c69712f306d501156427254f733bfda2c2b63 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 16:24:49 +0200 Subject: [PATCH 12/73] Notification Hubs: updating parameters in examples for Private Link --- .../Namespaces/PrivateEndpointConnectionApproveOrReject.json | 4 +++- .../examples/Namespaces/PrivateEndpointConnectionDelete.json | 2 +- .../examples/Namespaces/PrivateEndpointConnectionGet.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json index 87b718306feb..713883a10040 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json @@ -1,6 +1,8 @@ { "parameters": { "parameters": { + "namespaceName": "nh-sdk-ns", + "api-version": "2023-01-01-preview", "properties": { "privateEndpoint": {}, "privateLinkServiceConnectionState": { @@ -16,7 +18,7 @@ "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" }, "responses": { - "200": { + "202": { "body": { "properties": { "provisioningState": "Succeeded", diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json index 04eef6c8f3bc..7ebc39f8387b 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json @@ -3,7 +3,7 @@ "api-version": "2023-01-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "resourceGroupName": "5ktrial", - "resourceName": "nh-sdk-ns", + "namespaceName": "nh-sdk-ns", "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" }, "responses": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json index 668342ba47b3..ecbbba004388 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json @@ -3,7 +3,7 @@ "api-version": "2023-01-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "resourceGroupName": "5ktrial", - "resourceName": "nh-sdk-ns", + "namespaceName": "nh-sdk-ns", "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" }, "responses": { From ab8ec0c2ca6811cee6ee9525e67c4485c8c24706 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 16:32:16 +0200 Subject: [PATCH 13/73] Notification Hubs: updating parameters in examples for Private Link --- .../PrivateEndpointConnectionApproveOrReject.json | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json index 713883a10040..b59d1b1ec515 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json @@ -1,8 +1,11 @@ { "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", "parameters": { - "namespaceName": "nh-sdk-ns", - "api-version": "2023-01-01-preview", "properties": { "privateEndpoint": {}, "privateLinkServiceConnectionState": { @@ -10,12 +13,7 @@ "actionsRequired": "None" } } - }, - "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "resourceGroupName": "5ktrial", - "resourceName": "nh-sdk-ns", - "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + } }, "responses": { "202": { From 6dd845ef3b2ebbe790ef1ca7e7cd3926ef98a5f6 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 16:46:36 +0200 Subject: [PATCH 14/73] NotificationHubs: updating custom words --- custom-words.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom-words.txt b/custom-words.txt index b2d9ecd17780..8f94d71c3284 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -77,7 +77,6 @@ ambari amlcompute amortizedcost analyticsconnectors -analysisservices analyzeconversations analyzetext AND'ed @@ -2799,3 +2798,5 @@ Metadatas Gtid GTID gtid +xiaomi +availiable \ No newline at end of file From a783fc97e42ba0e0c5ea288372cc412d3826a33c Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 18:26:48 +0200 Subject: [PATCH 15/73] Notification Hubs: updating formatting (pretty-fix) --- .../examples/NHOperationsList.json | 2 +- .../AuthorizationRuleCreateOrUpdate.json | 2 +- .../Namespaces/AuthorizationRuleGet.json | 2 +- .../AuthorizationRuleGetWithKeys.json | 2 +- .../Namespaces/AuthorizationRuleList.json | 2 +- .../AuthorizationRuleRegenerateKey.json | 2 +- .../Namespaces/CheckAvailability.json | 2 +- .../examples/Namespaces/CreateOrUpdate.json | 2 +- .../examples/Namespaces/Get.json | 2 +- .../Namespaces/ListByResourceGroup.json | 2 +- .../Namespaces/ListBySubscription.json | 10 +-- .../PrivateEndpointConnectionGet.json | 62 ++++++++--------- .../PrivateEndpointConnectionList.json | 68 +++++++++---------- .../Namespaces/PrivateLinkResourceGet.json | 54 +++++++-------- .../Namespaces/PrivateLinkResourceList.json | 60 ++++++++-------- .../examples/Namespaces/Update.json | 2 +- .../AuthorizationRuleCreateOrUpdate.json | 2 +- .../AuthorizationRuleGet.json | 2 +- .../AuthorizationRuleGetWithKeys.json | 4 +- .../AuthorizationRuleList.json | 2 +- .../NotificationHubs/CheckAvailability.json | 2 +- .../NotificationHubs/CreateOrUpdate.json | 2 +- .../examples/NotificationHubs/DebugSend.json | 2 +- .../examples/NotificationHubs/Get.json | 2 +- .../examples/NotificationHubs/List.json | 2 +- .../NotificationHubs/PnsCredentialsGet.json | 2 +- .../examples/NotificationHubs/Update.json | 2 +- .../2023-01-01-preview/notificationhubs.json | 2 +- 28 files changed, 152 insertions(+), 150 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json index 2bf062059d0f..c8172bb1e417 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json @@ -1264,4 +1264,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json index 6236c55a807b..1bff4fb1c074 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json index 48d7dba62cec..427baa49a3c1 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json index 18b9b9e0f67c..791e13a9d8e9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json index 296e69bc6a91..ac6469fecf9d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json index c57224e2b74e..deb54da7d94e 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json index de9b97b8172b..02949f6a2565 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json index f43b4d4ee84d..7b1fde91dcdb 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json @@ -115,4 +115,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json index 8d73c6107577..56120ded6a4c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json @@ -52,4 +52,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json index 5153f34dde62..d499e1ba7971 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json @@ -89,4 +89,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json index 481ef02021c7..ca96977b1b09 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json @@ -45,7 +45,7 @@ "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", "name": "namespace-2", "type": "Microsoft.NotificationHubs/namespaces", - "tags": { } + "tags": {} }, { "location": "East US", @@ -63,10 +63,12 @@ "updatedAt": "2023-04-26T06:10:44.03+00:00", "namespaceType": "NotificationHub", "networkAcls": { - "ipRules": [ ], + "ipRules": [], "publicInternetRule": { "rights": [ - "Manage", "Listen", "Send" + "Manage", + "Listen", + "Send" ] } }, @@ -86,4 +88,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json index ecbbba004388..e5ebd697f40a 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json @@ -1,33 +1,33 @@ { - "parameters": { - "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "resourceGroupName": "5ktrial", - "namespaceName": "nh-sdk-ns", - "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" - }, - "groupIds": [ - "namespace" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved" - } - }, - "location": "Central US EUAP", - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", - "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", - "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", - "tags": {} - } - } + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + }, + "location": "Central US EUAP", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", + "tags": {} + } } -} \ No newline at end of file + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json index a7dd0f7644bf..aa89f9f82934 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json @@ -1,36 +1,36 @@ { - "parameters": { - "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", - "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" - }, - "groupIds": [ - "namespace" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved" - } - }, - "location": "Central US EUAP", - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", - "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", - "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", - "tags": {} - } - ] - } - } + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + }, + "location": "Central US EUAP", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", + "tags": {} + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json index 8b2624957bef..4435450d1c30 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json @@ -1,29 +1,29 @@ { - "parameters": { - "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", - "api-version": "2023-01-01-preview", - "subResourceName": "namespace", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" - }, - "responses": { - "200": { - "body": { - "properties": { - "groupId": "namespace", - "requiredMembers": [ - "namespace" - ], - "requiredZoneNames": [ - "privatelink.servicebus.windows.net", - "privatelink.notificationhub.windows.net" - ] - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", - "name": "namespace", - "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", - "tags": {} - } - } + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subResourceName": "namespace", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "properties": { + "groupId": "namespace", + "requiredMembers": [ + "namespace" + ], + "requiredZoneNames": [ + "privatelink.servicebus.windows.net", + "privatelink.notificationhub.windows.net" + ] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", + "tags": {} + } } -} \ No newline at end of file + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json index 2b9dccc37386..81a518a82abc 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json @@ -1,32 +1,32 @@ { - "parameters": { - "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", - "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "groupId": "namespace", - "requiredMembers": [ - "namespace" - ], - "requiredZoneNames": [ - "privatelink.servicebus.windows.net", - "privatelink.notificationhub.windows.net" - ] - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", - "name": "namespace", - "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", - "tags": {} - } - ] - } - } + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "groupId": "namespace", + "requiredMembers": [ + "namespace" + ], + "requiredZoneNames": [ + "privatelink.servicebus.windows.net", + "privatelink.notificationhub.windows.net" + ] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", + "tags": {} + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json index 1a4b682205cb..b4fa85d0de71 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json index 0f40995cc448..8a9ef743da72 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json index 8fb9f8e63e21..173580bbb99c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json index 540874e8cceb..d33235b0c6ad 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json @@ -14,7 +14,7 @@ "rights": [ "Listen", "Send" - ], + ], "primaryKey": "############################################", "secondaryKey": "############################################", "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json index 278d1fa3fb34..96f5aa1cf710 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json index 63ec79eacc20..30c123171ee4 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json index d4ac93ecc020..8d35fd8bebd5 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json index a38e3e3df2fe..8d467d97ceea 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json index e46b2a7fdb13..4a72302627b9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json @@ -25,4 +25,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json index c77a6e5788a8..24dc02a2fe30 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json index c1298eba6351..0124d793d6d6 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json index 7add4e3ec6e1..6170f41af468 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index eac7ea93cdbb..005981228194 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -4434,4 +4434,4 @@ ] } ] -} \ No newline at end of file +} From d197ee51cb955ffc1b4ff290679dd4e7555023e7 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 28 Apr 2023 18:53:30 +0200 Subject: [PATCH 16/73] Notification Hubs: updating readme.md to include new API version --- .../notificationhubs/resource-manager/readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/notificationhubs/resource-manager/readme.md b/specification/notificationhubs/resource-manager/readme.md index 135d3e331ab7..a19fb473ea7f 100644 --- a/specification/notificationhubs/resource-manager/readme.md +++ b/specification/notificationhubs/resource-manager/readme.md @@ -45,6 +45,15 @@ directive: - TrackedResourceGetOperation ``` +### Tag: package-2023-01-01-preview + +These settings apply only when `--tag=package-2023-01-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2023-01-01-preview' +input-file: +- Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +``` + ### Tag: package-2017-04 These settings apply only when `--tag=package-2017-04` is specified on the command line. From 1b924ec8bf3ed2c455f77e7b19b5dffab3c5b424 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 4 May 2023 11:36:28 +0200 Subject: [PATCH 17/73] Notification Hubs: removing internal operations --- .../2023-01-01-preview/notificationhubs.json | 334 +----------------- 1 file changed, 1 insertion(+), 333 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 005981228194..270b3c833c19 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1083,61 +1083,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/moveResources": { - "post": { - "tags": [ - "Move" - ], - "summary": "Moves resources from the resource group to a target resource group.", - "consumes": [ - "application/json", - "text/json", - "application/*+json" - ], - "parameters": [ - { - "in": "header", - "name": "x-ms-client-principal-name", - "type": "string" - }, - { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/MoveResourcesRequest" - } - } - ], - "responses": { - "200": { - "description": "Success" - }, - "default": { - "description": "Error code with reason." - } - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { "post": { "tags": [ @@ -2106,283 +2051,6 @@ } } }, - "/subscriptions/{subscriptionId}/operationsStatuses/{operationId}": { - "get": { - "tags": [ - "Operations" - ], - "summary": "API for operation statuses, as defined by the Azure-AsyncOperation header spec\r\nhttps://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.", - "operationId": "OperationStatus", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "operationId", - "required": true, - "type": "string" - }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "type": "string" - }, - { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/OperationStatusResult" - } - }, - "default": { - "description": "Error code with reason." - } - } - } - }, - "/subscriptions/{subscriptionId}/operationResults/{operationId}": { - "get": { - "tags": [ - "Operations" - ], - "summary": "API for operation results, as defined by the Location header spec\r\nhttps://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.", - "operationId": "OperationResult", - "parameters": [ - { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "operationId", - "required": true, - "type": "string" - }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "type": "string" - }, - { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" - } - ], - "responses": { - "200": { - "description": "Success" - }, - "default": { - "description": "Error code with reason." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupId}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/operations/{operationId}": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "NamespaceOperationStatus", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "resourceGroupId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "operationId", - "required": true, - "type": "string" - }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "type": "string" - }, - { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/OperationStatusResult" - } - }, - "default": { - "description": "Error code with reason." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupId}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnectionProxies/{proxyName}/operationStatus/{operationId}": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "NamespacePrivateLinkOperationStatus", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "resourceGroupId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "proxyName", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "operationId", - "required": true, - "type": "string" - }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "type": "string" - }, - { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/OperationStatusResult" - } - }, - "default": { - "description": "Error code with reason." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupId}/moveResources/operationStatus/{operationId}": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "ResourceMoveOperationStatus", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "resourceGroupId", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "operationId", - "required": true, - "type": "string" - }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "type": "string" - }, - { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/OperationStatusResult" - } - }, - "default": { - "description": "Error code with reason." - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { "put": { "tags": [ @@ -4434,4 +4102,4 @@ ] } ] -} +} \ No newline at end of file From 60779ab1f5c0b661a4967525b2e6d567f9d42f26 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 4 May 2023 11:40:06 +0200 Subject: [PATCH 18/73] Notification Hubs: removing internal operations --- .../2023-01-01-preview/notificationhubs.json | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 270b3c833c19..069e63615337 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -3404,47 +3404,6 @@ "modelAsString": true } }, - "OperationStatusResult": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true - }, - "status": { - "$ref": "#/definitions/OperationProvisioningState" - }, - "startTime": { - "format": "date-time", - "type": "string", - "readOnly": true - }, - "endTime": { - "format": "date-time", - "type": "string", - "readOnly": true - }, - "percentComplete": { - "format": "int32", - "type": "integer", - "readOnly": true - }, - "properties": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, "PnsCredentials": { "type": "object", "properties": { From 2b08388d6a6cbad4885f8cab5e5d9afcbca716c6 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 4 May 2023 12:11:08 +0200 Subject: [PATCH 19/73] New API: fixing camelCase linter errors --- .../2023-01-01-preview/notificationhubs.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 069e63615337..fe615850b6ff 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -499,7 +499,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}": { "put": { "tags": [ "Hubs" @@ -860,7 +860,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys": { "post": { "tags": [ "Hubs" @@ -933,7 +933,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { "post": { "tags": [ "Hubs" @@ -1514,7 +1514,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": { "put": { "tags": [ "Namespaces" @@ -1815,7 +1815,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { "post": { "tags": [ "Namespaces" @@ -1880,7 +1880,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { "post": { "tags": [ "Namespaces" @@ -4061,4 +4061,4 @@ ] } ] -} \ No newline at end of file +} From 42541a934d5c86b753719d14e6243f20ef93d0c8 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 4 May 2023 15:19:16 +0200 Subject: [PATCH 20/73] Notification Hubs: using shared parameters --- .../2023-01-01-preview/notificationhubs.json | 655 +++--------------- 1 file changed, 111 insertions(+), 544 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index fe615850b6ff..fe07bd95a459 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -25,18 +25,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -46,12 +38,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -92,18 +79,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -120,12 +99,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -159,16 +133,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -183,12 +151,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -235,16 +198,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -259,12 +216,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -299,18 +251,10 @@ "operationId": "NotificationHubs_Delete", "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -333,12 +277,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -368,18 +307,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -403,12 +334,7 @@ "default": 100 }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -445,18 +371,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -473,12 +391,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -514,18 +427,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -549,12 +454,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -590,18 +490,10 @@ "operationId": "NotificationHubs_DeleteAuthorizationRule", "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -625,12 +517,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -658,18 +545,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -693,12 +572,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -729,18 +603,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -764,12 +630,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -790,7 +651,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { "get": { "tags": [ "Hubs" @@ -802,18 +663,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -830,12 +683,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -872,18 +720,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -907,12 +747,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -948,18 +783,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -983,12 +810,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -1029,18 +851,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "The name of the resource group.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1057,12 +871,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1097,18 +906,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -1147,16 +948,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1170,12 +965,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1208,16 +998,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1231,12 +1015,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -1282,16 +1061,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1305,12 +1078,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -1344,16 +1112,10 @@ "operationId": "Namespaces_Delete", "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1367,12 +1129,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1401,10 +1158,7 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "in": "query", @@ -1419,12 +1173,7 @@ "default": 100 }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1460,16 +1209,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "query", @@ -1484,12 +1227,7 @@ "default": 100 }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1528,16 +1266,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1552,12 +1284,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -1591,16 +1318,10 @@ "operationId": "Namespaces_DeleteAuthorizationRule", "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1615,12 +1336,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1647,16 +1363,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1671,12 +1381,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1706,16 +1411,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1730,12 +1429,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1756,7 +1450,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { "get": { "tags": [ "Namespaces" @@ -1767,16 +1461,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1785,12 +1473,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1815,7 +1498,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys": { "post": { "tags": [ "Namespaces" @@ -1826,16 +1509,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1850,12 +1527,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1880,7 +1552,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { "post": { "tags": [ "Namespaces" @@ -1894,16 +1566,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1918,12 +1584,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -1963,18 +1624,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Azure Subscription Id.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "Resource group name.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -1984,12 +1637,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -2021,12 +1669,7 @@ ], "parameters": [ { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -2071,18 +1714,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Subscription id of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "Resource group of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -2099,12 +1734,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -2155,24 +1785,13 @@ "type": "string" }, { - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -2202,18 +1821,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Subscription id of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "Resource group name of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -2230,12 +1841,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -2270,18 +1876,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Subscription id of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "Resource group name of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -2291,12 +1889,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -2332,18 +1925,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Subscription id of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "Resource group name of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -2360,12 +1945,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -2401,18 +1981,10 @@ ], "parameters": [ { - "in": "path", - "name": "subscriptionId", - "description": "Subscription id of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "path", - "name": "resourceGroupName", - "description": "Resource group name of the Notification Hubs namespace.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "in": "path", @@ -2422,12 +1994,7 @@ "type": "string" }, { - "in": "query", - "name": "api-version", - "description": "API Version - expected 2023-01-01-preview.", - "required": true, - "type": "string", - "default": "2023-01-01-preview" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { From df53ecac07aac632caaf168fe5198880cbd86301 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 4 May 2023 22:57:40 +0200 Subject: [PATCH 21/73] Notification Hubs: adding reusable internal parameters --- .../2023-01-01-preview/notificationhubs.json | 285 +++++------------- 1 file changed, 70 insertions(+), 215 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index fe07bd95a459..1023d9f54dee 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -31,11 +31,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -85,18 +81,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -139,16 +127,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -204,16 +186,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -257,18 +233,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "in": "header", @@ -313,11 +281,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "query", @@ -377,18 +341,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -433,18 +389,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "in": "path", @@ -496,18 +444,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "in": "path", @@ -551,18 +491,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "in": "path", @@ -609,18 +541,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "in": "path", @@ -669,18 +593,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -726,18 +642,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "in": "path", @@ -789,18 +697,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "in": "path", @@ -857,18 +757,10 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "The namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "notificationHubName", - "description": "The notification hub name.", - "required": true, - "type": "string" + "$ref": "#/parameters/HubName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -954,10 +846,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "header", @@ -1004,10 +893,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "header", @@ -1067,10 +953,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "header", @@ -1118,10 +1001,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "header", @@ -1272,10 +1152,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1324,10 +1201,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1369,10 +1243,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1417,10 +1288,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1467,10 +1335,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1515,10 +1380,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1572,10 +1434,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1630,11 +1489,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "Namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1720,11 +1575,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "Namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1771,11 +1622,7 @@ "operationId": "PrivateEndpointConnections_Delete", "parameters": [ { - "in": "path", - "name": "namespaceName", - "description": "Namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1827,11 +1674,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "Namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1882,11 +1725,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "Namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1931,11 +1770,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "Namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "in": "path", @@ -1987,11 +1822,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "path", - "name": "namespaceName", - "description": "Namespace name.", - "required": true, - "type": "string" + "$ref": "#/parameters/NamespaceName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -3610,6 +3441,30 @@ } } }, + "parameters": { + "NamespaceName": { + "in": "path", + "name": "namespaceName", + "description": "Namespace name", + "required": true, + "maxLength": 50, + "minLength": 1, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]$", + "type": "string", + "x-ms-parameter-location": "method" + }, + "HubName": { + "in": "path", + "name": "notificationHubName", + "description": "Notification Hub name", + "required": true, + "maxLength": 265, + "minLength": 1, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]$", + "type": "string", + "x-ms-parameter-location": "method" + } + }, "securityDefinitions": { "azure_auth": { "type": "oauth2", From 027648204b4c2f198ab925baef4260e063d78f9f Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 4 May 2023 23:05:01 +0200 Subject: [PATCH 22/73] Notification Hubs: fixing patterns --- .../preview/2023-01-01-preview/notificationhubs.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 1023d9f54dee..8b71e5f82930 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -3449,7 +3449,7 @@ "required": true, "maxLength": 50, "minLength": 1, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]$", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$", "type": "string", "x-ms-parameter-location": "method" }, @@ -3460,7 +3460,7 @@ "required": true, "maxLength": 265, "minLength": 1, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]$", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$", "type": "string", "x-ms-parameter-location": "method" } From 945f51abe2fd4b8523f4a9a1b7e8eb1fdd80248a Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 5 May 2023 10:10:56 +0200 Subject: [PATCH 23/73] Notification Hubs: using shared parameters for Authorization Rules --- .../2023-01-01-preview/notificationhubs.json | 77 ++++++------------- 1 file changed, 23 insertions(+), 54 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 8b71e5f82930..03b39a1b32e7 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -395,11 +395,7 @@ "$ref": "#/parameters/HubName" }, { - "in": "path", - "name": "authorizationRuleName", - "description": "Authorization Rule Name.", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -450,11 +446,7 @@ "$ref": "#/parameters/HubName" }, { - "in": "path", - "name": "authorizationRuleName", - "description": "Authorization Rule Name.", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -497,11 +489,7 @@ "$ref": "#/parameters/HubName" }, { - "in": "path", - "name": "authorizationRuleName", - "description": "Authorization Rule Name.", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -547,11 +535,7 @@ "$ref": "#/parameters/HubName" }, { - "in": "path", - "name": "authorizationRuleName", - "description": "Authorization Rule Name.", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -648,11 +632,7 @@ "$ref": "#/parameters/HubName" }, { - "in": "path", - "name": "authorizationRuleName", - "description": "Authorization Rule Name.", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -703,11 +683,7 @@ "$ref": "#/parameters/HubName" }, { - "in": "path", - "name": "authorizationRuleName", - "description": "Authorization Rule Name.", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1155,10 +1131,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "authorizationRuleName", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1204,10 +1177,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "authorizationRuleName", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1246,10 +1216,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "authorizationRuleName", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1291,10 +1258,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "authorizationRuleName", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1383,10 +1347,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "authorizationRuleName", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1437,10 +1398,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "authorizationRuleName", - "required": true, - "type": "string" + "$ref": "#/parameters/AuthorizationRuleName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -3463,6 +3421,17 @@ "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$", "type": "string", "x-ms-parameter-location": "method" + }, + "AuthorizationRuleName": { + "in": "path", + "name": "authorizationRuleName", + "description": "Authorization Rule Name", + "required": true, + "maxLength": 256, + "minLength": 1, + "pattern": "^[a-zA-Z0-9!()*-._]+$", + "type": "string", + "x-ms-parameter-location": "method" } }, "securityDefinitions": { From 2c6f7ce125f8a59ec842853fe4ed4d0a99941552 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 5 May 2023 15:40:04 +0200 Subject: [PATCH 24/73] Notification Hubs: adding x-ms-azure-resource annotations --- .../preview/2023-01-01-preview/notificationhubs.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 03b39a1b32e7..24c8d3c39da0 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2526,7 +2526,8 @@ "properties": { "$ref": "#/definitions/NamespaceProperties" } - } + }, + "x-ms-azure-resource": true }, "NamespaceStatus": { "enum": [ @@ -2678,7 +2679,8 @@ "properties": { "$ref": "#/definitions/NotificationHubProperties" } - } + }, + "x-ms-azure-resource": true }, "Operation": { "type": "object", @@ -3309,7 +3311,8 @@ "type": "string", "readOnly": true } - } + }, + "x-ms-azure-resource": true }, "Sku": { "required": [ From 0b17010ad788f0d9de135e3226f921a79fad918d Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Mon, 8 May 2023 13:37:57 +0200 Subject: [PATCH 25/73] Notification Hubs: marking id, type and name as readonly. --- .../examples/Namespaces/CreateOrUpdate.json | 2 + .../2023-01-01-preview/notificationhubs.json | 80 ++++--------------- 2 files changed, 18 insertions(+), 64 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json index 7b1fde91dcdb..60b0169d1baa 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json @@ -88,6 +88,7 @@ "name": "Standard" }, "properties": { + "provisioningState": "InProgress", "networkAcls": { "ipRules": [ { @@ -106,6 +107,7 @@ } } }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", "name": "nh-sdk-ns", "type": "Microsoft.NotificationHubs/namespaces", "tags": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 24c8d3c39da0..a3459e29c03d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2036,17 +2036,11 @@ }, "name": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "type": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "tags": { "type": "object", @@ -2097,17 +2091,11 @@ }, "name": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "type": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "tags": { "type": "object", @@ -2494,17 +2482,11 @@ }, "name": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "type": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "tags": { "type": "object", @@ -2651,17 +2633,11 @@ }, "name": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "type": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "tags": { "type": "object", @@ -2801,17 +2777,11 @@ }, "name": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "type": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "tags": { "type": "object", @@ -2909,17 +2879,11 @@ }, "name": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "type": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "tags": { "type": "object", @@ -2970,17 +2934,11 @@ }, "name": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "type": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "tags": { "type": "object", @@ -3286,17 +3244,11 @@ }, "name": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "type": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] + "readOnly": true }, "tags": { "type": "object", From 1b8e8f3911eabdc629b97f1c70178e7803fb3d11 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Mon, 8 May 2023 17:22:43 +0200 Subject: [PATCH 26/73] Notification Hubs: removing incorrect POST operations --- .../2023-01-01-preview/notificationhubs.json | 88 ------------------- 1 file changed, 88 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index a3459e29c03d..8028eb580178 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -511,52 +511,6 @@ "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" } } - }, - "post": { - "tags": [ - "Hubs" - ], - "summary": "Gets an authorization rule for a NotificationHub by name, including keys.", - "operationId": "NotificationHubs_GetAuthorizationRuleWithKeys", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NamespaceName" - }, - { - "$ref": "#/parameters/HubName" - }, - { - "$ref": "#/parameters/AuthorizationRuleName" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "Error code with reason." - } - }, - "x-ms-examples": { - "NotificationHubs_GetAuthorizationRuleWithKeys": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleGetWithKeys.json" - } - } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { @@ -1238,48 +1192,6 @@ "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" } } - }, - "post": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_GetAuthorizationRuleWithKeys", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NamespaceName" - }, - { - "$ref": "#/parameters/AuthorizationRuleName" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "Error code with reason." - } - }, - "x-ms-examples": { - "Namespaces_GetAuthorizationRuleWithKeys": { - "$ref": "./examples/Namespaces/AuthorizationRuleGetWithKeys.json" - } - } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { From ba1f4e0d7deb9718b2e9dba7031e6dd8398090cd Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Mon, 8 May 2023 18:14:07 +0200 Subject: [PATCH 27/73] Notification Hubs: removing incorrect x-ms-pageable annotation --- .../preview/2023-01-01-preview/notificationhubs.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 8028eb580178..80a6b3d96c74 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1276,10 +1276,6 @@ "description": "Error code with reason." } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": "nextLink" - }, "x-ms-examples": { "Namespaces_ListKeys": { "$ref": "./examples/Namespaces/AuthorizationRuleListKeys.json" From 8fcf89901961dcfc6087678d683b98bd2698b9fe Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Mon, 8 May 2023 18:29:28 +0200 Subject: [PATCH 28/73] Notification Hubs: cleanup in parameters order --- .../2023-01-01-preview/notificationhubs.json | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 80a6b3d96c74..b6ea46a0c384 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1487,6 +1487,12 @@ "description": "This is an asynchronous API, which sets the Azure-AsyncOperation header. \r\nCaller can use URI from that header to check status of the operation.", "operationId": "PrivateEndpointConnections_Delete", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, { "$ref": "#/parameters/NamespaceName" }, @@ -1497,12 +1503,6 @@ "required": true, "type": "string" }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } @@ -3171,8 +3171,7 @@ "type": "string", "readOnly": true } - }, - "x-ms-azure-resource": true + } }, "Sku": { "required": [ From 974abdbaa13661d6c6e025e5d995107c7130aa21 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 9 May 2023 12:30:03 +0200 Subject: [PATCH 29/73] Notification Hubs: adding x-ms-identifiers and removed invalid examples --- .../AuthorizationRuleGetWithKeys.json | 29 ------------------ .../AuthorizationRuleGetWithKeys.json | 29 ------------------ .../2023-01-01-preview/notificationhubs.json | 30 ++++++++++++++----- 3 files changed, 23 insertions(+), 65 deletions(-) delete mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json delete mode 100644 specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json deleted file mode 100644 index 791e13a9d8e9..000000000000 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGetWithKeys.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "namespaceName": "nh-sdk-ns", - "authorizationRuleName": "RootManageSharedAccessKey", - "resourceGroupName": "5ktrial", - "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" - }, - "responses": { - "200": { - "body": { - "properties": { - "rights": [ - "Manage", - "Listen", - "Send" - ], - "primaryKey": "############################################", - "secondaryKey": "############################################", - "modifiedTime": "2023-04-26T10:19:36.3315279+00:00", - "createdTime": "2023-04-26T10:19:36.3315279+00:00" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", - "name": "RootManageSharedAccessKey", - "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" - } - } - } -} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json deleted file mode 100644 index d33235b0c6ad..000000000000 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGetWithKeys.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "5ktrial", - "namespaceName": "nh-sdk-ns", - "notificationHubName": "nh-sdk-hub", - "authorizationRuleName": "DefaultListenSharedAccessSignature", - "api-version": "2023-01-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" - }, - "responses": { - "200": { - "body": { - "properties": { - "rights": [ - "Listen", - "Send" - ], - "primaryKey": "############################################", - "secondaryKey": "############################################", - "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", - "createdTime": "2023-04-26T12:24:40.5863818+00:00" - }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/DefaultListenSharedAccessSignature", - "name": "DefaultListenSharedAccessSignature", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" - } - } - } -} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index b6ea46a0c384..8eeb2ccd3c0c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2038,7 +2038,8 @@ "items": { "$ref": "#/definitions/RegistrationResult" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [ ] } } }, @@ -2217,7 +2218,8 @@ "items": { "$ref": "#/definitions/Availability" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [ ] }, "metricFilterPattern": { "type": "string", @@ -2454,7 +2456,8 @@ "type": "array", "items": { "$ref": "#/definitions/IpRule" - } + }, + "x-ms-identifiers": [ ] }, "publicInternetRule": { "$ref": "#/definitions/PublicInternetAuthorizationRule" @@ -2496,7 +2499,10 @@ "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" }, "readOnly": true, - "x-ms-secret": true + "x-ms-secret": true, + "x-ms-identifiers": [ + "keyName" + ] }, "apnsCredential": { "$ref": "#/definitions/ApnsCredential" @@ -2614,7 +2620,10 @@ "items": { "$ref": "#/definitions/Operation" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] }, "nextLink": { "type": "string", @@ -3067,14 +3076,21 @@ "items": { "$ref": "#/definitions/LogSpecification" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] }, "metricSpecifications": { "type": "array", "items": { "$ref": "#/definitions/MetricSpecification" }, - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [ + "name", + "unit" + ] } } }, From a9eaac11373c721739928962609a67f377126adb Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 9 May 2023 13:14:44 +0200 Subject: [PATCH 30/73] Notification Hubs: reusing common Private Link information --- .../2023-01-01-preview/notificationhubs.json | 88 +------------------ 1 file changed, 3 insertions(+), 85 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 8eeb2ccd3c0c..ac09616b67d6 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1444,11 +1444,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "privateEndpointConnectionName", - "description": "Private Endpoint Connection name.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v4/privateLinks.json#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1497,11 +1493,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "privateEndpointConnectionName", - "description": "Name of the Private Endpoint Connection to remove.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v4/privateLinks.json#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1543,11 +1535,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "in": "path", - "name": "privateEndpointConnectionName", - "description": "Private Endpoint Connection name.", - "required": true, - "type": "string" + "$ref": "../../../../../common-types/resource-management/v4/privateLinks.json#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -2759,34 +2747,6 @@ } } }, - "PrivateEndpointConnectionProxy": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true - }, - "type": { - "type": "string", - "readOnly": true - }, - "etag": { - "type": "string", - "readOnly": true - }, - "location": { - "type": "string", - "readOnly": true - }, - "remotePrivateEndpoint": { - "$ref": "#/definitions/RemotePrivateEndpoint" - } - } - }, "PrivateEndpointConnectionResource": { "type": "object", "properties": { @@ -2955,48 +2915,6 @@ } } }, - "RemotePrivateEndpoint": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true - }, - "immutableSubscriptionId": { - "type": "string", - "readOnly": true - }, - "immutableResourceId": { - "type": "string", - "readOnly": true - }, - "location": { - "type": "string", - "readOnly": true - }, - "manualPrivateLinkServiceConnections": { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateLinkServiceConnection" - }, - "readOnly": true - }, - "privateLinkServiceConnections": { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateLinkServiceConnection" - }, - "readOnly": true - }, - "connectionDetails": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectionDetails" - }, - "readOnly": true - } - } - }, "RemotePrivateEndpointConnection": { "type": "object", "properties": { From 418236d229ac6cad634a62375eecc1ba15008d96 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 9 May 2023 13:25:29 +0200 Subject: [PATCH 31/73] Notification Hubs: reusing common Private Link information (fixing file name) --- .../preview/2023-01-01-preview/notificationhubs.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index ac09616b67d6..a7a198d7dfea 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1444,7 +1444,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "$ref": "../../../../../common-types/resource-management/v4/privateLinks.json#/parameters/PrivateEndpointConnectionName" + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1493,7 +1493,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "$ref": "../../../../../common-types/resource-management/v4/privateLinks.json#/parameters/PrivateEndpointConnectionName" + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1535,7 +1535,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "$ref": "../../../../../common-types/resource-management/v4/privateLinks.json#/parameters/PrivateEndpointConnectionName" + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" From d828b269234c21526ae84aa33c3a628cb59ac2d4 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 9 May 2023 16:07:49 +0200 Subject: [PATCH 32/73] Notification Hubs: updating types for Patch parameters --- .../2023-01-01-preview/notificationhubs.json | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index a7a198d7dfea..99022b3764bc 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -198,7 +198,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/definitions/NotificationHubResource" + "$ref": "#/definitions/NotificationHubPatchParameter" } } ], @@ -897,7 +897,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/definitions/NamespaceResource" + "$ref": "#/definitions/NamespacePatchParameter" } } ], @@ -2291,6 +2291,23 @@ } } }, + "NamespacePatchParameter": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "tags": { + "type": "object" + }, + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties" + } + } + }, "NamespaceProperties": { "type": "object", "properties": { @@ -2468,6 +2485,20 @@ } } }, + "NotificationHubPatchParameter": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "tags": { + "type": "object" + }, + "properties": { + "$ref": "#/definitions/NotificationHubProperties" + } + } + }, "NotificationHubProperties": { "type": "object", "properties": { From 04c08fda05047fb31f58334e47a9b4e8c62268d1 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 9 May 2023 20:56:04 +0200 Subject: [PATCH 33/73] Notification Hubs: using in-swagger PrivateEndpointConnectionName --- .../2023-01-01-preview/notificationhubs.json | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 99022b3764bc..17c1cb5cef90 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1444,7 +1444,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/parameters/PrivateEndpointConnectionName" + "$ref": "#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1493,7 +1493,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/parameters/PrivateEndpointConnectionName" + "$ref": "#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -1535,7 +1535,7 @@ "$ref": "#/parameters/NamespaceName" }, { - "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/parameters/PrivateEndpointConnectionName" + "$ref": "#/parameters/PrivateEndpointConnectionName" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -3136,7 +3136,8 @@ "type": "string", "readOnly": true } - } + }, + "x-ms-azure-resource": true }, "Sku": { "required": [ @@ -3259,6 +3260,17 @@ "pattern": "^[a-zA-Z0-9!()*-._]+$", "type": "string", "x-ms-parameter-location": "method" + }, + "PrivateEndpointConnectionName": { + "in": "path", + "name": "privateEndpointConnectionName", + "description": "Private Endpoint Connection Name", + "required": true, + "maxLength": 87, + "minLength": 1, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$", + "type": "string", + "x-ms-parameter-location": "method" } }, "securityDefinitions": { From 7982d0a964ca781114e6f5f91500707a34f644aa Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 10:20:53 +0200 Subject: [PATCH 34/73] Notification Hubs: adding pattern for Private Link subResourceName --- .../preview/2023-01-01-preview/notificationhubs.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 17c1cb5cef90..d4e5225529df 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1631,7 +1631,8 @@ "name": "subResourceName", "description": "Name of the Private Link sub-resource. The only supported sub-resource is \"namespace\"", "required": true, - "type": "string" + "type": "string", + "pattern": "^namespace$" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" From e82c556d96ac1c91f72b0b5de164a6071aad787f Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 10:59:28 +0200 Subject: [PATCH 35/73] Notification Hubs: fixing compatibility for PATCH / PUT parameters --- .../2023-01-01-preview/notificationhubs.json | 56 ++++++++++++++++--- 1 file changed, 49 insertions(+), 7 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index d4e5225529df..66dd5a5f5ec1 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -198,7 +198,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/definitions/NotificationHubPatchParameter" + "$ref": "#/definitions/NotificationHubPatchParameters" } } ], @@ -837,7 +837,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/definitions/NamespaceResource" + "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" } } ], @@ -897,7 +897,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/definitions/NamespacePatchParameter" + "$ref": "#/definitions/NamespacePatchParameters" } } ], @@ -1459,8 +1459,8 @@ } ], "responses": { - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/PrivateEndpointConnectionResource" } @@ -2276,6 +2276,48 @@ } } }, + "NamespaceCreateOrUpdateParameters": { + "required": [ + "location", + "properties", + "sku" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "location": { + "minLength": 1, + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties" + } + } + }, "NamespaceListResult": { "type": "object", "properties": { @@ -2292,7 +2334,7 @@ } } }, - "NamespacePatchParameter": { + "NamespacePatchParameters": { "type": "object", "properties": { "id": { @@ -2486,7 +2528,7 @@ } } }, - "NotificationHubPatchParameter": { + "NotificationHubPatchParameters": { "type": "object", "properties": { "id": { From bb52bdfd6fdf47a31db3331cbf41dc081406de38 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 11:50:33 +0200 Subject: [PATCH 36/73] Notification Hubs: marking required parameters --- .../PrivateEndpointConnectionApproveOrReject.json | 2 +- .../2023-01-01-preview/notificationhubs.json | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json index b59d1b1ec515..50eb75e2f711 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json @@ -16,7 +16,7 @@ } }, "responses": { - "202": { + "201": { "body": { "properties": { "provisioningState": "Succeeded", diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 66dd5a5f5ec1..865c3409d7b9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -242,6 +242,7 @@ "in": "header", "name": "x-ms-client-principal-name", "description": "Added when available. Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.", + "required": true, "type": "string" }, { @@ -287,12 +288,14 @@ "in": "query", "name": "$skipToken", "description": "Continuation token", + "required": true, "type": "string" }, { "in": "query", "name": "$count", "description": "Page size", + "required": true, "type": "integer", "format": "int32", "default": 100 @@ -781,6 +784,7 @@ { "in": "header", "name": "x-ms-client-principal-name", + "required": true, "type": "string" }, { @@ -828,6 +832,7 @@ { "in": "header", "name": "x-ms-client-principal-name", + "required": true, "type": "string" }, { @@ -888,6 +893,7 @@ { "in": "header", "name": "x-ms-client-principal-name", + "required": true, "type": "string" }, { @@ -936,6 +942,7 @@ { "in": "header", "name": "x-ms-client-principal-name", + "required": true, "type": "string" }, { @@ -973,11 +980,13 @@ { "in": "query", "name": "$skipToken", + "required": true, "type": "string" }, { "in": "query", "name": "$count", + "required": true, "type": "integer", "format": "int32", "default": 100 @@ -1027,11 +1036,13 @@ { "in": "query", "name": "$skipToken", + "required": true, "type": "string" }, { "in": "query", "name": "$count", + "required": true, "type": "integer", "format": "int32", "default": 100 @@ -3334,4 +3345,4 @@ ] } ] -} +} \ No newline at end of file From 4952ce44d105465c2fc01de3ba43443b3e91df52 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 12:05:50 +0200 Subject: [PATCH 37/73] Notification Hubs: updating required parameters --- .../2023-01-01-preview/notificationhubs.json | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 865c3409d7b9..2b4558b3a629 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -40,6 +40,7 @@ "in": "body", "name": "body", "description": "Request content.", + "required": true, "schema": { "$ref": "#/definitions/CheckAvailabilityParameters" } @@ -138,6 +139,7 @@ { "in": "body", "name": "body", + "required": true, "schema": { "$ref": "#/definitions/NotificationHubResource" } @@ -197,6 +199,7 @@ { "in": "body", "name": "body", + "required": true, "schema": { "$ref": "#/definitions/NotificationHubPatchParameters" } @@ -242,7 +245,6 @@ "in": "header", "name": "x-ms-client-principal-name", "description": "Added when available. Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.", - "required": true, "type": "string" }, { @@ -288,14 +290,12 @@ "in": "query", "name": "$skipToken", "description": "Continuation token", - "required": true, "type": "string" }, { "in": "query", "name": "$count", "description": "Page size", - "required": true, "type": "integer", "format": "int32", "default": 100 @@ -407,6 +407,7 @@ "in": "body", "name": "body", "description": "The shared access authorization rule.", + "required": true, "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } @@ -649,6 +650,7 @@ "in": "body", "name": "body", "description": "Parameters supplied to regenerate the NotificationHub Authorization Rule Key.", + "required": true, "schema": { "$ref": "#/definitions/PolicyKeyResource" } @@ -739,6 +741,7 @@ { "in": "body", "name": "body", + "required": true, "schema": { "$ref": "#/definitions/CheckAvailabilityParameters" } @@ -784,7 +787,6 @@ { "in": "header", "name": "x-ms-client-principal-name", - "required": true, "type": "string" }, { @@ -832,7 +834,6 @@ { "in": "header", "name": "x-ms-client-principal-name", - "required": true, "type": "string" }, { @@ -841,6 +842,7 @@ { "in": "body", "name": "body", + "required": true, "schema": { "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" } @@ -893,7 +895,6 @@ { "in": "header", "name": "x-ms-client-principal-name", - "required": true, "type": "string" }, { @@ -902,6 +903,7 @@ { "in": "body", "name": "body", + "required": true, "schema": { "$ref": "#/definitions/NamespacePatchParameters" } @@ -942,7 +944,6 @@ { "in": "header", "name": "x-ms-client-principal-name", - "required": true, "type": "string" }, { @@ -980,13 +981,11 @@ { "in": "query", "name": "$skipToken", - "required": true, "type": "string" }, { "in": "query", "name": "$count", - "required": true, "type": "integer", "format": "int32", "default": 100 @@ -1036,13 +1035,11 @@ { "in": "query", "name": "$skipToken", - "required": true, "type": "string" }, { "in": "query", "name": "$count", - "required": true, "type": "integer", "format": "int32", "default": 100 @@ -1104,6 +1101,7 @@ { "in": "body", "name": "body", + "required": true, "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } @@ -1325,6 +1323,7 @@ { "in": "body", "name": "body", + "required": true, "schema": { "$ref": "#/definitions/PolicyKeyResource" } @@ -1464,6 +1463,7 @@ "in": "body", "name": "body", "description": "Description of the Private Endpoint Connection resource.", + "required": true, "schema": { "$ref": "#/definitions/PrivateEndpointConnectionResource" } @@ -3345,4 +3345,4 @@ ] } ] -} \ No newline at end of file +} From b2bbdc5f4c44fea3558c04fc8b37240fa86c0ae6 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 12:21:25 +0200 Subject: [PATCH 38/73] Notification Hubs: using "parameters" name for body --- .../2023-01-01-preview/notificationhubs.json | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 2b4558b3a629..93cc359e349b 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -38,7 +38,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "description": "Request content.", "required": true, "schema": { @@ -138,7 +138,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "required": true, "schema": { "$ref": "#/definitions/NotificationHubResource" @@ -198,7 +198,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "required": true, "schema": { "$ref": "#/definitions/NotificationHubPatchParameters" @@ -405,7 +405,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "description": "The shared access authorization rule.", "required": true, "schema": { @@ -648,7 +648,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "description": "Parameters supplied to regenerate the NotificationHub Authorization Rule Key.", "required": true, "schema": { @@ -740,7 +740,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "required": true, "schema": { "$ref": "#/definitions/CheckAvailabilityParameters" @@ -841,7 +841,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "required": true, "schema": { "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" @@ -902,7 +902,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "required": true, "schema": { "$ref": "#/definitions/NamespacePatchParameters" @@ -1100,7 +1100,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "required": true, "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" @@ -1322,7 +1322,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "required": true, "schema": { "$ref": "#/definitions/PolicyKeyResource" @@ -1461,7 +1461,7 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "description": "Description of the Private Endpoint Connection resource.", "required": true, "schema": { @@ -3345,4 +3345,4 @@ ] } ] -} +} \ No newline at end of file From 567a5422191b441d1d6888e3a988aff42709c5c7 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 12:38:29 +0200 Subject: [PATCH 39/73] Notification Hubs: fixes in examples --- .../2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json | 2 +- .../Namespaces/PrivateEndpointConnectionApproveOrReject.json | 3 +-- .../examples/NotificationHubs/CreateOrUpdate.json | 1 - .../preview/2023-01-01-preview/notificationhubs.json | 3 ++- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json index 60b0169d1baa..1cd3cca86855 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json @@ -15,7 +15,7 @@ "tag2": "value2" }, "properties": { - "networkACLs": { + "networkAcls": { "ipRules": [ { "ipMask": "185.48.100.00/24", diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json index 50eb75e2f711..81101b1b778d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json @@ -9,8 +9,7 @@ "properties": { "privateEndpoint": {}, "privateLinkServiceConnectionState": { - "status": "Approved", - "actionsRequired": "None" + "status": "Approved" } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json index 8d35fd8bebd5..ac5c620b200b 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json @@ -6,7 +6,6 @@ "api-version": "2023-01-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { - "name": "test", "location": "eastus", "properties": {} } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 93cc359e349b..7120a107ce66 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2860,7 +2860,8 @@ "type": "string", "readOnly": true } - } + }, + "x-ms-azure-resource": true }, "PrivateEndpointConnectionResourcePrivateLinkResourceCollection": { "type": "object", From 8ea96b6c368cdbf3b5e46a8c317f8b57388255da Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 13:22:04 +0200 Subject: [PATCH 40/73] Notification Hubs: annotating 202 DELETE operations --- .../2023-01-01-preview/notificationhubs.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 7120a107ce66..6d1569fc485f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1512,7 +1512,12 @@ ], "responses": { "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error code with reason." @@ -1522,6 +1527,10 @@ "PrivateEndpointConnections_Delete": { "$ref": "./examples/Namespaces/PrivateEndpointConnectionDelete.json" } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } }, "get": { @@ -3346,4 +3355,4 @@ ] } ] -} \ No newline at end of file +} From 251c5a17980aded08b973aaa5e4a4affbab0b84b Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 13:48:38 +0200 Subject: [PATCH 41/73] Notification Hubs: adding parameters and schemas descriptions (part 1) --- .../2023-01-01-preview/notificationhubs.json | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 6d1569fc485f..9004ea231740 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -139,6 +139,7 @@ { "in": "body", "name": "parameters", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/NotificationHubResource" @@ -199,6 +200,7 @@ { "in": "body", "name": "parameters", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/NotificationHubPatchParameters" @@ -289,13 +291,13 @@ { "in": "query", "name": "$skipToken", - "description": "Continuation token", + "description": "Continuation token.", "type": "string" }, { "in": "query", "name": "$count", - "description": "Page size", + "description": "Page size.", "type": "integer", "format": "int32", "default": 100 @@ -406,7 +408,7 @@ { "in": "body", "name": "parameters", - "description": "The shared access authorization rule.", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" @@ -649,7 +651,7 @@ { "in": "body", "name": "parameters", - "description": "Parameters supplied to regenerate the NotificationHub Authorization Rule Key.", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/PolicyKeyResource" @@ -724,6 +726,7 @@ "tags": [ "Namespaces" ], + "summary": "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.", "operationId": "Namespaces_CheckAvailability", "consumes": [ "application/json" @@ -741,6 +744,7 @@ { "in": "body", "name": "parameters", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/CheckAvailabilityParameters" @@ -770,6 +774,7 @@ "tags": [ "Namespaces" ], + "summary": "Returns the given namespace.", "operationId": "Namespaces_Get", "produces": [ "application/json" @@ -787,6 +792,7 @@ { "in": "header", "name": "x-ms-client-principal-name", + "description": "Azure user name.", "type": "string" }, { @@ -814,6 +820,7 @@ "tags": [ "Namespaces" ], + "summary": "Creates / Updates a Notification Hub namespace. This operation is idempotent.", "operationId": "Namespaces_CreateOrUpdate", "consumes": [ "application/json" @@ -834,6 +841,7 @@ { "in": "header", "name": "x-ms-client-principal-name", + "description": "Azure user name.", "type": "string" }, { @@ -842,6 +850,7 @@ { "in": "body", "name": "parameters", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" @@ -875,6 +884,7 @@ "tags": [ "Namespaces" ], + "summary": "Patches the existing namespace.", "operationId": "Namespaces_Patch", "consumes": [ "application/json" @@ -895,6 +905,7 @@ { "in": "header", "name": "x-ms-client-principal-name", + "description": "Azure user name.", "type": "string" }, { @@ -903,6 +914,7 @@ { "in": "body", "name": "parameters", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/NamespacePatchParameters" @@ -930,6 +942,7 @@ "tags": [ "Namespaces" ], + "summary": "Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace.", "operationId": "Namespaces_Delete", "parameters": [ { @@ -944,6 +957,7 @@ { "in": "header", "name": "x-ms-client-principal-name", + "description": "Azure user name.", "type": "string" }, { @@ -970,6 +984,7 @@ "tags": [ "Namespaces" ], + "summary": "Lists all the available namespaces within the subscription.", "operationId": "Namespaces_ListAll", "produces": [ "application/json" @@ -981,11 +996,13 @@ { "in": "query", "name": "$skipToken", + "description": "Skip token for subsequent requests.", "type": "string" }, { "in": "query", "name": "$count", + "description": "Maximum number of results to return.", "type": "integer", "format": "int32", "default": 100 @@ -1021,6 +1038,7 @@ "tags": [ "Namespaces" ], + "summary": "Lists the available namespaces within a resource group.", "operationId": "Namespaces_List", "produces": [ "application/json" @@ -1035,11 +1053,13 @@ { "in": "query", "name": "$skipToken", + "description": "Skip token for subsequent requests.", "type": "string" }, { "in": "query", "name": "$count", + "description": "Maximum number of results to return.", "type": "integer", "format": "int32", "default": 100 @@ -1075,6 +1095,7 @@ "tags": [ "Namespaces" ], + "summary": "Creates an authorization rule for a namespace", "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", "consumes": [ "application/json" @@ -1101,6 +1122,7 @@ { "in": "body", "name": "parameters", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" @@ -1128,6 +1150,7 @@ "tags": [ "Namespaces" ], + "summary": "Deletes a namespace authorization rule", "operationId": "Namespaces_DeleteAuthorizationRule", "parameters": [ { @@ -1164,6 +1187,7 @@ "tags": [ "Namespaces" ], + "summary": "Gets an authorization rule for a namespace by name.", "operationId": "Namespaces_GetAuthorizationRule", "produces": [ "application/json" @@ -1208,6 +1232,7 @@ "tags": [ "Namespaces" ], + "summary": "Gets the authorization rules for a namespace.", "operationId": "Namespaces_ListAuthorizationRules", "produces": [ "application/json" @@ -1253,6 +1278,7 @@ "tags": [ "Namespaces" ], + "summary": "Gets the Primary and Secondary ConnectionStrings to the namespace.", "operationId": "Namespaces_ListKeys", "produces": [ "application/json" @@ -1297,6 +1323,7 @@ "tags": [ "Namespaces" ], + "summary": "Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule", "operationId": "Namespaces_RegenerateKeys", "consumes": [ "application/json" @@ -1323,6 +1350,7 @@ { "in": "body", "name": "parameters", + "description": "Request content.", "required": true, "schema": { "$ref": "#/definitions/PolicyKeyResource" From c604489db4e1f464f88deed1bb1a4cca2393e02c Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 14:01:17 +0200 Subject: [PATCH 42/73] Notification Hubs: adding default ErrorResponse schema. --- .../PrivateEndpointConnectionDelete.json | 6 +- .../2023-01-01-preview/notificationhubs.json | 192 ++++++++++++++---- 2 files changed, 161 insertions(+), 37 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json index 7ebc39f8387b..61f0f959f8e1 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json @@ -7,6 +7,10 @@ "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" }, "responses": { - "202": {} + "202": { + "headers": { + "Location": "https://nh-sdk-ns.servicebus.windows.net/operationXYZ" + } + } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 9004ea231740..bc510aad4c2b 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -54,7 +54,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -99,7 +102,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -160,7 +166,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -215,7 +224,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -230,6 +242,9 @@ ], "summary": "Deletes a notification hub associated with a namespace.", "operationId": "NotificationHubs_Delete", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" @@ -258,7 +273,10 @@ "description": "Success" }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -314,7 +332,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -363,7 +384,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -423,7 +447,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -438,6 +465,9 @@ ], "summary": "Deletes a notificationHub authorization rule", "operationId": "NotificationHubs_DeleteAuthorizationRule", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" @@ -463,7 +493,10 @@ "description": "No Content" }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -509,7 +542,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -554,7 +590,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -606,7 +645,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -666,7 +708,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -711,7 +756,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -759,7 +807,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -807,7 +858,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -871,7 +925,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -929,7 +986,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -944,6 +1004,9 @@ ], "summary": "Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace.", "operationId": "Namespaces_Delete", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" @@ -969,7 +1032,10 @@ "description": "No Content" }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1019,7 +1085,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -1076,7 +1145,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -1137,7 +1209,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1152,6 +1227,9 @@ ], "summary": "Deletes a namespace authorization rule", "operationId": "Namespaces_DeleteAuthorizationRule", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" @@ -1174,7 +1252,10 @@ "description": "No Content" }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1217,7 +1298,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1259,7 +1343,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -1308,7 +1395,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1365,7 +1455,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1407,7 +1500,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1439,7 +1535,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -1505,7 +1604,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1521,6 +1623,9 @@ "summary": "Deletes the Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", "description": "This is an asynchronous API, which sets the Azure-AsyncOperation header. \r\nCaller can use URI from that header to check status of the operation.", "operationId": "PrivateEndpointConnections_Delete", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" @@ -1548,7 +1653,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1597,7 +1705,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1641,7 +1752,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1694,7 +1808,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -1739,7 +1856,10 @@ } }, "default": { - "description": "Error code with reason." + "description": "Error code with reason.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -3383,4 +3503,4 @@ ] } ] -} +} \ No newline at end of file From 3c9119db5714a225fc90444b565f22505937817b Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 16:52:21 +0200 Subject: [PATCH 43/73] Notification Hub: fixing content types for Private Link operations --- .../2023-01-01-preview/notificationhubs.json | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index bc510aad4c2b..9d00f5413a09 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1561,14 +1561,10 @@ "description": "This is an asynchronous API, which sets the Azure-AsyncOperation header. \r\nCaller can use URI from that header to check status of the operation.", "operationId": "PrivateEndpointConnections_ApproveOrReject", "consumes": [ - "application/json", - "text/json", - "application/*+json" + "application/json" ], "produces": [ - "text/plain", - "application/json", - "text/json" + "application/json" ], "parameters": [ { @@ -1676,9 +1672,7 @@ "summary": "Returns a Private Endpoint Connection with a given name. \r\nThis is a public API that can be called directly by Notification Hubs users.", "operationId": "PrivateEndpointConnections_Get", "produces": [ - "text/plain", - "application/json", - "text/json" + "application/json" ], "parameters": [ { @@ -1726,9 +1720,7 @@ "summary": "Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace.\r\nThis is a public API that can be called directly by Notification Hubs users.", "operationId": "PrivateEndpointConnections_List", "produces": [ - "text/plain", - "application/json", - "text/json" + "application/json" ], "parameters": [ { @@ -1774,9 +1766,7 @@ "description": "Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called.\r\nThat's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.", "operationId": "PrivateEndpointConnections_GetGroupId", "produces": [ - "text/plain", - "application/json", - "text/json" + "application/json" ], "parameters": [ { @@ -1830,9 +1820,7 @@ "description": "Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called.\r\nThat's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.", "operationId": "PrivateEndpointConnections_ListGroupIds", "produces": [ - "text/plain", - "application/json", - "text/json" + "application/json" ], "parameters": [ { From b61dab9d8ca392365bd89aac3b33c0f7adb2916f Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Wed, 10 May 2023 16:58:31 +0200 Subject: [PATCH 44/73] Notification Hubs: reverting separate type for Namespace Create Or Update --- .../2023-01-01-preview/notificationhubs.json | 44 +------------------ 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 9d00f5413a09..7a85a1d8c921 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -907,7 +907,7 @@ "description": "Request content.", "required": true, "schema": { - "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" + "$ref": "#/definitions/NamespaceResource" } } ], @@ -2432,48 +2432,6 @@ } } }, - "NamespaceCreateOrUpdateParameters": { - "required": [ - "location", - "properties", - "sku" - ], - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true - }, - "type": { - "type": "string", - "readOnly": true - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "location": { - "minLength": 1, - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "sku": { - "$ref": "#/definitions/Sku" - }, - "properties": { - "$ref": "#/definitions/NamespaceProperties" - } - } - }, "NamespaceListResult": { "type": "object", "properties": { From 6217ba86b3b81b5483ee1b1ffcd15fb703af7f34 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 08:54:34 +0200 Subject: [PATCH 45/73] Notification Hubs: adding schema descriptions --- .../2023-01-01-preview/notificationhubs.json | 242 +++++++++++++++++- 1 file changed, 240 insertions(+), 2 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 7a85a1d8c921..27c108a3304f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1860,6 +1860,7 @@ }, "definitions": { "AccessRights": { + "description": "Defines values for AccessRights.", "enum": [ "Manage", "Send", @@ -1872,6 +1873,7 @@ } }, "AdmCredential": { + "description": "Description of a NotificationHub AdmCredential.", "required": [ "properties" ], @@ -1884,6 +1886,7 @@ "x-ms-secret": true }, "AdmCredentialProperties": { + "description": "Description of a NotificationHub AdmCredential.", "required": [ "authTokenUrl", "clientId", @@ -1892,16 +1895,19 @@ "type": "object", "properties": { "clientId": { + "description": "Gets or sets the client identifier.", "minLength": 1, "type": "string", "x-ms-secret": true }, "clientSecret": { + "description": "Gets or sets the credential secret access key.", "minLength": 1, "type": "string", "x-ms-secret": true }, "authTokenUrl": { + "description": "Gets or sets the URL of the authorization token.", "minLength": 1, "type": "string", "x-ms-secret": true @@ -1909,6 +1915,7 @@ } }, "ApnsCredential": { + "description": "Description of a NotificationHub ApnsCredential.", "required": [ "properties" ], @@ -1921,60 +1928,73 @@ "x-ms-secret": true }, "ApnsCredentialProperties": { + "description": "Description of a NotificationHub ApnsCredential.", "required": [ "endpoint" ], "type": "object", "properties": { "apnsCertificate": { + "description": "Gets or sets the APNS certificate.", "type": "string", "x-ms-secret": true }, "certificateKey": { + "description": "Gets or sets the certificate key.", "type": "string", "x-ms-secret": true }, "endpoint": { + "description": "Gets or sets the endpoint of this credential.", "minLength": 1, "type": "string", "x-ms-secret": true }, "thumbprint": { + "description": "Gets or sets the APNS certificate Thumbprint", "type": "string", "x-ms-secret": true }, "keyId": { + "description": "Gets or sets a 10-character key identifier (kid) key, obtained from\r\nyour developer account", "type": "string", "x-ms-secret": true }, "appName": { + "description": "Gets or sets the name of the application", "type": "string", "x-ms-secret": true }, "appId": { + "description": "Gets or sets the issuer (iss) registered claim key, whose value is\r\nyour 10-character Team ID, obtained from your developer account", "type": "string", "x-ms-secret": true }, "token": { + "description": "Gets or sets provider Authentication Token, obtained through your\r\ndeveloper account", "type": "string", "x-ms-secret": true } } }, "Availability": { + "description": "Represents metric availability (part of RP operation descriptions).", "type": "object", "properties": { "timeGrain": { + "description": "Time grain of the availability.", "type": "string", "readOnly": true }, "blobDuration": { + "description": "Duration of the availability blob.", "type": "string", "readOnly": true } } }, "BaiduCredential": { + "description": "Description of a NotificationHub BaiduCredential.", "required": [ "properties" ], @@ -1987,6 +2007,7 @@ "x-ms-secret": true }, "BaiduCredentialProperties": { + "description": "Description of a NotificationHub BaiduCredential.", "required": [ "baiduApiKey", "baiduEndPoint", @@ -1995,16 +2016,19 @@ "type": "object", "properties": { "baiduApiKey": { + "description": "Gets or sets baidu Api Key.", "minLength": 1, "type": "string", "x-ms-secret": true }, "baiduEndPoint": { + "description": "Gets or sets baidu Endpoint.", "minLength": 1, "type": "string", "x-ms-secret": true }, "baiduSecretKey": { + "description": "Gets or sets baidu Secret Key", "minLength": 1, "type": "string", "x-ms-secret": true @@ -2012,6 +2036,7 @@ } }, "BrowserCredential": { + "description": "Description of a NotificationHub BrowserCredential.", "required": [ "properties" ], @@ -2024,6 +2049,7 @@ "x-ms-secret": true }, "BrowserCredentialProperties": { + "description": "Description of a NotificationHub BrowserCredential.", "required": [ "subject", "vapidPrivateKey", @@ -2032,16 +2058,19 @@ "type": "object", "properties": { "subject": { + "description": "Gets or sets web push subject.", "minLength": 1, "type": "string", "x-ms-secret": true }, "vapidPrivateKey": { + "description": "Gets or sets VAPID private key.", "minLength": 1, "type": "string", "x-ms-secret": true }, "vapidPublicKey": { + "description": "Gets or sets VAPID public key.", "minLength": 1, "type": "string", "x-ms-secret": true @@ -2049,108 +2078,133 @@ } }, "CheckAvailabilityParameters": { + "description": "Parameters supplied to the Check Name Availability for Namespace and\r\nNotificationHubs.", "required": [ "name" ], "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets or sets resource name", "minLength": 1, "type": "string" }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "location": { + "description": "Gets or sets resource location", "type": "string" }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" } }, "isAvailiable": { + "description": "Not used and deprecated since API version 2023-01-01-preview", "type": "boolean" } } }, "CheckAvailabilityResult": { + "description": "Description of a CheckAvailability resource.", "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets resource name", "type": "string", "readOnly": true }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" } }, "isAvailiable": { + "description": "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false.", "type": "boolean" }, "location": { + "description": "Location of the notification hub. This property is deprecated\r\nsince version 2023-01-01-preview.", "type": "string", "readOnly": true } } }, "ConnectionDetails": { + "description": "Part of Private Endpoint description that stores information about a connection between Private Endpoint and Notification Hubs namespace.\r\nThis is internal class, not visible to customers, and we use it only to discover the link identifier.", "type": "object", "properties": { "id": { + "description": "A unique ID of the connection. This is not the ARM id, but rather an internal identifier set by the Networking RP. Notification Hubs code\r\ndoes not analyze it.", "type": "string", "readOnly": true }, "privateIpAddress": { + "description": "IP address of the Private Endpoint. This is not used by Notification Hubs.", "type": "string", "readOnly": true }, "linkIdentifier": { + "description": "Link identifier. This is a string representation of an integer that is also encoded in every IPv6 frame received by Front Door,\r\nand we use it to create implicit authorization rule that allows connection from the associated Private Endpoint.", "type": "string", "readOnly": true }, "groupId": { + "description": "Group name. Always \"namespace\" for Notification Hubs.", "type": "string", "readOnly": true }, "memberName": { + "description": "Member name. Always \"namespace\" for Notification Hubs.", "type": "string", "readOnly": true } } }, "DebugSendResponse": { + "description": "Description of a NotificationHub Resource.", "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets resource name", "type": "string", "readOnly": true }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" @@ -2160,25 +2214,33 @@ "$ref": "#/definitions/DebugSendResult" }, "location": { + "description": "Location of the Notification Hub.", "type": "string", - "readOnly": true + "x-ms-mutability": [ + "create", + "read" + ] } } }, "DebugSendResult": { + "description": "Result of DebugSend operations.", "type": "object", "properties": { "success": { "format": "int64", + "description": "Gets or sets successful send", "type": "integer", "readOnly": true }, "failure": { "format": "int64", + "description": "Gets or sets send failure", "type": "integer", "readOnly": true }, "results": { + "description": "Gets or sets actual failure description", "type": "array", "items": { "$ref": "#/definitions/RegistrationResult" @@ -2196,14 +2258,17 @@ "type": "object", "properties": { "code": { + "description": "Error code.", "minLength": 1, "type": "string" }, "message": { + "description": "Error message.", "minLength": 1, "type": "string" }, "target": { + "description": "The target of the particular error (for example, the name of the property in error).", "type": "string" } } @@ -2220,6 +2285,7 @@ } }, "GcmCredential": { + "description": "Description of a NotificationHub GcmCredential.", "required": [ "properties" ], @@ -2232,16 +2298,19 @@ "x-ms-secret": true }, "GcmCredentialProperties": { + "description": "Description of a NotificationHub GcmCredential.", "required": [ "googleApiKey" ], "type": "object", "properties": { "gcmEndpoint": { + "description": "Gets or sets the GCM endpoint.", "type": "string", "x-ms-secret": true }, "googleApiKey": { + "description": "Gets or sets the Google API key.", "minLength": 1, "type": "string", "x-ms-secret": true @@ -2249,17 +2318,21 @@ } }, "GroupConnectivityInformation": { + "description": "Represents a connectivity information to Notification Hubs namespace. This is part of PrivateLinkService proxy that tell\r\nthe Networking RP how to connect to the Notification Hubs namespace.", "type": "object", "properties": { "groupId": { + "description": "Group id. Always set to \"namespace\".", "type": "string", "readOnly": true }, "memberName": { + "description": "Member name. Always set to \"namespace\".", "type": "string", "readOnly": true }, "customerVisibleFqdns": { + "description": "List of customer-visible domain names that point to a Notification Hubs namespace. It includes both Service Bus and Notification Hubs FQDNS\r\n(e.g. namespace.servicebus.windows.net and namespace.notificationhub.windows.net for Public Cloud namespace).", "type": "array", "items": { "type": "string" @@ -2267,20 +2340,24 @@ "readOnly": true }, "internalFqdn": { + "description": "One of the domain name from the customer-visible names; this is used internally by Private Link service to make connection to Notification Hubs\r\nnamespace.", "type": "string", "readOnly": true }, "redirectMapId": { + "description": "Not used by Notification Hubs.", "type": "string", "readOnly": true }, "privateLinkServiceArmRegion": { + "description": "ARM region for Private Link Service. We use the region that contains the connected Notification Hubs namespace.", "type": "string", "readOnly": true } } }, "IpRule": { + "description": "A network authorization rule that filters traffic based on IP address.", "required": [ "ipMask", "rights" @@ -2288,10 +2365,12 @@ "type": "object", "properties": { "ipMask": { + "description": "IP mask.", "minLength": 1, "type": "string" }, "rights": { + "description": "List of access rights.", "type": "array", "items": { "$ref": "#/definitions/AccessRights" @@ -2319,46 +2398,57 @@ } }, "LogSpecification": { + "description": "A single log category specification.", "type": "object", "properties": { "name": { + "description": "Name of the log category.", "type": "string", "readOnly": true }, "displayName": { + "description": "Display name of the log category.", "type": "string", "readOnly": true }, "blobDuration": { + "description": "Duration of data written to a single blob.", "type": "string", "readOnly": true } } }, "MetricSpecification": { + "description": "A metric specification.", "type": "object", "properties": { "name": { + "description": "Metric name / id.", "type": "string", "readOnly": true }, "displayName": { + "description": "User-visible metric name.", "type": "string", "readOnly": true }, "displayDescription": { + "description": "Description of the metric.", "type": "string", "readOnly": true }, "unit": { + "description": "Metric unit.", "type": "string", "readOnly": true }, "aggregationType": { + "description": "Type of the aggregation (Average, Minimum, Maximum, Total or Count).", "type": "string", "readOnly": true }, "availabilities": { + "description": "List of availabilities.", "type": "array", "items": { "$ref": "#/definitions/Availability" @@ -2367,16 +2457,19 @@ "x-ms-identifiers": [ ] }, "metricFilterPattern": { + "description": "The matching regex pattern to be applied to the field pointed by the \"metricsFilterPathSelector\" flag in the ARM manifest.", "type": "string", "readOnly": true }, "fillGapWithZero": { + "description": "Opional property. If set to true, then zero will be returned for time duration where no metric is emitted / published.", "type": "boolean", "readOnly": true } } }, "MoveResourcesRequest": { + "description": "A request for Move Namespace requests.", "required": [ "resources", "targetResourceGroup" @@ -2384,10 +2477,12 @@ "type": "object", "properties": { "targetResourceGroup": { + "description": "Target resource group URI. All resources will be moved to this group.", "minLength": 1, "type": "string" }, "resources": { + "description": "List of resource URIs to move.", "type": "array", "items": { "type": "string" @@ -2396,6 +2491,7 @@ } }, "MpnsCredential": { + "description": "Description of a NotificationHub MpnsCredential.", "required": [ "properties" ], @@ -2408,6 +2504,7 @@ "x-ms-secret": true }, "MpnsCredentialProperties": { + "description": "Description of a NotificationHub MpnsCredential.", "required": [ "certificateKey", "mpnsCertificate", @@ -2416,16 +2513,19 @@ "type": "object", "properties": { "mpnsCertificate": { + "description": "Gets or sets the MPNS certificate.", "minLength": 1, "type": "string", "x-ms-secret": true }, "certificateKey": { + "description": "Gets or sets the certificate key for this credential.", "minLength": 1, "type": "string", "x-ms-secret": true }, "thumbprint": { + "description": "Gets or sets the MPNS certificate Thumbprint", "minLength": 1, "type": "string", "x-ms-secret": true @@ -2433,9 +2533,11 @@ } }, "NamespaceListResult": { + "description": "The response of the List Namespace operation.", "type": "object", "properties": { "value": { + "description": "Gets or sets result of the List Namespace operation.", "type": "array", "items": { "$ref": "#/definitions/NamespaceResource" @@ -2443,12 +2545,14 @@ "readOnly": true }, "nextLink": { + "description": "Gets or sets link to the next set of results. Not empty if Value\r\ncontains incomplete list of Namespaces", "type": "string", "readOnly": true } } }, "NamespacePatchParameters": { + "description": "Patch parameter for NamespaceResource.", "type": "object", "properties": { "id": { @@ -2466,9 +2570,11 @@ } }, "NamespaceProperties": { + "description": "Represents namespace properties.", "type": "object", "properties": { "name": { + "description": "Name of the Notification Hubs namespace. This is immutable property, set automatically \r\nby the service when the namespace is created.", "type": "string", "readOnly": true }, @@ -2479,32 +2585,39 @@ "$ref": "#/definitions/NamespaceStatus" }, "enabled": { + "description": "Gets or sets whether or not the namespace is currently enabled.", "type": "boolean", "readOnly": true }, "critical": { + "description": "Gets or sets whether or not the namespace is set as Critical.", "type": "boolean", "readOnly": true }, "subscriptionId": { + "description": "Namespace subscription id.", "type": "string", "readOnly": true }, "region": { + "description": "Region. The value is always set to the same value as Namespace.Location, so we are deprecating\r\nthis property.", "type": "string", "readOnly": true }, "metricId": { + "description": "Azure Insights Metrics id.", "type": "string", "readOnly": true }, "createdAt": { "format": "date-time", + "description": "Time when the namespace was created.", "type": "string", "readOnly": true }, "updatedAt": { "format": "date-time", + "description": "Time when the namespace was updated.", "type": "string", "readOnly": true }, @@ -2515,6 +2628,7 @@ "$ref": "#/definitions/ReplicationRegion" }, "zoneRedundant": { + "description": "Controls whether the namespace is zone redundant.", "type": "boolean", "x-ms-mutability": [ "create", @@ -2528,10 +2642,12 @@ "$ref": "#/definitions/PnsCredentials" }, "serviceBusEndpoint": { + "description": "Gets or sets endpoint you can use to perform NotificationHub\r\noperations.", "type": "string", "readOnly": true }, "privateEndpointConnections": { + "description": "Private Endpoint Connections for namespace", "type": "array", "items": { "$ref": "#/definitions/PrivateEndpointConnectionResource" @@ -2541,6 +2657,7 @@ } }, "NamespaceResource": { + "description": "Notification Hubs Namespace Resource.", "required": [ "location", "properties", @@ -2549,24 +2666,29 @@ "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets resource name", "type": "string", "readOnly": true }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" } }, "location": { + "description": "Gets or sets resource location.", "minLength": 1, "type": "string", "x-ms-mutability": [ @@ -2584,6 +2706,7 @@ "x-ms-azure-resource": true }, "NamespaceStatus": { + "description": "Namespace status.", "enum": [ "Created", "Creating", @@ -2597,6 +2720,7 @@ } }, "NamespaceType": { + "description": "Defines values for NamespaceType.", "enum": [ "Messaging", "NotificationHub" @@ -2608,6 +2732,7 @@ } }, "NetworkAcls": { + "description": "A collection of network authorization rules.", "required": [ "ipRules", "publicInternetRule" @@ -2615,6 +2740,7 @@ "type": "object", "properties": { "ipRules": { + "description": "List of IP rules.", "type": "array", "items": { "$ref": "#/definitions/IpRule" @@ -2627,9 +2753,11 @@ } }, "NotificationHubListResult": { + "description": "The response of the List NotificationHub operation.", "type": "object", "properties": { "value": { + "description": "Gets or sets result of the List NotificationHub operation.", "type": "array", "items": { "$ref": "#/definitions/NotificationHubResource" @@ -2637,12 +2765,14 @@ "readOnly": true }, "nextLink": { + "description": "Gets or sets link to the next set of results. Not empty if Value\r\ncontains incomplete list of NotificationHub", "type": "string", "readOnly": true } } }, "NotificationHubPatchParameters": { + "description": "Patch parameter for NamespaceResource.", "type": "object", "properties": { "id": { @@ -2657,9 +2787,11 @@ } }, "NotificationHubProperties": { + "description": "NotificationHub properties.", "type": "object", "properties": { "name": { + "description": "Gets or sets the NotificationHub name.", "type": "string", "x-ms-mutability": [ "create", @@ -2667,9 +2799,11 @@ ] }, "registrationTtl": { + "description": "Gets or sets the RegistrationTtl of the created NotificationHub", "type": "string" }, "authorizationRules": { + "description": "Gets or sets the AuthorizationRules of the created NotificationHub", "type": "array", "items": { "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" @@ -2712,30 +2846,36 @@ } }, "NotificationHubResource": { + "description": "Notification Hub Resource.", "required": [ "properties" ], "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets resource name", "type": "string", "readOnly": true }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" } }, "location": { + "description": "Resource location.", "type": "string", "x-ms-mutability": [ "create", @@ -2749,9 +2889,11 @@ "x-ms-azure-resource": true }, "Operation": { + "description": "A NotificationHubs REST API operation", "type": "object", "properties": { "name": { + "description": "Gets operation name: {provider}/{resource}/{operation}", "type": "string", "readOnly": true }, @@ -2762,36 +2904,44 @@ "$ref": "#/definitions/OperationProperties" }, "isDataAction": { + "description": "Gets or sets IsDataAction property. It is used to differentiate management and data plane operations.", "type": "boolean", "readOnly": true } } }, "OperationDisplay": { + "description": "The object that represents the operation.", "type": "object", "properties": { "provider": { + "description": "Gets service provider: Microsoft.NotificationHubs", "type": "string", "readOnly": true }, "resource": { + "description": "Gets resource on which the operation is performed: Invoice, etc.", "type": "string", "readOnly": true }, "operation": { + "description": "Gets operation type: Read, write, delete, etc.", "type": "string", "readOnly": true }, "description": { + "description": "Human-friendly operation description.", "type": "string", "readOnly": true } } }, "OperationListResult": { + "description": "Result of the request to list NotificationHubs operations. It contains\r\na list of operations and a URL link to get the next set of results.", "type": "object", "properties": { "value": { + "description": "Gets list of NotificationHubs operations supported by the\r\nMicrosoft.NotificationHubs resource provider.", "type": "array", "items": { "$ref": "#/definitions/Operation" @@ -2802,12 +2952,14 @@ ] }, "nextLink": { + "description": "Gets URL to get the next set of operation list results if there are\r\nany.", "type": "string", "readOnly": true } } }, "OperationProperties": { + "description": "Optional operation properties.", "type": "object", "properties": { "serviceSpecification": { @@ -2816,6 +2968,7 @@ } }, "OperationProvisioningState": { + "description": "Defines values for OperationProvisioningState.", "enum": [ "Unknown", "InProgress", @@ -2832,6 +2985,7 @@ } }, "PnsCredentials": { + "description": "Collection of Notification Hub or Notification Hub Namespace PNS credentials.", "type": "object", "properties": { "admCredential": { @@ -2862,21 +3016,26 @@ "x-ms-secret": true }, "PnsCredentialsResource": { + "description": "Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs\r\nPNS credentials.", "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets resource name", "type": "string", "readOnly": true }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" @@ -2886,12 +3045,14 @@ "$ref": "#/definitions/PnsCredentials" }, "location": { + "description": "Location of the PNS credentials. Always the same as location of the containing namespace.", "type": "string", "readOnly": true } } }, "PolicyKeyResource": { + "description": "Namespace / NotificationHub Regenerate Keys request.", "required": [ "policyKey" ], @@ -2914,9 +3075,11 @@ } }, "PrivateEndpointConnectionProperties": { + "description": "Private Endpoint Connection properties.", "type": "object", "properties": { "provisioningState": { + "description": "Provisioning state.", "type": "string", "readOnly": true }, @@ -2924,6 +3087,7 @@ "$ref": "#/definitions/RemotePrivateEndpointConnection" }, "groupIds": { + "description": "List of group ids. For Notification Hubs, it always contains a single \"namespace\" element.", "type": "array", "items": { "type": "string" @@ -2936,21 +3100,26 @@ } }, "PrivateEndpointConnectionResource": { + "description": "Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace.", "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets resource name", "type": "string", "readOnly": true }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" @@ -2967,6 +3136,7 @@ "x-ms-azure-resource": true }, "PrivateEndpointConnectionResourcePrivateLinkResourceCollection": { + "description": "A collection of Private Link Resources.", "type": "object", "properties": { "value": { @@ -2979,6 +3149,7 @@ } }, "PrivateLinkConnectionStatus": { + "description": "State of Private Link Connection.", "enum": [ "Disconnected", "Pending", @@ -2992,21 +3163,26 @@ } }, "PrivateLinkResource": { + "description": "A Private Link Arm Resource.", "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets resource name", "type": "string", "readOnly": true }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" @@ -3018,6 +3194,7 @@ } }, "PrivateLinkResourcePrivateLinkResourceCollection": { + "description": "A collection of Private Link Resources.", "type": "object", "properties": { "value": { @@ -3030,13 +3207,16 @@ } }, "PrivateLinkResourceProperties": { + "description": "Represents properties of Private Link Resource.", "type": "object", "properties": { "groupId": { + "description": "A Group Id for Private Link. For Notification Hubs, it is always set to \"namespace\".", "type": "string", "readOnly": true }, "requiredMembers": { + "description": "Required members. For Notification Hubs, it's always a collection with a single \"namespace\" item.", "type": "array", "items": { "type": "string" @@ -3044,6 +3224,7 @@ "readOnly": true }, "requiredZoneNames": { + "description": "Required DNS zone names. For Notification Hubs, it contains two CNames for Service Bus and Notification Hubs zones.", "type": "array", "items": { "type": "string" @@ -3053,29 +3234,35 @@ } }, "PrivateLinkServiceConnection": { + "description": "A customer-visible sub-resource of Private Endpoint, which describe the connection between Private Endpoint and Notification Hubs namespace.", "type": "object", "properties": { "name": { + "description": "Name of the Private Link Service connection.", "type": "string" }, "groupIds": { + "description": "List of group ids. Always contains a single element - \"namespace\" - for Notification Hub Namespace.", "type": "array", "items": { "type": "string" } }, "requestMessage": { + "description": "Request message provided by the user that created the connection. This is usually used when the connection requires manual approval.", "type": "string" } } }, "PublicInternetAuthorizationRule": { + "description": "A default (public Internet) network authorization rule, which contains rights if no other network rule matches.", "required": [ "rights" ], "type": "object", "properties": { "rights": { + "description": "List of access rights.", "type": "array", "items": { "$ref": "#/definitions/AccessRights" @@ -3105,31 +3292,37 @@ } }, "RemotePrivateEndpointConnection": { + "description": "Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection.", "type": "object", "properties": { "id": { + "description": "ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace.", "type": "string", "readOnly": true } } }, "RemotePrivateLinkServiceConnectionState": { + "description": "State of the Private Link Service connection.", "type": "object", "properties": { "status": { "$ref": "#/definitions/PrivateLinkConnectionStatus" }, "description": { + "description": "Human-friendly description.", "type": "string", "readOnly": true }, "actionsRequired": { + "description": "Human-friendly description of required actions.", "type": "string", "readOnly": true } } }, "ReplicationRegion": { + "description": "Allowed replication region", "enum": [ "Default", "WestUs2", @@ -3147,38 +3340,46 @@ } }, "ResourceListKeys": { + "description": "Response for the POST request that returns Namespace or NotificationHub access keys (connection strings).", "type": "object", "properties": { "primaryConnectionString": { + "description": "Gets or sets primaryConnectionString of the AuthorizationRule.", "type": "string", "readOnly": true, "x-ms-secret": true }, "secondaryConnectionString": { + "description": "Gets or sets secondaryConnectionString of the created\r\nAuthorizationRule", "type": "string", "readOnly": true, "x-ms-secret": true }, "primaryKey": { + "description": "Gets or sets primaryKey of the created AuthorizationRule.", "type": "string", "readOnly": true, "x-ms-secret": true }, "secondaryKey": { + "description": "Gets or sets secondaryKey of the created AuthorizationRule", "type": "string", "readOnly": true, "x-ms-secret": true }, "keyName": { + "description": "Gets or sets keyName of the created AuthorizationRule", "type": "string", "readOnly": true } } }, "ServiceSpecification": { + "description": "Optional service specification used in Operations API.", "type": "object", "properties": { "logSpecifications": { + "description": "Log specifications.", "type": "array", "items": { "$ref": "#/definitions/LogSpecification" @@ -3189,6 +3390,7 @@ ] }, "metricSpecifications": { + "description": "Metric specification.", "type": "array", "items": { "$ref": "#/definitions/MetricSpecification" @@ -3202,9 +3404,11 @@ } }, "SharedAccessAuthorizationRuleListResult": { + "description": "The response of the List Namespace operation.", "type": "object", "properties": { "value": { + "description": "Gets or sets result of the List AuthorizationRules operation.", "type": "array", "items": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" @@ -3212,76 +3416,92 @@ "readOnly": true }, "nextLink": { + "description": "Gets or sets link to the next set of results. Not empty if Value\r\ncontains incomplete list of AuthorizationRules", "type": "string", "readOnly": true } } }, "SharedAccessAuthorizationRuleProperties": { + "description": "SharedAccessAuthorizationRule properties.", "required": [ "rights" ], "type": "object", "properties": { "rights": { + "description": "Gets or sets the rights associated with the rule.", "type": "array", "items": { "$ref": "#/definitions/AccessRights" } }, "primaryKey": { + "description": "Gets a base64-encoded 256-bit primary key for signing and\r\nvalidating the SAS token.", "type": "string", "x-ms-secret": true }, "secondaryKey": { + "description": "Gets a base64-encoded 256-bit primary key for signing and\r\nvalidating the SAS token.", "type": "string", "x-ms-secret": true }, "keyName": { + "description": "Gets a string that describes the authorization rule.", "type": "string", "readOnly": true }, "modifiedTime": { "format": "date-time", + "description": "Gets the last modified time for this rule", "type": "string", "readOnly": true }, "createdTime": { "format": "date-time", + "description": "Gets the created time for this rule", "type": "string", "readOnly": true }, "claimType": { + "description": "Gets a string that describes the claim type", "type": "string", "readOnly": true }, "claimValue": { + "description": "Gets a string that describes the claim value", "type": "string", "readOnly": true }, "revision": { "format": "int32", + "description": "Gets the revision number for the rule", "type": "integer", "readOnly": true } } }, "SharedAccessAuthorizationRuleResource": { + "description": "Response for POST requests that return single SharedAccessAuthorizationRule.", "type": "object", "properties": { "id": { + "description": "Gets resource Id", "type": "string", "readOnly": true }, "name": { + "description": "Gets resource name", "type": "string", "readOnly": true }, "type": { + "description": "Gets resource type", "type": "string", "readOnly": true }, "tags": { + "description": "Gets or sets resource tags", "type": "object", "additionalProperties": { "type": "string" @@ -3291,6 +3511,7 @@ "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" }, "location": { + "description": "Location of the PNS credentials. Always the same as location of the containing namespace.", "type": "string", "readOnly": true } @@ -3298,31 +3519,38 @@ "x-ms-azure-resource": true }, "Sku": { + "description": "The Sku description for a namespace", "required": [ "name" ], "type": "object", "properties": { "name": { + "description": "Gets or sets name of the notification hub sku. Possible values\r\ninclude: 'Free', 'Basic', 'Standard'", "minLength": 1, "type": "string" }, "tier": { + "description": "Gets or sets the tier of particular sku", "type": "string" }, "size": { + "description": "Gets or sets the Sku size", "type": "string" }, "family": { + "description": "Gets or sets the Sku Family", "type": "string" }, "capacity": { "format": "int32", + "description": "Gets or sets the capacity of the resource", "type": "integer" } } }, "WnsCredential": { + "description": "Description of a NotificationHub WnsCredential.", "required": [ "properties" ], @@ -3335,31 +3563,38 @@ "x-ms-secret": true }, "WnsCredentialProperties": { + "description": "Description of a NotificationHub WnsCredential.", "type": "object", "properties": { "packageSid": { + "description": "Gets or sets the package ID for this credential.", "type": "string", "x-ms-secret": true }, "secretKey": { + "description": "Gets or sets the secret key.", "type": "string", "x-ms-secret": true }, "windowsLiveEndpoint": { + "description": "Gets or sets the Windows Live endpoint.", "type": "string", "x-ms-secret": true }, "certificateKey": { + "description": "Ges or sets the WNS Certificate Key.", "type": "string", "x-ms-secret": true }, "wnsCertificate": { + "description": "Gets or sets the WNS Certificate.", "type": "string", "x-ms-secret": true } } }, "XiaomiCredential": { + "description": "Description of a NotificationHub XiaomiCredential.", "required": [ "properties" ], @@ -3372,13 +3607,16 @@ "x-ms-secret": true }, "XiaomiCredentialProperties": { + "description": "Description of a NotificationHub XiaomiCredentialProperties.", "type": "object", "properties": { "appSecret": { + "description": "Gets or sets app secret.", "type": "string", "x-ms-secret": true }, "endpoint": { + "description": "Gets or sets xiaomi service endpoint.", "type": "string", "x-ms-secret": true } @@ -3449,4 +3687,4 @@ ] } ] -} \ No newline at end of file +} From 787f5a5882fbb86bb08551fd0b704acb068c4059 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 09:16:48 +0200 Subject: [PATCH 46/73] Notification Hubs: fixing last set of fixable linter warnings. --- .../2023-01-01-preview/notificationhubs.json | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 27c108a3304f..a27515f42d42 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1518,6 +1518,7 @@ "tags": [ "Operations" ], + "summary": "Lists all available Notification Hubs operations.", "operationId": "Operations_List", "produces": [ "application/json" @@ -2251,6 +2252,7 @@ } }, "ErrorDetails": { + "description": "Represents error details, including message and error code.", "required": [ "code", "message" @@ -2274,6 +2276,7 @@ } }, "ErrorResponse": { + "description": "Represents error response.", "required": [ "error" ], @@ -2379,6 +2382,7 @@ } }, "LinkedNotification": { + "description": "Content of ARM Linked notification.", "type": "object", "properties": { "action": { @@ -2390,6 +2394,7 @@ } }, "LinkedNotificationProperties": { + "description": "ARM linked notification properties.", "type": "object", "properties": { "id": { @@ -3047,7 +3052,10 @@ "location": { "description": "Location of the PNS credentials. Always the same as location of the containing namespace.", "type": "string", - "readOnly": true + "x-ms-mutability": [ + "create", + "read" + ] } } }, @@ -3064,6 +3072,7 @@ } }, "PolicyKeyType": { + "description": "Type of Shared Access Policy Key (primary or secondary).", "enum": [ "PrimaryKey", "SecondaryKey" @@ -3129,8 +3138,12 @@ "$ref": "#/definitions/PrivateEndpointConnectionProperties" }, "location": { + "description": "Location of the Private Endpoint Connection.", "type": "string", - "readOnly": true + "x-ms-mutability": [ + "create", + "read" + ] } }, "x-ms-azure-resource": true @@ -3271,21 +3284,26 @@ } }, "RegistrationResult": { + "description": "Notification result for a single registration.", "type": "object", "properties": { "applicationPlatform": { + "description": "PNS type.", "type": "string", "readOnly": true }, "pnsHandle": { + "description": "PNS handle.", "type": "string", "readOnly": true }, "registrationId": { + "description": "Registration id.", "type": "string", "readOnly": true }, "outcome": { + "description": "Notification outcome.", "type": "string", "readOnly": true } @@ -3513,7 +3531,10 @@ "location": { "description": "Location of the PNS credentials. Always the same as location of the containing namespace.", "type": "string", - "readOnly": true + "x-ms-mutability": [ + "create", + "read" + ] } }, "x-ms-azure-resource": true @@ -3687,4 +3708,4 @@ ] } ] -} +} \ No newline at end of file From c0bd66f746396a1c3717a48d00729d7eac7453cb Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 11:49:50 +0200 Subject: [PATCH 47/73] Notification Hubs: reusing common ErrorResponse --- .../2023-01-01-preview/notificationhubs.json | 147 +++++------------- 1 file changed, 40 insertions(+), 107 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index a27515f42d42..60b798a8fab9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -56,7 +56,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -104,7 +104,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -154,7 +154,7 @@ ], "responses": { "200": { - "description": "Success", + "description": "Udpated", "schema": { "$ref": "#/definitions/NotificationHubResource" } @@ -168,7 +168,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -226,7 +226,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -258,12 +258,6 @@ { "$ref": "#/parameters/HubName" }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "description": "Added when available. Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.", - "type": "string" - }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } @@ -275,7 +269,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -334,7 +328,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -386,7 +380,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -441,7 +435,7 @@ ], "responses": { "200": { - "description": "Success", + "description": "Udpated", "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } @@ -449,7 +443,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -495,7 +489,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -544,7 +538,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -592,7 +586,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -647,7 +641,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -710,7 +704,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -758,7 +752,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -809,7 +803,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -840,12 +834,6 @@ { "$ref": "#/parameters/NamespaceName" }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "description": "Azure user name.", - "type": "string" - }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } @@ -860,7 +848,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -892,12 +880,6 @@ { "$ref": "#/parameters/NamespaceName" }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "description": "Azure user name.", - "type": "string" - }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, @@ -913,7 +895,7 @@ ], "responses": { "200": { - "description": "Success", + "description": "Udpated", "schema": { "$ref": "#/definitions/NamespaceResource" } @@ -927,7 +909,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -959,12 +941,6 @@ { "$ref": "#/parameters/NamespaceName" }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "description": "Azure user name.", - "type": "string" - }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, @@ -988,7 +964,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1017,12 +993,6 @@ { "$ref": "#/parameters/NamespaceName" }, - { - "in": "header", - "name": "x-ms-client-principal-name", - "description": "Azure user name.", - "type": "string" - }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } @@ -1034,7 +1004,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1087,7 +1057,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1147,7 +1117,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1203,7 +1173,7 @@ ], "responses": { "200": { - "description": "Success", + "description": "Udpated", "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } @@ -1211,7 +1181,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1254,7 +1224,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1300,7 +1270,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1345,7 +1315,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1397,7 +1367,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1457,7 +1427,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1502,7 +1472,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1538,7 +1508,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1603,7 +1573,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1652,7 +1622,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1702,7 +1672,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1747,7 +1717,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1801,7 +1771,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -1847,7 +1817,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" } } }, @@ -2251,42 +2221,6 @@ } } }, - "ErrorDetails": { - "description": "Represents error details, including message and error code.", - "required": [ - "code", - "message" - ], - "type": "object", - "properties": { - "code": { - "description": "Error code.", - "minLength": 1, - "type": "string" - }, - "message": { - "description": "Error message.", - "minLength": 1, - "type": "string" - }, - "target": { - "description": "The target of the particular error (for example, the name of the property in error).", - "type": "string" - } - } - }, - "ErrorResponse": { - "description": "Represents error response.", - "required": [ - "error" - ], - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDetails" - } - } - }, "GcmCredential": { "description": "Description of a NotificationHub GcmCredential.", "required": [ @@ -2665,7 +2599,6 @@ "description": "Notification Hubs Namespace Resource.", "required": [ "location", - "properties", "sku" ], "type": "object", @@ -3708,4 +3641,4 @@ ] } ] -} \ No newline at end of file +} From f0bd97d294f2ed8a580acb50def17da58f14b28c Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 11:58:16 +0200 Subject: [PATCH 48/73] Notification Hubs: fixing references to common ErrorResponse --- .../2023-01-01-preview/notificationhubs.json | 70 +++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 60b798a8fab9..25b975943f37 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -56,7 +56,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -104,7 +104,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -168,7 +168,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -226,7 +226,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -328,7 +328,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -380,7 +380,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -443,7 +443,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -489,7 +489,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -538,7 +538,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -586,7 +586,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -641,7 +641,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -704,7 +704,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -752,7 +752,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -803,7 +803,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -848,7 +848,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -909,7 +909,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -964,7 +964,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1004,7 +1004,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1057,7 +1057,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1117,7 +1117,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1181,7 +1181,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1224,7 +1224,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1270,7 +1270,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1315,7 +1315,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1367,7 +1367,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1427,7 +1427,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1472,7 +1472,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1508,7 +1508,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1573,7 +1573,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1622,7 +1622,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1672,7 +1672,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1717,7 +1717,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1771,7 +1771,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1817,7 +1817,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/components/ErrorResponse" + "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, From 56e1768ab6df6f08c523310a8643d31e601db4a8 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 12:07:11 +0200 Subject: [PATCH 49/73] Notification Hubs: fixing reference to ErrorResponse --- .../2023-01-01-preview/notificationhubs.json | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 25b975943f37..4efb882b0f3d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -56,7 +56,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -104,7 +104,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -168,7 +168,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -226,7 +226,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -328,7 +328,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -380,7 +380,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -443,7 +443,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -489,7 +489,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -538,7 +538,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -586,7 +586,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -641,7 +641,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -704,7 +704,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -752,7 +752,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -803,7 +803,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -848,7 +848,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -909,7 +909,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -964,7 +964,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1004,7 +1004,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1057,7 +1057,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1117,7 +1117,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1181,7 +1181,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1224,7 +1224,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1270,7 +1270,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1315,7 +1315,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1367,7 +1367,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1427,7 +1427,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1472,7 +1472,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1508,7 +1508,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1573,7 +1573,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1622,7 +1622,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1672,7 +1672,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1717,7 +1717,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1771,7 +1771,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -1817,7 +1817,7 @@ "default": { "description": "Error code with reason.", "schema": { - "$ref": "#/definitions/../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -3641,4 +3641,4 @@ ] } ] -} +} \ No newline at end of file From 548d5518633a386df8c094b0d510225e55225d42 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 12:27:17 +0200 Subject: [PATCH 50/73] Notification Hubs: fixing spelling errors --- .../2023-01-01-preview/notificationhubs.json | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 4efb882b0f3d..3beaa2b9e22f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -154,7 +154,7 @@ ], "responses": { "200": { - "description": "Udpated", + "description": "Updated", "schema": { "$ref": "#/definitions/NotificationHubResource" } @@ -435,7 +435,13 @@ ], "responses": { "200": { - "description": "Udpated", + "description": "Updated", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } @@ -895,7 +901,7 @@ ], "responses": { "200": { - "description": "Udpated", + "description": "Updated", "schema": { "$ref": "#/definitions/NamespaceResource" } @@ -1173,7 +1179,13 @@ ], "responses": { "200": { - "description": "Udpated", + "description": "Updated", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } @@ -2269,7 +2281,7 @@ "readOnly": true }, "customerVisibleFqdns": { - "description": "List of customer-visible domain names that point to a Notification Hubs namespace. It includes both Service Bus and Notification Hubs FQDNS\r\n(e.g. namespace.servicebus.windows.net and namespace.notificationhub.windows.net for Public Cloud namespace).", + "description": "List of customer-visible domain names that point to a Notification Hubs namespace.", "type": "array", "items": { "type": "string" @@ -2401,7 +2413,7 @@ "readOnly": true }, "fillGapWithZero": { - "description": "Opional property. If set to true, then zero will be returned for time duration where no metric is emitted / published.", + "description": "Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published.", "type": "boolean", "readOnly": true } From 8f7a8ff684d4cc02c0ec41b124f37e04f898f127 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 12:43:35 +0200 Subject: [PATCH 51/73] Notification Hubs: next set of fixes for linter errors --- .../AuthorizationRuleCreateOrUpdate.json | 15 +++++++++++++++ .../AuthorizationRuleCreateOrUpdate.json | 15 +++++++++++++++ .../2023-01-01-preview/notificationhubs.json | 11 ++++++++++- 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json index 1bff4fb1c074..d223e0c330b9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json @@ -30,6 +30,21 @@ "name": "NewAuthorizationRule", "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" } + }, + "201": { + "body": { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "createdTime": "2023-04-26T10:09:19.9675121+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" + } } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json index 8a9ef743da72..461ca096a84f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json @@ -30,6 +30,21 @@ "name": "MyManageSharedAccessKey", "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" } + }, + "201": { + "body": { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "createdTime": "2023-04-26T12:24:40.5863818+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/MyManageSharedAccessKey", + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + } } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 3beaa2b9e22f..88ba99634065 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1576,6 +1576,12 @@ } ], "responses": { + "200": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, "201": { "description": "Created", "schema": { @@ -2132,7 +2138,10 @@ "location": { "description": "Location of the notification hub. This property is deprecated\r\nsince version 2023-01-01-preview.", "type": "string", - "readOnly": true + "x-ms-mutability": [ + "create", + "read" + ] } } }, From aadb6fcb5871e91d8d8e5943a4ce9182c99178d9 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 12:53:18 +0200 Subject: [PATCH 52/73] Notification Hubs: updating example with 200 status code --- ...vateEndpointConnectionApproveOrReject.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json index 81101b1b778d..bbb739568c9c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json @@ -15,6 +15,26 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "name": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "type": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections" + } + }, "201": { "body": { "properties": { From a360e64c3b872165f612ea2ab573629b5bf5c2e8 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 15:49:02 +0200 Subject: [PATCH 53/73] Notification Hubs: fixing some of breaking changes --- .../2023-01-01-preview/notificationhubs.json | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 88ba99634065..8855df49c5c4 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2613,6 +2613,18 @@ "$ref": "#/definitions/PrivateEndpointConnectionResource" }, "readOnly": true + }, + "scaleUnit": { + "description": "Gets or sets scaleUnit where the namespace gets created", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "dataCenter": { + "description": "Deprecated.", + "type": "string" } } }, @@ -3501,9 +3513,7 @@ "type": "object", "properties": { "name": { - "description": "Gets or sets name of the notification hub sku. Possible values\r\ninclude: 'Free', 'Basic', 'Standard'", - "minLength": 1, - "type": "string" + "$ref": "#/definitions/SkuName" }, "tier": { "description": "Gets or sets the tier of particular sku", @@ -3524,6 +3534,19 @@ } } }, + "SkuName": { + "description": "Namespace SKU name.", + "enum": [ + "Free", + "Basic", + "Standard" + ], + "type": "string", + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, "WnsCredential": { "description": "Description of a NotificationHub WnsCredential.", "required": [ From 4a551c86795490015e98dc65009f5d333ed1b074 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 16:19:38 +0200 Subject: [PATCH 54/73] Notification Hubs: using TrackedResource common type --- .../2023-01-01-preview/notificationhubs.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 8855df49c5c4..f21c41880d36 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2635,6 +2635,11 @@ "sku" ], "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], "properties": { "id": { "description": "Gets resource Id", @@ -2822,6 +2827,11 @@ "properties" ], "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], "properties": { "id": { "description": "Gets resource Id", @@ -3077,6 +3087,11 @@ "PrivateEndpointConnectionResource": { "description": "Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], "properties": { "id": { "description": "Gets resource Id", @@ -3468,6 +3483,11 @@ "SharedAccessAuthorizationRuleResource": { "description": "Response for POST requests that return single SharedAccessAuthorizationRule.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], "properties": { "id": { "description": "Gets resource Id", From 6c801f2fd21abfdbd05790d87c9607b57b5ec47d Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 16:27:30 +0200 Subject: [PATCH 55/73] Notification Hubs: using ProxyResource common type --- .../2023-01-01-preview/notificationhubs.json | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index f21c41880d36..73bd05baf867 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2678,8 +2678,7 @@ "properties": { "$ref": "#/definitions/NamespaceProperties" } - }, - "x-ms-azure-resource": true + } }, "NamespaceStatus": { "description": "Namespace status.", @@ -2866,8 +2865,7 @@ "properties": { "$ref": "#/definitions/NotificationHubProperties" } - }, - "x-ms-azure-resource": true + } }, "Operation": { "description": "A NotificationHubs REST API operation", @@ -3089,7 +3087,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ], "properties": { @@ -3126,8 +3124,7 @@ "read" ] } - }, - "x-ms-azure-resource": true + } }, "PrivateEndpointConnectionResourcePrivateLinkResourceCollection": { "description": "A collection of Private Link Resources.", @@ -3485,7 +3482,7 @@ "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ], "properties": { @@ -3522,8 +3519,7 @@ "read" ] } - }, - "x-ms-azure-resource": true + } }, "Sku": { "description": "The Sku description for a namespace", From 22a2c043cc9c2c33aa34c20bfd67503dc8b6ce39 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 17:18:20 +0200 Subject: [PATCH 56/73] Notification Hubs: removing unused properties from Proxy Resources --- .../2023-01-01-preview/notificationhubs.json | 100 ++++-------------- 1 file changed, 18 insertions(+), 82 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 73bd05baf867..968bed0c1576 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2124,13 +2124,6 @@ "type": "string", "readOnly": true }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "isAvailiable": { "description": "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false.", "type": "boolean" @@ -2195,23 +2188,8 @@ "type": "string", "readOnly": true }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "properties": { "$ref": "#/definitions/DebugSendResult" - }, - "location": { - "description": "Location of the Notification Hub.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] } } }, @@ -2656,13 +2634,6 @@ "type": "string", "readOnly": true }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "location": { "description": "Gets or sets resource location.", "minLength": 1, @@ -2672,6 +2643,13 @@ "read" ] }, + "tags": { + "description": "Gets or sets resource tags", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "sku": { "$ref": "#/definitions/Sku" }, @@ -2823,6 +2801,7 @@ "NotificationHubResource": { "description": "Notification Hub Resource.", "required": [ + "location", "properties" ], "type": "object", @@ -2847,21 +2826,22 @@ "type": "string", "readOnly": true }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "location": { - "description": "Resource location.", + "description": "Gets or sets resource location.", + "minLength": 1, "type": "string", "x-ms-mutability": [ "create", "read" ] }, + "tags": { + "description": "Gets or sets resource tags", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "properties": { "$ref": "#/definitions/NotificationHubProperties" } @@ -3013,23 +2993,8 @@ "type": "string", "readOnly": true }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "properties": { "$ref": "#/definitions/PnsCredentials" - }, - "location": { - "description": "Location of the PNS credentials. Always the same as location of the containing namespace.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] } } }, @@ -3106,23 +3071,8 @@ "type": "string", "readOnly": true }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "properties": { "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - "location": { - "description": "Location of the Private Endpoint Connection.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] } } }, @@ -3172,13 +3122,6 @@ "type": "string", "readOnly": true }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "properties": { "$ref": "#/definitions/PrivateLinkResourceProperties" } @@ -3501,13 +3444,6 @@ "type": "string", "readOnly": true }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "properties": { "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" }, @@ -3701,4 +3637,4 @@ ] } ] -} \ No newline at end of file +} From a099a1f255690858f8e0930c3c004893e66d883e Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 17:39:21 +0200 Subject: [PATCH 57/73] Notification Hubs: updating examples --- .../examples/Namespaces/CheckAvailability.json | 3 +-- .../examples/Namespaces/PnsCredentialsGet.json | 1 - .../examples/Namespaces/PrivateEndpointConnectionGet.json | 4 +--- .../examples/Namespaces/PrivateEndpointConnectionList.json | 4 +--- .../examples/Namespaces/PrivateLinkResourceGet.json | 3 +-- .../examples/Namespaces/PrivateLinkResourceList.json | 3 +-- .../examples/NotificationHubs/CheckAvailability.json | 4 +--- .../examples/NotificationHubs/DebugSend.json | 4 +--- .../examples/NotificationHubs/PnsCredentialsGet.json | 1 - 9 files changed, 7 insertions(+), 20 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json index 02949f6a2565..e4c10fdd64b8 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json @@ -12,8 +12,7 @@ "isAvailiable": true, "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/CheckNamespaceAvailability", "name": "sdk-Namespace-2924", - "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", - "tags": {} + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability" } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json index dde663c05885..73a04071102a 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json @@ -12,7 +12,6 @@ "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/pnsCredentials", "name": "nh-sdk-hub", "type": "Microsoft.NotificationHubs/namespaces/pnsCredentials", - "location": "West Europe", "properties": { "mpnsCredential": { "properties": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json index e5ebd697f40a..69cc5766df14 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json @@ -22,11 +22,9 @@ "description": "Auto-Approved" } }, - "location": "Central US EUAP", "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", - "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", - "tags": {} + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections" } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json index aa89f9f82934..54b5fe31e08d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json @@ -23,11 +23,9 @@ "description": "Auto-Approved" } }, - "location": "Central US EUAP", "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", - "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", - "tags": {} + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections" } ] } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json index 4435450d1c30..133780f301e7 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json @@ -21,8 +21,7 @@ }, "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", "name": "namespace", - "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", - "tags": {} + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources" } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json index 81a518a82abc..630b3c704d27 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json @@ -22,8 +22,7 @@ }, "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", "name": "namespace", - "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", - "tags": {} + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources" } ] } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json index 30c123171ee4..64e7467e5e83 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json @@ -13,11 +13,9 @@ "200": { "body": { "isAvailiable": true, - "location": "East US", "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/checkNotificationHubAvailability", "name": "sdktest", - "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", - "tags": {} + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability" } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json index 8d467d97ceea..3c543edd6b41 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json @@ -19,11 +19,9 @@ "failure": 0, "results": [] }, - "location": "East US", "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/debugsend", "name": "test", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/debugSend", - "tags": {} + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/debugSend" } } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json index 0124d793d6d6..0a1aa5463a9f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json @@ -17,7 +17,6 @@ } } }, - "location": "East US", "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/pnsCredentials", "name": "test", "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials" From 53f55aaf5e157a96e3d3f1adde1987095d722b6b Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 17:53:18 +0200 Subject: [PATCH 58/73] Notification Hubs: bringing back tags (for compatibility) --- .../2023-01-01-preview/notificationhubs.json | 47 +++++++++++++++++-- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 968bed0c1576..fdfdc0a98863 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2124,6 +2124,13 @@ "type": "string", "readOnly": true }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "isAvailiable": { "description": "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false.", "type": "boolean" @@ -2188,6 +2195,13 @@ "type": "string", "readOnly": true }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "properties": { "$ref": "#/definitions/DebugSendResult" } @@ -2801,8 +2815,7 @@ "NotificationHubResource": { "description": "Notification Hub Resource.", "required": [ - "location", - "properties" + "location" ], "type": "object", "allOf": [ @@ -2993,6 +3006,13 @@ "type": "string", "readOnly": true }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "properties": { "$ref": "#/definitions/PnsCredentials" } @@ -3071,6 +3091,13 @@ "type": "string", "readOnly": true }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "properties": { "$ref": "#/definitions/PrivateEndpointConnectionProperties" } @@ -3122,6 +3149,13 @@ "type": "string", "readOnly": true }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "properties": { "$ref": "#/definitions/PrivateLinkResourceProperties" } @@ -3444,6 +3478,13 @@ "type": "string", "readOnly": true }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "properties": { "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" }, @@ -3637,4 +3678,4 @@ ] } ] -} +} \ No newline at end of file From cf256290e0303a026e5b0149380d0bd5baa58b18 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 18:47:39 +0200 Subject: [PATCH 59/73] Notification Hubs: updating tags for PATCH parameters --- .../preview/2023-01-01-preview/notificationhubs.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index fdfdc0a98863..65a19f2c37ad 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2511,7 +2511,10 @@ "type": "string" }, "tags": { - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } }, "sku": { "$ref": "#/definitions/Sku" @@ -2746,7 +2749,10 @@ "type": "string" }, "tags": { - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } }, "properties": { "$ref": "#/definitions/NotificationHubProperties" From ba041390530a1d3d4f4034a5b1d6f14cb23ee62b Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 19:17:31 +0200 Subject: [PATCH 60/73] Notification Hubs: removing parameters already defined in common classes --- .../2023-01-01-preview/notificationhubs.json | 190 +++--------------- 1 file changed, 29 insertions(+), 161 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 65a19f2c37ad..88ecc68cd448 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2108,22 +2108,12 @@ "CheckAvailabilityResult": { "description": "Description of a CheckAvailability resource.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], "properties": { - "id": { - "description": "Gets resource Id", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Gets resource name", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Gets resource type", - "type": "string", - "readOnly": true - }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -2179,22 +2169,12 @@ "DebugSendResponse": { "description": "Description of a NotificationHub Resource.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], "properties": { - "id": { - "description": "Gets resource Id", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Gets resource name", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Gets resource type", - "type": "string", - "readOnly": true - }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -2507,6 +2487,12 @@ "description": "Patch parameter for NamespaceResource.", "type": "object", "properties": { + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties" + }, "id": { "type": "string" }, @@ -2515,12 +2501,6 @@ "additionalProperties": { "type": "string" } - }, - "sku": { - "$ref": "#/definitions/Sku" - }, - "properties": { - "$ref": "#/definitions/NamespaceProperties" } } }, @@ -2636,37 +2616,6 @@ } ], "properties": { - "id": { - "description": "Gets resource Id", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Gets resource name", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Gets resource type", - "type": "string", - "readOnly": true - }, - "location": { - "description": "Gets or sets resource location.", - "minLength": 1, - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "sku": { "$ref": "#/definitions/Sku" }, @@ -2745,6 +2694,9 @@ "description": "Patch parameter for NamespaceResource.", "type": "object", "properties": { + "properties": { + "$ref": "#/definitions/NotificationHubProperties" + }, "id": { "type": "string" }, @@ -2753,9 +2705,6 @@ "additionalProperties": { "type": "string" } - }, - "properties": { - "$ref": "#/definitions/NotificationHubProperties" } } }, @@ -2830,37 +2779,6 @@ } ], "properties": { - "id": { - "description": "Gets resource Id", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Gets resource name", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Gets resource type", - "type": "string", - "readOnly": true - }, - "location": { - "description": "Gets or sets resource location.", - "minLength": 1, - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "description": "Gets or sets resource tags", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "properties": { "$ref": "#/definitions/NotificationHubProperties" } @@ -2996,22 +2914,12 @@ "PnsCredentialsResource": { "description": "Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs\r\nPNS credentials.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], "properties": { - "id": { - "description": "Gets resource Id", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Gets resource name", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Gets resource type", - "type": "string", - "readOnly": true - }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -3082,21 +2990,6 @@ } ], "properties": { - "id": { - "description": "Gets resource Id", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Gets resource name", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Gets resource type", - "type": "string", - "readOnly": true - }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -3139,22 +3032,12 @@ "PrivateLinkResource": { "description": "A Private Link Arm Resource.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], "properties": { - "id": { - "description": "Gets resource Id", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Gets resource name", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Gets resource type", - "type": "string", - "readOnly": true - }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -3469,21 +3352,6 @@ } ], "properties": { - "id": { - "description": "Gets resource Id", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Gets resource name", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Gets resource type", - "type": "string", - "readOnly": true - }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", From adcf5c825e47dfe3612c7e26f80031c1c49649ae Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Thu, 11 May 2023 19:41:43 +0200 Subject: [PATCH 61/73] Notification Hubs: fixing formatting --- .../preview/2023-01-01-preview/notificationhubs.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 88ecc68cd448..a93014279d89 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2210,7 +2210,7 @@ "$ref": "#/definitions/RegistrationResult" }, "readOnly": true, - "x-ms-identifiers": [ ] + "x-ms-identifiers": [] } } }, @@ -2386,7 +2386,7 @@ "$ref": "#/definitions/Availability" }, "readOnly": true, - "x-ms-identifiers": [ ] + "x-ms-identifiers": [] }, "metricFilterPattern": { "description": "The matching regex pattern to be applied to the field pointed by the \"metricsFilterPathSelector\" flag in the ARM manifest.", @@ -2664,7 +2664,7 @@ "items": { "$ref": "#/definitions/IpRule" }, - "x-ms-identifiers": [ ] + "x-ms-identifiers": [] }, "publicInternetRule": { "$ref": "#/definitions/PublicInternetAuthorizationRule" @@ -3552,4 +3552,4 @@ ] } ] -} \ No newline at end of file +} From 9c5f7418e57d0539190bcb33d2874ec3b58a3861 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 09:16:08 +0200 Subject: [PATCH 62/73] Notification Hubs: adding 200 response code to DELETE operations --- .../preview/2023-01-01-preview/notificationhubs.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index a93014279d89..963ca938d030 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -266,6 +266,9 @@ "200": { "description": "Success" }, + "204": { + "description": "No Content" + }, "default": { "description": "Error code with reason.", "schema": { @@ -489,6 +492,9 @@ } ], "responses": { + "200": { + "description": "Success" + }, "204": { "description": "No Content" }, @@ -1004,6 +1010,9 @@ } ], "responses": { + "200": { + "description": "Success" + }, "204": { "description": "No Content" }, @@ -1230,6 +1239,9 @@ } ], "responses": { + "200": { + "description": "Success" + }, "204": { "description": "No Content" }, From be4b42c2afd59deff48406d251ab4542fc9ca26c Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 09:57:52 +0200 Subject: [PATCH 63/73] Notificatin Hubs: reusing common class for all LIST resources --- .../2023-01-01-preview/notificationhubs.json | 42 ++++++++++++++----- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 963ca938d030..8a128885537e 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1741,7 +1741,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResourcePrivateLinkResourceCollection" + "$ref": "#/definitions/PrivateEndpointConnectionResourceListResult" } }, "default": { @@ -1751,6 +1751,10 @@ } } }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": null + }, "x-ms-examples": { "PrivateEndpointConnections_List": { "$ref": "./examples/Namespaces/PrivateEndpointConnectionList.json" @@ -1841,7 +1845,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/PrivateLinkResourcePrivateLinkResourceCollection" + "$ref": "#/definitions/PrivateLinkResourceListResult" } }, "default": { @@ -1851,6 +1855,10 @@ } } }, + "x-ms-pageable": { + "itemName": "value", + "nextLinkName": null + }, "x-ms-examples": { "PrivateEndpointConnections_ListGroupIds": { "$ref": "./examples/Namespaces/PrivateLinkResourceList.json" @@ -2481,7 +2489,7 @@ "type": "object", "properties": { "value": { - "description": "Gets or sets result of the List Namespace operation.", + "description": "Gets or sets result of the List AuthorizationRules operation.", "type": "array", "items": { "$ref": "#/definitions/NamespaceResource" @@ -2489,7 +2497,7 @@ "readOnly": true }, "nextLink": { - "description": "Gets or sets link to the next set of results. Not empty if Value\r\ncontains incomplete list of Namespaces", + "description": "Gets or sets link to the next set of results.", "type": "string", "readOnly": true } @@ -2688,7 +2696,7 @@ "type": "object", "properties": { "value": { - "description": "Gets or sets result of the List NotificationHub operation.", + "description": "Gets or sets result of the List AuthorizationRules operation.", "type": "array", "items": { "$ref": "#/definitions/NotificationHubResource" @@ -2696,7 +2704,7 @@ "readOnly": true }, "nextLink": { - "description": "Gets or sets link to the next set of results. Not empty if Value\r\ncontains incomplete list of NotificationHub", + "description": "Gets or sets link to the next set of results.", "type": "string", "readOnly": true } @@ -3014,16 +3022,22 @@ } } }, - "PrivateEndpointConnectionResourcePrivateLinkResourceCollection": { - "description": "A collection of Private Link Resources.", + "PrivateEndpointConnectionResourceListResult": { + "description": "The response of the List Private Endpoint Connections operation.", "type": "object", "properties": { "value": { + "description": "Gets or sets result of the List AuthorizationRules operation.", "type": "array", "items": { "$ref": "#/definitions/PrivateEndpointConnectionResource" }, "readOnly": true + }, + "nextLink": { + "description": "Gets or sets link to the next set of results.", + "type": "string", + "readOnly": true } } }, @@ -3062,16 +3076,22 @@ } } }, - "PrivateLinkResourcePrivateLinkResourceCollection": { - "description": "A collection of Private Link Resources.", + "PrivateLinkResourceListResult": { + "description": "The response of the List Private Link Resources operation.", "type": "object", "properties": { "value": { + "description": "Gets or sets result of the List AuthorizationRules operation.", "type": "array", "items": { "$ref": "#/definitions/PrivateLinkResource" }, "readOnly": true + }, + "nextLink": { + "description": "Gets or sets link to the next set of results.", + "type": "string", + "readOnly": true } } }, @@ -3290,7 +3310,7 @@ "readOnly": true }, "nextLink": { - "description": "Gets or sets link to the next set of results. Not empty if Value\r\ncontains incomplete list of AuthorizationRules", + "description": "Gets or sets link to the next set of results.", "type": "string", "readOnly": true } From 49d24210463a6ba499e432e396ca5ac3504a059b Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 10:26:04 +0200 Subject: [PATCH 64/73] Notification Hubs: fixing next set of compliance issues --- .../preview/2023-01-01-preview/notificationhubs.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 8a128885537e..bfbf6fc651c5 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -16,7 +16,7 @@ "Hubs" ], "summary": "Checks the availability of the given notificationHub in a namespace.", - "operationId": "NotificationHubs_CheckNotificationHubAvailability", + "operationId": "NotificationHubs_CheckAvailability", "consumes": [ "application/json" ], @@ -61,7 +61,7 @@ } }, "x-ms-examples": { - "NotificationHubs_CheckNotificationHubAvailability": { + "NotificationHubs_CheckAvailability": { "$ref": "./examples/NotificationHubs/CheckAvailability.json" } } @@ -183,7 +183,7 @@ "Hubs" ], "summary": "Patch a NotificationHub in a namespace.", - "operationId": "NotificationHubs_Patch", + "operationId": "NotificationHubs_Update", "consumes": [ "application/json" ], @@ -231,7 +231,7 @@ } }, "x-ms-examples": { - "NotificationHubs_Patch": { + "NotificationHubs_Update": { "$ref": "./examples/NotificationHubs/Update.json" } } @@ -936,7 +936,7 @@ "Namespaces" ], "summary": "Patches the existing namespace.", - "operationId": "Namespaces_Patch", + "operationId": "Namespaces_Udpate", "consumes": [ "application/json" ], @@ -981,7 +981,7 @@ } }, "x-ms-examples": { - "Namespaces_Patch": { + "Namespaces_Udpate": { "$ref": "./examples/Namespaces/Update.json" } } From 473f33748ab357ac445a3ce40ae02ef0e9767e75 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 10:30:00 +0200 Subject: [PATCH 65/73] Notification Hubs: updating examples --- .../examples/Namespaces/AuthorizationRuleDelete.json | 1 + .../preview/2023-01-01-preview/examples/Namespaces/Delete.json | 1 + .../examples/NotificationHubs/AuthorizationRuleDelete.json | 1 + .../2023-01-01-preview/examples/NotificationHubs/Delete.json | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json index 29c27fc9c556..d6c6ba08861f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json @@ -7,6 +7,7 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { + "200": {}, "204": {} } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json index 64a9ba5addb8..dee90c1abfc7 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json @@ -6,6 +6,7 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { + "200": {}, "204": {} } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json index 7909a98489a5..05f1199a71ce 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json @@ -8,6 +8,7 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { + "200": {}, "204": {} } } diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json index 375ad404cb25..7a6b8e5ead3d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json @@ -7,6 +7,7 @@ "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { - "200": {} + "200": {}, + "204": {} } } From 25bc22d9142d740933180c0c3d4438d17070b043 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 10:33:03 +0200 Subject: [PATCH 66/73] Notification Hubs: fixing next set of compliance issues --- .../preview/2023-01-01-preview/notificationhubs.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index bfbf6fc651c5..e6be40a4867c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -936,7 +936,7 @@ "Namespaces" ], "summary": "Patches the existing namespace.", - "operationId": "Namespaces_Udpate", + "operationId": "Namespaces_Update", "consumes": [ "application/json" ], @@ -981,7 +981,7 @@ } }, "x-ms-examples": { - "Namespaces_Udpate": { + "Namespaces_Update": { "$ref": "./examples/Namespaces/Update.json" } } @@ -1354,7 +1354,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { "post": { "tags": [ "Namespaces" @@ -1402,7 +1402,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { "post": { "tags": [ "Namespaces" From dba2fb9343aecd4075b6e16a20e4e5b99cd8290c Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 11:59:17 +0200 Subject: [PATCH 67/73] Notification Hubs: reusing common type of OperationsListResult --- ...n => PrivateEndpointConnectionUpdate.json} | 0 .../2023-01-01-preview/notificationhubs.json | 211 +----------------- 2 files changed, 8 insertions(+), 203 deletions(-) rename specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/{PrivateEndpointConnectionApproveOrReject.json => PrivateEndpointConnectionUpdate.json} (100%) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json similarity index 100% rename from specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json rename to specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index e6be40a4867c..6762fb66a2dd 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -16,7 +16,7 @@ "Hubs" ], "summary": "Checks the availability of the given notificationHub in a namespace.", - "operationId": "NotificationHubs_CheckAvailability", + "operationId": "NotificationHubs_CheckNotificationHubAvailability", "consumes": [ "application/json" ], @@ -61,7 +61,7 @@ } }, "x-ms-examples": { - "NotificationHubs_CheckAvailability": { + "NotificationHubs_CheckNotificationHubAvailability": { "$ref": "./examples/NotificationHubs/CheckAvailability.json" } } @@ -781,7 +781,7 @@ "Namespaces" ], "summary": "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.", - "operationId": "Namespaces_CheckAvailability", + "operationId": "Namespaces_CheckNamespaceAvailability", "consumes": [ "application/json" ], @@ -820,7 +820,7 @@ } }, "x-ms-examples": { - "Namespaces_CheckAvailability": { + "Namespaces_CheckNamespaceAvailability": { "$ref": "./examples/Namespaces/CheckAvailability.json" } } @@ -1526,7 +1526,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" } }, "default": { @@ -1554,7 +1554,7 @@ ], "summary": "Approves or rejects Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", "description": "This is an asynchronous API, which sets the Azure-AsyncOperation header. \r\nCaller can use URI from that header to check status of the operation.", - "operationId": "PrivateEndpointConnections_ApproveOrReject", + "operationId": "PrivateEndpointConnections_Update", "consumes": [ "application/json" ], @@ -1608,8 +1608,8 @@ } }, "x-ms-examples": { - "PrivateEndpointConnections_ApproveOrReject": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionApproveOrReject.json" + "PrivateEndpointConnections_Update": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionUpdate.json" } } }, @@ -1986,22 +1986,6 @@ } } }, - "Availability": { - "description": "Represents metric availability (part of RP operation descriptions).", - "type": "object", - "properties": { - "timeGrain": { - "description": "Time grain of the availability.", - "type": "string", - "readOnly": true - }, - "blobDuration": { - "description": "Duration of the availability blob.", - "type": "string", - "readOnly": true - } - } - }, "BaiduCredential": { "description": "Description of a NotificationHub BaiduCredential.", "required": [ @@ -2349,77 +2333,6 @@ } } }, - "LogSpecification": { - "description": "A single log category specification.", - "type": "object", - "properties": { - "name": { - "description": "Name of the log category.", - "type": "string", - "readOnly": true - }, - "displayName": { - "description": "Display name of the log category.", - "type": "string", - "readOnly": true - }, - "blobDuration": { - "description": "Duration of data written to a single blob.", - "type": "string", - "readOnly": true - } - } - }, - "MetricSpecification": { - "description": "A metric specification.", - "type": "object", - "properties": { - "name": { - "description": "Metric name / id.", - "type": "string", - "readOnly": true - }, - "displayName": { - "description": "User-visible metric name.", - "type": "string", - "readOnly": true - }, - "displayDescription": { - "description": "Description of the metric.", - "type": "string", - "readOnly": true - }, - "unit": { - "description": "Metric unit.", - "type": "string", - "readOnly": true - }, - "aggregationType": { - "description": "Type of the aggregation (Average, Minimum, Maximum, Total or Count).", - "type": "string", - "readOnly": true - }, - "availabilities": { - "description": "List of availabilities.", - "type": "array", - "items": { - "$ref": "#/definitions/Availability" - }, - "readOnly": true, - "x-ms-identifiers": [] - }, - "metricFilterPattern": { - "description": "The matching regex pattern to be applied to the field pointed by the \"metricsFilterPathSelector\" flag in the ARM manifest.", - "type": "string", - "readOnly": true - }, - "fillGapWithZero": { - "description": "Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published.", - "type": "boolean", - "readOnly": true - } - } - }, "MoveResourcesRequest": { "description": "A request for Move Namespace requests.", "required": [ @@ -2804,85 +2717,6 @@ } } }, - "Operation": { - "description": "A NotificationHubs REST API operation", - "type": "object", - "properties": { - "name": { - "description": "Gets operation name: {provider}/{resource}/{operation}", - "type": "string", - "readOnly": true - }, - "display": { - "$ref": "#/definitions/OperationDisplay" - }, - "properties": { - "$ref": "#/definitions/OperationProperties" - }, - "isDataAction": { - "description": "Gets or sets IsDataAction property. It is used to differentiate management and data plane operations.", - "type": "boolean", - "readOnly": true - } - } - }, - "OperationDisplay": { - "description": "The object that represents the operation.", - "type": "object", - "properties": { - "provider": { - "description": "Gets service provider: Microsoft.NotificationHubs", - "type": "string", - "readOnly": true - }, - "resource": { - "description": "Gets resource on which the operation is performed: Invoice, etc.", - "type": "string", - "readOnly": true - }, - "operation": { - "description": "Gets operation type: Read, write, delete, etc.", - "type": "string", - "readOnly": true - }, - "description": { - "description": "Human-friendly operation description.", - "type": "string", - "readOnly": true - } - } - }, - "OperationListResult": { - "description": "Result of the request to list NotificationHubs operations. It contains\r\na list of operations and a URL link to get the next set of results.", - "type": "object", - "properties": { - "value": { - "description": "Gets list of NotificationHubs operations supported by the\r\nMicrosoft.NotificationHubs resource provider.", - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name" - ] - }, - "nextLink": { - "description": "Gets URL to get the next set of operation list results if there are\r\nany.", - "type": "string", - "readOnly": true - } - } - }, - "OperationProperties": { - "description": "Optional operation properties.", - "type": "object", - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification" - } - } - }, "OperationProvisioningState": { "description": "Defines values for OperationProvisioningState.", "enum": [ @@ -3268,35 +3102,6 @@ } } }, - "ServiceSpecification": { - "description": "Optional service specification used in Operations API.", - "type": "object", - "properties": { - "logSpecifications": { - "description": "Log specifications.", - "type": "array", - "items": { - "$ref": "#/definitions/LogSpecification" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name" - ] - }, - "metricSpecifications": { - "description": "Metric specification.", - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name", - "unit" - ] - } - } - }, "SharedAccessAuthorizationRuleListResult": { "description": "The response of the List Namespace operation.", "type": "object", From c8f75d37cf592ae0f197cc1d5c2b6bea31907640 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 13:13:54 +0200 Subject: [PATCH 68/73] Notification Hubs: switching back to non-common OperationListResult --- .../2023-01-01-preview/notificationhubs.json | 197 +++++++++++++++++- 1 file changed, 196 insertions(+), 1 deletion(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 6762fb66a2dd..518698ed851f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -1526,7 +1526,7 @@ "200": { "description": "Success", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + "$ref": "#/definitions/OperationListResult" } }, "default": { @@ -1986,6 +1986,22 @@ } } }, + "Availability": { + "description": "Represents metric availability (part of RP operation descriptions).", + "type": "object", + "properties": { + "timeGrain": { + "description": "Time grain of the availability.", + "type": "string", + "readOnly": true + }, + "blobDuration": { + "description": "Duration of the availability blob.", + "type": "string", + "readOnly": true + } + } + }, "BaiduCredential": { "description": "Description of a NotificationHub BaiduCredential.", "required": [ @@ -2333,6 +2349,77 @@ } } }, + "LogSpecification": { + "description": "A single log category specification.", + "type": "object", + "properties": { + "name": { + "description": "Name of the log category.", + "type": "string", + "readOnly": true + }, + "displayName": { + "description": "Display name of the log category.", + "type": "string", + "readOnly": true + }, + "blobDuration": { + "description": "Duration of data written to a single blob.", + "type": "string", + "readOnly": true + } + } + }, + "MetricSpecification": { + "description": "A metric specification.", + "type": "object", + "properties": { + "name": { + "description": "Metric name / id.", + "type": "string", + "readOnly": true + }, + "displayName": { + "description": "User-visible metric name.", + "type": "string", + "readOnly": true + }, + "displayDescription": { + "description": "Description of the metric.", + "type": "string", + "readOnly": true + }, + "unit": { + "description": "Metric unit.", + "type": "string", + "readOnly": true + }, + "aggregationType": { + "description": "Type of the aggregation (Average, Minimum, Maximum, Total or Count).", + "type": "string", + "readOnly": true + }, + "availabilities": { + "description": "List of availabilities.", + "type": "array", + "items": { + "$ref": "#/definitions/Availability" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "metricFilterPattern": { + "description": "The matching regex pattern to be applied to the field pointed by the \"metricsFilterPathSelector\" flag in the ARM manifest.", + "type": "string", + "readOnly": true + }, + "fillGapWithZero": { + "description": "Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published.", + "type": "boolean", + "readOnly": true + } + } + }, "MoveResourcesRequest": { "description": "A request for Move Namespace requests.", "required": [ @@ -2717,6 +2804,85 @@ } } }, + "Operation": { + "description": "A NotificationHubs REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Gets operation name: {provider}/{resource}/{operation}", + "type": "string", + "readOnly": true + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "properties": { + "$ref": "#/definitions/OperationProperties" + }, + "isDataAction": { + "description": "Gets or sets IsDataAction property. It is used to differentiate management and data plane operations.", + "type": "boolean", + "readOnly": true + } + } + }, + "OperationDisplay": { + "description": "The object that represents the operation.", + "type": "object", + "properties": { + "provider": { + "description": "Gets service provider: Microsoft.NotificationHubs", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Gets resource on which the operation is performed: Invoice, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Gets operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Human-friendly operation description.", + "type": "string", + "readOnly": true + } + } + }, + "OperationListResult": { + "description": "Result of the request to list NotificationHubs operations. It contains\r\na list of operations and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "description": "Gets list of NotificationHubs operations supported by the\r\nMicrosoft.NotificationHubs resource provider.", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "description": "Gets URL to get the next set of operation list results if there are\r\nany.", + "type": "string", + "readOnly": true + } + } + }, + "OperationProperties": { + "description": "Optional operation properties.", + "type": "object", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification" + } + } + }, "OperationProvisioningState": { "description": "Defines values for OperationProvisioningState.", "enum": [ @@ -3102,6 +3268,35 @@ } } }, + "ServiceSpecification": { + "description": "Optional service specification used in Operations API.", + "type": "object", + "properties": { + "logSpecifications": { + "description": "Log specifications.", + "type": "array", + "items": { + "$ref": "#/definitions/LogSpecification" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + }, + "metricSpecifications": { + "description": "Metric specification.", + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name", + "unit" + ] + } + } + }, "SharedAccessAuthorizationRuleListResult": { "description": "The response of the List Namespace operation.", "type": "object", From bb04c67b43a4373c16ab39c37d6e47d31953e0b1 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 19:36:56 +0200 Subject: [PATCH 69/73] Notification Hubs: fixing new breaking changes --- .../2023-01-01-preview/notificationhubs.json | 68 ++++++++++++++----- 1 file changed, 50 insertions(+), 18 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 518698ed851f..ca28c56f0344 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -781,7 +781,7 @@ "Namespaces" ], "summary": "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.", - "operationId": "Namespaces_CheckNamespaceAvailability", + "operationId": "Namespaces_CheckAvailability", "consumes": [ "application/json" ], @@ -820,7 +820,7 @@ } }, "x-ms-examples": { - "Namespaces_CheckNamespaceAvailability": { + "Namespaces_CheckAvailability": { "$ref": "./examples/Namespaces/CheckAvailability.json" } } @@ -2134,6 +2134,14 @@ } ], "properties": { + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -2144,14 +2152,6 @@ "isAvailiable": { "description": "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false.", "type": "boolean" - }, - "location": { - "description": "Location of the notification hub. This property is deprecated\r\nsince version 2023-01-01-preview.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] } } }, @@ -2195,6 +2195,14 @@ } ], "properties": { + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -2940,6 +2948,14 @@ } ], "properties": { + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -3010,6 +3026,14 @@ } ], "properties": { + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -3064,6 +3088,14 @@ } ], "properties": { + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -3384,6 +3416,14 @@ } ], "properties": { + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, "tags": { "description": "Deprecated - only for compatibility.", "type": "object", @@ -3393,14 +3433,6 @@ }, "properties": { "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" - }, - "location": { - "description": "Location of the PNS credentials. Always the same as location of the containing namespace.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] } } }, From a71d0d4f198954fb0c1a08f778f1fc036246ac88 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Fri, 12 May 2023 19:51:03 +0200 Subject: [PATCH 70/73] Notification Hubs: fixing new breaking changes --- .../2023-01-01-preview/notificationhubs.json | 56 +++++-------------- 1 file changed, 13 insertions(+), 43 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index ca28c56f0344..393ffb564d9c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2134,6 +2134,10 @@ } ], "properties": { + "isAvailiable": { + "description": "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false.", + "type": "boolean" + }, "location": { "description": "Deprecated - only for compatibility.", "type": "string", @@ -2148,10 +2152,6 @@ "additionalProperties": { "type": "string" } - }, - "isAvailiable": { - "description": "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false.", - "type": "boolean" } } }, @@ -2195,6 +2195,9 @@ } ], "properties": { + "properties": { + "$ref": "#/definitions/DebugSendResult" + }, "location": { "description": "Deprecated - only for compatibility.", "type": "string", @@ -2209,9 +2212,6 @@ "additionalProperties": { "type": "string" } - }, - "properties": { - "$ref": "#/definitions/DebugSendResult" } } }, @@ -2948,6 +2948,9 @@ } ], "properties": { + "properties": { + "$ref": "#/definitions/PnsCredentials" + }, "location": { "description": "Deprecated - only for compatibility.", "type": "string", @@ -2962,9 +2965,6 @@ "additionalProperties": { "type": "string" } - }, - "properties": { - "$ref": "#/definitions/PnsCredentials" } } }, @@ -3026,21 +3026,6 @@ } ], "properties": { - "location": { - "description": "Deprecated - only for compatibility.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "description": "Deprecated - only for compatibility.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "properties": { "$ref": "#/definitions/PrivateEndpointConnectionProperties" } @@ -3088,21 +3073,6 @@ } ], "properties": { - "location": { - "description": "Deprecated - only for compatibility.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "description": "Deprecated - only for compatibility.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "properties": { "$ref": "#/definitions/PrivateLinkResourceProperties" } @@ -3416,6 +3386,9 @@ } ], "properties": { + "properties": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, "location": { "description": "Deprecated - only for compatibility.", "type": "string", @@ -3430,9 +3403,6 @@ "additionalProperties": { "type": "string" } - }, - "properties": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" } } }, From 444d48b4e5fe196e7c943e360ee6ae03e2d4ebfb Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 16 May 2023 11:36:23 +0200 Subject: [PATCH 71/73] Notification Hubs: adding PublicNetworkAccess property --- .../2023-01-01-preview/notificationhubs.json | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 393ffb564d9c..25577b8788d0 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2628,6 +2628,9 @@ "dataCenter": { "description": "Deprecated.", "type": "string" + }, + "publicNetworkAccess": { + "$ref": "#/definitions/PublicNetworkAccess" } } }, @@ -2682,7 +2685,7 @@ "description": "A collection of network authorization rules.", "required": [ "ipRules", - "publicInternetRule" + "publicNetworkRule" ], "type": "object", "properties": { @@ -2694,7 +2697,7 @@ }, "x-ms-identifiers": [] }, - "publicInternetRule": { + "publicNetworkRule": { "$ref": "#/definitions/PublicInternetAuthorizationRule" } } @@ -3161,6 +3164,18 @@ } } }, + "PublicNetworkAccess": { + "description": "Type of public network access.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + }, "RegistrationResult": { "description": "Notification result for a single registration.", "type": "object", From 22347385c64fc8beb59b85ffb8dbb764eb0ef174 Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 16 May 2023 12:55:22 +0200 Subject: [PATCH 72/73] Notification Hubs: add back Sku property --- .../preview/2023-01-01-preview/notificationhubs.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json index 25577b8788d0..d7a3b717bd33 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -2122,6 +2122,9 @@ "isAvailiable": { "description": "Not used and deprecated since API version 2023-01-01-preview", "type": "boolean" + }, + "sku": { + "$ref": "#/definitions/Sku" } } }, @@ -2152,6 +2155,9 @@ "additionalProperties": { "type": "string" } + }, + "sku": { + "$ref": "#/definitions/Sku" } } }, @@ -2728,6 +2734,9 @@ "properties": { "$ref": "#/definitions/NotificationHubProperties" }, + "sku": { + "$ref": "#/definitions/Sku" + }, "id": { "type": "string" }, @@ -2812,6 +2821,9 @@ "properties": { "properties": { "$ref": "#/definitions/NotificationHubProperties" + }, + "sku": { + "$ref": "#/definitions/Sku" } } }, From 0ed4bbbed060e178b0690c7660a8a13e58b27ace Mon Sep 17 00:00:00 2001 From: Tomasz Kmiecik Date: Tue, 16 May 2023 13:41:30 +0200 Subject: [PATCH 73/73] Notification Hubs: updating examples --- .../examples/Namespaces/CreateOrUpdate.json | 8 +++++--- .../2023-01-01-preview/examples/Namespaces/Get.json | 3 ++- .../examples/Namespaces/ListByResourceGroup.json | 6 ++++-- .../examples/Namespaces/ListBySubscription.json | 6 ++++-- .../2023-01-01-preview/examples/Namespaces/Update.json | 3 ++- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json index 1cd3cca86855..809c9226ff17 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json @@ -26,7 +26,7 @@ ] } ], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Listen" ] @@ -52,6 +52,7 @@ "createdAt": "2023-04-26T06:10:44.01+00:00", "updatedAt": "2023-04-26T06:16:17.697+00:00", "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -63,7 +64,7 @@ ] } ], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Listen" ] @@ -89,6 +90,7 @@ }, "properties": { "provisioningState": "InProgress", + "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -100,7 +102,7 @@ ] } ], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Listen" ] diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json index 56120ded6a4c..b8fdf6d0116e 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json @@ -22,6 +22,7 @@ "createdAt": "2023-04-26T06:10:44.01+00:00", "updatedAt": "2023-04-26T06:10:44.03+00:00", "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -33,7 +34,7 @@ ] } ], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Listen" ] diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json index d499e1ba7971..86b9de33a5d8 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json @@ -23,6 +23,7 @@ "createdAt": "2023-04-26T06:10:44.01+00:00", "updatedAt": "2023-04-26T06:10:44.03+00:00", "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -34,7 +35,7 @@ ] } ], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Listen" ] @@ -63,9 +64,10 @@ "createdAt": "2023-04-26T06:10:44.01+00:00", "updatedAt": "2023-04-26T06:10:44.03+00:00", "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Manage", "Listen", diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json index ca96977b1b09..c2e1eaeceb58 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json @@ -22,6 +22,7 @@ "createdAt": "2023-04-26T06:10:44.01+00:00", "updatedAt": "2023-04-26T06:10:44.03+00:00", "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -33,7 +34,7 @@ ] } ], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Listen" ] @@ -62,9 +63,10 @@ "createdAt": "2023-04-26T06:10:44.01+00:00", "updatedAt": "2023-04-26T06:10:44.03+00:00", "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Manage", "Listen", diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json index b4fa85d0de71..2b077b69dbcf 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json @@ -40,6 +40,7 @@ "createdAt": "2023-04-26T06:10:44.01+00:00", "updatedAt": "2023-04-26T06:10:44.03+00:00", "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -51,7 +52,7 @@ ] } ], - "publicInternetRule": { + "publicNetworkRule": { "rights": [ "Listen" ]