From cb9e7624bbe9b7d3fd8b1e535eb2a84d359d69c4 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Tue, 29 Apr 2025 14:10:57 +0800 Subject: [PATCH 01/14] convert generated --- .../NamespaceResource.tsp | 144 ++ .../NotificationHubResource.tsp | 124 ++ .../PrivateEndpointConnectionResource.tsp | 73 + .../PrivateLinkResource.tsp | 50 + .../SharedAccessAuthorizationRuleResource.tsp | 188 +++ .../Notificationhubs.Management/client.tsp | 77 + .../2023-10-01-preview/NHOperationsList.json | 1269 ++++++++++++++ .../AuthorizationRuleCreateOrUpdate.json | 52 + .../Namespaces/AuthorizationRuleDelete.json | 15 + .../Namespaces/AuthorizationRuleGet.json | 29 + .../Namespaces/AuthorizationRuleList.json | 45 + .../Namespaces/AuthorizationRuleListKeys.json | 22 + .../AuthorizationRuleRegenerateKey.json | 25 + .../Namespaces/CheckAvailability.json | 21 + .../Namespaces/CreateOrUpdate.json | 127 ++ .../2023-10-01-preview/Namespaces/Delete.json | 14 + .../2023-10-01-preview/Namespaces/Get.json | 58 + .../Namespaces/ListByResourceGroup.json | 96 ++ .../Namespaces/ListBySubscription.json | 95 ++ .../Namespaces/PnsCredentialsGet.json | 27 + .../PrivateEndpointConnectionDelete.json | 19 + .../PrivateEndpointConnectionGet.json | 33 + .../PrivateEndpointConnectionList.json | 36 + .../PrivateEndpointConnectionUpdate.json | 61 + .../Namespaces/PrivateLinkResourceGet.json | 30 + .../Namespaces/PrivateLinkResourceList.json | 33 + .../2023-10-01-preview/Namespaces/Update.json | 75 + .../AuthorizationRuleCreateOrUpdate.json | 52 + .../AuthorizationRuleDelete.json | 16 + .../AuthorizationRuleGet.json | 29 + .../AuthorizationRuleList.json | 45 + .../AuthorizationRuleListKeys.json | 23 + .../AuthorizationRuleRegenerateKey.json | 26 + .../NotificationHubs/CheckAvailability.json | 24 + .../NotificationHubs/CreateOrUpdate.json | 51 + .../NotificationHubs/DebugSend.json | 30 + .../NotificationHubs/Delete.json | 15 + .../NotificationHubs/Get.json | 30 + .../NotificationHubs/List.json | 33 + .../NotificationHubs/PnsCredentialsGet.json | 28 + .../NotificationHubs/Update.json | 41 + .../Notificationhubs.Management/legacy.tsp | 326 ++++ .../Notificationhubs.Management/main.tsp | 50 + .../Notificationhubs.Management/models.tsp | 1504 +++++++++++++++++ .../Notificationhubs.Management/routes.tsp | 32 + .../tspconfig.yaml | 14 + 46 files changed, 5207 insertions(+) create mode 100644 specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/NotificationHubResource.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/PrivateEndpointConnectionResource.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/PrivateLinkResource.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/client.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NHOperationsList.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleCreateOrUpdate.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleGet.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleList.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleListKeys.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleRegenerateKey.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CheckAvailability.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Delete.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Get.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListByResourceGroup.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListBySubscription.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PnsCredentialsGet.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionDelete.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionGet.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionList.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionUpdate.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceList.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Update.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleCreateOrUpdate.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleDelete.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleGet.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleList.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleListKeys.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleRegenerateKey.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CheckAvailability.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CreateOrUpdate.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/DebugSend.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Delete.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Get.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/List.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Update.json create mode 100644 specification/notificationhubs/Notificationhubs.Management/legacy.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/main.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/models.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/routes.tsp create mode 100644 specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml diff --git a/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp b/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp new file mode 100644 index 000000000000..2b6b9de9c319 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp @@ -0,0 +1,144 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.NotificationHubs; +/** + * Notification Hubs Namespace Resource. + */ +model NamespaceResource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = NamespaceResource, + KeyName = "namespaceName", + SegmentName = "namespaces", + NamePattern = "^[a-zA-Z][a-zA-Z0-9-]*$" + >; + + /** + * The Sku description for a namespace + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + sku: Sku; +} + +@armResourceOperations +interface NamespaceResources { + /** + * Returns the given namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Namespaces_Get") + get is ArmResourceRead; + + /** + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Namespaces_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + /** + * Patches the existing namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @patch(#{ implicitOptionality: false }) + @operationId("Namespaces_Update") + update is ArmCustomPatchSync< + NamespaceResource, + PatchModel = NamespacePatchParameters + >; + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Namespaces_Delete") + delete is ArmResourceDeleteSync; + + /** + * Lists the available namespaces within a resource group. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Namespaces_List") + list is ArmResourceListByParent< + NamespaceResource, + Parameters = { + /** + * Skip token for subsequent requests. + */ + @query("$skipToken") + $skipToken?: string; + + /** + * Maximum number of results to return. + */ + @query("$top") + $top?: int32 = 100; + } + >; + + /** + * Lists all the available namespaces within the subscription. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Namespaces_ListAll") + listAll is ArmListBySubscription< + NamespaceResource, + Parameters = { + /** + * Skip token for subsequent requests. + */ + @query("$skipToken") + $skipToken?: string; + + /** + * Maximum number of results to return. + */ + @query("$top") + $top?: int32 = 100; + } + >; + + /** + * Checks the availability of the given notificationHub in a namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_CheckNotificationHubAvailability") + checkNotificationHubAvailability is ArmResourceActionSync< + NamespaceResource, + CheckAvailabilityParameters, + ArmResponse + >; + + /** + * Lists the PNS credentials associated with a namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @action("pnsCredentials") + @operationId("Namespaces_GetPnsCredentials") + getPnsCredentials is ArmResourceActionSync< + NamespaceResource, + void, + ArmResponse + >; +} + +@@maxLength(NamespaceResource.name, 50); +@@minLength(NamespaceResource.name, 1); +@@doc(NamespaceResource.name, "Namespace name"); +@@doc(NamespaceResource.properties, "Represents namespace properties."); +@@doc(NamespaceResources.createOrUpdate::parameters.resource, + "Request content." +); +@@doc(NamespaceResources.update::parameters.properties, "Request content."); +@@doc(NamespaceResources.checkNotificationHubAvailability::parameters.body, + "Request content." +); diff --git a/specification/notificationhubs/Notificationhubs.Management/NotificationHubResource.tsp b/specification/notificationhubs/Notificationhubs.Management/NotificationHubResource.tsp new file mode 100644 index 000000000000..190dda5fdbd2 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/NotificationHubResource.tsp @@ -0,0 +1,124 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./NamespaceResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.NotificationHubs; +/** + * Notification Hub Resource. + */ +@parentResource(NamespaceResource) +model NotificationHubResource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = NotificationHubResource, + KeyName = "notificationHubName", + SegmentName = "notificationHubs", + NamePattern = "^[a-zA-Z][a-zA-Z0-9-./_]*$" + >; + + /** + * The Sku description for a namespace + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + sku?: Sku; +} + +@armResourceOperations +interface NotificationHubResources { + /** + * Gets the notification hub. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_Get") + get is ArmResourceRead; + + /** + * Creates/Update a NotificationHub in a namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Patch a NotificationHub in a namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @patch(#{ implicitOptionality: false }) + @operationId("NotificationHubs_Update") + update is ArmCustomPatchSync< + NotificationHubResource, + PatchModel = NotificationHubPatchParameters + >; + + /** + * Deletes a notification hub associated with a namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_Delete") + delete is ArmResourceDeleteSync; + + /** + * Lists the notification hubs associated with a namespace. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_List") + list is ArmResourceListByParent< + NotificationHubResource, + Parameters = { + /** + * Continuation token. + */ + @query("$skipToken") + $skipToken?: string; + + /** + * Page size. + */ + @query("$top") + $top?: int32 = 100; + } + >; + + /** + * Test send a push notification. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @action("debugsend") + @operationId("NotificationHubs_DebugSend") + debugSend is ArmResourceActionSync< + NotificationHubResource, + void, + ArmResponse + >; + + /** + * Lists the PNS Credentials associated with a notification hub. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @action("pnsCredentials") + @operationId("NotificationHubs_GetPnsCredentials") + getPnsCredentials is ArmResourceActionSync< + NotificationHubResource, + void, + ArmResponse + >; +} + +@@maxLength(NotificationHubResource.name, 265); +@@minLength(NotificationHubResource.name, 1); +@@doc(NotificationHubResource.name, "Notification Hub name"); +@@doc(NotificationHubResource.properties, "NotificationHub properties."); +@@doc(NotificationHubResources.createOrUpdate::parameters.resource, + "Request content." +); +@@doc(NotificationHubResources.update::parameters.properties, + "Request content." +); diff --git a/specification/notificationhubs/Notificationhubs.Management/PrivateEndpointConnectionResource.tsp b/specification/notificationhubs/Notificationhubs.Management/PrivateEndpointConnectionResource.tsp new file mode 100644 index 000000000000..c83c269a7f41 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/PrivateEndpointConnectionResource.tsp @@ -0,0 +1,73 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./NamespaceResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.NotificationHubs; +/** + * Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace. + */ +@parentResource(NamespaceResource) +model PrivateEndpointConnectionResource + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = PrivateEndpointConnectionResource, + KeyName = "privateEndpointConnectionName", + SegmentName = "privateEndpointConnections", + NamePattern = "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" + >; +} + +@armResourceOperations +interface PrivateEndpointConnectionResources { + /** + * Returns a Private Endpoint Connection with a given name. + * This is a public API that can be called directly by Notification Hubs users. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PrivateEndpointConnections_Get") + get is ArmResourceRead; + + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PrivateEndpointConnections_Update") + update is ArmResourceCreateOrReplaceAsync; + + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PrivateEndpointConnections_Delete") + delete is ArmResourceDeleteWithoutOkAsync; + + /** + * Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. + * This is a public API that can be called directly by Notification Hubs users. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PrivateEndpointConnections_List") + list is ArmResourceListByParent; +} + +@@maxLength(PrivateEndpointConnectionResource.name, 87); +@@minLength(PrivateEndpointConnectionResource.name, 1); +@@doc(PrivateEndpointConnectionResource.name, + "Private Endpoint Connection Name" +); +@@doc(PrivateEndpointConnectionResource.properties, + "Private Endpoint Connection properties." +); +@@doc(PrivateEndpointConnectionResources.update::parameters.resource, + "Description of the Private Endpoint Connection resource." +); diff --git a/specification/notificationhubs/Notificationhubs.Management/PrivateLinkResource.tsp b/specification/notificationhubs/Notificationhubs.Management/PrivateLinkResource.tsp new file mode 100644 index 000000000000..d07eb7625c4b --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/PrivateLinkResource.tsp @@ -0,0 +1,50 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./NamespaceResource.tsp"; + + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + + +namespace Microsoft.NotificationHubs; +/** +* A Private Link Arm Resource. +*/ +@parentResource(NamespaceResource) +model PrivateLinkResource is Azure.ResourceManager.ProxyResource { +...ResourceNameParameter +} + + + +@armResourceOperations +interface PrivateLinkResources { +/** +* 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. +* That'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") +#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" +getGroupId is ArmResourceRead; + + +/** +* 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. +* That'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") +#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" +listGroupIds is ArmResourceListByParent; + + +} + + +@@doc(PrivateLinkResource.name, "Name of the Private Link sub-resource. The only supported sub-resource is "namespace"") +@@doc(PrivateLinkResource.properties, "Represents properties of Private Link Resource.") \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp b/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp new file mode 100644 index 000000000000..a953d446c8d1 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp @@ -0,0 +1,188 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./NotificationHubResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.NotificationHubs; +/** + * Response for POST requests that return single SharedAccessAuthorizationRule. + */ +@parentResource(NotificationHubResource) +model SharedAccessAuthorizationRuleResource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = SharedAccessAuthorizationRuleResource, + KeyName = "authorizationRuleName", + SegmentName = "authorizationRules", + NamePattern = "^[a-zA-Z0-9!()*-._]+$" + >; +} + +@armResourceOperations +interface SharedAccessAuthorizationRuleResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface SharedAccessAuthorizationRuleResources { + /** + * Gets an authorization rule for a NotificationHub by name. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_GetAuthorizationRule") + getAuthorizationRule is SharedAccessAuthorizationRuleResourceOps.Read; + + /** + * Creates/Updates an authorization rule for a NotificationHub + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_CreateOrUpdateAuthorizationRule") + createOrUpdateAuthorizationRule is SharedAccessAuthorizationRuleResourceOps.CreateOrUpdateSync; + + /** + * Deletes a notificationHub authorization rule + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_DeleteAuthorizationRule") + deleteAuthorizationRule is SharedAccessAuthorizationRuleResourceOps.DeleteSync; + + /** + * Gets the authorization rules for a NotificationHub. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_ListAuthorizationRules") + listAuthorizationRules is SharedAccessAuthorizationRuleResourceOps.List; + + /** + * Gets the Primary and Secondary ConnectionStrings to the NotificationHub + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_ListKeys") + listKeys is SharedAccessAuthorizationRuleResourceOps.ActionSync< + SharedAccessAuthorizationRuleResource, + void, + ArmResponse + >; + + /** + * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("NotificationHubs_RegenerateKeys") + regenerateKeys is SharedAccessAuthorizationRuleResourceOps.ActionSync< + SharedAccessAuthorizationRuleResource, + PolicyKeyResource, + ArmResponse + >; +} +@armResourceOperations +interface NamespaceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface Namespaces { + /** + * Gets an authorization rule for a namespace by name. + */ + getAuthorizationRule is NamespaceOps.Read; + + /** + * Creates an authorization rule for a namespace + */ + createOrUpdateAuthorizationRule is NamespaceOps.CreateOrUpdateSync; + + /** + * Deletes a namespace authorization rule + */ + deleteAuthorizationRule is NamespaceOps.DeleteSync; + + /** + * Gets the authorization rules for a namespace. + */ + listAuthorizationRules is NamespaceOps.List; + + /** + * Gets the Primary and Secondary ConnectionStrings to the namespace. + */ + listKeys is NamespaceOps.ActionSync< + SharedAccessAuthorizationRuleResource, + void, + ArmResponse + >; + + /** + * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule + */ + regenerateKeys is NamespaceOps.ActionSync< + SharedAccessAuthorizationRuleResource, + PolicyKeyResource, + ArmResponse + >; +} + +@@maxLength(SharedAccessAuthorizationRuleResource.name, 256); +@@minLength(SharedAccessAuthorizationRuleResource.name, 1); +@@doc(SharedAccessAuthorizationRuleResource.name, "Authorization Rule Name"); +@@doc(SharedAccessAuthorizationRuleResource.properties, + "SharedAccessAuthorizationRule properties." +); +@@doc(SharedAccessAuthorizationRuleResources.createOrUpdateAuthorizationRule::parameters.resource, + "Request content." +); +@@doc(SharedAccessAuthorizationRuleResources.regenerateKeys::parameters.body, + "Request content." +); +@@doc(Namespaces.createOrUpdateAuthorizationRule::parameters.resource, + "Request content." +); +@@doc(Namespaces.regenerateKeys::parameters.body, "Request content."); diff --git a/specification/notificationhubs/Notificationhubs.Management/client.tsp b/specification/notificationhubs/Notificationhubs.Management/client.tsp new file mode 100644 index 000000000000..c9a381767f9b --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/client.tsp @@ -0,0 +1,77 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.NotificationHubs; + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ApnsCredential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(WnsCredential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(GcmCredential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(MpnsCredential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(AdmCredential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(BaiduCredential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(BrowserCredential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(XiaomiCredential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(FcmV1Credential.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(NotificationHubPatchParameters.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(DebugSendResponse.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(PnsCredentialsResource.properties); + +@@clientName(NotificationHubResources.createOrUpdate::parameters.resource, + "parameters" +); +@@clientName(NotificationHubResources.update::parameters.properties, + "parameters" +); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(NotificationHubResource.properties); + +@@clientName(SharedAccessAuthorizationRuleResources.createOrUpdateAuthorizationRule::parameters.resource, + "parameters" +); +@@clientName(SharedAccessAuthorizationRuleResources.regenerateKeys::parameters.body, + "parameters" +); +@@clientName(Namespaces.createOrUpdateAuthorizationRule::parameters.resource, + "parameters" +); +@@clientName(Namespaces.regenerateKeys::parameters.body, "parameters"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(SharedAccessAuthorizationRuleResource.properties); + +@@clientName(NamespaceResources.createOrUpdate::parameters.resource, + "parameters" +); +@@clientName(NamespaceResources.update::parameters.properties, "parameters"); +@@clientName(NamespaceResources.checkNotificationHubAvailability::parameters.body, + "parameters" +); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(NamespaceResource.properties); + +@@clientName(PrivateEndpointConnectionResources.update::parameters.resource, + "parameters" +); diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NHOperationsList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NHOperationsList.json new file mode 100644 index 000000000000..550243a9e11f --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NHOperationsList.json @@ -0,0 +1,1269 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.NotificationHubs/register/action", + "display": { + "description": "Registers the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs", + "operation": "Registers the NotificationHubs Provider", + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub" + } + }, + { + "name": "Microsoft.NotificationHubs/unregister/action", + "display": { + "description": "Unregisters the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs", + "operation": "Unregisters the NotificationHubs Provider", + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub" + } + }, + { + "name": "Microsoft.NotificationHubs/operations/read", + "display": { + "description": "Returns a list of supported operations for Notification Hubs provider", + "operation": "Notification Hubs provider operations", + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub" + } + }, + { + "name": "Microsoft.NotificationHubs/operationResults/read", + "display": { + "description": "Returns operation results for Notification Hubs provider", + "operation": "Operation results for Notification Hubs provider", + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "description": "Get Namespace diagnostic settings", + "operation": "Read diagnostics setting", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "description": "Create or Update Namespace diagnostic settings", + "operation": "Write diagnostic settings", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "description": "Gets the available logs for Namespace", + "operation": "Read Namespace log definitions", + "provider": "Microsoft Azure Notification Hub", + "resource": "The log definition of Namespace" + }, + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "OperationalLogs", + "blobDuration": "PT1H", + "displayName": "Operational Logs" + } + ] + } + } + }, + { + "name": "Microsoft.NotificationHubs/CheckNamespaceAvailability/action", + "display": { + "description": "Checks whether or not a given Namespace resource name is available within the NotificationHub service.", + "operation": "Check Namespace name availability.", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/write", + "display": { + "description": "Create a Namespace Resource and Update its properties. Tags and Capacity of the Namespace are the properties which can be updated.", + "operation": "Create Or Update Namespace", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/read", + "display": { + "description": "Get the list of Namespace Resource Description", + "operation": "Get Namespace Resource", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/delete", + "display": { + "description": "Delete Namespace Resource", + "operation": "Delete Namespace", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/write", + "display": { + "description": "Create a Namespace level Authorization Rules and update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated.", + "operation": "Create or Update Namespace Authorization Rules", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/action", + "display": { + "description": "Get the list of Namespaces Authorization Rules description.", + "operation": "Get Namespace Authorization Rules", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/read", + "display": { + "description": "Get the list of Namespaces Authorization Rules description.", + "operation": "Get Namespace Authorization Rules", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/delete", + "display": { + "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted.", + "operation": "Delete Namespace Authorization Rule", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/listkeys/action", + "display": { + "description": "Get the Connection String to the Namespace", + "operation": "Get Namespace Listkeys", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/regenerateKeys/action", + "display": { + "description": "Namespace Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated", + "operation": "Namespace Authorization Rule Regenerate Keys", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/CheckNotificationHubAvailability/action", + "display": { + "description": "Checks whether or not a given NotificationHub name is available inside a Namespace.", + "operation": "Check NotificationHub name availability.", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/write", + "display": { + "description": "Create a Notification Hub and Update its properties. Its properties mainly include PNS Credentials. Authorization Rules and TTL", + "operation": "Create or Update Notification Hub", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/vapidkeys/read", + "display": { + "description": "Get new pair of VAPID keys for a Notification Hub", + "operation": "Get VAPID keys for a Notification Hub", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/read", + "display": { + "description": "Get list of Notification Hub Resource Descriptions", + "operation": "Get Notification Hub", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/delete", + "display": { + "description": "Delete Notification Hub Resource", + "operation": "Delete Notification Hub", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/write", + "display": { + "description": "Create Notification Hub Authorization Rules and Update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated.", + "operation": "Create or Update Notification hub Authorization Rule", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/action", + "display": { + "description": "Get the list of Notification Hub Authorization Rules", + "operation": "Get Notification Hub Authorization Rules", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/read", + "display": { + "description": "Get the list of Notification Hub Authorization Rules", + "operation": "Get Notification Hub Authorization Rules", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/delete", + "display": { + "description": "Delete Notification Hub Authorization Rules", + "operation": "Delete Notification Hub Authorization Rules", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/listkeys/action", + "display": { + "description": "Get the Connection String to the Notification Hub", + "operation": "Get Notification Hub Listkeys", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/regenerateKeys/action", + "display": { + "description": "Notification Hub Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated", + "operation": "Notification Hub Authorization Rule Regenerate Keys", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/pnsCredentials/action", + "display": { + "description": "Get All Notification Hub PNS Credentials. This includes, WNS, MPNS, APNS, GCM, Baidu and FcmV1 credentials", + "operation": "Get Notification Hub PNS Credentials", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub PnsCredential" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/debugSend/action", + "display": { + "description": "Send a test push notification to 10 matched devices.", + "operation": "Send a test push notification.", + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/metricDefinitions/read", + "display": { + "description": "Get list of Namespace metrics Resource Descriptions", + "operation": "Get Namespace metrics", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace metrics" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "registration.all", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful registration operations (creations updates queries and deletions). ", + "displayName": "Registration Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "registration.create", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful registration creations.", + "displayName": "Registration Create Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "registration.update", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful registration updates.", + "displayName": "Registration Update Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "registration.get", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful registration queries.", + "displayName": "Registration Read Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "registration.delete", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful registration deletions.", + "displayName": "Registration Delete Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "incoming", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful send API calls. ", + "displayName": "Incoming Messages", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "incoming.scheduled", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Scheduled Push Notifications Sent", + "displayName": "Scheduled Push Notifications Sent", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "incoming.scheduled.cancel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Scheduled Push Notifications Cancelled", + "displayName": "Scheduled Push Notifications Cancelled", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "scheduled.pending", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Pending Scheduled Notifications", + "displayName": "Pending Scheduled Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "installation.all", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Installation Management Operations", + "displayName": "Installation Management Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "installation.get", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Get Installation Operations", + "displayName": "Get Installation Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "installation.upsert", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Create or Update Installation Operations", + "displayName": "Create or Update Installation Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "installation.patch", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Patch Installation Operations", + "displayName": "Patch Installation Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "installation.delete", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Delete Installation Operations", + "displayName": "Delete Installation Operations", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.allpns.success", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful notifications.", + "displayName": "Successful notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.allpns.invalidpayload", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the PNS returned a bad payload error.", + "displayName": "Payload Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.allpns.pnserror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because there was a problem communicating with the PNS (excludes authentication problems).", + "displayName": "External Notification System Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.allpns.channelerror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the channel was invalid not associated with the correct app throttled or expired.", + "displayName": "Channel Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.allpns.badorexpiredchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the channel/token/registrationId in the registration was expired or invalid.", + "displayName": "Bad or Expired Channel Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.success", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful notifications.", + "displayName": "WNS Successful Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.invalidcredentials", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "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).", + "displayName": "WNS Authorization Errors (Invalid Credentials)", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.badchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was not recognized (WNS status: 404 not found).", + "displayName": "WNS Bad Channel Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.expiredchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the ChannelURI is expired (WNS status: 410 Gone).", + "displayName": "WNS Expired Channel Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.throttled", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because WNS is throttling this app (WNS status: 406 Not Acceptable).", + "displayName": "WNS Throttled Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.tokenproviderunreachable", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Windows Live is not reachable.", + "displayName": "WNS Authorization Errors (Unreachable)", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.invalidtoken", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The token provided to WNS is not valid (WNS status: 401 Unauthorized).", + "displayName": "WNS Authorization Errors (Invalid Token)", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.wrongtoken", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "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.", + "displayName": "WNS Authorization Errors (Wrong Token)", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.invalidnotificationformat", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The format of the notification is invalid (WNS status: 400). Note that WNS does not reject all invalid payloads.", + "displayName": "WNS Invalid Notification Format", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.invalidnotificationsize", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The notification payload is too large (WNS status: 413).", + "displayName": "WNS Invalid Notification Size Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.channelthrottled", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (WNS response header: X-WNS-NotificationStatus:channelThrottled).", + "displayName": "WNS Channel Throttled", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.channeldisconnected", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (WNS response header: X-WNS-DeviceConnectionStatus: disconnected).", + "displayName": "WNS Channel Disconnected", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.dropped", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (X-WNS-NotificationStatus: dropped but not X-WNS-DeviceConnectionStatus: disconnected).", + "displayName": "WNS Dropped Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.pnserror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Notification not delivered because of errors communicating with WNS.", + "displayName": "WNS Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.wns.authenticationerror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Notification not delivered because of errors communicating with Windows Live invalid credentials or wrong token.", + "displayName": "WNS Authentication Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.apns.success", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful notifications.", + "displayName": "APNS Successful Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.apns.invalidcredentials", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "displayName": "APNS Authorization Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.apns.badchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the token is invalid (APNS status code: 8).", + "displayName": "APNS Bad Channel Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.apns.expiredchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of token that were invalidated by the APNS feedback channel.", + "displayName": "APNS Expired Channel Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.apns.invalidnotificationsize", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the payload was too large (APNS status code: 7).", + "displayName": "APNS Invalid Notification Size Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.apns.pnserror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because of errors communicating with APNS.", + "displayName": "APNS Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.success", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful notifications.", + "displayName": "GCM Successful Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.invalidcredentials", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "displayName": "GCM Authorization Errors (Invalid Credentials)", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.badchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the registrationId in the registration was not recognized (GCM result: Invalid Registration).", + "displayName": "GCM Bad Channel Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.expiredchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the registrationId in the registration was expired (GCM result: NotRegistered).", + "displayName": "GCM Expired Channel Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.throttled", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because GCM throttled this app (GCM status code: 501-599 or result:Unavailable).", + "displayName": "GCM Throttled Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.invalidnotificationformat", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the payload was not formatted correctly (GCM result: InvalidDataKey or InvalidTtl).", + "displayName": "GCM Invalid Notification Format", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.invalidnotificationsize", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the payload was too large (GCM result: MessageTooBig).", + "displayName": "GCM Invalid Notification Size Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.wrongchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the registrationId in the registration is not associated to the current app (GCM result: InvalidPackageName).", + "displayName": "GCM Wrong Channel Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.pnserror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because of errors communicating with GCM.", + "displayName": "GCM Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.gcm.authenticationerror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "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).", + "displayName": "GCM Authentication Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.success", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of all successful notifications.", + "displayName": "MPNS Successful Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.invalidcredentials", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "displayName": "MPNS Invalid Credentials", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.badchannel", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was not recognized (MPNS status: 404 not found).", + "displayName": "MPNS Bad Channel Error", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.throttled", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because MPNS is throttling this app (WNS MPNS: 406 Not Acceptable).", + "displayName": "MPNS Throttled Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.invalidnotificationformat", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the payload of the notification was too large.", + "displayName": "MPNS Invalid Notification Format", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.channeldisconnected", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was disconnected (MPNS status: 412 not found).", + "displayName": "MPNS Channel Disconnected", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.dropped", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that were dropped by MPNS (MPNS response header: X-NotificationStatus: QueueFull or Suppressed).", + "displayName": "MPNS Dropped Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.pnserror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because of errors communicating with MPNS.", + "displayName": "MPNS Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "outgoing.mpns.authenticationerror", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "displayName": "MPNS Authentication Errors", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "notificationhub.pushes", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "All outgoing notifications of the notification hub", + "displayName": "All Outgoing Notifications", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "incoming.all.requests", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Total incoming requests for a notification hub", + "displayName": "All Incoming Requests", + "fillGapWithZero": true, + "unit": "Count" + }, + { + "name": "incoming.all.failedrequests", + "aggregationType": "Total", + "availabilities": [ + { + "blobDuration": "P30D", + "timeGrain": "PT1M" + } + ], + "displayDescription": "Total incoming failed requests for a notification hub", + "displayName": "All Incoming Failed Requests", + "fillGapWithZero": true, + "unit": "Count" + } + ] + } + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionsApproval/action", + "display": { + "description": "Approve Private Endpoint Connection", + "operation": "Approve Private Endpoint Connection", + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/validate/action", + "display": { + "description": "Validate Private Endpoint Connection Proxy", + "operation": "Validate Private Endpoint Connection Proxy", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/read", + "display": { + "description": "Get Private Endpoint Connection Proxy", + "operation": "Get Private Endpoint Connection Proxy", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/write", + "display": { + "description": "Create Private Endpoint Connection Proxy", + "operation": "Create Private Endpoint Connection Proxy", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/delete", + "display": { + "description": "Delete Private Endpoint Connection Proxy", + "operation": "Delete Private Endpoint Connection Proxy", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/operationstatus/read", + "display": { + "description": "Get the status of an asynchronous private endpoint operation", + "operation": "Private endpoint operation status", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/read", + "display": { + "description": "Get Private Endpoint Connection", + "operation": "Get Private Endpoint Connection", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/write", + "display": { + "description": "Create or Update Private Endpoint Connection", + "operation": "Create or Update Private Endpoint Connection", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/delete", + "display": { + "description": "Removes Private Endpoint Connection", + "operation": "Removes Private Endpoint Connection", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/operationstatus/read", + "display": { + "description": "Removes Private Endpoint Connection", + "operation": "Removes Private Endpoint Connection", + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "Operations_List" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleCreateOrUpdate.json new file mode 100644 index 000000000000..34abb1002041 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleCreateOrUpdate.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "sdk-AuthRules-1788", + "location": "West Europe", + "namespaceName": "nh-sdk-ns", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "properties": { + "createdTime": "2023-04-26T10:09:19.9675121+00:00", + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "201": { + "body": { + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "properties": { + "createdTime": "2023-04-26T10:09:19.9675121+00:00", + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "rights": [ + "Listen", + "Send" + ] + } + } + } + }, + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "title": "Namespaces_CreateOrUpdateAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json new file mode 100644 index 000000000000..ffc046b09c3c --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "RootManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Namespaces_DeleteAuthorizationRule", + "title": "Namespaces_DeleteAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleGet.json new file mode 100644 index 000000000000..94feec65bfab --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "RootManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", + "properties": { + "createdTime": "2023-04-26T10:19:36.3315279+00:00", + "modifiedTime": "2023-04-26T10:19:36.3315279+00:00", + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + } + } + }, + "operationId": "Namespaces_GetAuthorizationRule", + "title": "Namespaces_GetAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleList.json new file mode 100644 index 000000000000..fb223bfab70d --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", + "properties": { + "createdTime": "2023-04-26T06:10:44.0407982+00:00", + "modifiedTime": "2023-04-26T06:10:44.0407987+00:00", + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + { + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "properties": { + "createdTime": "2023-04-26T10:09:19.9675121+00:00", + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "rights": [ + "Listen", + "Send" + ] + } + } + ] + } + } + }, + "operationId": "Namespaces_ListAuthorizationRules", + "title": "Namespaces_ListAuthorizationRules" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleListKeys.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleListKeys.json new file mode 100644 index 000000000000..534679abb6a9 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleListKeys.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "RootManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "keyName": "RootManageSharedAccessKey", + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "primaryKey": "############################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "secondaryKey": "############################################" + } + } + }, + "operationId": "Namespaces_ListKeys", + "title": "Namespaces_ListKeys" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleRegenerateKey.json new file mode 100644 index 000000000000..807b11e83c5e --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleRegenerateKey.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "RootManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", + "parameters": { + "policyKey": "PrimaryKey" + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "keyName": "RootManageSharedAccessKey", + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=########################################", + "primaryKey": "########################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=########################################", + "secondaryKey": "########################################" + } + } + }, + "operationId": "Namespaces_RegenerateKeys", + "title": "Namespaces_RegenerateKeys" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CheckAvailability.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CheckAvailability.json new file mode 100644 index 000000000000..1daafce83f1d --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CheckAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "parameters": { + "name": "sdk-Namespace-2924" + }, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "isAvailiable": true + } + } + }, + "operationId": "Namespaces_CheckAvailability", + "title": "Namespaces_CheckAvailability" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json new file mode 100644 index 000000000000..6c8274ac72b6 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "parameters": { + "location": "South Central US", + "properties": { + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "zoneRedundancy": "Enabled" + }, + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "location": "East US", + "properties": { + "name": "nh-sdk-ns", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "critical": false, + "enabled": true, + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:16:17.697+00:00", + "zoneRedundancy": "Enabled" + }, + "sku": { + "name": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "201": { + "body": { + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "location": "East US", + "properties": { + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "provisioningState": "InProgress", + "publicNetworkAccess": "Enabled", + "zoneRedundancy": "Enabled" + }, + "sku": { + "name": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + }, + "operationId": "Namespaces_CreateOrUpdate", + "title": "Namespaces_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Delete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Delete.json new file mode 100644 index 000000000000..7d7b81f54cc2 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Namespaces_Delete", + "title": "Namespaces_Delete" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Get.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Get.json new file mode 100644 index 000000000000..eb3be7a9feae --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Get.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "location": "East US", + "properties": { + "name": "nh-sdk-ns", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "critical": false, + "enabled": true, + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + }, + "operationId": "Namespaces_Get", + "title": "Namespaces_Get" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListByResourceGroup.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListByResourceGroup.json new file mode 100644 index 000000000000..d5b3f87399d3 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListByResourceGroup.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces?api-version=2023-10-01-preview&$count=2&$skipToken=##################", + "value": [ + { + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", + "location": "East US", + "properties": { + "name": "namespace-1", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "critical": false, + "enabled": true, + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "serviceBusEndpoint": "https://namespace-1.servicebus.windows.net:443/", + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" + }, + "tags": {} + }, + { + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-2", + "location": "East US", + "properties": { + "name": "namespace-2", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "critical": false, + "enabled": true, + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [], + "publicNetworkRule": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "serviceBusEndpoint": "https://namespace-2.servicebus.windows.net:443/", + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ] + } + } + }, + "operationId": "Namespaces_List", + "title": "Namespaces_List" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListBySubscription.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListBySubscription.json new file mode 100644 index 000000000000..bbf0a2cbb46f --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListBySubscription.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces?api-version=2023-10-01-preview&$count=2&$skipToken=##################", + "value": [ + { + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", + "location": "East US", + "properties": { + "name": "namespace-1", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "critical": false, + "enabled": true, + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "serviceBusEndpoint": "https://namespace-1.servicebus.windows.net:443/", + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" + }, + "tags": {} + }, + { + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-2", + "location": "East US", + "properties": { + "name": "namespace-2", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "critical": false, + "enabled": true, + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [], + "publicNetworkRule": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "serviceBusEndpoint": "https://namespace-2.servicebus.windows.net:443/", + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ] + } + } + }, + "operationId": "Namespaces_ListAll", + "title": "Namespaces_ListAll" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PnsCredentialsGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PnsCredentialsGet.json new file mode 100644 index 000000000000..6f51cf2e5d72 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PnsCredentialsGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/pnsCredentials", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "properties": { + "mpnsCredential": { + "properties": { + "thumbprint": "#################################" + } + } + } + } + } + }, + "operationId": "Namespaces_GetPnsCredentials", + "title": "Namespaces_GetPnsCredentials" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionDelete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionDelete.json new file mode 100644 index 000000000000..05ead0fbedc9 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "202": { + "headers": { + "Location": "https://nh-sdk-ns.servicebus.windows.net/operationXYZ" + } + }, + "204": {} + }, + "operationId": "PrivateEndpointConnections_Delete", + "title": "PrivateEndpointConnections_Delete" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionGet.json new file mode 100644 index 000000000000..2ba945ff54c3 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", + "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", + "properties": { + "groupIds": [ + "namespace" + ], + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, + "privateLinkServiceConnectionState": { + "description": "Auto-Approved", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "PrivateEndpointConnections_Get", + "title": "PrivateEndpointConnections_Get" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionList.json new file mode 100644 index 000000000000..96af6228d8ee --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", + "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", + "properties": { + "groupIds": [ + "namespace" + ], + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, + "privateLinkServiceConnectionState": { + "description": "Auto-Approved", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + }, + "operationId": "PrivateEndpointConnections_List", + "title": "PrivateEndpointConnections_List" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionUpdate.json new file mode 100644 index 000000000000..893c537d8031 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionUpdate.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "parameters": { + "properties": { + "privateEndpoint": {}, + "privateLinkServiceConnectionState": { + "status": "Approved" + } + } + }, + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "type": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections", + "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", + "properties": { + "groupIds": [ + "namespace" + ], + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "actionsRequired": "None", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "type": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections", + "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", + "properties": { + "groupIds": [ + "namespace" + ], + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "actionsRequired": "None", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "PrivateEndpointConnections_Update", + "title": "PrivateEndpointConnections_Update" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json new file mode 100644 index 000000000000..548112e43aeb --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subResourceName": "namespace", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", + "properties": { + "groupId": "namespace", + "requiredMembers": [ + "namespace" + ], + "requiredZoneNames": [ + "privatelink.servicebus.windows.net", + "privatelink.notificationhub.windows.net" + ] + } + } + } + }, + "operationId": "PrivateEndpointConnections_GetGroupId", + "title": "PrivateEndpointConnections_GetGroupId" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceList.json new file mode 100644 index 000000000000..79eab8274770 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", + "properties": { + "groupId": "namespace", + "requiredMembers": [ + "namespace" + ], + "requiredZoneNames": [ + "privatelink.servicebus.windows.net", + "privatelink.notificationhub.windows.net" + ] + } + } + ] + } + } + }, + "operationId": "PrivateEndpointConnections_ListGroupIds", + "title": "PrivateEndpointConnections_ListGroupIds" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Update.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Update.json new file mode 100644 index 000000000000..4d39e25a43bd --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Update.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "parameters": { + "properties": { + "pnsCredentials": { + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "#############################" + } + } + } + }, + "sku": { + "name": "Free" + }, + "tags": { + "tag1": "value3" + } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "location": "East US", + "properties": { + "name": "nh-sdk-ns", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "critical": false, + "enabled": true, + "namespaceType": "NotificationHub", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Free" + }, + "tags": { + "tag1": "value3" + } + } + } + }, + "operationId": "Namespaces_Update", + "title": "Namespaces_Update" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleCreateOrUpdate.json new file mode 100644 index 000000000000..13b723994435 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleCreateOrUpdate.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "MyManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/MyManageSharedAccessKey", + "properties": { + "createdTime": "2023-04-26T12:24:40.5863818+00:00", + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "201": { + "body": { + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/MyManageSharedAccessKey", + "properties": { + "createdTime": "2023-04-26T12:24:40.5863818+00:00", + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "rights": [ + "Listen", + "Send" + ] + } + } + } + }, + "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", + "title": "NotificationHubs_CreateOrUpdateAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleDelete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleDelete.json new file mode 100644 index 000000000000..906893f12805 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleDelete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "NotificationHubs_DeleteAuthorizationRule", + "title": "NotificationHubs_DeleteAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleGet.json new file mode 100644 index 000000000000..7d3fd0e43c78 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "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/test/authorizationRules/DefaultListenSharedAccessSignature", + "properties": { + "createdTime": "2023-04-26T12:24:40.5863818+00:00", + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "rights": [ + "Listen", + "Send" + ] + } + } + } + }, + "operationId": "NotificationHubs_GetAuthorizationRule", + "title": "NotificationHubs_GetAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleList.json new file mode 100644 index 000000000000..f31a2aafed30 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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/test/authorizationRules/DefaultListenSharedAccessSignature", + "properties": { + "createdTime": "2023-04-26T10:43:00.5320365+00:00", + "modifiedTime": "2023-04-26T10:43:00.5320368+00:00", + "rights": [ + "Listen" + ] + } + }, + { + "name": "DefaultFullSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/DefaultFullSharedAccessSignature", + "properties": { + "createdTime": "2023-04-26T10:43:00.5320386+00:00", + "modifiedTime": "2023-04-26T10:43:00.5320387+00:00", + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + } + ] + } + } + }, + "operationId": "NotificationHubs_ListAuthorizationRules", + "title": "NotificationHubs_ListAuthorizationRules" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleListKeys.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleListKeys.json new file mode 100644 index 000000000000..ba7b46d5c605 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleListKeys.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "sdk-AuthRules-5800", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "keyName": "sdk-AuthRules-5800", + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "primaryKey": "############################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryKey": "############################################" + } + } + }, + "operationId": "NotificationHubs_ListKeys", + "title": "NotificationHubs_ListKeys" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleRegenerateKey.json new file mode 100644 index 000000000000..ffc287c74197 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleRegenerateKey.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "parameters": { + "policyKey": "PrimaryKey" + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "primaryKey": "############################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryKey": "############################################" + } + } + }, + "operationId": "NotificationHubs_RegenerateKeys", + "title": "NotificationHubs_RegenerateKeys" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CheckAvailability.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CheckAvailability.json new file mode 100644 index 000000000000..dfe04ece18e2 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CheckAvailability.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "locp-newns", + "parameters": { + "name": "sdktest", + "location": "West Europe" + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "sdktest", + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/sdktest", + "isAvailiable": true + } + } + }, + "operationId": "NotificationHubs_CheckNotificationHubAvailability", + "title": "NotificationHubs_CheckNotificationHubAvailability" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CreateOrUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CreateOrUpdate.json new file mode 100644 index 000000000000..6a9770bb1d4f --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CreateOrUpdate.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "parameters": { + "location": "eastus", + "properties": {} + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "location": "East US", + "properties": { + "name": "test", + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" + }, + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + }, + "201": { + "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "location": "East US", + "properties": { + "name": "test", + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" + }, + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + } + }, + "operationId": "NotificationHubs_CreateOrUpdate", + "title": "NotificationHubs_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/DebugSend.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/DebugSend.json new file mode 100644 index 000000000000..8c3f88ec82d5 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/DebugSend.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "parameters": { + "data": { + "message": "Hello" + } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/debugSend", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "properties": { + "failure": 0, + "results": [], + "success": 0 + } + } + } + }, + "operationId": "NotificationHubs_DebugSend", + "title": "NotificationHubs_DebugSend" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Delete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Delete.json new file mode 100644 index 000000000000..c0e4ecd876c6 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "NotificationHubs_Delete", + "title": "NotificationHubs_Delete" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Get.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Get.json new file mode 100644 index 000000000000..fa469847253e --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Get.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "location": "East US", + "properties": { + "name": "test", + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" + }, + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + } + }, + "operationId": "NotificationHubs_Get", + "title": "NotificationHubs_Get" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/List.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/List.json new file mode 100644 index 000000000000..40df4ac106bc --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/List.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "location": "East US", + "properties": { + "name": "test", + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" + }, + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + ] + } + } + }, + "operationId": "NotificationHubs_List", + "title": "NotificationHubs_List" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json new file mode 100644 index 000000000000..537891dba324 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "properties": { + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "###################################" + } + } + } + } + } + }, + "operationId": "NotificationHubs_GetPnsCredentials", + "title": "NotificationHubs_GetPnsCredentials" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Update.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Update.json new file mode 100644 index 000000000000..c96572d3ebf3 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Update.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "sdk-notificationHubs-8708", + "parameters": { + "properties": { + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "###################################" + } + }, + "registrationTtl": "10675199.02:48:05.4775807" + } + }, + "resourceGroupName": "sdkresourceGroup", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "location": "East US", + "properties": { + "name": "test", + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" + }, + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + } + }, + "operationId": "NotificationHubs_Update", + "title": "NotificationHubs_Update" +} \ No newline at end of file diff --git a/specification/notificationhubs/Notificationhubs.Management/legacy.tsp b/specification/notificationhubs/Notificationhubs.Management/legacy.tsp new file mode 100644 index 000000000000..05225f6ce221 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/legacy.tsp @@ -0,0 +1,326 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Legacy { + interface LegacyOperations< + ParentParameters extends {}, + ResourceTypeParameter extends {}, + ErrorType extends {} = ErrorResponse + > { + /** + * @dev A long-running resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @Azure.Core.Foundations.Private.defaultFinalStateVia(#[ + "location", + "azure-async-operation" + ]) + @put + CreateOrUpdateAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< + Resource, + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A synchronous resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @put + CreateOrUpdateSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedSyncResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A long-running resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Resource, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResponse | ArmAcceptedLroResponse< + "Resource update request accepted.", + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev A synchronous resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev Delete a resource asynchronously + * @template Resource The resource being deleted + * @template LroHeaders The lro headers for the operation + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteWithoutOkAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Delete a resource synchronously + * @template Resource The resource being deleted + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @autoRoute + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + Read< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + ReadRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @autoRoute + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @segmentOf(Resource) + @armResourceList(Resource) + List< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @armResourceList(Resource) + ListRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * A synchronous resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionSync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Response extends TypeSpec.Reflection.Model | void, + Parameters extends {} = {} + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + + /** + * A long-running resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "ARM" + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "template" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionAsync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Result extends TypeSpec.Reflection.Model | void, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Result, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} | void = ArmAcceptedLroResponse< + "Resource operation accepted.", + LroHeaders + > | Result + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + } + /** + * @dev Get the provider namespace key-value pair + * @template Resource Optional. The resource to get the provider namespace for. + */ + model Provider { + ...ProviderNamespace; + } +} diff --git a/specification/notificationhubs/Notificationhubs.Management/main.tsp b/specification/notificationhubs/Notificationhubs.Management/main.tsp new file mode 100644 index 000000000000..0b826a4951bd --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/main.tsp @@ -0,0 +1,50 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.10.14 + * Date: 2025-04-29T06:01:05.304Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./NotificationHubResource.tsp"; +import "./SharedAccessAuthorizationRuleResource.tsp"; +import "./NamespaceResource.tsp"; +import "./PrivateEndpointConnectionResource.tsp"; +import "./PrivateLinkResource.tsp"; +import "./routes.tsp"; +import "./legacy.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * Microsoft Notification Hubs Resource Provider REST API. + */ +@armProviderNamespace +@service(#{ title: "NotificationHubs RP Client" }) +@versioned(Versions) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) +namespace Microsoft.NotificationHubs; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2023-10-01-preview API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2023_10_01_preview: "2023-10-01-preview", +} + +interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/notificationhubs/Notificationhubs.Management/models.tsp b/specification/notificationhubs/Notificationhubs.Management/models.tsp new file mode 100644 index 000000000000..57638fc29b9b --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/models.tsp @@ -0,0 +1,1504 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.NotificationHubs; + +/** + * Namespace SKU name. + */ +union SkuName { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Free: "Free", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Basic: "Basic", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Standard: "Standard", +} + +/** + * Defines values for AccessRights. + */ +union AccessRights { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Manage: "Manage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Send: "Send", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Listen: "Listen", +} + +/** + * Type of Shared Access Policy Key (primary or secondary). + */ +union PolicyKeyType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PrimaryKey: "PrimaryKey", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SecondaryKey: "SecondaryKey", +} + +/** + * Defines values for OperationProvisioningState. + */ +union OperationProvisioningState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InProgress: "InProgress", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Pending: "Pending", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * Namespace status. + */ +union NamespaceStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Created: "Created", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Creating: "Creating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Suspended: "Suspended", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleting: "Deleting", +} + +/** + * Defines values for NamespaceType. + */ +union NamespaceType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Messaging: "Messaging", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NotificationHub: "NotificationHub", +} + +/** + * Allowed replication region + */ +union ReplicationRegion { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Default: "Default", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + WestUs2: "WestUs2", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NorthEurope: "NorthEurope", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AustraliaEast: "AustraliaEast", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BrazilSouth: "BrazilSouth", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SouthEastAsia: "SouthEastAsia", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SouthAfricaNorth: "SouthAfricaNorth", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", +} + +/** + * Namespace SKU name. + */ +union ZoneRedundancyPreference { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", +} + +/** + * State of Private Endpoint Connection. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +union PrivateEndpointConnectionProvisioningState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Creating: "Creating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Updating: "Updating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UpdatingByProxy: "UpdatingByProxy", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleting: "Deleting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DeletingByProxy: "DeletingByProxy", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleted: "Deleted", +} + +/** + * State of Private Link Connection. + */ +union PrivateLinkConnectionStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disconnected: "Disconnected", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Pending: "Pending", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Approved: "Approved", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Rejected: "Rejected", +} + +/** + * Type of public network access. + */ +union PublicNetworkAccess { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * Parameters supplied to the Check Name Availability for Namespace and + * NotificationHubs. + */ +model CheckAvailabilityParameters { + /** + * Gets resource Id + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Gets or sets resource name + */ + @minLength(1) + name: string; + + /** + * Gets resource type + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * Gets or sets resource location + */ + location?: string; + + /** + * Gets or sets resource tags + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; + + /** + * Not used and deprecated since API version 2023-01-01-preview + */ + isAvailiable?: boolean; + + /** + * The Sku description for a namespace + */ + sku?: Sku; +} + +/** + * The Sku description for a namespace + */ +model Sku { + /** + * Namespace SKU name. + */ + name: SkuName; + + /** + * Gets or sets the tier of particular sku + */ + tier?: string; + + /** + * Gets or sets the Sku size + */ + size?: string; + + /** + * Gets or sets the Sku Family + */ + family?: string; + + /** + * Gets or sets the capacity of the resource + */ + capacity?: int32; +} + +/** + * Description of a CheckAvailability resource. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model CheckAvailabilityResult extends ProxyResource { + /** + * Gets or sets true if the name is available and can be used to + * create new Namespace/NotificationHub. Otherwise false. + */ + isAvailiable?: boolean; + + /** + * Deprecated - only for compatibility. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + location?: string; + + /** + * Deprecated - only for compatibility. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; + + /** + * The Sku description for a namespace + */ + sku?: Sku; +} + +/** + * Common fields that are returned in the response for all Azure Resource Manager resources + */ +model Resource { + /** + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + */ + @visibility(Lifecycle.Read) + id?: Azure.Core.armResourceIdentifier; + + /** + * The name of the resource + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + @visibility(Lifecycle.Read) + systemData?: SystemData; +} + +/** + * NotificationHub properties. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model NotificationHubProperties { + /** + * Gets or sets the NotificationHub name. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + name?: string; + + /** + * Gets or sets the RegistrationTtl of the created NotificationHub + */ + registrationTtl?: string; + + /** + * Gets or sets the AuthorizationRules of the created NotificationHub + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #["keyName"]) + authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + + /** + * Description of a NotificationHub ApnsCredential. + */ + apnsCredential?: ApnsCredential; + + /** + * Description of a NotificationHub WnsCredential. + */ + wnsCredential?: WnsCredential; + + /** + * Description of a NotificationHub GcmCredential. + */ + gcmCredential?: GcmCredential; + + /** + * Description of a NotificationHub MpnsCredential. + */ + mpnsCredential?: MpnsCredential; + + /** + * Description of a NotificationHub AdmCredential. + */ + admCredential?: AdmCredential; + + /** + * Description of a NotificationHub BaiduCredential. + */ + baiduCredential?: BaiduCredential; + + /** + * Description of a NotificationHub BrowserCredential. + */ + browserCredential?: BrowserCredential; + + /** + * Description of a NotificationHub XiaomiCredential. + */ + xiaomiCredential?: XiaomiCredential; + + /** + * Description of a NotificationHub FcmV1Credential. + */ + fcmV1Credential?: FcmV1Credential; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + dailyMaxActiveDevices?: int64; +} + +/** + * SharedAccessAuthorizationRule properties. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model SharedAccessAuthorizationRuleProperties { + /** + * Gets or sets the rights associated with the rule. + */ + rights: AccessRights[]; + + /** + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. + */ + primaryKey?: string; + + /** + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. + */ + secondaryKey?: string; + + /** + * Gets a string that describes the authorization rule. + */ + @visibility(Lifecycle.Read) + keyName?: string; + + /** + * Gets the last modified time for this rule + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + modifiedTime?: utcDateTime; + + /** + * Gets the created time for this rule + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdTime?: utcDateTime; + + /** + * Gets a string that describes the claim type + */ + @visibility(Lifecycle.Read) + claimType?: string; + + /** + * Gets a string that describes the claim value + */ + @visibility(Lifecycle.Read) + claimValue?: string; + + /** + * Gets the revision number for the rule + */ + @visibility(Lifecycle.Read) + revision?: int32; +} + +/** + * Description of a NotificationHub ApnsCredential. + */ +model ApnsCredential { + /** + * Description of a NotificationHub ApnsCredential. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: ApnsCredentialProperties; +} + +/** + * Description of a NotificationHub ApnsCredential. + */ +model ApnsCredentialProperties { + /** + * Gets or sets the APNS certificate. + */ + apnsCertificate?: string; + + /** + * Gets or sets the certificate key. + */ + certificateKey?: string; + + /** + * Gets or sets the endpoint of this credential. + */ + @minLength(1) + endpoint: string; + + /** + * Gets or sets the APNS certificate Thumbprint + */ + thumbprint?: string; + + /** + * Gets or sets a 10-character key identifier (kid) key, obtained from + * your developer account + */ + keyId?: string; + + /** + * Gets or sets the name of the application + */ + appName?: string; + + /** + * Gets or sets the issuer (iss) registered claim key, whose value is + * your 10-character Team ID, obtained from your developer account + */ + appId?: string; + + /** + * Gets or sets provider Authentication Token, obtained through your + * developer account + */ + token?: string; +} + +/** + * Description of a NotificationHub WnsCredential. + */ +model WnsCredential { + /** + * Description of a NotificationHub WnsCredential. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: WnsCredentialProperties; +} + +/** + * Description of a NotificationHub WnsCredential. + */ +model WnsCredentialProperties { + /** + * Gets or sets the package ID for this credential. + */ + packageSid?: string; + + /** + * Gets or sets the secret key. + */ + secretKey?: string; + + /** + * Gets or sets the Windows Live endpoint. + */ + windowsLiveEndpoint?: string; + + /** + * Ges or sets the WNS Certificate Key. + */ + certificateKey?: string; + + /** + * Gets or sets the WNS Certificate. + */ + wnsCertificate?: string; +} + +/** + * Description of a NotificationHub GcmCredential. + */ +model GcmCredential { + /** + * Description of a NotificationHub GcmCredential. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: GcmCredentialProperties; +} + +/** + * Description of a NotificationHub GcmCredential. + */ +model GcmCredentialProperties { + /** + * Gets or sets the GCM endpoint. + */ + gcmEndpoint?: string; + + /** + * Gets or sets the Google API key. + */ + @minLength(1) + googleApiKey: string; +} + +/** + * Description of a NotificationHub MpnsCredential. + */ +model MpnsCredential { + /** + * Description of a NotificationHub MpnsCredential. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: MpnsCredentialProperties; +} + +/** + * Description of a NotificationHub MpnsCredential. + */ +model MpnsCredentialProperties { + /** + * Gets or sets the MPNS certificate. + */ + @minLength(1) + mpnsCertificate: string; + + /** + * Gets or sets the certificate key for this credential. + */ + @minLength(1) + certificateKey: string; + + /** + * Gets or sets the MPNS certificate Thumbprint + */ + @minLength(1) + thumbprint: string; +} + +/** + * Description of a NotificationHub AdmCredential. + */ +model AdmCredential { + /** + * Description of a NotificationHub AdmCredential. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: AdmCredentialProperties; +} + +/** + * Description of a NotificationHub AdmCredential. + */ +model AdmCredentialProperties { + /** + * Gets or sets the client identifier. + */ + @minLength(1) + clientId: string; + + /** + * Gets or sets the credential secret access key. + */ + @minLength(1) + clientSecret: string; + + /** + * Gets or sets the URL of the authorization token. + */ + @minLength(1) + authTokenUrl: string; +} + +/** + * Description of a NotificationHub BaiduCredential. + */ +model BaiduCredential { + /** + * Description of a NotificationHub BaiduCredential. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: BaiduCredentialProperties; +} + +/** + * Description of a NotificationHub BaiduCredential. + */ +model BaiduCredentialProperties { + /** + * Gets or sets baidu Api Key. + */ + @minLength(1) + baiduApiKey: string; + + /** + * Gets or sets baidu Endpoint. + */ + @minLength(1) + baiduEndPoint: string; + + /** + * Gets or sets baidu Secret Key + */ + @minLength(1) + baiduSecretKey: string; +} + +/** + * Description of a NotificationHub BrowserCredential. + */ +model BrowserCredential { + /** + * Description of a NotificationHub BrowserCredential. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: BrowserCredentialProperties; +} + +/** + * Description of a NotificationHub BrowserCredential. + */ +model BrowserCredentialProperties { + /** + * Gets or sets web push subject. + */ + @minLength(1) + subject: string; + + /** + * Gets or sets VAPID private key. + */ + @minLength(1) + vapidPrivateKey: string; + + /** + * Gets or sets VAPID public key. + */ + @minLength(1) + vapidPublicKey: string; +} + +/** + * Description of a NotificationHub XiaomiCredential. + */ +model XiaomiCredential { + /** + * Description of a NotificationHub XiaomiCredentialProperties. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: XiaomiCredentialProperties; +} + +/** + * Description of a NotificationHub XiaomiCredentialProperties. + */ +model XiaomiCredentialProperties { + /** + * Gets or sets app secret. + */ + appSecret?: string; + + /** + * Gets or sets xiaomi service endpoint. + */ + endpoint?: string; +} + +/** + * Description of a NotificationHub FcmV1Credential. + */ +model FcmV1Credential { + /** + * Description of a NotificationHub FcmV1Credential. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties: FcmV1CredentialProperties; +} + +/** + * Description of a NotificationHub FcmV1Credential. + */ +model FcmV1CredentialProperties { + /** + * Gets or sets client email. + */ + @minLength(1) + clientEmail: string; + + /** + * Gets or sets private key. + */ + @minLength(1) + privateKey: string; + + /** + * Gets or sets project id. + */ + @minLength(1) + projectId: string; +} + +/** + * Patch parameter for NamespaceResource. + */ +model NotificationHubPatchParameters { + /** + * NotificationHub properties. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: NotificationHubProperties; + + /** + * The Sku description for a namespace + */ + sku?: Sku; + + /** + * Dictionary of + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Description of a NotificationHub Resource. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model DebugSendResponse extends ProxyResource { + /** + * Result of DebugSend operations. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: DebugSendResult; + + /** + * Deprecated - only for compatibility. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + location?: string; + + /** + * Deprecated - only for compatibility. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Result of DebugSend operations. + */ +model DebugSendResult { + /** + * Gets or sets successful send + */ + @visibility(Lifecycle.Read) + success?: int64; + + /** + * Gets or sets send failure + */ + @visibility(Lifecycle.Read) + failure?: int64; + + /** + * Gets or sets actual failure description + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + results?: RegistrationResult[]; +} + +/** + * Notification result for a single registration. + */ +model RegistrationResult { + /** + * PNS type. + */ + @visibility(Lifecycle.Read) + applicationPlatform?: string; + + /** + * PNS handle. + */ + @visibility(Lifecycle.Read) + pnsHandle?: string; + + /** + * Registration id. + */ + @visibility(Lifecycle.Read) + registrationId?: string; + + /** + * Notification outcome. + */ + @visibility(Lifecycle.Read) + outcome?: string; +} + +/** + * Response for the POST request that returns Namespace or NotificationHub access keys (connection strings). + */ +model ResourceListKeys { + /** + * Gets or sets primaryConnectionString of the AuthorizationRule. + */ + @visibility(Lifecycle.Read) + primaryConnectionString?: string; + + /** + * Gets or sets secondaryConnectionString of the created + * AuthorizationRule + */ + @visibility(Lifecycle.Read) + secondaryConnectionString?: string; + + /** + * Gets or sets primaryKey of the created AuthorizationRule. + */ + @visibility(Lifecycle.Read) + primaryKey?: string; + + /** + * Gets or sets secondaryKey of the created AuthorizationRule + */ + @visibility(Lifecycle.Read) + secondaryKey?: string; + + /** + * Gets or sets keyName of the created AuthorizationRule + */ + @visibility(Lifecycle.Read) + keyName?: string; +} + +/** + * Namespace / NotificationHub Regenerate Keys request. + */ +model PolicyKeyResource { + /** + * Type of Shared Access Policy Key (primary or secondary). + */ + policyKey: PolicyKeyType; +} + +/** + * Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs + * PNS credentials. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model PnsCredentialsResource extends ProxyResource { + /** + * Collection of Notification Hub or Notification Hub Namespace PNS credentials. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: PnsCredentials; + + /** + * Deprecated - only for compatibility. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + location?: string; + + /** + * Deprecated - only for compatibility. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Collection of Notification Hub or Notification Hub Namespace PNS credentials. + */ +model PnsCredentials { + /** + * Description of a NotificationHub AdmCredential. + */ + admCredential?: AdmCredential; + + /** + * Description of a NotificationHub ApnsCredential. + */ + apnsCredential?: ApnsCredential; + + /** + * Description of a NotificationHub BaiduCredential. + */ + baiduCredential?: BaiduCredential; + + /** + * Description of a NotificationHub BrowserCredential. + */ + browserCredential?: BrowserCredential; + + /** + * Description of a NotificationHub GcmCredential. + */ + gcmCredential?: GcmCredential; + + /** + * Description of a NotificationHub MpnsCredential. + */ + mpnsCredential?: MpnsCredential; + + /** + * Description of a NotificationHub WnsCredential. + */ + wnsCredential?: WnsCredential; + + /** + * Description of a NotificationHub XiaomiCredential. + */ + xiaomiCredential?: XiaomiCredential; + + /** + * Description of a NotificationHub FcmV1Credential. + */ + fcmV1Credential?: FcmV1Credential; +} + +/** + * Represents namespace properties. + */ +model NamespaceProperties { + /** + * Name of the Notification Hubs namespace. This is immutable property, set automatically + * by the service when the namespace is created. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Defines values for OperationProvisioningState. + */ + provisioningState?: OperationProvisioningState; + + /** + * Namespace status. + */ + status?: NamespaceStatus; + + /** + * Gets or sets whether or not the namespace is currently enabled. + */ + @visibility(Lifecycle.Read) + enabled?: boolean; + + /** + * Gets or sets whether or not the namespace is set as Critical. + */ + @visibility(Lifecycle.Read) + critical?: boolean; + + /** + * Namespace subscription id. + */ + @visibility(Lifecycle.Read) + subscriptionId?: string; + + /** + * Region. The value is always set to the same value as Namespace.Location, so we are deprecating + * this property. + */ + @visibility(Lifecycle.Read) + region?: string; + + /** + * Azure Insights Metrics id. + */ + @visibility(Lifecycle.Read) + metricId?: string; + + /** + * Time when the namespace was created. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdAt?: utcDateTime; + + /** + * Time when the namespace was updated. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + updatedAt?: utcDateTime; + + /** + * Defines values for NamespaceType. + */ + namespaceType?: NamespaceType; + + /** + * Allowed replication region + */ + replicationRegion?: ReplicationRegion; + + /** + * Namespace SKU name. + */ + zoneRedundancy?: ZoneRedundancyPreference = ZoneRedundancyPreference.Disabled; + + /** + * A collection of network authorization rules. + */ + networkAcls?: NetworkAcls; + + /** + * Collection of Notification Hub or Notification Hub Namespace PNS credentials. + */ + pnsCredentials?: PnsCredentials; + + /** + * Gets or sets endpoint you can use to perform NotificationHub + * operations. + */ + @visibility(Lifecycle.Read) + serviceBusEndpoint?: string; + + /** + * Private Endpoint Connections for namespace + */ + @visibility(Lifecycle.Read) + privateEndpointConnections?: PrivateEndpointConnectionResource[]; + + /** + * Gets or sets scaleUnit where the namespace gets created + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + scaleUnit?: string; + + /** + * Deprecated. + */ + dataCenter?: string; + + /** + * Type of public network access. + */ + publicNetworkAccess?: PublicNetworkAccess = PublicNetworkAccess.Enabled; +} + +/** + * A collection of network authorization rules. + */ +model NetworkAcls { + /** + * List of IP rules. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + ipRules?: IpRule[]; + + /** + * A default (public Internet) network authorization rule, which contains rights if no other network rule matches. + */ + publicNetworkRule?: PublicInternetAuthorizationRule; +} + +/** + * A network authorization rule that filters traffic based on IP address. + */ +model IpRule { + /** + * IP mask. + */ + @minLength(1) + ipMask: string; + + /** + * List of access rights. + */ + rights: AccessRights[]; +} + +/** + * A default (public Internet) network authorization rule, which contains rights if no other network rule matches. + */ +model PublicInternetAuthorizationRule { + /** + * List of access rights. + */ + rights: AccessRights[]; +} + +/** + * Private Endpoint Connection properties. + */ +model PrivateEndpointConnectionProperties { + /** + * State of Private Endpoint Connection. + */ + provisioningState?: PrivateEndpointConnectionProvisioningState; + + /** + * Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection. + */ + privateEndpoint?: RemotePrivateEndpointConnection; + + /** + * List of group ids. For Notification Hubs, it always contains a single "namespace" element. + */ + @visibility(Lifecycle.Read) + groupIds?: string[]; + + /** + * State of the Private Link Service connection. + */ + privateLinkServiceConnectionState?: RemotePrivateLinkServiceConnectionState; +} + +/** + * Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection. + */ +model RemotePrivateEndpointConnection { + /** + * ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace. + */ + @visibility(Lifecycle.Read) + id?: string; +} + +/** + * State of the Private Link Service connection. + */ +model RemotePrivateLinkServiceConnectionState { + /** + * State of Private Link Connection. + */ + status?: PrivateLinkConnectionStatus; + + /** + * Human-friendly description. + */ + @visibility(Lifecycle.Read) + description?: string; + + /** + * Human-friendly description of required actions. + */ + @visibility(Lifecycle.Read) + actionsRequired?: string; +} + +/** + * Patch parameter for NamespaceResource. + */ +model NamespacePatchParameters { + /** + * The Sku description for a namespace + */ + sku?: Sku; + + /** + * Represents namespace properties. + */ + properties?: NamespaceProperties; + + /** + * Dictionary of + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Optional operation properties. + */ +model OperationProperties { + /** + * Optional service specification used in Operations API. + */ + serviceSpecification?: ServiceSpecification; +} + +/** + * Optional service specification used in Operations API. + */ +model ServiceSpecification { + /** + * Log specifications. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #["name"]) + logSpecifications?: LogSpecification[]; + + /** + * Metric specification. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #["name", "unit"]) + metricSpecifications?: MetricSpecification[]; +} + +/** + * A single log category specification. + */ +model LogSpecification { + /** + * Name of the log category. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Display name of the log category. + */ + @visibility(Lifecycle.Read) + displayName?: string; + + /** + * Duration of data written to a single blob. + */ + @visibility(Lifecycle.Read) + blobDuration?: string; + + /** + * Category group for the log specification. + */ + categoryGroups?: string[]; +} + +/** + * A metric specification. + */ +model MetricSpecification { + /** + * Metric name / id. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * User-visible metric name. + */ + @visibility(Lifecycle.Read) + displayName?: string; + + /** + * Description of the metric. + */ + @visibility(Lifecycle.Read) + displayDescription?: string; + + /** + * Metric unit. + */ + @visibility(Lifecycle.Read) + unit?: string; + + /** + * Type of the aggregation (Average, Minimum, Maximum, Total or Count). + */ + @visibility(Lifecycle.Read) + aggregationType?: string; + + /** + * List of availabilities. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + availabilities?: Availability[]; + + /** + * List of supported time grain types. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + supportedTimeGrainTypes?: string[]; + + /** + * The matching regex pattern to be applied to the field pointed by the "metricsFilterPathSelector" flag in the ARM manifest. + */ + @visibility(Lifecycle.Read) + metricFilterPattern?: string; + + /** + * Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published. + */ + @visibility(Lifecycle.Read) + fillGapWithZero?: boolean; +} + +/** + * Represents metric availability (part of RP operation descriptions). + */ +model Availability { + /** + * Time grain of the availability. + */ + @visibility(Lifecycle.Read) + timeGrain?: string; + + /** + * Duration of the availability blob. + */ + @visibility(Lifecycle.Read) + blobDuration?: string; +} + +/** + * Represents properties of Private Link Resource. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model PrivateLinkResourceProperties { + /** + * A Group Id for Private Link. For Notification Hubs, it is always set to "namespace". + */ + @visibility(Lifecycle.Read) + groupId?: string; + + /** + * Required members. For Notification Hubs, it's always a collection with a single "namespace" item. + */ + @visibility(Lifecycle.Read) + requiredMembers?: string[]; + + /** + * Required DNS zone names. For Notification Hubs, it contains two CNames for Service Bus and Notification Hubs zones. + */ + @visibility(Lifecycle.Read) + requiredZoneNames?: string[]; +} + +/** + * Part of Private Endpoint description that stores information about a connection between Private Endpoint and Notification Hubs namespace. + * This is internal class, not visible to customers, and we use it only to discover the link identifier. + */ +model ConnectionDetails { + /** + * 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 + * does not analyze it. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * IP address of the Private Endpoint. This is not used by Notification Hubs. + */ + @visibility(Lifecycle.Read) + privateIpAddress?: string; + + /** + * Link identifier. This is a string representation of an integer that is also encoded in every IPv6 frame received by Front Door, + * and we use it to create implicit authorization rule that allows connection from the associated Private Endpoint. + */ + @visibility(Lifecycle.Read) + linkIdentifier?: string; + + /** + * Group name. Always "namespace" for Notification Hubs. + */ + @visibility(Lifecycle.Read) + groupId?: string; + + /** + * Member name. Always "namespace" for Notification Hubs. + */ + @visibility(Lifecycle.Read) + memberName?: string; +} + +/** + * Represents a connectivity information to Notification Hubs namespace. This is part of PrivateLinkService proxy that tell + * the Networking RP how to connect to the Notification Hubs namespace. + */ +model GroupConnectivityInformation { + /** + * Group id. Always set to "namespace". + */ + @visibility(Lifecycle.Read) + groupId?: string; + + /** + * Member name. Always set to "namespace". + */ + @visibility(Lifecycle.Read) + memberName?: string; + + /** + * List of customer-visible domain names that point to a Notification Hubs namespace. + */ + @visibility(Lifecycle.Read) + customerVisibleFqdns?: string[]; + + /** + * One of the domain name from the customer-visible names; this is used internally by Private Link service to make connection to Notification Hubs + * namespace. + */ + @visibility(Lifecycle.Read) + internalFqdn?: string; + + /** + * Not used by Notification Hubs. + */ + @visibility(Lifecycle.Read) + redirectMapId?: string; + + /** + * ARM region for Private Link Service. We use the region that contains the connected Notification Hubs namespace. + */ + @visibility(Lifecycle.Read) + privateLinkServiceArmRegion?: string; +} + +/** + * A customer-visible sub-resource of Private Endpoint, which describe the connection between Private Endpoint and Notification Hubs namespace. + */ +model PrivateLinkServiceConnection { + /** + * Name of the Private Link Service connection. + */ + name?: string; + + /** + * List of group ids. Always contains a single element - "namespace" - for Notification Hub Namespace. + */ + groupIds?: string[]; + + /** + * Request message provided by the user that created the connection. This is usually used when the connection requires manual approval. + */ + requestMessage?: string; +} diff --git a/specification/notificationhubs/Notificationhubs.Management/routes.tsp b/specification/notificationhubs/Notificationhubs.Management/routes.tsp new file mode 100644 index 000000000000..6b9c5bcd834f --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/routes.tsp @@ -0,0 +1,32 @@ +// FIXME: Operations in this file are not detected as a resource operation, please confirm the conversion result manually + +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.NotificationHubs; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface NamespacesOperationGroup { + /** + * 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. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @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") + @autoRoute + @action("checkNamespaceAvailability") + checkAvailability is ArmProviderActionSync< + Request = CheckAvailabilityParameters, + Response = CheckAvailabilityResult, + Scope = SubscriptionActionScope, + Parameters = {} + >; +} diff --git a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml new file mode 100644 index 000000000000..647758588df1 --- /dev/null +++ b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml @@ -0,0 +1,14 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/notificationhubs.json" + examples-dir: "{project-root}/examples" + arm-resource-flattening: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" From 891a4298b74a71e31b5b3ae41557f654b27a3790 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Tue, 29 Apr 2025 15:11:45 +0800 Subject: [PATCH 02/14] update --- .../PrivateLinkResource.tsp | 60 +- .../Notificationhubs.Management/models.tsp | 9 +- .../examples/NHOperationsList.json | 1000 ++--- .../AuthorizationRuleCreateOrUpdate.json | 44 +- .../Namespaces/AuthorizationRuleDelete.json | 10 +- .../Namespaces/AuthorizationRuleGet.json | 24 +- .../Namespaces/AuthorizationRuleList.json | 36 +- .../Namespaces/AuthorizationRuleListKeys.json | 16 +- .../AuthorizationRuleRegenerateKey.json | 22 +- .../Namespaces/CheckAvailability.json | 16 +- .../examples/Namespaces/CreateOrUpdate.json | 84 +- .../examples/Namespaces/Delete.json | 8 +- .../examples/Namespaces/Get.json | 36 +- .../Namespaces/ListByResourceGroup.json | 70 +- .../Namespaces/ListBySubscription.json | 66 +- .../Namespaces/PnsCredentialsGet.json | 12 +- .../PrivateEndpointConnectionDelete.json | 12 +- .../PrivateEndpointConnectionGet.json | 34 +- .../PrivateEndpointConnectionList.json | 30 +- .../PrivateEndpointConnectionUpdate.json | 58 +- .../Namespaces/PrivateLinkResourceGet.json | 16 +- .../Namespaces/PrivateLinkResourceList.json | 16 +- .../examples/Namespaces/Update.json | 54 +- .../AuthorizationRuleCreateOrUpdate.json | 44 +- .../AuthorizationRuleDelete.json | 12 +- .../AuthorizationRuleGet.json | 26 +- .../AuthorizationRuleList.json | 38 +- .../AuthorizationRuleListKeys.json | 18 +- .../AuthorizationRuleRegenerateKey.json | 22 +- .../NotificationHubs/CheckAvailability.json | 18 +- .../NotificationHubs/CreateOrUpdate.json | 34 +- .../examples/NotificationHubs/DebugSend.json | 26 +- .../examples/NotificationHubs/Delete.json | 10 +- .../examples/NotificationHubs/Get.json | 20 +- .../examples/NotificationHubs/List.json | 18 +- .../NotificationHubs/PnsCredentialsGet.json | 18 +- .../examples/NotificationHubs/Update.json | 28 +- .../2023-10-01-preview/notificationhubs.json | 3601 +++++++++-------- 38 files changed, 2921 insertions(+), 2745 deletions(-) diff --git a/specification/notificationhubs/Notificationhubs.Management/PrivateLinkResource.tsp b/specification/notificationhubs/Notificationhubs.Management/PrivateLinkResource.tsp index d07eb7625c4b..36b6927cf704 100644 --- a/specification/notificationhubs/Notificationhubs.Management/PrivateLinkResource.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/PrivateLinkResource.tsp @@ -5,46 +5,48 @@ import "@typespec/rest"; import "./models.tsp"; import "./NamespaceResource.tsp"; - using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; using TypeSpec.OpenAPI; - namespace Microsoft.NotificationHubs; /** -* A Private Link Arm Resource. -*/ + * A Private Link Arm Resource. + */ @parentResource(NamespaceResource) -model PrivateLinkResource is Azure.ResourceManager.ProxyResource { -...ResourceNameParameter +model PrivateLinkResource + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = PrivateLinkResource, + KeyName = "subResourceName", + SegmentName = "privateLinkResources", + NamePattern = "^namespace$" + >; } - - @armResourceOperations interface PrivateLinkResources { -/** -* 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. -* That'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") -#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" -getGroupId is ArmResourceRead; - - -/** -* 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. -* That'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") -#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" -listGroupIds is ArmResourceListByParent; - - + /** + * 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. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PrivateEndpointConnections_GetGroupId") + getGroupId is ArmResourceRead; + + /** + * 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. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PrivateEndpointConnections_ListGroupIds") + listGroupIds is ArmResourceListByParent; } - -@@doc(PrivateLinkResource.name, "Name of the Private Link sub-resource. The only supported sub-resource is "namespace"") -@@doc(PrivateLinkResource.properties, "Represents properties of Private Link Resource.") \ No newline at end of file +@@doc(PrivateLinkResource.name, + "Name of the Private Link sub-resource. The only supported sub-resource is \"namespace\"" +); +@@doc(PrivateLinkResource.properties, + "Represents properties of Private Link Resource." +); diff --git a/specification/notificationhubs/Notificationhubs.Management/models.tsp b/specification/notificationhubs/Notificationhubs.Management/models.tsp index 57638fc29b9b..278e892acc88 100644 --- a/specification/notificationhubs/Notificationhubs.Management/models.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/models.tsp @@ -256,7 +256,8 @@ model Sku { * Description of a CheckAvailability resource. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -model CheckAvailabilityResult extends ProxyResource { +model CheckAvailabilityResult + extends Azure.ResourceManager.Foundations.ProxyResource { /** * Gets or sets true if the name is available and can be used to * create new Namespace/NotificationHub. Otherwise false. @@ -804,7 +805,8 @@ model NotificationHubPatchParameters { * Description of a NotificationHub Resource. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -model DebugSendResponse extends ProxyResource { +model DebugSendResponse + extends Azure.ResourceManager.Foundations.ProxyResource { /** * Result of DebugSend operations. */ @@ -929,7 +931,8 @@ model PolicyKeyResource { * PNS credentials. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -model PnsCredentialsResource extends ProxyResource { +model PnsCredentialsResource + extends Azure.ResourceManager.Foundations.ProxyResource { /** * Collection of Notification Hub or Notification Hub Namespace PNS credentials. */ diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json index cf041029a00d..550243a9e11f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json @@ -9,72 +9,72 @@ { "name": "Microsoft.NotificationHubs/register/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Microsoft Azure Notification Hub", + "description": "Registers the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs", "operation": "Registers the NotificationHubs Provider", - "description": "Registers the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs" + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub" } }, { "name": "Microsoft.NotificationHubs/unregister/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Microsoft Azure Notification Hub", + "description": "Unregisters the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs", "operation": "Unregisters the NotificationHubs Provider", - "description": "Unregisters the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs" + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub" } }, { "name": "Microsoft.NotificationHubs/operations/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Microsoft Azure Notification Hub", + "description": "Returns a list of supported operations for Notification Hubs provider", "operation": "Notification Hubs provider operations", - "description": "Returns a list of supported operations for Notification Hubs provider" + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub" } }, { "name": "Microsoft.NotificationHubs/operationResults/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Microsoft Azure Notification Hub", + "description": "Returns operation results for Notification Hubs provider", "operation": "Operation results for Notification Hubs provider", - "description": "Returns operation results for Notification Hubs provider" + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub" } }, { "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/diagnosticSettings/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace", + "description": "Get Namespace diagnostic settings", "operation": "Read diagnostics setting", - "description": "Get Namespace diagnostic settings" + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" } }, { "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/diagnosticSettings/write", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace", + "description": "Create or Update Namespace diagnostic settings", "operation": "Write diagnostic settings", - "description": "Create or Update Namespace diagnostic settings" + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" } }, { "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/logDefinitions/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "The log definition of Namespace", + "description": "Gets the available logs for Namespace", "operation": "Read Namespace log definitions", - "description": "Gets the available logs for Namespace" + "provider": "Microsoft Azure Notification Hub", + "resource": "The log definition of Namespace" }, "properties": { "serviceSpecification": { "logSpecifications": [ { "name": "OperationalLogs", - "displayName": "Operational Logs", - "blobDuration": "PT1H" + "blobDuration": "PT1H", + "displayName": "Operational Logs" } ] } @@ -83,1088 +83,1088 @@ { "name": "Microsoft.NotificationHubs/CheckNamespaceAvailability/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace", + "description": "Checks whether or not a given Namespace resource name is available within the NotificationHub service.", "operation": "Check Namespace name availability.", - "description": "Checks whether or not a given Namespace resource name is available within the NotificationHub service." + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" } }, { "name": "Microsoft.NotificationHubs/Namespaces/write", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace", + "description": "Create a Namespace Resource and Update its properties. Tags and Capacity of the Namespace are the properties which can be updated.", "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." + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" } }, { "name": "Microsoft.NotificationHubs/Namespaces/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace", + "description": "Get the list of Namespace Resource Description", "operation": "Get Namespace Resource", - "description": "Get the list of Namespace Resource Description" + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" } }, { "name": "Microsoft.NotificationHubs/Namespaces/delete", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace", + "description": "Delete Namespace Resource", "operation": "Delete Namespace", - "description": "Delete Namespace Resource" + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" } }, { "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/write", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace Authorization Rule", + "description": "Create a Namespace level Authorization Rules and update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated.", "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." + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace Authorization Rule", + "description": "Get the list of Namespaces Authorization Rules description.", "operation": "Get Namespace Authorization Rules", - "description": "Get the list of Namespaces Authorization Rules description." + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace Authorization Rule", + "description": "Get the list of Namespaces Authorization Rules description.", "operation": "Get Namespace Authorization Rules", - "description": "Get the list of Namespaces Authorization Rules description." + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/delete", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace Authorization Rule", + "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted.", "operation": "Delete Namespace Authorization Rule", - "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted." + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/listkeys/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace Authorization Rule", + "description": "Get the Connection String to the Namespace", "operation": "Get Namespace Listkeys", - "description": "Get the Connection String to the Namespace" + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/regenerateKeys/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace Authorization Rule", + "description": "Namespace Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated", "operation": "Namespace Authorization Rule Regenerate Keys", - "description": "Namespace Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated" + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/CheckNotificationHubAvailability/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace", + "description": "Checks whether or not a given NotificationHub name is available inside a Namespace.", "operation": "Check NotificationHub name availability.", - "description": "Checks whether or not a given NotificationHub name is available inside a Namespace." + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/write", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub", + "description": "Create a Notification Hub and Update its properties. Its properties mainly include PNS Credentials. Authorization Rules and TTL", "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" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/vapidkeys/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub", + "description": "Get new pair of VAPID keys for a Notification Hub", "operation": "Get VAPID keys for a Notification Hub", - "description": "Get new pair of VAPID keys for a Notification Hub" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub", + "description": "Get list of Notification Hub Resource Descriptions", "operation": "Get Notification Hub", - "description": "Get list of Notification Hub Resource Descriptions" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/delete", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub", + "description": "Delete Notification Hub Resource", "operation": "Delete Notification Hub", - "description": "Delete Notification Hub Resource" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/write", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub 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.", "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." + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub Authorization Rule", + "description": "Get the list of Notification Hub Authorization Rules", "operation": "Get Notification Hub Authorization Rules", - "description": "Get the list of Notification Hub Authorization Rules" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub Authorization Rule", + "description": "Get the list of Notification Hub Authorization Rules", "operation": "Get Notification Hub Authorization Rules", - "description": "Get the list of Notification Hub Authorization Rules" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/delete", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub Authorization Rule", + "description": "Delete Notification Hub Authorization Rules", "operation": "Delete Notification Hub Authorization Rules", - "description": "Delete Notification Hub Authorization Rules" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/listkeys/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub Authorization Rule", + "description": "Get the Connection String to the Notification Hub", "operation": "Get Notification Hub Listkeys", - "description": "Get the Connection String to the Notification Hub" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/regenerateKeys/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub Authorization Rule", + "description": "Notification Hub Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated", "operation": "Notification Hub Authorization Rule Regenerate Keys", - "description": "Notification Hub Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/pnsCredentials/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub PnsCredential", + "description": "Get All Notification Hub PNS Credentials. This includes, WNS, MPNS, APNS, GCM, Baidu and FcmV1 credentials", "operation": "Get Notification Hub PNS Credentials", - "description": "Get All Notification Hub PNS Credentials. This includes, WNS, MPNS, APNS, GCM, Baidu and FcmV1 credentials" + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub PnsCredential" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/debugSend/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "NotificationHub", + "description": "Send a test push notification to 10 matched devices.", "operation": "Send a test push notification.", - "description": "Send a test push notification to 10 matched devices." + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub" } }, { "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/metricDefinitions/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace metrics", + "description": "Get list of Namespace metrics Resource Descriptions", "operation": "Get Namespace metrics", - "description": "Get list of Namespace metrics Resource Descriptions" + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace metrics" }, "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful registration operations (creations updates queries and deletions). ", + "displayName": "Registration Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "registration.create", - "displayName": "Registration Create Operations", - "displayDescription": "The count of all successful registration creations.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful registration creations.", + "displayName": "Registration Create Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "registration.update", - "displayName": "Registration Update Operations", - "displayDescription": "The count of all successful registration updates.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful registration updates.", + "displayName": "Registration Update Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "registration.get", - "displayName": "Registration Read Operations", - "displayDescription": "The count of all successful registration queries.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful registration queries.", + "displayName": "Registration Read Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "registration.delete", - "displayName": "Registration Delete Operations", - "displayDescription": "The count of all successful registration deletions.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful registration deletions.", + "displayName": "Registration Delete Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "incoming", - "displayName": "Incoming Messages", - "displayDescription": "The count of all successful send API calls. ", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful send API calls. ", + "displayName": "Incoming Messages", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "incoming.scheduled", - "displayName": "Scheduled Push Notifications Sent", - "displayDescription": "Scheduled Push Notifications Sent", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Scheduled Push Notifications Sent", + "displayName": "Scheduled Push Notifications Sent", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "incoming.scheduled.cancel", - "displayName": "Scheduled Push Notifications Cancelled", - "displayDescription": "Scheduled Push Notifications Cancelled", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Scheduled Push Notifications Cancelled", + "displayName": "Scheduled Push Notifications Cancelled", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "scheduled.pending", - "displayName": "Pending Scheduled Notifications", - "displayDescription": "Pending Scheduled Notifications", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Pending Scheduled Notifications", + "displayName": "Pending Scheduled Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "installation.all", - "displayName": "Installation Management Operations", - "displayDescription": "Installation Management Operations", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Installation Management Operations", + "displayName": "Installation Management Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "installation.get", - "displayName": "Get Installation Operations", - "displayDescription": "Get Installation Operations", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Get Installation Operations", + "displayName": "Get Installation Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "installation.upsert", - "displayName": "Create or Update Installation Operations", - "displayDescription": "Create or Update Installation Operations", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Create or Update Installation Operations", + "displayName": "Create or Update Installation Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "installation.patch", - "displayName": "Patch Installation Operations", - "displayDescription": "Patch Installation Operations", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Patch Installation Operations", + "displayName": "Patch Installation Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "installation.delete", - "displayName": "Delete Installation Operations", - "displayDescription": "Delete Installation Operations", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Delete Installation Operations", + "displayName": "Delete Installation Operations", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "outgoing.allpns.success", - "displayName": "Successful notifications", - "displayDescription": "The count of all successful notifications.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful notifications.", + "displayName": "Successful notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the PNS returned a bad payload error.", + "displayName": "Payload Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because there was a problem communicating with the PNS (excludes authentication problems).", + "displayName": "External Notification System Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the channel was invalid not associated with the correct app throttled or expired.", + "displayName": "Channel Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the channel/token/registrationId in the registration was expired or invalid.", + "displayName": "Bad or Expired Channel Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "outgoing.wns.success", - "displayName": "WNS Successful Notifications", - "displayDescription": "The count of all successful notifications.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful notifications.", + "displayName": "WNS Successful Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "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).", + "displayName": "WNS Authorization Errors (Invalid Credentials)", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was not recognized (WNS status: 404 not found).", + "displayName": "WNS Bad Channel Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the ChannelURI is expired (WNS status: 410 Gone).", + "displayName": "WNS Expired Channel Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because WNS is throttling this app (WNS status: 406 Not Acceptable).", + "displayName": "WNS Throttled Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "outgoing.wns.tokenproviderunreachable", - "displayName": "WNS Authorization Errors (Unreachable)", - "displayDescription": "Windows Live is not reachable.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Windows Live is not reachable.", + "displayName": "WNS Authorization Errors (Unreachable)", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The token provided to WNS is not valid (WNS status: 401 Unauthorized).", + "displayName": "WNS Authorization Errors (Invalid Token)", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "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.", + "displayName": "WNS Authorization Errors (Wrong Token)", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The format of the notification is invalid (WNS status: 400). Note that WNS does not reject all invalid payloads.", + "displayName": "WNS Invalid Notification Format", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The notification payload is too large (WNS status: 413).", + "displayName": "WNS Invalid Notification Size Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (WNS response header: X-WNS-NotificationStatus:channelThrottled).", + "displayName": "WNS Channel Throttled", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (WNS response header: X-WNS-DeviceConnectionStatus: disconnected).", + "displayName": "WNS Channel Disconnected", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (X-WNS-NotificationStatus: dropped but not X-WNS-DeviceConnectionStatus: disconnected).", + "displayName": "WNS Dropped Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Notification not delivered because of errors communicating with WNS.", + "displayName": "WNS Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Notification not delivered because of errors communicating with Windows Live invalid credentials or wrong token.", + "displayName": "WNS Authentication Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "outgoing.apns.success", - "displayName": "APNS Successful Notifications", - "displayDescription": "The count of all successful notifications.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful notifications.", + "displayName": "APNS Successful Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "displayName": "APNS Authorization Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the token is invalid (APNS status code: 8).", + "displayName": "APNS Bad Channel Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of token that were invalidated by the APNS feedback channel.", + "displayName": "APNS Expired Channel Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the payload was too large (APNS status code: 7).", + "displayName": "APNS Invalid Notification Size Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because of errors communicating with APNS.", + "displayName": "APNS Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "outgoing.gcm.success", - "displayName": "GCM Successful Notifications", - "displayDescription": "The count of all successful notifications.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful notifications.", + "displayName": "GCM Successful Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "displayName": "GCM Authorization Errors (Invalid Credentials)", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the registrationId in the registration was not recognized (GCM result: Invalid Registration).", + "displayName": "GCM Bad Channel Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the registrationId in the registration was expired (GCM result: NotRegistered).", + "displayName": "GCM Expired Channel Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because GCM throttled this app (GCM status code: 501-599 or result:Unavailable).", + "displayName": "GCM Throttled Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the payload was not formatted correctly (GCM result: InvalidDataKey or InvalidTtl).", + "displayName": "GCM Invalid Notification Format", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the payload was too large (GCM result: MessageTooBig).", + "displayName": "GCM Invalid Notification Size Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the registrationId in the registration is not associated to the current app (GCM result: InvalidPackageName).", + "displayName": "GCM Wrong Channel Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because of errors communicating with GCM.", + "displayName": "GCM Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "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).", + "displayName": "GCM Authentication Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "outgoing.mpns.success", - "displayName": "MPNS Successful Notifications", - "displayDescription": "The count of all successful notifications.", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of all successful notifications.", + "displayName": "MPNS Successful Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "displayName": "MPNS Invalid Credentials", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was not recognized (MPNS status: 404 not found).", + "displayName": "MPNS Bad Channel Error", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because MPNS is throttling this app (WNS MPNS: 406 Not Acceptable).", + "displayName": "MPNS Throttled Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the payload of the notification was too large.", + "displayName": "MPNS Invalid Notification Format", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was disconnected (MPNS status: 412 not found).", + "displayName": "MPNS Channel Disconnected", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that were dropped by MPNS (MPNS response header: X-NotificationStatus: QueueFull or Suppressed).", + "displayName": "MPNS Dropped Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because of errors communicating with MPNS.", + "displayName": "MPNS Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "displayName": "MPNS Authentication Errors", + "fillGapWithZero": true, + "unit": "Count" }, { "name": "notificationhub.pushes", - "displayName": "All Outgoing Notifications", - "displayDescription": "All outgoing notifications of the notification hub", - "unit": "Count", "aggregationType": "Total", "availabilities": [ { - "timeGrain": "PT1M", - "blobDuration": "P30D" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "All outgoing notifications of the notification hub", + "displayName": "All Outgoing Notifications", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Total incoming requests for a notification hub", + "displayName": "All Incoming Requests", + "fillGapWithZero": true, + "unit": "Count" }, { "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" + "blobDuration": "P30D", + "timeGrain": "PT1M" } ], - "fillGapWithZero": true + "displayDescription": "Total incoming failed requests for a notification hub", + "displayName": "All Incoming Failed Requests", + "fillGapWithZero": true, + "unit": "Count" } ] } @@ -1173,95 +1173,97 @@ { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionsApproval/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Namespace", + "description": "Approve Private Endpoint Connection", "operation": "Approve Private Endpoint Connection", - "description": "Approve Private Endpoint Connection" + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/validate/action", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection Proxy", + "description": "Validate Private Endpoint Connection Proxy", "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection Proxy", + "description": "Get Private Endpoint Connection Proxy", "operation": "Get Private Endpoint Connection Proxy", - "description": "Get Private Endpoint Connection Proxy" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/write", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection Proxy", + "description": "Create Private Endpoint Connection Proxy", "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/delete", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection Proxy", + "description": "Delete Private Endpoint Connection Proxy", "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/operationstatus/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection Proxy", + "description": "Get the status of an asynchronous private endpoint operation", "operation": "Private endpoint operation status", - "description": "Get the status of an asynchronous private endpoint operation" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection", + "description": "Get Private Endpoint Connection", "operation": "Get Private Endpoint Connection", - "description": "Get Private Endpoint Connection" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/write", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection", + "description": "Create or Update Private Endpoint Connection", "operation": "Create or Update Private Endpoint Connection", - "description": "Create or Update Private Endpoint Connection" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/delete", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection", + "description": "Removes Private Endpoint Connection", "operation": "Removes Private Endpoint Connection", - "description": "Removes Private Endpoint Connection" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection" } }, { "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/operationstatus/read", "display": { - "provider": "Microsoft Azure Notification Hub", - "resource": "Private Endpoint Connection", + "description": "Removes Private Endpoint Connection", "operation": "Removes Private Endpoint Connection", - "description": "Removes Private Endpoint Connection" + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection" } } ] } } - } -} + }, + "operationId": "Operations_List", + "title": "Operations_List" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json index 8725dfdd5af8..34abb1002041 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json @@ -1,11 +1,9 @@ { "parameters": { - "namespaceName": "nh-sdk-ns", - "authorizationRuleName": "sdk-AuthRules-1788", - "resourceGroupName": "5ktrial", "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "authorizationRuleName": "sdk-AuthRules-1788", "location": "West Europe", + "namespaceName": "nh-sdk-ns", "parameters": { "properties": { "rights": [ @@ -13,38 +11,42 @@ "Send" ] } - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", "properties": { + "createdTime": "2023-04-26T10:09:19.9675121+00:00", + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", "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" + ] + } } }, "201": { "body": { + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", "properties": { + "createdTime": "2023-04-26T10:09:19.9675121+00:00", + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", "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" + ] + } } } - } -} + }, + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "title": "Namespaces_CreateOrUpdateAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json index 14bc415c4a0d..ffc046b09c3c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json @@ -1,13 +1,15 @@ { "parameters": { - "namespaceName": "nh-sdk-ns", + "api-version": "2023-10-01-preview", "authorizationRuleName": "RootManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "Namespaces_DeleteAuthorizationRule", + "title": "Namespaces_DeleteAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json index ccdd755a75b4..94feec65bfab 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json @@ -1,27 +1,29 @@ { "parameters": { - "namespaceName": "nh-sdk-ns", + "api-version": "2023-10-01-preview", "authorizationRuleName": "RootManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", "properties": { + "createdTime": "2023-04-26T10:19:36.3315279+00:00", + "modifiedTime": "2023-04-26T10:19:36.3315279+00:00", "rights": [ "Manage", "Listen", "Send" - ], - "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" + ] + } } } - } -} + }, + "operationId": "Namespaces_GetAuthorizationRule", + "title": "Namespaces_GetAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json index 4aef36d53853..fb223bfab70d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json @@ -1,8 +1,8 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { @@ -10,34 +10,36 @@ "body": { "value": [ { + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", "properties": { + "createdTime": "2023-04-26T06:10:44.0407982+00:00", + "modifiedTime": "2023-04-26T06:10:44.0407987+00:00", "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" + ] + } }, { + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", "properties": { + "createdTime": "2023-04-26T10:09:19.9675121+00:00", + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", "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" + ] + } } ] } } - } -} + }, + "operationId": "Namespaces_ListAuthorizationRules", + "title": "Namespaces_ListAuthorizationRules" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json index 54077074157f..534679abb6a9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json @@ -1,20 +1,22 @@ { "parameters": { - "namespaceName": "nh-sdk-ns", + "api-version": "2023-10-01-preview", "authorizationRuleName": "RootManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "keyName": "RootManageSharedAccessKey", "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" + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "secondaryKey": "############################################" } } - } -} + }, + "operationId": "Namespaces_ListKeys", + "title": "Namespaces_ListKeys" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json index fa327b2ad97a..807b11e83c5e 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json @@ -1,23 +1,25 @@ { "parameters": { - "namespaceName": "nh-sdk-ns", - "authorizationRuleName": "RootManageSharedAccessKey", - "resourceGroupName": "5ktrial", "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "authorizationRuleName": "RootManageSharedAccessKey", + "namespaceName": "nh-sdk-ns", "parameters": { "policyKey": "PrimaryKey" - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "keyName": "RootManageSharedAccessKey", "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" + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=########################################", + "secondaryKey": "########################################" } } - } -} + }, + "operationId": "Namespaces_RegenerateKeys", + "title": "Namespaces_RegenerateKeys" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json index 363716efd3b3..1daafce83f1d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json @@ -1,19 +1,21 @@ { "parameters": { "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { "name": "sdk-Namespace-2924" - } + }, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { - "isAvailiable": true, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", "name": "sdk-Namespace-2924", - "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability" + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "isAvailiable": true } } - } -} + }, + "operationId": "Namespaces_CheckAvailability", + "title": "Namespaces_CheckAvailability" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json index 1994e380fe58..6c8274ac72b6 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json @@ -1,21 +1,10 @@ { "parameters": { - "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "namespaceName": "nh-sdk-ns", "parameters": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, "location": "South Central US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, "properties": { - "zoneRedundancy": "Enabled", "networkAcls": { "ipRules": [ { @@ -32,29 +21,34 @@ "Listen" ] } - } + }, + "zoneRedundancy": "Enabled" + }, + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" } - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", "location": "East US", - "sku": { - "name": "Standard" - }, "properties": { "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", + "critical": false, + "enabled": true, "namespaceType": "NotificationHub", - "publicNetworkAccess": "Enabled", - "zoneRedundancy": "Enabled", "networkAcls": { "ipRules": [ { @@ -72,12 +66,18 @@ ] } }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", - "privateEndpointConnections": [] + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:16:17.697+00:00", + "zoneRedundancy": "Enabled" + }, + "sku": { + "name": "Standard" }, - "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" @@ -86,14 +86,11 @@ }, "201": { "body": { + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", "location": "East US", - "sku": { - "name": "Standard" - }, "properties": { - "provisioningState": "InProgress", - "publicNetworkAccess": "Enabled", - "zoneRedundancy": "Enabled", "networkAcls": { "ipRules": [ { @@ -110,16 +107,21 @@ "Listen" ] } - } + }, + "provisioningState": "InProgress", + "publicNetworkAccess": "Enabled", + "zoneRedundancy": "Enabled" + }, + "sku": { + "name": "Standard" }, - "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" } } } - } -} + }, + "operationId": "Namespaces_CreateOrUpdate", + "title": "Namespaces_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json index bb09c5fa1001..7d7b81f54cc2 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json @@ -1,12 +1,14 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "Namespaces_Delete", + "title": "Namespaces_Delete" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json index 8725c9cd0280..eb3be7a9feae 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json @@ -1,28 +1,23 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", "location": "East US", - "sku": { - "name": "Standard" - }, "properties": { "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", + "critical": false, + "enabled": true, "namespaceType": "NotificationHub", - "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -40,17 +35,24 @@ ] } }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", - "privateEndpointConnections": [] + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" }, - "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" } } } - } -} + }, + "operationId": "Namespaces_Get", + "title": "Namespaces_Get" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json index 92a6479d5efb..d5b3f87399d3 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json @@ -1,29 +1,25 @@ { "parameters": { "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "resourceGroupName": "5ktrial" + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "nextLink": "https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces?api-version=2023-10-01-preview&$count=2&$skipToken=##################", "value": [ { + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", "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", + "critical": false, + "enabled": true, "namespaceType": "NotificationHub", - "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -41,30 +37,30 @@ ] } }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", "serviceBusEndpoint": "https://namespace-1.servicebus.windows.net:443/", - "privateEndpointConnections": [] + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", - "name": "namespace-2", - "type": "Microsoft.NotificationHubs/namespaces", "tags": {} }, { + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-2", "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", + "critical": false, + "enabled": true, "namespaceType": "NotificationHub", - "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [], "publicNetworkRule": { @@ -75,20 +71,26 @@ ] } }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", "serviceBusEndpoint": "https://namespace-2.servicebus.windows.net:443/", - "privateEndpointConnections": [] + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" }, - "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-10-01-preview&$count=2&$skipToken=##################" + ] } } - } -} + }, + "operationId": "Namespaces_List", + "title": "Namespaces_List" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json index da07e8ee5cf9..bbf0a2cbb46f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json @@ -6,23 +6,19 @@ "responses": { "200": { "body": { + "nextLink": "https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces?api-version=2023-10-01-preview&$count=2&$skipToken=##################", "value": [ { + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", "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", + "critical": false, + "enabled": true, "namespaceType": "NotificationHub", - "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -40,30 +36,30 @@ ] } }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", "serviceBusEndpoint": "https://namespace-1.servicebus.windows.net:443/", - "privateEndpointConnections": [] + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" }, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", - "name": "namespace-2", - "type": "Microsoft.NotificationHubs/namespaces", "tags": {} }, { + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-2", "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", + "critical": false, + "enabled": true, "namespaceType": "NotificationHub", - "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [], "publicNetworkRule": { @@ -74,20 +70,26 @@ ] } }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", "serviceBusEndpoint": "https://namespace-2.servicebus.windows.net:443/", - "privateEndpointConnections": [] + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Standard" }, - "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-10-01-preview&$count=2&$skipToken=##################" + ] } } - } -} + }, + "operationId": "Namespaces_ListAll", + "title": "Namespaces_ListAll" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json index 89994b651bea..6f51cf2e5d72 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json @@ -1,17 +1,17 @@ { "parameters": { - "resourceGroupName": "5ktrial", + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", "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-hub", "type": "Microsoft.NotificationHubs/namespaces/pnsCredentials", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", "properties": { "mpnsCredential": { "properties": { @@ -21,5 +21,7 @@ } } } - } -} + }, + "operationId": "Namespaces_GetPnsCredentials", + "title": "Namespaces_GetPnsCredentials" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json index 851ef04cf70c..05ead0fbedc9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "resourceGroupName": "5ktrial", "namespaceName": "nh-sdk-ns", - "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "202": { @@ -13,5 +13,7 @@ } }, "204": {} - } -} + }, + "operationId": "PrivateEndpointConnections_Delete", + "title": "PrivateEndpointConnections_Delete" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json index f0f757601b68..2ba945ff54c3 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json @@ -1,31 +1,33 @@ { "parameters": { "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "resourceGroupName": "5ktrial", "namespaceName": "nh-sdk-ns", - "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", + "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", "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" - }, "groupIds": [ "namespace" ], + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved" - } - }, - "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" + "description": "Auto-Approved", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } } } - } -} + }, + "operationId": "PrivateEndpointConnections_Get", + "title": "PrivateEndpointConnections_Get" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json index eaa1089566e8..96af6228d8ee 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json @@ -1,8 +1,8 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { @@ -10,25 +10,27 @@ "body": { "value": [ { + "name": "nh-sdk-ns.4fdb3a25-664d-42f1-bde2-f8c2f8e0b3a1", + "type": "Microsoft.NotificationHubs/Namespaces/PrivateEndpointConnections", + "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", "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" - }, "groupIds": [ "namespace" ], + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved" - } - }, - "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" + "description": "Auto-Approved", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } } ] } } - } -} + }, + "operationId": "PrivateEndpointConnections_List", + "title": "PrivateEndpointConnections_List" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json index 8f515d7fd81e..893c537d8031 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json @@ -1,10 +1,7 @@ { "parameters": { "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", - "resourceGroupName": "5ktrial", "namespaceName": "nh-sdk-ns", - "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", "parameters": { "properties": { "privateEndpoint": {}, @@ -12,48 +9,53 @@ "status": "Approved" } } - } + }, + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "type": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections", + "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", "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" - }, "groupIds": [ "namespace" ], + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, "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" + "actionsRequired": "None", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } } }, "201": { "body": { + "name": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "type": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections", + "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", "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" - }, "groupIds": [ "namespace" ], + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, "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" + "actionsRequired": "None", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } } } - } -} + }, + "operationId": "PrivateEndpointConnections_Update", + "title": "PrivateEndpointConnections_Update" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json index f2f1afe7dfe0..548112e43aeb 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json @@ -1,14 +1,17 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subResourceName": "namespace", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", "properties": { "groupId": "namespace", "requiredMembers": [ @@ -18,11 +21,10 @@ "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" + } } } - } -} + }, + "operationId": "PrivateEndpointConnections_GetGroupId", + "title": "PrivateEndpointConnections_GetGroupId" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json index 823a3a762d36..79eab8274770 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json @@ -1,8 +1,8 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { @@ -10,6 +10,9 @@ "body": { "value": [ { + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", "properties": { "groupId": "namespace", "requiredMembers": [ @@ -19,13 +22,12 @@ "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" + } } ] } } - } -} + }, + "operationId": "PrivateEndpointConnections_ListGroupIds", + "title": "PrivateEndpointConnections_ListGroupIds" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json index c467e7415cac..4d39e25a43bd 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json @@ -1,16 +1,8 @@ { "parameters": { - "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "namespaceName": "nh-sdk-ns", "parameters": { - "sku": { - "name": "Free" - }, - "tags": { - "tag1": "value3" - }, "properties": { "pnsCredentials": { "gcmCredential": { @@ -20,27 +12,30 @@ } } } + }, + "sku": { + "name": "Free" + }, + "tags": { + "tag1": "value3" } - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", "location": "East US", - "sku": { - "name": "Free" - }, "properties": { "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", + "critical": false, + "enabled": true, "namespaceType": "NotificationHub", - "publicNetworkAccess": "Enabled", "networkAcls": { "ipRules": [ { @@ -58,16 +53,23 @@ ] } }, + "privateEndpointConnections": [], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", - "privateEndpointConnections": [] + "status": "Created", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "updatedAt": "2023-04-26T06:10:44.03+00:00" + }, + "sku": { + "name": "Free" }, - "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" } } } - } -} + }, + "operationId": "Namespaces_Update", + "title": "Namespaces_Update" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json index cc4b121add2d..13b723994435 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json @@ -1,11 +1,9 @@ { "parameters": { - "resourceGroupName": "5ktrial", + "api-version": "2023-10-01-preview", + "authorizationRuleName": "MyManageSharedAccessKey", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "authorizationRuleName": "MyManageSharedAccessKey", - "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { "properties": { "rights": [ @@ -13,38 +11,42 @@ "Send" ] } - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/MyManageSharedAccessKey", "properties": { + "createdTime": "2023-04-26T12:24:40.5863818+00:00", + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", "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" + ] + } } }, "201": { "body": { + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/MyManageSharedAccessKey", "properties": { + "createdTime": "2023-04-26T12:24:40.5863818+00:00", + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", "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" + ] + } } } - } -} + }, + "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", + "title": "NotificationHubs_CreateOrUpdateAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json index b1fe51cad116..906893f12805 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json @@ -1,14 +1,16 @@ { "parameters": { - "resourceGroupName": "5ktrial", + "api-version": "2023-10-01-preview", + "authorizationRuleName": "DefaultListenSharedAccessSignature", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "authorizationRuleName": "DefaultListenSharedAccessSignature", - "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "NotificationHubs_DeleteAuthorizationRule", + "title": "NotificationHubs_DeleteAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json index 346b10db3b35..7d3fd0e43c78 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json @@ -1,27 +1,29 @@ { "parameters": { - "resourceGroupName": "5ktrial", + "api-version": "2023-10-01-preview", + "authorizationRuleName": "DefaultListenSharedAccessSignature", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "authorizationRuleName": "DefaultListenSharedAccessSignature", - "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "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/test/authorizationRules/DefaultListenSharedAccessSignature", "properties": { + "createdTime": "2023-04-26T12:24:40.5863818+00:00", + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", "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/DefaultListenSharedAccessSignature", - "name": "DefaultListenSharedAccessSignature", - "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + ] + } } } - } -} + }, + "operationId": "NotificationHubs_GetAuthorizationRule", + "title": "NotificationHubs_GetAuthorizationRule" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json index 1c3d0227ea7b..f31a2aafed30 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json @@ -1,9 +1,9 @@ { "parameters": { - "resourceGroupName": "5ktrial", + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { @@ -11,33 +11,35 @@ "body": { "value": [ { + "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/test/authorizationRules/DefaultListenSharedAccessSignature", "properties": { + "createdTime": "2023-04-26T10:43:00.5320365+00:00", + "modifiedTime": "2023-04-26T10:43:00.5320368+00:00", "rights": [ "Listen" - ], - "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" + ] + } }, { + "name": "DefaultFullSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/DefaultFullSharedAccessSignature", "properties": { + "createdTime": "2023-04-26T10:43:00.5320386+00:00", + "modifiedTime": "2023-04-26T10:43:00.5320387+00:00", "rights": [ "Manage", "Listen", "Send" - ], - "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" + ] + } } ] } } - } -} + }, + "operationId": "NotificationHubs_ListAuthorizationRules", + "title": "NotificationHubs_ListAuthorizationRules" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json index 945ee73c6717..ba7b46d5c605 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json @@ -1,21 +1,23 @@ { "parameters": { - "resourceGroupName": "5ktrial", + "api-version": "2023-10-01-preview", + "authorizationRuleName": "sdk-AuthRules-5800", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "authorizationRuleName": "sdk-AuthRules-5800", - "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "keyName": "sdk-AuthRules-5800", "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" + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryKey": "############################################" } } - } -} + }, + "operationId": "NotificationHubs_ListKeys", + "title": "NotificationHubs_ListKeys" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json index 59c2254620d9..ffc287c74197 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json @@ -1,24 +1,26 @@ { "parameters": { - "resourceGroupName": "5ktrial", + "api-version": "2023-10-01-preview", + "authorizationRuleName": "DefaultListenSharedAccessSignature", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "authorizationRuleName": "DefaultListenSharedAccessSignature", - "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { "policyKey": "PrimaryKey" - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "keyName": "DefaultListenSharedAccessSignature", "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" + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryKey": "############################################" } } - } -} + }, + "operationId": "NotificationHubs_RegenerateKeys", + "title": "NotificationHubs_RegenerateKeys" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json index 267065b318cc..dfe04ece18e2 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json @@ -1,22 +1,24 @@ { "parameters": { "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "namespaceName": "locp-newns", - "resourceGroupName": "5ktrial", "parameters": { "name": "sdktest", "location": "West Europe" - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { - "isAvailiable": true, - "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/sdktest", "name": "sdktest", - "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability" + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/sdktest", + "isAvailiable": true } } - } -} + }, + "operationId": "NotificationHubs_CheckNotificationHubAvailability", + "title": "NotificationHubs_CheckNotificationHubAvailability" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json index 3e777ea51f5b..6a9770bb1d4f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json @@ -1,27 +1,27 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", "notificationHubName": "nh-sdk-hub", - "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { "location": "eastus", "properties": {} - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", "location": "East US", "properties": { "name": "test", - "registrationTtl": "10675199.02:48:05.4775807", - "dailyMaxActiveDevices": 0 + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" }, - "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" @@ -30,20 +30,22 @@ }, "201": { "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", "location": "East US", "properties": { "name": "test", - "registrationTtl": "10675199.02:48:05.4775807", - "dailyMaxActiveDevices": 0 + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" }, - "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" } } } - } -} + }, + "operationId": "NotificationHubs_CreateOrUpdate", + "title": "NotificationHubs_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json index 28245c7c9379..8c3f88ec82d5 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json @@ -1,28 +1,30 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", "notificationHubName": "nh-sdk-hub", - "api-version": "2023-10-01-preview", - "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", "parameters": { "data": { "message": "Hello" } - } + }, + "resourceGroupName": "5ktrial", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/debugSend", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", "properties": { - "success": 0, "failure": 0, - "results": [] - }, - "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/debugSend" + "results": [], + "success": 0 + } } } - } -} + }, + "operationId": "NotificationHubs_DebugSend", + "title": "NotificationHubs_DebugSend" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json index b7342a54b921..c0e4ecd876c6 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json @@ -1,13 +1,15 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", "notificationHubName": "nh-sdk-hub", - "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "NotificationHubs_Delete", + "title": "NotificationHubs_Delete" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json index 8fa02c061ee3..fa469847253e 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json @@ -1,28 +1,30 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", - "resourceGroupName": "5ktrial", "notificationHubName": "nh-sdk-hub", - "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", "location": "East US", "properties": { "name": "test", - "registrationTtl": "10675199.02:48:05.4775807", - "dailyMaxActiveDevices": 0 + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" }, - "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" } } } - } -} + }, + "operationId": "NotificationHubs_Get", + "title": "NotificationHubs_Get" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json index 2cd95321da48..40df4ac106bc 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json @@ -1,8 +1,8 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "resourceGroupName": "5ktrial", - "api-version": "2023-10-01-preview", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { @@ -10,15 +10,15 @@ "body": { "value": [ { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", "location": "East US", "properties": { "name": "test", - "registrationTtl": "10675199.02:48:05.4775807", - "dailyMaxActiveDevices": 0 + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" }, - "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" @@ -27,5 +27,7 @@ ] } } - } -} + }, + "operationId": "NotificationHubs_List", + "title": "NotificationHubs_List" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json index 004dc01c435a..537891dba324 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json @@ -1,14 +1,17 @@ { "parameters": { - "resourceGroupName": "5ktrial", + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", "notificationHubName": "nh-sdk-hub", - "api-version": "2023-10-01-preview", + "resourceGroupName": "5ktrial", "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", "properties": { "gcmCredential": { "properties": { @@ -16,11 +19,10 @@ "googleApiKey": "###################################" } } - }, - "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/pnsCredentials" + } } } - } -} + }, + "operationId": "NotificationHubs_GetPnsCredentials", + "title": "NotificationHubs_GetPnsCredentials" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json index 804299805c7b..c96572d3ebf3 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json @@ -1,39 +1,41 @@ { "parameters": { + "api-version": "2023-10-01-preview", "namespaceName": "nh-sdk-ns", - "resourceGroupName": "sdkresourceGroup", "notificationHubName": "sdk-notificationHubs-8708", - "api-version": "2023-10-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": "###################################" } - } + }, + "registrationTtl": "10675199.02:48:05.4775807" } - } + }, + "resourceGroupName": "sdkresourceGroup", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" }, "responses": { "200": { "body": { + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", "location": "East US", "properties": { "name": "test", - "registrationTtl": "10675199.02:48:05.4775807", - "dailyMaxActiveDevices": 0 + "dailyMaxActiveDevices": 0, + "registrationTtl": "10675199.02:48:05.4775807" }, - "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" } } } - } -} + }, + "operationId": "NotificationHubs_Update", + "title": "NotificationHubs_Update" +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json index 6cd40f829564..1952f80fd9f1 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json @@ -2,44 +2,118 @@ "swagger": "2.0", "info": { "title": "NotificationHubs RP Client", + "version": "2023-10-01-preview", "description": "Microsoft Notification Hubs Resource Provider REST API.", - "version": "2023-10-01-preview" + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "NotificationHubResources" + }, + { + "name": "NamespaceResources" + }, + { + "name": "SharedAccessAuthorizationRuleResources" + }, + { + "name": "Namespaces" + }, + { + "name": "PrivateEndpointConnectionResources" + }, + { + "name": "PrivateLinkResources" + } + ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { - "post": { + "/providers/Microsoft.NotificationHubs/operations": { + "get": { + "operationId": "Operations_List", "tags": [ - "Hubs" - ], - "summary": "Checks the availability of the given notificationHub in a namespace.", - "operationId": "NotificationHubs_CheckNotificationHubAvailability", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "Operations" ], + "description": "List the operations for the provider", "parameters": [ { - "$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" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/NHOperationsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { + "post": { + "operationId": "Namespaces_CheckAvailability", + "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.", + "description": "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.", + "parameters": [ { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { + "name": "body", "in": "body", - "name": "parameters", - "description": "Request content.", + "description": "The request body", "required": true, "schema": { "$ref": "#/definitions/CheckAvailabilityParameters" @@ -48,657 +122,684 @@ ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/CheckAvailabilityResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_CheckNotificationHubAvailability": { - "$ref": "./examples/NotificationHubs/CheckAvailability.json" + "Namespaces_CheckAvailability": { + "$ref": "./examples/Namespaces/CheckAvailability.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { "get": { + "operationId": "Namespaces_ListAll", "tags": [ - "Hubs" - ], - "summary": "Gets the notification hub.", - "operationId": "NotificationHubs_Get", - "produces": [ - "application/json" + "NamespaceResources" ], + "description": "Lists all the available namespaces within the subscription.", "parameters": [ { - "$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" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/HubName" + "name": "$skipToken", + "in": "query", + "description": "Skip token for subsequent requests.", + "required": false, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "$top", + "in": "query", + "description": "Maximum number of results to return.", + "required": false, + "type": "integer", + "format": "int32", + "default": 100 } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationHubResource" + "$ref": "#/definitions/NamespaceResourceListResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_Get": { - "$ref": "./examples/NotificationHubs/Get.json" + "Namespaces_ListAll": { + "$ref": "./examples/Namespaces/ListBySubscription.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "operationId": "Namespaces_List", "tags": [ - "Hubs" - ], - "summary": "Creates/Update a NotificationHub in a namespace.", - "operationId": "NotificationHubs_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "NamespaceResources" ], + "description": "Lists the available namespaces within a resource group.", "parameters": [ { - "$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" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/HubName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "$skipToken", + "in": "query", + "description": "Skip token for subsequent requests.", + "required": false, + "type": "string" }, { - "in": "body", - "name": "parameters", - "description": "Request content.", - "required": true, - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } + "name": "$top", + "in": "query", + "description": "Maximum number of results to return.", + "required": false, + "type": "integer", + "format": "int32", + "default": 100 } ], "responses": { "200": { - "description": "Updated", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/NotificationHubResource" + "$ref": "#/definitions/NamespaceResourceListResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_CreateOrUpdate": { - "$ref": "./examples/NotificationHubs/CreateOrUpdate.json" + "Namespaces_List": { + "$ref": "./examples/Namespaces/ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "patch": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { + "get": { + "operationId": "Namespaces_Get", "tags": [ - "Hubs" - ], - "summary": "Patch a NotificationHub in a namespace.", - "operationId": "NotificationHubs_Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "NamespaceResources" ], + "description": "Returns the given namespace.", "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": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/HubName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "body", - "name": "parameters", - "description": "Request content.", + "name": "namespaceName", + "in": "path", + "description": "Namespace name", "required": true, - "schema": { - "$ref": "#/definitions/NotificationHubPatchParameters" - } + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationHubResource" + "$ref": "#/definitions/NamespaceResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_Update": { - "$ref": "./examples/NotificationHubs/Update.json" + "Namespaces_Get": { + "$ref": "./examples/Namespaces/Get.json" } } }, - "delete": { + "put": { + "operationId": "Namespaces_CreateOrUpdate", "tags": [ - "Hubs" - ], - "summary": "Deletes a notification hub associated with a namespace.", - "operationId": "NotificationHubs_Delete", - "produces": [ - "application/json" + "NamespaceResources" ], + "description": "Creates / Updates a Notification Hub namespace. This operation is idempotent.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/HubName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "resource", + "in": "body", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceResource" + } } ], "responses": { "200": { - "description": "Success" + "description": "Resource 'NamespaceResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } }, - "204": { - "description": "No Content" + "201": { + "description": "Resource 'NamespaceResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/NamespaceResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_Delete": { - "$ref": "./examples/NotificationHubs/Delete.json" + "Namespaces_CreateOrUpdate": { + "$ref": "./examples/Namespaces/CreateOrUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { - "get": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Namespaces_Update", "tags": [ - "Hubs" - ], - "summary": "Lists the notification hubs associated with a namespace.", - "operationId": "NotificationHubs_List", - "produces": [ - "application/json" + "NamespaceResources" ], + "description": "Patches the existing namespace.", "parameters": [ { - "$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" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "query", - "name": "$skipToken", - "description": "Continuation token.", - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "query", - "name": "$top", - "description": "Page size.", - "type": "integer", - "format": "int32", - "default": 100 + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "properties", + "in": "body", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/NamespacePatchParameters" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NotificationHubListResult" + "$ref": "#/definitions/NamespaceResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "NotificationHubs_List": { - "$ref": "./examples/NotificationHubs/List.json" + "Namespaces_Update": { + "$ref": "./examples/Namespaces/Update.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { - "post": { + }, + "delete": { + "operationId": "Namespaces_Delete", "tags": [ - "Hubs" - ], - "summary": "Test send a push notification.", - "operationId": "NotificationHubs_DebugSend", - "produces": [ - "application/json" + "NamespaceResources" ], + "description": "Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace.", "parameters": [ { - "$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" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/HubName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DebugSendResponse" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_DebugSend": { - "$ref": "./examples/NotificationHubs/DebugSend.json" + "Namespaces_Delete": { + "$ref": "./examples/Namespaces/Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { + "get": { + "operationId": "Namespaces_ListAuthorizationRules", "tags": [ - "Hubs" - ], - "summary": "Creates/Updates an authorization rule for a NotificationHub", - "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "Namespaces" ], + "description": "Gets the authorization rules for a namespace.", "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": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "body", - "name": "parameters", - "description": "Request content.", + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" } ], "responses": { "200": { - "description": "Updated", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResourceListResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_CreateOrUpdateAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json" + "Namespaces_ListAuthorizationRules": { + "$ref": "./examples/Namespaces/AuthorizationRuleList.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": { + "get": { + "operationId": "Namespaces_GetAuthorizationRule", "tags": [ - "Hubs" - ], - "summary": "Deletes a notificationHub authorization rule", - "operationId": "NotificationHubs_DeleteAuthorizationRule", - "produces": [ - "application/json" + "Namespaces" ], + "description": "Gets an authorization rule for a namespace by name.", "parameters": [ { - "$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" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/HubName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" } ], "responses": { "200": { - "description": "Success" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_DeleteAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleDelete.json" + "Namespaces_GetAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" } } }, - "get": { + "put": { + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", "tags": [ - "Hubs" - ], - "summary": "Gets an authorization rule for a NotificationHub by name.", - "operationId": "NotificationHubs_GetAuthorizationRule", - "produces": [ - "application/json" + "Namespaces" ], + "description": "Creates an authorization rule for a namespace", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/HubName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "resource", + "in": "body", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } } ], "responses": { "200": { - "description": "Success", + "description": "Resource 'SharedAccessAuthorizationRuleResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "Resource 'SharedAccessAuthorizationRuleResource' create operation succeeded", "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_GetAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" + "Namespaces_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleCreateOrUpdate.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { - "get": { + }, + "delete": { + "operationId": "Namespaces_DeleteAuthorizationRule", "tags": [ - "Hubs" - ], - "summary": "Gets the authorization rules for a NotificationHub.", - "operationId": "NotificationHubs_ListAuthorizationRules", - "produces": [ - "application/json" + "Namespaces" ], + "description": "Deletes a namespace authorization rule", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/HubName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "NotificationHubs_ListAuthorizationRules": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleList.json" + "Namespaces_DeleteAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleDelete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { "post": { + "operationId": "Namespaces_ListKeys", "tags": [ - "Hubs" - ], - "summary": "Gets the Primary and Secondary ConnectionStrings to the NotificationHub", - "operationId": "NotificationHubs_ListKeys", - "produces": [ - "application/json" + "Namespaces" ], + "description": "Gets the Primary and Secondary ConnectionStrings to the namespace.", "parameters": [ { - "$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" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/HubName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ResourceListKeys" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_ListKeys": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleListKeys.json" + "Namespaces_ListKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleListKeys.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { "post": { + "operationId": "Namespaces_RegenerateKeys", "tags": [ - "Hubs" - ], - "summary": "Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule", - "operationId": "NotificationHubs_RegenerateKeys", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "Namespaces" ], + "description": "Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule", "parameters": [ { - "$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" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/HubName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" }, { + "name": "body", "in": "body", - "name": "parameters", "description": "Request content.", "required": true, "schema": { @@ -708,135 +809,162 @@ ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ResourceListKeys" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_RegenerateKeys": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleRegenerateKey.json" + "Namespaces_RegenerateKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleRegenerateKey.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { "post": { + "operationId": "NotificationHubs_CheckNotificationHubAvailability", "tags": [ - "Hubs" - ], - "summary": "Lists the PNS Credentials associated with a notification hub.", - "operationId": "NotificationHubs_GetPnsCredentials", - "produces": [ - "application/json" + "NamespaceResources" ], + "description": "Checks the availability of the given notificationHub in a namespace.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/HubName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PnsCredentialsResource" + "$ref": "#/definitions/CheckAvailabilityResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "NotificationHubs_GetPnsCredentials": { - "$ref": "./examples/NotificationHubs/PnsCredentialsGet.json" + "NotificationHubs_CheckNotificationHubAvailability": { + "$ref": "./examples/NotificationHubs/CheckAvailability.json" } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { + "get": { + "operationId": "NotificationHubs_List", "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" - ], - "produces": [ - "application/json" + "NotificationHubResources" ], + "description": "Lists the notification hubs associated with a namespace.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "body", - "name": "parameters", - "description": "Request content.", + "name": "namespaceName", + "in": "path", + "description": "Namespace name", "required": true, - "schema": { - "$ref": "#/definitions/CheckAvailabilityParameters" - } + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "$skipToken", + "in": "query", + "description": "Continuation token.", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "Page size.", + "required": false, + "type": "integer", + "format": "int32", + "default": 100 } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CheckAvailabilityResult" + "$ref": "#/definitions/NotificationHubResourceListResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_CheckAvailability": { - "$ref": "./examples/Namespaces/CheckAvailability.json" + "NotificationHubs_List": { + "$ref": "./examples/NotificationHubs/List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { "get": { + "operationId": "NotificationHubs_Get", "tags": [ - "Namespaces" - ], - "summary": "Returns the given namespace.", - "operationId": "Namespaces_Get", - "produces": [ - "application/json" + "NotificationHubResources" ], + "description": "Gets the notification hub.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -844,45 +972,56 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "notificationHubName", + "in": "path", + "description": "Notification Hub name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NamespaceResource" + "$ref": "#/definitions/NotificationHubResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_Get": { - "$ref": "./examples/Namespaces/Get.json" + "NotificationHubs_Get": { + "$ref": "./examples/NotificationHubs/Get.json" } } }, "put": { + "operationId": "NotificationHubs_CreateOrUpdate", "tags": [ - "Namespaces" - ], - "summary": "Creates / Updates a Notification Hub namespace. This operation is idempotent.", - "operationId": "Namespaces_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "NotificationHubResources" ], + "description": "Creates/Update a NotificationHub in a namespace.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -890,64 +1029,71 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "notificationHubName", + "in": "path", + "description": "Notification Hub name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" }, { + "name": "resource", "in": "body", - "name": "parameters", "description": "Request content.", "required": true, "schema": { - "$ref": "#/definitions/NamespaceResource" + "$ref": "#/definitions/NotificationHubResource" } } ], "responses": { "200": { - "description": "Updated", + "description": "Resource 'NotificationHubResource' update operation succeeded", "schema": { - "$ref": "#/definitions/NamespaceResource" + "$ref": "#/definitions/NotificationHubResource" } }, "201": { - "description": "Created", + "description": "Resource 'NotificationHubResource' create operation succeeded", "schema": { - "$ref": "#/definitions/NamespaceResource" + "$ref": "#/definitions/NotificationHubResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_CreateOrUpdate": { - "$ref": "./examples/Namespaces/CreateOrUpdate.json" + "NotificationHubs_CreateOrUpdate": { + "$ref": "./examples/NotificationHubs/CreateOrUpdate.json" } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" } }, "patch": { + "operationId": "NotificationHubs_Update", "tags": [ - "Namespaces" - ], - "summary": "Patches the existing namespace.", - "operationId": "Namespaces_Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "NotificationHubResources" ], + "description": "Patch a NotificationHub in a namespace.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -955,51 +1101,65 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "notificationHubName", + "in": "path", + "description": "Notification Hub name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" }, { + "name": "properties", "in": "body", - "name": "parameters", "description": "Request content.", "required": true, "schema": { - "$ref": "#/definitions/NamespacePatchParameters" + "$ref": "#/definitions/NotificationHubPatchParameters" } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NamespaceResource" + "$ref": "#/definitions/NotificationHubResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_Update": { - "$ref": "./examples/Namespaces/Update.json" + "NotificationHubs_Update": { + "$ref": "./examples/NotificationHubs/Update.json" } } }, "delete": { + "operationId": "NotificationHubs_Delete", "tags": [ - "Namespaces" - ], - "summary": "Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace.", - "operationId": "Namespaces_Delete", - "produces": [ - "application/json" + "NotificationHubResources" ], + "description": "Deletes a notification hub associated with a namespace.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1007,101 +1167,116 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "notificationHubName", + "in": "path", + "description": "Notification Hub name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" } ], "responses": { "200": { - "description": "Success" + "description": "Resource deleted successfully." }, "204": { - "description": "No Content" + "description": "Resource does not exist." }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_Delete": { - "$ref": "./examples/Namespaces/Delete.json" + "NotificationHubs_Delete": { + "$ref": "./examples/NotificationHubs/Delete.json" } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { "get": { + "operationId": "NotificationHubs_ListAuthorizationRules", "tags": [ - "Namespaces" - ], - "summary": "Lists all the available namespaces within the subscription.", - "operationId": "Namespaces_ListAll", - "produces": [ - "application/json" + "SharedAccessAuthorizationRuleResources" ], + "description": "Gets the authorization rules for a NotificationHub.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "query", - "name": "$skipToken", - "description": "Skip token for subsequent requests.", - "type": "string" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "query", - "name": "$top", - "description": "Maximum number of results to return.", - "type": "integer", - "format": "int32", - "default": 100 + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "notificationHubName", + "in": "path", + "description": "The name of the NotificationHubResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NamespaceListResult" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResourceListResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Namespaces_ListAll": { - "$ref": "./examples/Namespaces/ListBySubscription.json" + "NotificationHubs_ListAuthorizationRules": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleList.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}": { "get": { + "operationId": "NotificationHubs_GetAuthorizationRule", "tags": [ - "Namespaces" - ], - "summary": "Lists the available namespaces within a resource group.", - "operationId": "Namespaces_List", - "produces": [ - "application/json" + "SharedAccessAuthorizationRuleResources" ], + "description": "Gets an authorization rule for a NotificationHub by name.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1109,62 +1284,60 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "query", - "name": "$skipToken", - "description": "Skip token for subsequent requests.", - "type": "string" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "in": "query", - "name": "$top", - "description": "Maximum number of results to return.", - "type": "integer", - "format": "int32", - "default": 100 + "name": "notificationHubName", + "in": "path", + "description": "The name of the NotificationHubResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/NamespaceListResult" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Namespaces_List": { - "$ref": "./examples/Namespaces/ListByResourceGroup.json" + "NotificationHubs_GetAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": { + }, "put": { + "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", "tags": [ - "Namespaces" - ], - "summary": "Creates an authorization rule for a namespace", - "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "SharedAccessAuthorizationRuleResources" ], + "description": "Creates/Updates an authorization rule for a NotificationHub", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1172,17 +1345,32 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "name": "notificationHubName", + "in": "path", + "description": "The name of the NotificationHubResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" }, { + "name": "resource", "in": "body", - "name": "parameters", "description": "Request content.", "required": true, "schema": { @@ -1192,86 +1380,40 @@ ], "responses": { "200": { - "description": "Updated", + "description": "Resource 'SharedAccessAuthorizationRuleResource' update operation succeeded", "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } }, "201": { - "description": "Created", + "description": "Resource 'SharedAccessAuthorizationRuleResource' create operation succeeded", "schema": { "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_CreateOrUpdateAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleCreateOrUpdate.json" + "NotificationHubs_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json" } } }, "delete": { + "operationId": "NotificationHubs_DeleteAuthorizationRule", "tags": [ - "Namespaces" - ], - "summary": "Deletes a namespace authorization rule", - "operationId": "Namespaces_DeleteAuthorizationRule", - "produces": [ - "application/json" + "SharedAccessAuthorizationRuleResources" ], + "description": "Deletes a notificationHub authorization rule", "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" - }, - "204": { - "description": "No Content" }, - "default": { - "description": "Error code with reason.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_DeleteAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleDelete.json" - } - } - }, - "get": { - "tags": [ - "Namespaces" - ], - "summary": "Gets an authorization rule for a namespace by name.", - "operationId": "Namespaces_GetAuthorizationRule", - "produces": [ - "application/json" - ], - "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1279,47 +1421,62 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "name": "notificationHubName", + "in": "path", + "description": "The name of the NotificationHubResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_GetAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" + "NotificationHubs_DeleteAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleDelete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "operationId": "NotificationHubs_ListKeys", "tags": [ - "Namespaces" - ], - "summary": "Gets the authorization rules for a namespace.", - "operationId": "Namespaces_ListAuthorizationRules", - "produces": [ - "application/json" + "SharedAccessAuthorizationRuleResources" ], + "description": "Gets the Primary and Secondary ConnectionStrings to the NotificationHub", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1327,48 +1484,62 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "notificationHubName", + "in": "path", + "description": "The name of the NotificationHubResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + "$ref": "#/definitions/ResourceListKeys" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Namespaces_ListAuthorizationRules": { - "$ref": "./examples/Namespaces/AuthorizationRuleList.json" + "NotificationHubs_ListKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleListKeys.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { "post": { + "operationId": "NotificationHubs_RegenerateKeys", "tags": [ - "Namespaces" - ], - "summary": "Gets the Primary and Secondary ConnectionStrings to the namespace.", - "operationId": "Namespaces_ListKeys", - "produces": [ - "application/json" + "SharedAccessAuthorizationRuleResources" ], + "description": "Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1376,107 +1547,130 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "The name of the NamespaceResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "name": "notificationHubName", + "in": "path", + "description": "The name of the NotificationHubResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "authorizationRuleName", + "in": "path", + "description": "The name of the SharedAccessAuthorizationRuleResource", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ResourceListKeys" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_ListKeys": { - "$ref": "./examples/Namespaces/AuthorizationRuleListKeys.json" + "NotificationHubs_RegenerateKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleRegenerateKey.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { "post": { + "operationId": "NotificationHubs_DebugSend", "tags": [ - "Namespaces" - ], - "summary": "Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule", - "operationId": "Namespaces_RegenerateKeys", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "NotificationHubResources" ], + "description": "Test send a push notification.", "parameters": [ { - "$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" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/AuthorizationRuleName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "in": "body", - "name": "parameters", - "description": "Request content.", + "name": "notificationHubName", + "in": "path", + "description": "Notification Hub name", "required": true, - "schema": { - "$ref": "#/definitions/PolicyKeyResource" - } + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ResourceListKeys" + "$ref": "#/definitions/DebugSendResponse" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_RegenerateKeys": { - "$ref": "./examples/Namespaces/AuthorizationRuleRegenerateKey.json" + "NotificationHubs_DebugSend": { + "$ref": "./examples/NotificationHubs/DebugSend.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { "post": { + "operationId": "NotificationHubs_GetPnsCredentials", "tags": [ - "Namespaces" - ], - "summary": "Lists the PNS credentials associated with a namespace.", - "operationId": "Namespaces_GetPnsCredentials", - "produces": [ - "application/json" + "NotificationHubResources" ], + "description": "Lists the PNS Credentials associated with a notification hub.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1484,207 +1678,216 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "notificationHubName", + "in": "path", + "description": "Notification Hub name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/PnsCredentialsResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Namespaces_GetPnsCredentials": { - "$ref": "./examples/Namespaces/PnsCredentialsGet.json" + "NotificationHubs_GetPnsCredentials": { + "$ref": "./examples/NotificationHubs/PnsCredentialsGet.json" } } } }, - "/providers/Microsoft.NotificationHubs/operations": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials": { + "post": { + "operationId": "Namespaces_GetPnsCredentials", "tags": [ - "Operations" - ], - "summary": "Lists all available Notification Hubs operations.", - "operationId": "Operations_List", - "produces": [ - "application/json" + "NamespaceResources" ], + "description": "Lists the PNS credentials associated with a namespace.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "#/definitions/PnsCredentialsResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/NHOperationsList.json" + "Namespaces_GetPnsCredentials": { + "$ref": "./examples/Namespaces/PnsCredentialsGet.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections": { + "get": { + "operationId": "PrivateEndpointConnections_List", "tags": [ - "PrivateLink" - ], - "summary": "Approves or rejects Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", - "operationId": "PrivateEndpointConnections_Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "PrivateEndpointConnectionResources" ], + "description": "Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace.\nThis is a public API that can be called directly by Notification Hubs users.", "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": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/PrivateEndpointConnectionName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "body", - "name": "parameters", - "description": "Description of the Private Endpoint Connection resource.", + "name": "namespaceName", + "in": "path", + "description": "Namespace name", "required": true, - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" } ], "responses": { "200": { - "description": "Updated", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" + "$ref": "#/definitions/PrivateEndpointConnectionResourceListResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "PrivateEndpointConnections_Update": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionUpdate.json" + "PrivateEndpointConnections_List": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionList.json" } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "operationId": "PrivateEndpointConnections_Get", "tags": [ - "PrivateLink" - ], - "summary": "Deletes the Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", - "operationId": "PrivateEndpointConnections_Delete", - "produces": [ - "application/json" + "PrivateEndpointConnectionResources" ], + "description": "Returns a Private Endpoint Connection with a given name.\nThis is a public API that can be called directly by Notification Hubs users.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/PrivateEndpointConnectionName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "privateEndpointConnectionName", + "in": "path", + "description": "Private Endpoint Connection Name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" } ], "responses": { - "202": { - "description": "Accepted", - "headers": { - "Location": { - "type": "string" - } + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" } }, - "204": { - "description": "No Content" - }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "PrivateEndpointConnections_Delete": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionDelete.json" + "PrivateEndpointConnections_Get": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionGet.json" } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" } }, - "get": { + "put": { + "operationId": "PrivateEndpointConnections_Update", "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.", - "operationId": "PrivateEndpointConnections_Get", - "produces": [ - "application/json" + "PrivateEndpointConnectionResources" ], + "description": "Approves or rejects Private Endpoint Connection.\nThis is a public API that can be called directly by Notification Hubs users.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1692,47 +1895,86 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "#/parameters/PrivateEndpointConnectionName" + "name": "privateEndpointConnectionName", + "in": "path", + "description": "Private Endpoint Connection Name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "resource", + "in": "body", + "description": "Description of the Private Endpoint Connection resource.", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } } ], "responses": { "200": { - "description": "Success", + "description": "Resource 'PrivateEndpointConnectionResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "201": { + "description": "Resource 'PrivateEndpointConnectionResource' create operation succeeded", "schema": { "$ref": "#/definitions/PrivateEndpointConnectionResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "PrivateEndpointConnections_Get": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionGet.json" + "PrivateEndpointConnections_Update": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections": { - "get": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "PrivateEndpointConnections_Delete", "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.", - "operationId": "PrivateEndpointConnections_List", - "produces": [ - "application/json" + "PrivateEndpointConnectionResources" ], + "description": "Deletes the Private Endpoint Connection.\nThis is a public API that can be called directly by Notification Hubs users.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1740,103 +1982,125 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "privateEndpointConnectionName", + "in": "path", + "description": "Private Endpoint Connection Name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" } ], "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResourceListResult" + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": null - }, "x-ms-examples": { - "PrivateEndpointConnections_List": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionList.json" + "PrivateEndpointConnections_Delete": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionDelete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources": { "get": { + "operationId": "PrivateEndpointConnections_ListGroupIds", "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.", - "operationId": "PrivateEndpointConnections_GetGroupId", - "produces": [ - "application/json" + "PrivateLinkResources" ], + "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.\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": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/NamespaceName" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { + "name": "namespaceName", "in": "path", - "name": "subResourceName", - "description": "Name of the Private Link sub-resource. The only supported sub-resource is \"namespace\"", + "description": "Namespace name", "required": true, "type": "string", - "pattern": "^namespace$" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PrivateLinkResource" + "$ref": "#/definitions/PrivateLinkResourceListResult" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "PrivateEndpointConnections_GetGroupId": { - "$ref": "./examples/Namespaces/PrivateLinkResourceGet.json" + "PrivateEndpointConnections_ListGroupIds": { + "$ref": "./examples/Namespaces/PrivateLinkResourceList.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}": { "get": { + "operationId": "PrivateEndpointConnections_GetGroupId", "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.", - "operationId": "PrivateEndpointConnections_ListGroupIds", - "produces": [ - "application/json" + "PrivateLinkResources" ], + "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.\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": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, @@ -1844,33 +2108,41 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NamespaceName" + "name": "namespaceName", + "in": "path", + "description": "Namespace name", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "subResourceName", + "in": "path", + "description": "Name of the Private Link sub-resource. The only supported sub-resource is \"namespace\"", + "required": true, + "type": "string", + "pattern": "^namespace$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PrivateLinkResourceListResult" + "$ref": "#/definitions/PrivateLinkResource" } }, "default": { - "description": "Error code with reason.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "itemName": "value", - "nextLinkName": null - }, "x-ms-examples": { - "PrivateEndpointConnections_ListGroupIds": { - "$ref": "./examples/Namespaces/PrivateLinkResourceList.json" + "PrivateEndpointConnections_GetGroupId": { + "$ref": "./examples/Namespaces/PrivateLinkResourceGet.json" } } } @@ -1878,382 +2150,335 @@ }, "definitions": { "AccessRights": { + "type": "string", "description": "Defines values for AccessRights.", "enum": [ "Manage", "Send", "Listen" ], - "type": "string", "x-ms-enum": { "name": "AccessRights", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Manage", + "value": "Manage" + }, + { + "name": "Send", + "value": "Send" + }, + { + "name": "Listen", + "value": "Listen" + } + ] } }, "AdmCredential": { - "description": "Description of a NotificationHub AdmCredential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub AdmCredential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AdmCredentialProperties" + "$ref": "#/definitions/AdmCredentialProperties", + "description": "Description of a NotificationHub AdmCredential.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "AdmCredentialProperties": { - "description": "Description of a NotificationHub AdmCredential.", - "required": [ - "authTokenUrl", - "clientId", - "clientSecret" - ], "type": "object", + "description": "Description of a NotificationHub AdmCredential.", "properties": { "clientId": { - "description": "Gets or sets the client identifier.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets the client identifier.", + "minLength": 1 }, "clientSecret": { - "description": "Gets or sets the credential secret access key.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets the credential secret access key.", + "minLength": 1 }, "authTokenUrl": { - "description": "Gets or sets the URL of the authorization token.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets the URL of the authorization token.", + "minLength": 1 } - } + }, + "required": [ + "clientId", + "clientSecret", + "authTokenUrl" + ] }, "ApnsCredential": { - "description": "Description of a NotificationHub ApnsCredential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub ApnsCredential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApnsCredentialProperties" + "$ref": "#/definitions/ApnsCredentialProperties", + "description": "Description of a NotificationHub ApnsCredential.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "ApnsCredentialProperties": { - "description": "Description of a NotificationHub ApnsCredential.", - "required": [ - "endpoint" - ], "type": "object", + "description": "Description of a NotificationHub ApnsCredential.", "properties": { "apnsCertificate": { - "description": "Gets or sets the APNS certificate.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the APNS certificate." }, "certificateKey": { - "description": "Gets or sets the certificate key.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the certificate key." }, "endpoint": { - "description": "Gets or sets the endpoint of this credential.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets the endpoint of this credential.", + "minLength": 1 }, "thumbprint": { - "description": "Gets or sets the APNS certificate Thumbprint", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the APNS certificate Thumbprint" }, "keyId": { - "description": "Gets or sets a 10-character key identifier (kid) key, obtained from\r\nyour developer account", "type": "string", - "x-ms-secret": true + "description": "Gets or sets a 10-character key identifier (kid) key, obtained from\nyour developer account" }, "appName": { - "description": "Gets or sets the name of the application", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the name of the application" }, "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 + "description": "Gets or sets the issuer (iss) registered claim key, whose value is\nyour 10-character Team ID, obtained from your developer account" }, "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 + "description": "Gets or sets provider Authentication Token, obtained through your\ndeveloper account" } - } + }, + "required": [ + "endpoint" + ] }, "BaiduCredential": { - "description": "Description of a NotificationHub BaiduCredential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub BaiduCredential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BaiduCredentialProperties" + "$ref": "#/definitions/BaiduCredentialProperties", + "description": "Description of a NotificationHub BaiduCredential.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "BaiduCredentialProperties": { - "description": "Description of a NotificationHub BaiduCredential.", - "required": [ - "baiduApiKey", - "baiduEndPoint", - "baiduSecretKey" - ], "type": "object", + "description": "Description of a NotificationHub BaiduCredential.", "properties": { "baiduApiKey": { - "description": "Gets or sets baidu Api Key.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets baidu Api Key.", + "minLength": 1 }, "baiduEndPoint": { - "description": "Gets or sets baidu Endpoint.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets baidu Endpoint.", + "minLength": 1 }, "baiduSecretKey": { - "description": "Gets or sets baidu Secret Key", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets baidu Secret Key", + "minLength": 1 } - } + }, + "required": [ + "baiduApiKey", + "baiduEndPoint", + "baiduSecretKey" + ] }, "BrowserCredential": { - "description": "Description of a NotificationHub BrowserCredential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub BrowserCredential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BrowserCredentialProperties" + "$ref": "#/definitions/BrowserCredentialProperties", + "description": "Description of a NotificationHub BrowserCredential.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "BrowserCredentialProperties": { - "description": "Description of a NotificationHub BrowserCredential.", - "required": [ - "subject", - "vapidPrivateKey", - "vapidPublicKey" - ], "type": "object", + "description": "Description of a NotificationHub BrowserCredential.", "properties": { "subject": { - "description": "Gets or sets web push subject.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets web push subject.", + "minLength": 1 }, "vapidPrivateKey": { - "description": "Gets or sets VAPID private key.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets VAPID private key.", + "minLength": 1 }, "vapidPublicKey": { - "description": "Gets or sets VAPID public key.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets VAPID public key.", + "minLength": 1 } - } + }, + "required": [ + "subject", + "vapidPrivateKey", + "vapidPublicKey" + ] }, "CheckAvailabilityParameters": { - "description": "Parameters supplied to the Check Name Availability for Namespace and\r\nNotificationHubs.", - "required": [ - "name" - ], "type": "object", + "description": "Parameters supplied to the Check Name Availability for Namespace and\nNotificationHubs.", "properties": { "id": { - "description": "Gets resource Id", "type": "string", + "description": "Gets resource Id", "readOnly": true }, "name": { + "type": "string", "description": "Gets or sets resource name", - "minLength": 1, - "type": "string" + "minLength": 1 }, "type": { - "description": "Gets resource type", "type": "string", + "description": "Gets resource type", "readOnly": true }, "location": { - "description": "Gets or sets resource location", - "type": "string" + "type": "string", + "description": "Gets or sets resource location" }, "tags": { - "description": "Gets or sets resource tags", "type": "object", + "description": "Gets or sets resource tags", "additionalProperties": { "type": "string" } }, "isAvailiable": { - "description": "Not used and deprecated since API version 2023-01-01-preview", - "type": "boolean" + "type": "boolean", + "description": "Not used and deprecated since API version 2023-01-01-preview" }, "sku": { - "$ref": "#/definitions/Sku" + "$ref": "#/definitions/Sku", + "description": "The Sku description for a namespace" } - } + }, + "required": [ + "name" + ] }, "CheckAvailabilityResult": { - "description": "Description of a CheckAvailability resource.", "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], + "description": "Description of a CheckAvailability resource.", "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" + "type": "boolean", + "description": "Gets or sets true if the name is available and can be used to\ncreate new Namespace/NotificationHub. Otherwise false." }, "location": { - "description": "Deprecated - only for compatibility.", "type": "string", + "description": "Deprecated - only for compatibility.", "x-ms-mutability": [ - "create", - "read" + "read", + "create" ] }, "tags": { - "description": "Deprecated - only for compatibility.", "type": "object", + "description": "Deprecated - only for compatibility.", "additionalProperties": { "type": "string" } }, - "sku": { - "$ref": "#/definitions/Sku" - } - } - }, - "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 + "sku": { + "$ref": "#/definitions/Sku", + "description": "The Sku description for a namespace" } - } - }, - "DebugSendResponse": { - "description": "Description of a NotificationHub Resource.", - "type": "object", + }, "allOf": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } - ], + ] + }, + "DebugSendResponse": { + "type": "object", + "description": "Description of a NotificationHub Resource.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DebugSendResult" + "$ref": "#/definitions/DebugSendResult", + "description": "Result of DebugSend operations.", + "x-ms-client-flatten": true }, "location": { - "description": "Deprecated - only for compatibility.", "type": "string", + "description": "Deprecated - only for compatibility.", "x-ms-mutability": [ - "create", - "read" + "read", + "create" ] }, "tags": { - "description": "Deprecated - only for compatibility.", "type": "object", + "description": "Deprecated - only for compatibility.", "additionalProperties": { "type": "string" } } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] }, "DebugSendResult": { - "description": "Result of DebugSend operations.", "type": "object", + "description": "Result of DebugSend operations.", "properties": { "success": { + "type": "integer", "format": "int64", "description": "Gets or sets successful send", - "type": "integer", "readOnly": true }, "failure": { + "type": "integer", "format": "int64", "description": "Gets or sets send failure", - "type": "integer", "readOnly": true }, "results": { - "description": "Gets or sets actual failure description", "type": "array", + "description": "Gets or sets actual failure description", "items": { "$ref": "#/definitions/RegistrationResult" }, @@ -2263,304 +2488,154 @@ } }, "FcmV1Credential": { - "description": "Description of a NotificationHub FcmV1Credential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub FcmV1Credential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/FcmV1CredentialProperties" + "$ref": "#/definitions/FcmV1CredentialProperties", + "description": "Description of a NotificationHub FcmV1Credential.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "FcmV1CredentialProperties": { - "description": "Description of a NotificationHub FcmV1Credential.", - "required": [ - "clientEmail", - "privateKey", - "projectId" - ], "type": "object", + "description": "Description of a NotificationHub FcmV1Credential.", "properties": { "clientEmail": { - "description": "Gets or sets client email.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets client email.", + "minLength": 1 }, "privateKey": { - "description": "Gets or sets private key.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets private key.", + "minLength": 1 }, "projectId": { - "description": "Gets or sets project id.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets project id.", + "minLength": 1 } - } + }, + "required": [ + "clientEmail", + "privateKey", + "projectId" + ] }, "GcmCredential": { - "description": "Description of a NotificationHub GcmCredential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub GcmCredential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GcmCredentialProperties" + "$ref": "#/definitions/GcmCredentialProperties", + "description": "Description of a NotificationHub GcmCredential.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "GcmCredentialProperties": { - "description": "Description of a NotificationHub GcmCredential.", - "required": [ - "googleApiKey" - ], "type": "object", + "description": "Description of a NotificationHub GcmCredential.", "properties": { "gcmEndpoint": { - "description": "Gets or sets the GCM endpoint.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the GCM endpoint." }, "googleApiKey": { - "description": "Gets or sets the Google API key.", - "minLength": 1, - "type": "string", - "x-ms-secret": true - } - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - }, - "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 + "description": "Gets or sets the Google API key.", + "minLength": 1 } - } + }, + "required": [ + "googleApiKey" + ] }, "IpRule": { - "description": "A network authorization rule that filters traffic based on IP address.", - "required": [ - "ipMask", - "rights" - ], "type": "object", + "description": "A network authorization rule that filters traffic based on IP address.", "properties": { "ipMask": { + "type": "string", "description": "IP mask.", - "minLength": 1, - "type": "string" + "minLength": 1 }, "rights": { - "description": "List of access rights.", "type": "array", + "description": "List of access rights.", "items": { "$ref": "#/definitions/AccessRights" } } - } - }, - "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 - }, - "categoryGroups": { - "description": "Category group for the log specification.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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": [] - }, - "supportedTimeGrainTypes": { - "description": "List of supported time grain types.", - "type": "array", - "items": { - "type": "string" - }, - "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 - } - } + }, + "required": [ + "ipMask", + "rights" + ] }, "MpnsCredential": { - "description": "Description of a NotificationHub MpnsCredential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub MpnsCredential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MpnsCredentialProperties" + "$ref": "#/definitions/MpnsCredentialProperties", + "description": "Description of a NotificationHub MpnsCredential.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "MpnsCredentialProperties": { - "description": "Description of a NotificationHub MpnsCredential.", - "required": [ - "certificateKey", - "mpnsCertificate", - "thumbprint" - ], "type": "object", + "description": "Description of a NotificationHub MpnsCredential.", "properties": { "mpnsCertificate": { - "description": "Gets or sets the MPNS certificate.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets the MPNS certificate.", + "minLength": 1 }, "certificateKey": { - "description": "Gets or sets the certificate key for this credential.", - "minLength": 1, "type": "string", - "x-ms-secret": true + "description": "Gets or sets the certificate key for this credential.", + "minLength": 1 }, "thumbprint": { - "description": "Gets or sets the MPNS certificate Thumbprint", - "minLength": 1, - "type": "string", - "x-ms-secret": true - } - } - }, - "NamespaceListResult": { - "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/NamespaceResource" - }, - "readOnly": true - }, - "nextLink": { - "description": "Gets or sets link to the next set of results.", "type": "string", - "readOnly": true + "description": "Gets or sets the MPNS certificate Thumbprint", + "minLength": 1 } - } + }, + "required": [ + "mpnsCertificate", + "certificateKey", + "thumbprint" + ] }, "NamespacePatchParameters": { - "description": "Patch parameter for NamespaceResource.", "type": "object", + "description": "Patch parameter for NamespaceResource.", "properties": { "sku": { - "$ref": "#/definitions/Sku" + "$ref": "#/definitions/Sku", + "description": "The Sku description for a namespace" }, "properties": { - "$ref": "#/definitions/NamespaceProperties" + "$ref": "#/definitions/NamespaceProperties", + "description": "Represents namespace properties." }, "tags": { "type": "object", + "description": "Dictionary of ", "additionalProperties": { "type": "string" } @@ -2568,125 +2643,194 @@ } }, "NamespaceProperties": { - "description": "Represents namespace properties.", "type": "object", + "description": "Represents namespace properties.", "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", + "description": "Name of the Notification Hubs namespace. This is immutable property, set automatically\nby the service when the namespace is created.", "readOnly": true }, "provisioningState": { - "$ref": "#/definitions/OperationProvisioningState" + "$ref": "#/definitions/OperationProvisioningState", + "description": "Defines values for OperationProvisioningState." }, "status": { - "$ref": "#/definitions/NamespaceStatus" + "$ref": "#/definitions/NamespaceStatus", + "description": "Namespace status." }, "enabled": { - "description": "Gets or sets whether or not the namespace is currently enabled.", "type": "boolean", + "description": "Gets or sets whether or not the namespace is currently enabled.", "readOnly": true }, "critical": { - "description": "Gets or sets whether or not the namespace is set as Critical.", "type": "boolean", + "description": "Gets or sets whether or not the namespace is set as Critical.", "readOnly": true }, "subscriptionId": { - "description": "Namespace subscription id.", "type": "string", + "description": "Namespace subscription id.", "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", + "description": "Region. The value is always set to the same value as Namespace.Location, so we are deprecating\nthis property.", "readOnly": true }, "metricId": { - "description": "Azure Insights Metrics id.", "type": "string", + "description": "Azure Insights Metrics id.", "readOnly": true }, "createdAt": { + "type": "string", "format": "date-time", "description": "Time when the namespace was created.", - "type": "string", "readOnly": true }, "updatedAt": { + "type": "string", "format": "date-time", "description": "Time when the namespace was updated.", - "type": "string", "readOnly": true }, "namespaceType": { - "$ref": "#/definitions/NamespaceType" + "$ref": "#/definitions/NamespaceType", + "description": "Defines values for NamespaceType." }, "replicationRegion": { - "$ref": "#/definitions/ReplicationRegion" + "$ref": "#/definitions/ReplicationRegion", + "description": "Allowed replication region" }, "zoneRedundancy": { - "$ref": "#/definitions/ZoneRedundancyPreference" + "type": "string", + "description": "Namespace SKU name.", + "default": "Disabled", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "ZoneRedundancyPreference", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled" + } + ] + } }, "networkAcls": { - "$ref": "#/definitions/NetworkAcls" + "$ref": "#/definitions/NetworkAcls", + "description": "A collection of network authorization rules." }, "pnsCredentials": { - "$ref": "#/definitions/PnsCredentials" + "$ref": "#/definitions/PnsCredentials", + "description": "Collection of Notification Hub or Notification Hub Namespace PNS credentials." }, "serviceBusEndpoint": { - "description": "Gets or sets endpoint you can use to perform NotificationHub\r\noperations.", "type": "string", + "description": "Gets or sets endpoint you can use to perform NotificationHub\noperations.", "readOnly": true }, "privateEndpointConnections": { - "description": "Private Endpoint Connections for namespace", "type": "array", + "description": "Private Endpoint Connections for namespace", "items": { "$ref": "#/definitions/PrivateEndpointConnectionResource" }, "readOnly": true }, "scaleUnit": { - "description": "Gets or sets scaleUnit where the namespace gets created", "type": "string", + "description": "Gets or sets scaleUnit where the namespace gets created", "x-ms-mutability": [ - "create", - "read" + "read", + "create" ] }, "dataCenter": { - "description": "Deprecated.", - "type": "string" + "type": "string", + "description": "Deprecated." }, "publicNetworkAccess": { - "$ref": "#/definitions/PublicNetworkAccess" + "type": "string", + "description": "Type of public network access.", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } } } }, "NamespaceResource": { + "type": "object", "description": "Notification Hubs Namespace Resource.", + "properties": { + "properties": { + "$ref": "#/definitions/NamespaceProperties", + "description": "Represents namespace properties.", + "x-ms-client-flatten": true + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The Sku description for a namespace" + } + }, "required": [ - "location", "sku" ], - "type": "object", "allOf": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } - ], + ] + }, + "NamespaceResourceListResult": { + "type": "object", + "description": "The response of a NamespaceResource list operation.", "properties": { - "sku": { - "$ref": "#/definitions/Sku" + "value": { + "type": "array", + "description": "The NamespaceResource items on this page", + "items": { + "$ref": "#/definitions/NamespaceResource" + } }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NamespaceProperties" + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "NamespaceStatus": { + "type": "string", "description": "Namespace status.", "enum": [ "Created", @@ -2694,73 +2838,85 @@ "Suspended", "Deleting" ], - "type": "string", "x-ms-enum": { "name": "NamespaceStatus", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Created", + "value": "Created" + }, + { + "name": "Creating", + "value": "Creating" + }, + { + "name": "Suspended", + "value": "Suspended" + }, + { + "name": "Deleting", + "value": "Deleting" + } + ] } }, "NamespaceType": { + "type": "string", "description": "Defines values for NamespaceType.", "enum": [ "Messaging", "NotificationHub" ], - "type": "string", "x-ms-enum": { "name": "NamespaceType", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Messaging", + "value": "Messaging" + }, + { + "name": "NotificationHub", + "value": "NotificationHub" + } + ] } }, "NetworkAcls": { - "description": "A collection of network authorization rules.", "type": "object", + "description": "A collection of network authorization rules.", "properties": { "ipRules": { - "description": "List of IP rules.", "type": "array", + "description": "List of IP rules.", "items": { "$ref": "#/definitions/IpRule" }, "x-ms-identifiers": [] }, "publicNetworkRule": { - "$ref": "#/definitions/PublicInternetAuthorizationRule" - } - } - }, - "NotificationHubListResult": { - "description": "The response of the List NotificationHub operation.", - "type": "object", - "properties": { - "value": { - "description": "Gets or sets result of the List AuthorizationRules operation.", - "type": "array", - "items": { - "$ref": "#/definitions/NotificationHubResource" - }, - "readOnly": true - }, - "nextLink": { - "description": "Gets or sets link to the next set of results.", - "type": "string", - "readOnly": true + "$ref": "#/definitions/PublicInternetAuthorizationRule", + "description": "A default (public Internet) network authorization rule, which contains rights if no other network rule matches." } } }, "NotificationHubPatchParameters": { - "description": "Patch parameter for NamespaceResource.", "type": "object", + "description": "Patch parameter for NamespaceResource.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NotificationHubProperties" + "$ref": "#/definitions/NotificationHubProperties", + "description": "NotificationHub properties.", + "x-ms-client-flatten": true }, "sku": { - "$ref": "#/definitions/Sku" + "$ref": "#/definitions/Sku", + "description": "The Sku description for a namespace" }, "tags": { "type": "object", + "description": "Dictionary of ", "additionalProperties": { "type": "string" } @@ -2768,168 +2924,118 @@ } }, "NotificationHubProperties": { - "description": "NotificationHub properties.", "type": "object", + "description": "NotificationHub properties.", "properties": { "name": { - "description": "Gets or sets the NotificationHub name.", "type": "string", + "description": "Gets or sets the NotificationHub name.", "x-ms-mutability": [ - "create", - "read" + "read", + "create" ] }, "registrationTtl": { - "description": "Gets or sets the RegistrationTtl of the created NotificationHub", - "type": "string" + "type": "string", + "description": "Gets or sets the RegistrationTtl of the created NotificationHub" }, "authorizationRules": { - "description": "Gets or sets the AuthorizationRules of the created NotificationHub", "type": "array", + "description": "Gets or sets the AuthorizationRules of the created NotificationHub", "items": { "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" }, "readOnly": true, - "x-ms-secret": true, "x-ms-identifiers": [ "keyName" ] }, "apnsCredential": { - "$ref": "#/definitions/ApnsCredential" + "$ref": "#/definitions/ApnsCredential", + "description": "Description of a NotificationHub ApnsCredential." }, "wnsCredential": { - "$ref": "#/definitions/WnsCredential" + "$ref": "#/definitions/WnsCredential", + "description": "Description of a NotificationHub WnsCredential." }, "gcmCredential": { - "$ref": "#/definitions/GcmCredential" + "$ref": "#/definitions/GcmCredential", + "description": "Description of a NotificationHub GcmCredential." }, "mpnsCredential": { - "$ref": "#/definitions/MpnsCredential" + "$ref": "#/definitions/MpnsCredential", + "description": "Description of a NotificationHub MpnsCredential." }, "admCredential": { - "$ref": "#/definitions/AdmCredential" + "$ref": "#/definitions/AdmCredential", + "description": "Description of a NotificationHub AdmCredential." }, "baiduCredential": { - "$ref": "#/definitions/BaiduCredential" + "$ref": "#/definitions/BaiduCredential", + "description": "Description of a NotificationHub BaiduCredential." }, "browserCredential": { - "$ref": "#/definitions/BrowserCredential" + "$ref": "#/definitions/BrowserCredential", + "description": "Description of a NotificationHub BrowserCredential." }, "xiaomiCredential": { - "$ref": "#/definitions/XiaomiCredential" + "$ref": "#/definitions/XiaomiCredential", + "description": "Description of a NotificationHub XiaomiCredential." }, "fcmV1Credential": { - "$ref": "#/definitions/FcmV1Credential" + "$ref": "#/definitions/FcmV1Credential", + "description": "Description of a NotificationHub FcmV1Credential." }, "dailyMaxActiveDevices": { - "format": "int64", "type": "integer", + "format": "int64", "readOnly": true } } }, "NotificationHubResource": { - "description": "Notification Hub Resource.", - "required": [ - "location" - ], "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], + "description": "Notification Hub Resource.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NotificationHubProperties" + "$ref": "#/definitions/NotificationHubProperties", + "description": "NotificationHub properties.", + "x-ms-client-flatten": true }, "sku": { - "$ref": "#/definitions/Sku" - } - } - }, - "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 + "$ref": "#/definitions/Sku", + "description": "The Sku description for a namespace" } - } - }, - "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 + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } - } + ] }, - "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.", + "NotificationHubResourceListResult": { "type": "object", + "description": "The response of a NotificationHubResource list operation.", "properties": { "value": { - "description": "Gets list of NotificationHubs operations supported by the\r\nMicrosoft.NotificationHubs resource provider.", "type": "array", + "description": "The NotificationHubResource items on this page", "items": { - "$ref": "#/definitions/Operation" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name" - ] + "$ref": "#/definitions/NotificationHubResource" + } }, "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" + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "OperationProvisioningState": { + "type": "string", "description": "Defines values for OperationProvisioningState.", "enum": [ "Unknown", @@ -2940,124 +3046,178 @@ "Pending", "Disabled" ], - "type": "string", "x-ms-enum": { "name": "OperationProvisioningState", - "modelAsString": true - } + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "InProgress", + "value": "InProgress" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Pending", + "value": "Pending" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + }, + "readOnly": true }, "PnsCredentials": { - "description": "Collection of Notification Hub or Notification Hub Namespace PNS credentials.", "type": "object", + "description": "Collection of Notification Hub or Notification Hub Namespace PNS credentials.", "properties": { "admCredential": { - "$ref": "#/definitions/AdmCredential" + "$ref": "#/definitions/AdmCredential", + "description": "Description of a NotificationHub AdmCredential." }, "apnsCredential": { - "$ref": "#/definitions/ApnsCredential" + "$ref": "#/definitions/ApnsCredential", + "description": "Description of a NotificationHub ApnsCredential." }, "baiduCredential": { - "$ref": "#/definitions/BaiduCredential" + "$ref": "#/definitions/BaiduCredential", + "description": "Description of a NotificationHub BaiduCredential." }, "browserCredential": { - "$ref": "#/definitions/BrowserCredential" + "$ref": "#/definitions/BrowserCredential", + "description": "Description of a NotificationHub BrowserCredential." }, "gcmCredential": { - "$ref": "#/definitions/GcmCredential" + "$ref": "#/definitions/GcmCredential", + "description": "Description of a NotificationHub GcmCredential." }, "mpnsCredential": { - "$ref": "#/definitions/MpnsCredential" + "$ref": "#/definitions/MpnsCredential", + "description": "Description of a NotificationHub MpnsCredential." }, "wnsCredential": { - "$ref": "#/definitions/WnsCredential" + "$ref": "#/definitions/WnsCredential", + "description": "Description of a NotificationHub WnsCredential." }, "xiaomiCredential": { - "$ref": "#/definitions/XiaomiCredential" + "$ref": "#/definitions/XiaomiCredential", + "description": "Description of a NotificationHub XiaomiCredential." }, "fcmV1Credential": { - "$ref": "#/definitions/FcmV1Credential" + "$ref": "#/definitions/FcmV1Credential", + "description": "Description of a NotificationHub FcmV1Credential." } - }, - "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", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], + "description": "Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs\nPNS credentials.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PnsCredentials" + "$ref": "#/definitions/PnsCredentials", + "description": "Collection of Notification Hub or Notification Hub Namespace PNS credentials.", + "x-ms-client-flatten": true }, "location": { - "description": "Deprecated - only for compatibility.", "type": "string", + "description": "Deprecated - only for compatibility.", "x-ms-mutability": [ - "create", - "read" + "read", + "create" ] }, "tags": { - "description": "Deprecated - only for compatibility.", "type": "object", + "description": "Deprecated - only for compatibility.", "additionalProperties": { "type": "string" } } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] }, "PolicyKeyResource": { - "description": "Namespace / NotificationHub Regenerate Keys request.", - "required": [ - "policyKey" - ], "type": "object", + "description": "Namespace / NotificationHub Regenerate Keys request.", "properties": { "policyKey": { - "$ref": "#/definitions/PolicyKeyType" + "$ref": "#/definitions/PolicyKeyType", + "description": "Type of Shared Access Policy Key (primary or secondary)." } - } + }, + "required": [ + "policyKey" + ] }, "PolicyKeyType": { + "type": "string", "description": "Type of Shared Access Policy Key (primary or secondary).", "enum": [ "PrimaryKey", "SecondaryKey" ], - "type": "string", "x-ms-enum": { "name": "PolicyKeyType", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "PrimaryKey", + "value": "PrimaryKey" + }, + { + "name": "SecondaryKey", + "value": "SecondaryKey" + } + ] } }, "PrivateEndpointConnectionProperties": { - "description": "Private Endpoint Connection properties.", "type": "object", + "description": "Private Endpoint Connection properties.", "properties": { "provisioningState": { - "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState" + "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState", + "description": "State of Private Endpoint Connection." }, "privateEndpoint": { - "$ref": "#/definitions/RemotePrivateEndpointConnection" + "$ref": "#/definitions/RemotePrivateEndpointConnection", + "description": "Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection." }, "groupIds": { - "description": "List of group ids. For Notification Hubs, it always contains a single \"namespace\" element.", "type": "array", + "description": "List of group ids. For Notification Hubs, it always contains a single \"namespace\" element.", "items": { "type": "string" }, "readOnly": true }, "privateLinkServiceConnectionState": { - "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState" + "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState", + "description": "State of the Private Link Service connection." } } }, "PrivateEndpointConnectionProvisioningState": { + "type": "string", "description": "State of Private Endpoint Connection.", "enum": [ "Unknown", @@ -3069,46 +3229,84 @@ "DeletingByProxy", "Deleted" ], - "type": "string", "x-ms-enum": { "name": "PrivateEndpointConnectionProvisioningState", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Creating", + "value": "Creating" + }, + { + "name": "Updating", + "value": "Updating" + }, + { + "name": "UpdatingByProxy", + "value": "UpdatingByProxy" + }, + { + "name": "Deleting", + "value": "Deleting" + }, + { + "name": "DeletingByProxy", + "value": "DeletingByProxy" + }, + { + "name": "Deleted", + "value": "Deleted" + } + ] } }, "PrivateEndpointConnectionResource": { - "description": "Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace.", "type": "object", + "description": "Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace.", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "Private Endpoint Connection properties.", + "x-ms-client-flatten": true + } + }, "allOf": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - } - } + ] }, "PrivateEndpointConnectionResourceListResult": { - "description": "The response of the List Private Endpoint Connections operation.", "type": "object", + "description": "The response of a PrivateEndpointConnectionResource list operation.", "properties": { "value": { - "description": "Gets or sets result of the List AuthorizationRules operation.", "type": "array", + "description": "The PrivateEndpointConnectionResource items on this page", "items": { "$ref": "#/definitions/PrivateEndpointConnectionResource" - }, - "readOnly": true + } }, "nextLink": { - "description": "Gets or sets link to the next set of results.", "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "PrivateLinkConnectionStatus": { + "type": "string", "description": "State of Private Link Connection.", "enum": [ "Disconnected", @@ -3116,65 +3314,86 @@ "Approved", "Rejected" ], - "type": "string", "x-ms-enum": { "name": "PrivateLinkConnectionStatus", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Disconnected", + "value": "Disconnected" + }, + { + "name": "Pending", + "value": "Pending" + }, + { + "name": "Approved", + "value": "Approved" + }, + { + "name": "Rejected", + "value": "Rejected" + } + ] } }, "PrivateLinkResource": { - "description": "A Private Link Arm Resource.", "type": "object", + "description": "A Private Link Arm Resource.", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Represents properties of Private Link Resource.", + "x-ms-client-flatten": true + } + }, "allOf": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } - ], - "properties": { - "properties": { - "$ref": "#/definitions/PrivateLinkResourceProperties" - } - } + ] }, "PrivateLinkResourceListResult": { - "description": "The response of the List Private Link Resources operation.", "type": "object", + "description": "The response of a PrivateLinkResource list operation.", "properties": { "value": { - "description": "Gets or sets result of the List AuthorizationRules operation.", "type": "array", + "description": "The PrivateLinkResource items on this page", "items": { "$ref": "#/definitions/PrivateLinkResource" - }, - "readOnly": true + } }, "nextLink": { - "description": "Gets or sets link to the next set of results.", "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "PrivateLinkResourceProperties": { - "description": "Represents properties of Private Link Resource.", "type": "object", + "description": "Represents properties of Private Link Resource.", "properties": { "groupId": { - "description": "A Group Id for Private Link. For Notification Hubs, it is always set to \"namespace\".", "type": "string", + "description": "A Group Id for Private Link. For Notification Hubs, it is always set to \"namespace\".", "readOnly": true }, "requiredMembers": { - "description": "Required members. For Notification Hubs, it's always a collection with a single \"namespace\" item.", "type": "array", + "description": "Required members. For Notification Hubs, it's always a collection with a single \"namespace\" item.", "items": { "type": "string" }, "readOnly": true }, "requiredZoneNames": { - "description": "Required DNS zone names. For Notification Hubs, it contains two CNames for Service Bus and Notification Hubs zones.", "type": "array", + "description": "Required DNS zone names. For Notification Hubs, it contains two CNames for Service Bus and Notification Hubs zones.", "items": { "type": "string" }, @@ -3182,113 +3401,81 @@ } } }, - "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", + "description": "A default (public Internet) network authorization rule, which contains rights if no other network rule matches.", "properties": { "rights": { - "description": "List of access rights.", "type": "array", + "description": "List of access rights.", "items": { "$ref": "#/definitions/AccessRights" } } - } - }, - "PublicNetworkAccess": { - "description": "Type of public network access.", - "default": "Enabled", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "PublicNetworkAccess", - "modelAsString": true - } + }, + "required": [ + "rights" + ] }, "RegistrationResult": { - "description": "Notification result for a single registration.", "type": "object", + "description": "Notification result for a single registration.", "properties": { "applicationPlatform": { - "description": "PNS type.", "type": "string", + "description": "PNS type.", "readOnly": true }, "pnsHandle": { - "description": "PNS handle.", "type": "string", + "description": "PNS handle.", "readOnly": true }, "registrationId": { - "description": "Registration id.", "type": "string", + "description": "Registration id.", "readOnly": true }, "outcome": { - "description": "Notification outcome.", "type": "string", + "description": "Notification outcome.", "readOnly": true } } }, "RemotePrivateEndpointConnection": { - "description": "Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection.", "type": "object", + "description": "Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection.", "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", + "description": "ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace.", "readOnly": true } } }, "RemotePrivateLinkServiceConnectionState": { - "description": "State of the Private Link Service connection.", "type": "object", + "description": "State of the Private Link Service connection.", "properties": { "status": { - "$ref": "#/definitions/PrivateLinkConnectionStatus" + "$ref": "#/definitions/PrivateLinkConnectionStatus", + "description": "State of Private Link Connection." }, "description": { - "description": "Human-friendly description.", "type": "string", + "description": "Human-friendly description.", "readOnly": true }, "actionsRequired": { - "description": "Human-friendly description of required actions.", "type": "string", + "description": "Human-friendly description of required actions.", "readOnly": true } } }, "ReplicationRegion": { + "type": "string", "description": "Allowed replication region", "enum": [ "Default", @@ -3300,381 +3487,295 @@ "SouthAfricaNorth", "None" ], - "type": "string", "x-ms-enum": { "name": "ReplicationRegion", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Default", + "value": "Default" + }, + { + "name": "WestUs2", + "value": "WestUs2" + }, + { + "name": "NorthEurope", + "value": "NorthEurope" + }, + { + "name": "AustraliaEast", + "value": "AustraliaEast" + }, + { + "name": "BrazilSouth", + "value": "BrazilSouth" + }, + { + "name": "SouthEastAsia", + "value": "SouthEastAsia" + }, + { + "name": "SouthAfricaNorth", + "value": "SouthAfricaNorth" + }, + { + "name": "None", + "value": "None" + } + ] } }, "ResourceListKeys": { - "description": "Response for the POST request that returns Namespace or NotificationHub access keys (connection strings).", "type": "object", + "description": "Response for the POST request that returns Namespace or NotificationHub access keys (connection strings).", "properties": { "primaryConnectionString": { - "description": "Gets or sets primaryConnectionString of the AuthorizationRule.", "type": "string", - "readOnly": true, - "x-ms-secret": true + "description": "Gets or sets primaryConnectionString of the AuthorizationRule.", + "readOnly": true }, "secondaryConnectionString": { - "description": "Gets or sets secondaryConnectionString of the created\r\nAuthorizationRule", "type": "string", - "readOnly": true, - "x-ms-secret": true + "description": "Gets or sets secondaryConnectionString of the created\nAuthorizationRule", + "readOnly": true }, "primaryKey": { - "description": "Gets or sets primaryKey of the created AuthorizationRule.", "type": "string", - "readOnly": true, - "x-ms-secret": true + "description": "Gets or sets primaryKey of the created AuthorizationRule.", + "readOnly": 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" - }, - "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", - "properties": { - "value": { - "description": "Gets or sets result of the List AuthorizationRules operation.", - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - }, + "description": "Gets or sets secondaryKey of the created AuthorizationRule", "readOnly": true }, - "nextLink": { - "description": "Gets or sets link to the next set of results.", + "keyName": { "type": "string", + "description": "Gets or sets keyName of the created AuthorizationRule", "readOnly": true } } }, "SharedAccessAuthorizationRuleProperties": { - "description": "SharedAccessAuthorizationRule properties.", - "required": [ - "rights" - ], "type": "object", + "description": "SharedAccessAuthorizationRule properties.", "properties": { "rights": { - "description": "Gets or sets the rights associated with the rule.", "type": "array", + "description": "Gets or sets the rights associated with the rule.", "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 + "description": "Gets a base64-encoded 256-bit primary key for signing and\nvalidating the SAS token." }, "secondaryKey": { - "description": "Gets a base64-encoded 256-bit primary key for signing and\r\nvalidating the SAS token.", "type": "string", - "x-ms-secret": true + "description": "Gets a base64-encoded 256-bit primary key for signing and\nvalidating the SAS token." }, "keyName": { - "description": "Gets a string that describes the authorization rule.", "type": "string", + "description": "Gets a string that describes the authorization rule.", "readOnly": true }, "modifiedTime": { + "type": "string", "format": "date-time", "description": "Gets the last modified time for this rule", - "type": "string", "readOnly": true }, "createdTime": { + "type": "string", "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", + "description": "Gets a string that describes the claim type", "readOnly": true }, "claimValue": { - "description": "Gets a string that describes the claim value", "type": "string", + "description": "Gets a string that describes the claim value", "readOnly": true }, "revision": { + "type": "integer", "format": "int32", "description": "Gets the revision number for the rule", - "type": "integer", "readOnly": true } - } + }, + "required": [ + "rights" + ] }, "SharedAccessAuthorizationRuleResource": { - "description": "Response for POST requests that return single SharedAccessAuthorizationRule.", "type": "object", + "description": "Response for POST requests that return single SharedAccessAuthorizationRule.", + "properties": { + "properties": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", + "description": "SharedAccessAuthorizationRule properties.", + "x-ms-client-flatten": true + } + }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } - ], + ] + }, + "SharedAccessAuthorizationRuleResourceListResult": { + "type": "object", + "description": "The response of a SharedAccessAuthorizationRuleResource list operation.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + "value": { + "type": "array", + "description": "The SharedAccessAuthorizationRuleResource items on this page", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } }, - "location": { - "description": "Deprecated - only for compatibility.", + "nextLink": { "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "description": "Deprecated - only for compatibility.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "Sku": { - "description": "The Sku description for a namespace", - "required": [ - "name" - ], "type": "object", + "description": "The Sku description for a namespace", "properties": { "name": { - "$ref": "#/definitions/SkuName" + "$ref": "#/definitions/SkuName", + "description": "Namespace SKU name." }, "tier": { - "description": "Gets or sets the tier of particular sku", - "type": "string" + "type": "string", + "description": "Gets or sets the tier of particular sku" }, "size": { - "description": "Gets or sets the Sku size", - "type": "string" + "type": "string", + "description": "Gets or sets the Sku size" }, "family": { - "description": "Gets or sets the Sku Family", - "type": "string" + "type": "string", + "description": "Gets or sets the Sku Family" }, "capacity": { + "type": "integer", "format": "int32", - "description": "Gets or sets the capacity of the resource", - "type": "integer" + "description": "Gets or sets the capacity of the resource" } - } + }, + "required": [ + "name" + ] }, "SkuName": { + "type": "string", "description": "Namespace SKU name.", "enum": [ "Free", "Basic", "Standard" ], - "type": "string", "x-ms-enum": { "name": "SkuName", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Free", + "value": "Free" + }, + { + "name": "Basic", + "value": "Basic" + }, + { + "name": "Standard", + "value": "Standard" + } + ] } }, "WnsCredential": { - "description": "Description of a NotificationHub WnsCredential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub WnsCredential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/WnsCredentialProperties" + "$ref": "#/definitions/WnsCredentialProperties", + "description": "Description of a NotificationHub WnsCredential.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "WnsCredentialProperties": { - "description": "Description of a NotificationHub WnsCredential.", "type": "object", + "description": "Description of a NotificationHub WnsCredential.", "properties": { "packageSid": { - "description": "Gets or sets the package ID for this credential.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the package ID for this credential." }, "secretKey": { - "description": "Gets or sets the secret key.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the secret key." }, "windowsLiveEndpoint": { - "description": "Gets or sets the Windows Live endpoint.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the Windows Live endpoint." }, "certificateKey": { - "description": "Ges or sets the WNS Certificate Key.", "type": "string", - "x-ms-secret": true + "description": "Ges or sets the WNS Certificate Key." }, "wnsCertificate": { - "description": "Gets or sets the WNS Certificate.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets the WNS Certificate." } } }, "XiaomiCredential": { - "description": "Description of a NotificationHub XiaomiCredential.", - "required": [ - "properties" - ], "type": "object", + "description": "Description of a NotificationHub XiaomiCredential.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/XiaomiCredentialProperties" + "$ref": "#/definitions/XiaomiCredentialProperties", + "description": "Description of a NotificationHub XiaomiCredentialProperties.", + "x-ms-client-flatten": true } }, - "x-ms-secret": true + "required": [ + "properties" + ] }, "XiaomiCredentialProperties": { - "description": "Description of a NotificationHub XiaomiCredentialProperties.", "type": "object", + "description": "Description of a NotificationHub XiaomiCredentialProperties.", "properties": { "appSecret": { - "description": "Gets or sets app secret.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets app secret." }, "endpoint": { - "description": "Gets or sets xiaomi service endpoint.", "type": "string", - "x-ms-secret": true + "description": "Gets or sets xiaomi service endpoint." } } - }, - "ZoneRedundancyPreference": { - "description": "Namespace SKU name.", - "default": "Disabled", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "ZoneRedundancyPreference", - "modelAsString": true - }, - "x-ms-mutability": [ - "create", - "read" - ] - } - }, - "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" - }, - "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" - }, - "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": { - "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" - ] - } - ] + "parameters": {} } From ba41586de6919d27102cfb2b55642c0abb4716a5 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Tue, 29 Apr 2025 15:18:41 +0800 Subject: [PATCH 03/14] update --- .../{client.tsp => back-compatible.tsp} | 1 - .../Notificationhubs.Management/main.tsp | 1 + .../2023-10-01-preview/notificationhubs.json | 20 +++++++++---------- 3 files changed, 11 insertions(+), 11 deletions(-) rename specification/notificationhubs/Notificationhubs.Management/{client.tsp => back-compatible.tsp} (99%) diff --git a/specification/notificationhubs/Notificationhubs.Management/client.tsp b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp similarity index 99% rename from specification/notificationhubs/Notificationhubs.Management/client.tsp rename to specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp index c9a381767f9b..d373ae3fba42 100644 --- a/specification/notificationhubs/Notificationhubs.Management/client.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp @@ -1,4 +1,3 @@ -import "./main.tsp"; import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; diff --git a/specification/notificationhubs/Notificationhubs.Management/main.tsp b/specification/notificationhubs/Notificationhubs.Management/main.tsp index 0b826a4951bd..4ecf52cee5cb 100644 --- a/specification/notificationhubs/Notificationhubs.Management/main.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/main.tsp @@ -19,6 +19,7 @@ import "./PrivateEndpointConnectionResource.tsp"; import "./PrivateLinkResource.tsp"; import "./routes.tsp"; import "./legacy.tsp"; +import "./back-compatible.tsp"; using TypeSpec.Rest; using TypeSpec.Http; diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json index 1952f80fd9f1..caf1813ca3e8 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json @@ -329,7 +329,7 @@ "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "name": "resource", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -406,7 +406,7 @@ "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "name": "properties", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -620,7 +620,7 @@ "pattern": "^[a-zA-Z0-9!()*-._]+$" }, { - "name": "resource", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -798,7 +798,7 @@ "pattern": "^[a-zA-Z0-9!()*-._]+$" }, { - "name": "body", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -856,7 +856,7 @@ "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" }, { - "name": "body", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -1049,7 +1049,7 @@ "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" }, { - "name": "resource", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -1121,7 +1121,7 @@ "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" }, { - "name": "properties", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -1369,7 +1369,7 @@ "pattern": "^[a-zA-Z0-9!()*-._]+$" }, { - "name": "resource", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -1571,7 +1571,7 @@ "pattern": "^[a-zA-Z0-9!()*-._]+$" }, { - "name": "body", + "name": "parameters", "in": "body", "description": "Request content.", "required": true, @@ -1915,7 +1915,7 @@ "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" }, { - "name": "resource", + "name": "parameters", "in": "body", "description": "Description of the Private Endpoint Connection resource.", "required": true, From 3a8d2effa54913b5f5365e9a4610810825366409 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Wed, 30 Apr 2025 16:01:34 +0800 Subject: [PATCH 04/14] update --- .../NamespaceResource.tsp | 6 +- .../NotificationHubResource.tsp | 3 +- .../SharedAccessAuthorizationRuleResource.tsp | 10 +- .../back-compatible.tsp | 3 + .../Notificationhubs.Management/main.tsp | 18 +- .../Notificationhubs.Management/models.tsp | 97 + .../notificationhubs/output/diff.json | 1 + .../notificationhubs/output/newSwagger.json | 2998 ++++++++++++++++ .../notificationhubs/output/oldSwagger.json | 3114 +++++++++++++++++ .../2023-10-01-preview/notificationhubs.json | 499 ++- 10 files changed, 6643 insertions(+), 106 deletions(-) create mode 100644 specification/notificationhubs/output/diff.json create mode 100644 specification/notificationhubs/output/newSwagger.json create mode 100644 specification/notificationhubs/output/oldSwagger.json diff --git a/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp b/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp index 2b6b9de9c319..f1412d88e00d 100644 --- a/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp @@ -82,7 +82,8 @@ interface NamespaceResources { */ @query("$top") $top?: int32 = 100; - } + }, + Response = NamespaceListResult >; /** @@ -104,7 +105,8 @@ interface NamespaceResources { */ @query("$top") $top?: int32 = 100; - } + }, + Response = NamespaceListResult >; /** diff --git a/specification/notificationhubs/Notificationhubs.Management/NotificationHubResource.tsp b/specification/notificationhubs/Notificationhubs.Management/NotificationHubResource.tsp index 190dda5fdbd2..185358a8178e 100644 --- a/specification/notificationhubs/Notificationhubs.Management/NotificationHubResource.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/NotificationHubResource.tsp @@ -84,7 +84,8 @@ interface NotificationHubResources { */ @query("$top") $top?: int32 = 100; - } + }, + Response = NotificationHubListResult >; /** diff --git a/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp b/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp index a953d446c8d1..bb8e3b5ed0be 100644 --- a/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp @@ -82,7 +82,10 @@ interface SharedAccessAuthorizationRuleResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("NotificationHubs_ListAuthorizationRules") - listAuthorizationRules is SharedAccessAuthorizationRuleResourceOps.List; + listAuthorizationRules is SharedAccessAuthorizationRuleResourceOps.List< + SharedAccessAuthorizationRuleResource, + Response = SharedAccessAuthorizationRuleListResult + >; /** * Gets the Primary and Secondary ConnectionStrings to the NotificationHub @@ -149,7 +152,10 @@ interface Namespaces { /** * Gets the authorization rules for a namespace. */ - listAuthorizationRules is NamespaceOps.List; + listAuthorizationRules is NamespaceOps.List< + SharedAccessAuthorizationRuleResource, + Response = SharedAccessAuthorizationRuleListResult + >; /** * Gets the Primary and Secondary ConnectionStrings to the namespace. diff --git a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp index d373ae3fba42..05367964a544 100644 --- a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp @@ -74,3 +74,6 @@ using Microsoft.NotificationHubs; @@clientName(PrivateEndpointConnectionResources.update::parameters.resource, "parameters" ); +@@clientName(NamespacesOperationGroup.checkAvailability::parameters.body, + "parameters" +); diff --git a/specification/notificationhubs/Notificationhubs.Management/main.tsp b/specification/notificationhubs/Notificationhubs.Management/main.tsp index 4ecf52cee5cb..50cab7ac3c8d 100644 --- a/specification/notificationhubs/Notificationhubs.Management/main.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/main.tsp @@ -48,4 +48,20 @@ enum Versions { v2023_10_01_preview: "2023-10-01-preview", } -interface Operations extends Azure.ResourceManager.Operations {} +interface Operations { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "" + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "" + @tag("Operations") + @autoRoute + @doc("List the operations for the provider") + @segment("operations") + @get + list( + ...ApiVersionParameter, + + @path + @segment("providers") + @doc("The provider namespace (this parameter will not show up in operations).") + provider: "Microsoft.ThisWillBeReplaced", + ): ArmResponse | ErrorResponse; +} diff --git a/specification/notificationhubs/Notificationhubs.Management/models.tsp b/specification/notificationhubs/Notificationhubs.Management/models.tsp index 278e892acc88..1fd050e8d256 100644 --- a/specification/notificationhubs/Notificationhubs.Management/models.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/models.tsp @@ -398,12 +398,14 @@ model SharedAccessAuthorizationRuleProperties { * Gets a base64-encoded 256-bit primary key for signing and * validating the SAS token. */ + @secret primaryKey?: string; /** * Gets a base64-encoded 256-bit primary key for signing and * validating the SAS token. */ + @secret secondaryKey?: string; /** @@ -464,45 +466,53 @@ model ApnsCredentialProperties { /** * Gets or sets the APNS certificate. */ + @secret apnsCertificate?: string; /** * Gets or sets the certificate key. */ + @secret certificateKey?: string; /** * Gets or sets the endpoint of this credential. */ @minLength(1) + @secret endpoint: string; /** * Gets or sets the APNS certificate Thumbprint */ + @secret thumbprint?: string; /** * Gets or sets a 10-character key identifier (kid) key, obtained from * your developer account */ + @secret keyId?: string; /** * Gets or sets the name of the application */ + @secret appName?: string; /** * Gets or sets the issuer (iss) registered claim key, whose value is * your 10-character Team ID, obtained from your developer account */ + @secret appId?: string; /** * Gets or sets provider Authentication Token, obtained through your * developer account */ + @secret token?: string; } @@ -525,26 +535,31 @@ model WnsCredentialProperties { /** * Gets or sets the package ID for this credential. */ + @secret packageSid?: string; /** * Gets or sets the secret key. */ + @secret secretKey?: string; /** * Gets or sets the Windows Live endpoint. */ + @secret windowsLiveEndpoint?: string; /** * Ges or sets the WNS Certificate Key. */ + @secret certificateKey?: string; /** * Gets or sets the WNS Certificate. */ + @secret wnsCertificate?: string; } @@ -567,12 +582,14 @@ model GcmCredentialProperties { /** * Gets or sets the GCM endpoint. */ + @secret gcmEndpoint?: string; /** * Gets or sets the Google API key. */ @minLength(1) + @secret googleApiKey: string; } @@ -596,18 +613,21 @@ model MpnsCredentialProperties { * Gets or sets the MPNS certificate. */ @minLength(1) + @secret mpnsCertificate: string; /** * Gets or sets the certificate key for this credential. */ @minLength(1) + @secret certificateKey: string; /** * Gets or sets the MPNS certificate Thumbprint */ @minLength(1) + @secret thumbprint: string; } @@ -631,18 +651,21 @@ model AdmCredentialProperties { * Gets or sets the client identifier. */ @minLength(1) + @secret clientId: string; /** * Gets or sets the credential secret access key. */ @minLength(1) + @secret clientSecret: string; /** * Gets or sets the URL of the authorization token. */ @minLength(1) + @secret authTokenUrl: string; } @@ -666,18 +689,21 @@ model BaiduCredentialProperties { * Gets or sets baidu Api Key. */ @minLength(1) + @secret baiduApiKey: string; /** * Gets or sets baidu Endpoint. */ @minLength(1) + @secret baiduEndPoint: string; /** * Gets or sets baidu Secret Key */ @minLength(1) + @secret baiduSecretKey: string; } @@ -701,18 +727,21 @@ model BrowserCredentialProperties { * Gets or sets web push subject. */ @minLength(1) + @secret subject: string; /** * Gets or sets VAPID private key. */ @minLength(1) + @secret vapidPrivateKey: string; /** * Gets or sets VAPID public key. */ @minLength(1) + @secret vapidPublicKey: string; } @@ -735,11 +764,13 @@ model XiaomiCredentialProperties { /** * Gets or sets app secret. */ + @secret appSecret?: string; /** * Gets or sets xiaomi service endpoint. */ + @secret endpoint?: string; } @@ -763,18 +794,21 @@ model FcmV1CredentialProperties { * Gets or sets client email. */ @minLength(1) + @secret clientEmail: string; /** * Gets or sets private key. */ @minLength(1) + @secret privateKey: string; /** * Gets or sets project id. */ @minLength(1) + @secret projectId: string; } @@ -888,6 +922,7 @@ model ResourceListKeys { * Gets or sets primaryConnectionString of the AuthorizationRule. */ @visibility(Lifecycle.Read) + @secret primaryConnectionString?: string; /** @@ -895,18 +930,21 @@ model ResourceListKeys { * AuthorizationRule */ @visibility(Lifecycle.Read) + @secret secondaryConnectionString?: string; /** * Gets or sets primaryKey of the created AuthorizationRule. */ @visibility(Lifecycle.Read) + @secret primaryKey?: string; /** * Gets or sets secondaryKey of the created AuthorizationRule */ @visibility(Lifecycle.Read) + @secret secondaryKey?: string; /** @@ -1082,6 +1120,7 @@ model NamespaceProperties { /** * Namespace SKU name. */ + @visibility(Lifecycle.Read, Lifecycle.Create) zoneRedundancy?: ZoneRedundancyPreference = ZoneRedundancyPreference.Disabled; /** @@ -1505,3 +1544,61 @@ model PrivateLinkServiceConnection { */ requestMessage?: string; } + +model OperationListResult is Azure.Core.Page; + +model OperationDisplay { + /** + The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + */ + @visibility(Lifecycle.Read) + provider?: string; + + /** + The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + */ + @visibility(Lifecycle.Read) + resource?: string; + + /** + The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + */ + @visibility(Lifecycle.Read) + operation?: string; + + /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ + @visibility(Lifecycle.Read) + description?: string; +} + +/** + * Result of the request to list SQL operations. + */ +model Operation { + /** + The name of the operation being performed on this particular object." + */ + @visibility(Lifecycle.Read) + name?: string; + + /** he localized display information for this particular operation / action. */ + display?: OperationDisplay; + + /** + The intended executor of the operation." + */ + @visibility(Lifecycle.Read) + isDataAction?: boolean; + + /** + Additional descriptions for the operation. + */ + properties?: OperationProperties; +} + +model NamespaceListResult is Azure.Core.Page; +model SharedAccessAuthorizationRuleListResult + is Azure.Core.Page; + +model NotificationHubListResult is Azure.Core.Page; +@@visibility(Azure.Core.Page.value, Lifecycle.Read); diff --git a/specification/notificationhubs/output/diff.json b/specification/notificationhubs/output/diff.json new file mode 100644 index 000000000000..c263de95fa98 --- /dev/null +++ b/specification/notificationhubs/output/diff.json @@ -0,0 +1 @@ +" {\n\u001b[32m+ produces: [\u001b[39m\n\u001b[32m+ \"application/json\"\u001b[39m\n\u001b[32m+ ]\u001b[39m\n\u001b[32m+ consumes: [\u001b[39m\n\u001b[32m+ \"application/json\"\u001b[39m\n\u001b[32m+ ]\u001b[39m\n info: {\n\u001b[32m+ x-typespec-generated: [\u001b[39m\n\u001b[32m+ {\u001b[39m\n\u001b[32m+ emitter: \"@azure-tools/typespec-autorest\"\u001b[39m\n\u001b[32m+ }\u001b[39m\n\u001b[32m+ ]\u001b[39m\n }\n paths: {\n /providers/Microsoft.NotificationHubs/operations: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n ]\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n put: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n delete: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n ]\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n put: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n delete: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n }\n definitions: {\n\u001b[31m- ConnectionDetails: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- id: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- privateIpAddress: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- linkIdentifier: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- groupId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- memberName: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- GroupConnectivityInformation: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- groupId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- memberName: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- customerVisibleFqdns: {\u001b[39m\n\u001b[31m- type: \"array\"\u001b[39m\n\u001b[31m- items: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- internalFqdn: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- redirectMapId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- privateLinkServiceArmRegion: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- PrivateLinkServiceConnection: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- name: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- groupIds: {\u001b[39m\n\u001b[31m- type: \"array\"\u001b[39m\n\u001b[31m- items: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- requestMessage: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n AdmCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n AdmCredentialProperties: {\n properties: {\n clientId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n clientSecret: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n authTokenUrl: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n ApnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n ApnsCredentialProperties: {\n properties: {\n apnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n endpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n thumbprint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n keyId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n appName: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n appId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n token: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n BaiduCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n BaiduCredentialProperties: {\n properties: {\n baiduApiKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n baiduEndPoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n baiduSecretKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n BrowserCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n BrowserCredentialProperties: {\n properties: {\n subject: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n vapidPrivateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n vapidPublicKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n FcmV1Credential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n FcmV1CredentialProperties: {\n properties: {\n clientEmail: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n privateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n projectId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n GcmCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n GcmCredentialProperties: {\n properties: {\n gcmEndpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n googleApiKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n MpnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n MpnsCredentialProperties: {\n properties: {\n mpnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n thumbprint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n NamespaceProperties: {\n properties: {\n provisioningState: {\n\u001b[32m+ readOnly: true\u001b[39m\n }\n }\n }\n NamespaceResource: {\n required: [\n\u001b[31m- \"location\"\u001b[39m\n ...\n ]\n }\n NotificationHubProperties: {\n properties: {\n authorizationRules: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n }\n }\n NotificationHubResource: {\n\u001b[31m- required: [\u001b[39m\n\u001b[31m- \"location\"\u001b[39m\n\u001b[31m- ]\u001b[39m\n }\n OperationListResult: {\n properties: {\n value: {\n x-ms-identifiers: [\n\u001b[31m- \"name\"\u001b[39m\n ]\n }\n }\n }\n PnsCredentials: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n PrivateEndpointConnectionResource: {\n properties: {\n properties: {\n\u001b[32m+ x-ms-client-flatten: true\u001b[39m\n }\n }\n }\n PrivateLinkResource: {\n properties: {\n properties: {\n\u001b[32m+ x-ms-client-flatten: true\u001b[39m\n }\n }\n }\n ResourceListKeys: {\n properties: {\n primaryConnectionString: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryConnectionString: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n primaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n SharedAccessAuthorizationRuleProperties: {\n properties: {\n primaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n SharedAccessAuthorizationRuleResource: {\n properties: {\n\u001b[31m- location: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- x-ms-mutability: [\u001b[39m\n\u001b[31m- \"create\"\u001b[39m\n\u001b[31m- \"read\"\u001b[39m\n\u001b[31m- ]\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- tags: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- additionalProperties: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n }\n allOf: [\n {\n\u001b[31m- $ref: \"../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource\"\u001b[39m\n\u001b[32m+ $ref: \"../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource\"\u001b[39m\n }\n ]\n }\n WnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n WnsCredentialProperties: {\n properties: {\n packageSid: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secretKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n windowsLiveEndpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n wnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n XiaomiCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n XiaomiCredentialProperties: {\n properties: {\n appSecret: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n endpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n }\n }\n" \ No newline at end of file diff --git a/specification/notificationhubs/output/newSwagger.json b/specification/notificationhubs/output/newSwagger.json new file mode 100644 index 000000000000..afd0ba99fb70 --- /dev/null +++ b/specification/notificationhubs/output/newSwagger.json @@ -0,0 +1,2998 @@ +{ + "swagger": "2.0", + "info": { + "title": "NotificationHubs RP Client", + "version": "2023-10-01-preview", + "description": "Microsoft Notification Hubs Resource Provider REST API.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.NotificationHubs/operations": { + "get": { + "operationId": "Operations_List", + "parameters": [], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/NHOperationsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { + "post": { + "operationId": "Namespaces_CheckAvailability", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_CheckAvailability": { + "$ref": "./examples/Namespaces/CheckAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "operationId": "Namespaces_ListAll", + "parameters": [ + { + "name": "$skipToken", + "in": "query", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "type": "integer", + "format": "int32", + "default": 100 + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_ListAll": { + "$ref": "./examples/Namespaces/ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "operationId": "Namespaces_List", + "parameters": [ + { + "name": "$skipToken", + "in": "query", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "type": "integer", + "format": "int32", + "default": 100 + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_List": { + "$ref": "./examples/Namespaces/ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { + "get": { + "operationId": "Namespaces_Get", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_Get": { + "$ref": "./examples/Namespaces/Get.json" + } + } + }, + "put": { + "operationId": "Namespaces_CreateOrUpdate", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_CreateOrUpdate": { + "$ref": "./examples/Namespaces/CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Namespaces_Update", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NamespacePatchParameters" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_Update": { + "$ref": "./examples/Namespaces/Update.json" + } + } + }, + "delete": { + "operationId": "Namespaces_Delete", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_Delete": { + "$ref": "./examples/Namespaces/Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { + "get": { + "operationId": "Namespaces_ListAuthorizationRules", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_ListAuthorizationRules": { + "$ref": "./examples/Namespaces/AuthorizationRuleList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": { + "get": { + "operationId": "Namespaces_GetAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_GetAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" + } + } + }, + "put": { + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleCreateOrUpdate.json" + } + } + }, + "delete": { + "operationId": "Namespaces_DeleteAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_DeleteAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "operationId": "Namespaces_ListKeys", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_ListKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleListKeys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "operationId": "Namespaces_RegenerateKeys", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_RegenerateKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleRegenerateKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { + "post": { + "operationId": "NotificationHubs_CheckNotificationHubAvailability", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_CheckNotificationHubAvailability": { + "$ref": "./examples/NotificationHubs/CheckAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { + "get": { + "operationId": "NotificationHubs_List", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "$skipToken", + "in": "query", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "type": "integer", + "format": "int32", + "default": 100 + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_List": { + "$ref": "./examples/NotificationHubs/List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { + "get": { + "operationId": "NotificationHubs_Get", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_Get": { + "$ref": "./examples/NotificationHubs/Get.json" + } + } + }, + "put": { + "operationId": "NotificationHubs_CreateOrUpdate", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_CreateOrUpdate": { + "$ref": "./examples/NotificationHubs/CreateOrUpdate.json" + } + } + }, + "patch": { + "operationId": "NotificationHubs_Update", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationHubPatchParameters" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_Update": { + "$ref": "./examples/NotificationHubs/Update.json" + } + } + }, + "delete": { + "operationId": "NotificationHubs_Delete", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_Delete": { + "$ref": "./examples/NotificationHubs/Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { + "get": { + "operationId": "NotificationHubs_ListAuthorizationRules", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_ListAuthorizationRules": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}": { + "get": { + "operationId": "NotificationHubs_GetAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_GetAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" + } + } + }, + "put": { + "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json" + } + } + }, + "delete": { + "operationId": "NotificationHubs_DeleteAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_DeleteAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "operationId": "NotificationHubs_ListKeys", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_ListKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleListKeys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "operationId": "NotificationHubs_RegenerateKeys", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_RegenerateKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleRegenerateKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { + "post": { + "operationId": "NotificationHubs_DebugSend", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/DebugSendResponse" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_DebugSend": { + "$ref": "./examples/NotificationHubs/DebugSend.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { + "post": { + "operationId": "NotificationHubs_GetPnsCredentials", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PnsCredentialsResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_GetPnsCredentials": { + "$ref": "./examples/NotificationHubs/PnsCredentialsGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials": { + "post": { + "operationId": "Namespaces_GetPnsCredentials", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PnsCredentialsResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_GetPnsCredentials": { + "$ref": "./examples/Namespaces/PnsCredentialsGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections": { + "get": { + "operationId": "PrivateEndpointConnections_List", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResourceListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_List": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "operationId": "PrivateEndpointConnections_Get", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Get": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionGet.json" + } + } + }, + "put": { + "operationId": "PrivateEndpointConnections_Update", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Update": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "PrivateEndpointConnections_Delete", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" + } + ], + "responses": { + "202": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Delete": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources": { + "get": { + "operationId": "PrivateEndpointConnections_ListGroupIds", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_ListGroupIds": { + "$ref": "./examples/Namespaces/PrivateLinkResourceList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}": { + "get": { + "operationId": "PrivateEndpointConnections_GetGroupId", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "subResourceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^namespace$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_GetGroupId": { + "$ref": "./examples/Namespaces/PrivateLinkResourceGet.json" + } + } + } + } + }, + "definitions": { + "AdmCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AdmCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "AdmCredentialProperties": { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "clientSecret": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "authTokenUrl": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "authTokenUrl", + "clientId", + "clientSecret" + ] + }, + "ApnsCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ApnsCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "ApnsCredentialProperties": { + "type": "object", + "properties": { + "apnsCertificate": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "certificateKey": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "endpoint": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "thumbprint": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "keyId": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "appName": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "appId": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "token": { + "type": "string", + "format": "password", + "x-ms-secret": true + } + }, + "required": [ + "endpoint" + ] + }, + "Availability": { + "type": "object", + "properties": { + "timeGrain": { + "type": "string", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "readOnly": true + } + } + }, + "BaiduCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/BaiduCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "BaiduCredentialProperties": { + "type": "object", + "properties": { + "baiduApiKey": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "baiduEndPoint": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "baiduSecretKey": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "baiduApiKey", + "baiduEndPoint", + "baiduSecretKey" + ] + }, + "BrowserCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/BrowserCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "BrowserCredentialProperties": { + "type": "object", + "properties": { + "subject": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "vapidPrivateKey": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "vapidPublicKey": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "subject", + "vapidPrivateKey", + "vapidPublicKey" + ] + }, + "CheckAvailabilityParameters": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "minLength": 1 + }, + "type": { + "type": "string", + "readOnly": true + }, + "location": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "isAvailiable": { + "type": "boolean" + }, + "sku": { + "$ref": "#/definitions/Sku" + } + }, + "required": [ + "name" + ] + }, + "CheckAvailabilityResult": { + "type": "object", + "properties": { + "isAvailiable": { + "type": "boolean" + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/Sku" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "DebugSendResponse": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/DebugSendResult", + "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "DebugSendResult": { + "type": "object", + "properties": { + "success": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "failure": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RegistrationResult" + }, + "readOnly": true, + "x-ms-identifiers": [] + } + } + }, + "FcmV1Credential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/FcmV1CredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "FcmV1CredentialProperties": { + "type": "object", + "properties": { + "clientEmail": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "privateKey": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "projectId": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "clientEmail", + "privateKey", + "projectId" + ] + }, + "GcmCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/GcmCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "GcmCredentialProperties": { + "type": "object", + "properties": { + "gcmEndpoint": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "googleApiKey": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "googleApiKey" + ] + }, + "IpRule": { + "type": "object", + "properties": { + "ipMask": { + "type": "string", + "minLength": 1 + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + } + }, + "required": [ + "ipMask", + "rights" + ] + }, + "LogSpecification": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "displayName": { + "type": "string", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "readOnly": true + }, + "categoryGroups": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "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, + "x-ms-identifiers": [] + }, + "supportedTimeGrainTypes": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "metricFilterPattern": { + "type": "string", + "readOnly": true + }, + "fillGapWithZero": { + "type": "boolean", + "readOnly": true + } + } + }, + "MpnsCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MpnsCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "MpnsCredentialProperties": { + "type": "object", + "properties": { + "mpnsCertificate": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "certificateKey": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + }, + "thumbprint": { + "type": "string", + "format": "password", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "certificateKey", + "mpnsCertificate", + "thumbprint" + ] + }, + "NamespaceListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/NamespaceResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "NamespacePatchParameters": { + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NamespaceProperties": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "enum": [ + "Unknown", + "InProgress", + "Succeeded", + "Failed", + "Canceled", + "Pending", + "Disabled" + ], + "x-ms-enum": { + "name": "OperationProvisioningState", + "modelAsString": true + }, + "readOnly": true + }, + "status": { + "type": "string", + "enum": [ + "Created", + "Creating", + "Suspended", + "Deleting" + ], + "x-ms-enum": { + "name": "NamespaceStatus", + "modelAsString": true + } + }, + "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": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "namespaceType": { + "type": "string", + "enum": [ + "Messaging", + "NotificationHub" + ], + "x-ms-enum": { + "name": "NamespaceType", + "modelAsString": true + } + }, + "replicationRegion": { + "type": "string", + "enum": [ + "Default", + "WestUs2", + "NorthEurope", + "AustraliaEast", + "BrazilSouth", + "SouthEastAsia", + "SouthAfricaNorth", + "None" + ], + "x-ms-enum": { + "name": "ReplicationRegion", + "modelAsString": true + } + }, + "zoneRedundancy": { + "type": "string", + "default": "Disabled", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "ZoneRedundancyPreference", + "modelAsString": true + }, + "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 + }, + "scaleUnit": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "dataCenter": { + "type": "string" + }, + "publicNetworkAccess": { + "type": "string", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + } + } + }, + "NamespaceResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/NamespaceProperties", + "x-ms-client-flatten": true + }, + "sku": { + "$ref": "#/definitions/Sku" + } + }, + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "NetworkAcls": { + "type": "object", + "properties": { + "ipRules": { + "type": "array", + "items": { + "$ref": "#/definitions/IpRule" + }, + "x-ms-identifiers": [] + }, + "publicNetworkRule": { + "$ref": "#/definitions/PublicInternetAuthorizationRule" + } + } + }, + "NotificationHubListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/NotificationHubResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "NotificationHubPatchParameters": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/NotificationHubProperties", + "x-ms-client-flatten": true + }, + "sku": { + "$ref": "#/definitions/Sku" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "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-identifiers": [ + "keyName" + ] + }, + "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" + }, + "fcmV1Credential": { + "$ref": "#/definitions/FcmV1Credential" + }, + "dailyMaxActiveDevices": { + "type": "integer", + "format": "int64", + "readOnly": true + } + } + }, + "NotificationHubResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/NotificationHubProperties", + "x-ms-client-flatten": true + }, + "sku": { + "$ref": "#/definitions/Sku" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "Operation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "isDataAction": { + "type": "boolean", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/OperationProperties" + } + } + }, + "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", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/Operation" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "OperationProperties": { + "type": "object", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification" + } + } + }, + "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" + }, + "fcmV1Credential": { + "$ref": "#/definitions/FcmV1Credential" + } + } + }, + "PnsCredentialsResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PnsCredentials", + "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "PolicyKeyResource": { + "type": "object", + "properties": { + "policyKey": { + "type": "string", + "enum": [ + "PrimaryKey", + "SecondaryKey" + ], + "x-ms-enum": { + "name": "PolicyKeyType", + "modelAsString": true + } + } + }, + "required": [ + "policyKey" + ] + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "provisioningState": { + "type": "string", + "enum": [ + "Unknown", + "Succeeded", + "Creating", + "Updating", + "UpdatingByProxy", + "Deleting", + "DeletingByProxy", + "Deleted" + ], + "x-ms-enum": { + "name": "PrivateEndpointConnectionProvisioningState", + "modelAsString": true + } + }, + "privateEndpoint": { + "$ref": "#/definitions/RemotePrivateEndpointConnection" + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState" + } + } + }, + "PrivateEndpointConnectionResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "PrivateEndpointConnectionResourceListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "PrivateLinkResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "PrivateLinkResourceListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "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 + } + } + }, + "PublicInternetAuthorizationRule": { + "type": "object", + "properties": { + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + } + }, + "required": [ + "rights" + ] + }, + "RegistrationResult": { + "type": "object", + "properties": { + "applicationPlatform": { + "type": "string", + "readOnly": true + }, + "pnsHandle": { + "type": "string", + "readOnly": true + }, + "registrationId": { + "type": "string", + "readOnly": true + }, + "outcome": { + "type": "string", + "readOnly": true + } + } + }, + "RemotePrivateEndpointConnection": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + } + } + }, + "RemotePrivateLinkServiceConnectionState": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "Disconnected", + "Pending", + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "PrivateLinkConnectionStatus", + "modelAsString": true + } + }, + "description": { + "type": "string", + "readOnly": true + }, + "actionsRequired": { + "type": "string", + "readOnly": true + } + } + }, + "ResourceListKeys": { + "type": "object", + "properties": { + "primaryConnectionString": { + "type": "string", + "format": "password", + "readOnly": true, + "x-ms-secret": true + }, + "secondaryConnectionString": { + "type": "string", + "format": "password", + "readOnly": true, + "x-ms-secret": true + }, + "primaryKey": { + "type": "string", + "format": "password", + "readOnly": true, + "x-ms-secret": true + }, + "secondaryKey": { + "type": "string", + "format": "password", + "readOnly": true, + "x-ms-secret": true + }, + "keyName": { + "type": "string", + "readOnly": true + } + } + }, + "ServiceSpecification": { + "type": "object", + "properties": { + "logSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/LogSpecification" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + }, + "metricSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name", + "unit" + ] + } + } + }, + "SharedAccessAuthorizationRuleListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "SharedAccessAuthorizationRuleProperties": { + "type": "object", + "properties": { + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + }, + "primaryKey": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "secondaryKey": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "keyName": { + "type": "string", + "readOnly": true + }, + "modifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "createdTime": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "claimType": { + "type": "string", + "readOnly": true + }, + "claimValue": { + "type": "string", + "readOnly": true + }, + "revision": { + "type": "integer", + "format": "int32", + "readOnly": true + } + }, + "required": [ + "rights" + ] + }, + "SharedAccessAuthorizationRuleResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "enum": [ + "Free", + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, + "tier": { + "type": "string" + }, + "size": { + "type": "string" + }, + "family": { + "type": "string" + }, + "capacity": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "name" + ] + }, + "WnsCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/WnsCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "WnsCredentialProperties": { + "type": "object", + "properties": { + "packageSid": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "secretKey": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "windowsLiveEndpoint": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "certificateKey": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "wnsCertificate": { + "type": "string", + "format": "password", + "x-ms-secret": true + } + } + }, + "XiaomiCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/XiaomiCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ] + }, + "XiaomiCredentialProperties": { + "type": "object", + "properties": { + "appSecret": { + "type": "string", + "format": "password", + "x-ms-secret": true + }, + "endpoint": { + "type": "string", + "format": "password", + "x-ms-secret": true + } + } + } + }, + "parameters": {} +} \ No newline at end of file diff --git a/specification/notificationhubs/output/oldSwagger.json b/specification/notificationhubs/output/oldSwagger.json new file mode 100644 index 000000000000..f209a5a5ebc9 --- /dev/null +++ b/specification/notificationhubs/output/oldSwagger.json @@ -0,0 +1,3114 @@ +{ + "swagger": "2.0", + "info": { + "title": "NotificationHubs RP Client", + "version": "2023-10-01-preview", + "description": "Microsoft Notification Hubs Resource Provider REST API." + }, + "paths": { + "/providers/Microsoft.NotificationHubs/operations": { + "get": { + "operationId": "Operations_List", + "parameters": [], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/NHOperationsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { + "post": { + "operationId": "Namespaces_CheckAvailability", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_CheckAvailability": { + "$ref": "./examples/Namespaces/CheckAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "operationId": "Namespaces_ListAll", + "parameters": [ + { + "name": "$skipToken", + "in": "query", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "type": "integer", + "format": "int32", + "default": 100 + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_ListAll": { + "$ref": "./examples/Namespaces/ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "operationId": "Namespaces_List", + "parameters": [ + { + "name": "$skipToken", + "in": "query", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "type": "integer", + "format": "int32", + "default": 100 + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_List": { + "$ref": "./examples/Namespaces/ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { + "get": { + "operationId": "Namespaces_Get", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_Get": { + "$ref": "./examples/Namespaces/Get.json" + } + } + }, + "put": { + "operationId": "Namespaces_CreateOrUpdate", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_CreateOrUpdate": { + "$ref": "./examples/Namespaces/CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Namespaces_Update", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NamespacePatchParameters" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_Update": { + "$ref": "./examples/Namespaces/Update.json" + } + } + }, + "delete": { + "operationId": "Namespaces_Delete", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_Delete": { + "$ref": "./examples/Namespaces/Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { + "get": { + "operationId": "Namespaces_ListAuthorizationRules", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_ListAuthorizationRules": { + "$ref": "./examples/Namespaces/AuthorizationRuleList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": { + "get": { + "operationId": "Namespaces_GetAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_GetAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" + } + } + }, + "put": { + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleCreateOrUpdate.json" + } + } + }, + "delete": { + "operationId": "Namespaces_DeleteAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_DeleteAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "operationId": "Namespaces_ListKeys", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_ListKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleListKeys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "operationId": "Namespaces_RegenerateKeys", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_RegenerateKeys": { + "$ref": "./examples/Namespaces/AuthorizationRuleRegenerateKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { + "post": { + "operationId": "NotificationHubs_CheckNotificationHubAvailability", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_CheckNotificationHubAvailability": { + "$ref": "./examples/NotificationHubs/CheckAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { + "get": { + "operationId": "NotificationHubs_List", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "$skipToken", + "in": "query", + "type": "string" + }, + { + "name": "$top", + "in": "query", + "type": "integer", + "format": "int32", + "default": 100 + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_List": { + "$ref": "./examples/NotificationHubs/List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { + "get": { + "operationId": "NotificationHubs_Get", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_Get": { + "$ref": "./examples/NotificationHubs/Get.json" + } + } + }, + "put": { + "operationId": "NotificationHubs_CreateOrUpdate", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_CreateOrUpdate": { + "$ref": "./examples/NotificationHubs/CreateOrUpdate.json" + } + } + }, + "patch": { + "operationId": "NotificationHubs_Update", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationHubPatchParameters" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_Update": { + "$ref": "./examples/NotificationHubs/Update.json" + } + } + }, + "delete": { + "operationId": "NotificationHubs_Delete", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_Delete": { + "$ref": "./examples/NotificationHubs/Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { + "get": { + "operationId": "NotificationHubs_ListAuthorizationRules", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_ListAuthorizationRules": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}": { + "get": { + "operationId": "NotificationHubs_GetAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_GetAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" + } + } + }, + "put": { + "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json" + } + } + }, + "delete": { + "operationId": "NotificationHubs_DeleteAuthorizationRule", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_DeleteAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "operationId": "NotificationHubs_ListKeys", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_ListKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleListKeys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "operationId": "NotificationHubs_RegenerateKeys", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[a-zA-Z0-9!()*-._]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_RegenerateKeys": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleRegenerateKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { + "post": { + "operationId": "NotificationHubs_DebugSend", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/DebugSendResponse" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_DebugSend": { + "$ref": "./examples/NotificationHubs/DebugSend.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { + "post": { + "operationId": "NotificationHubs_GetPnsCredentials", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 265, + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PnsCredentialsResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_GetPnsCredentials": { + "$ref": "./examples/NotificationHubs/PnsCredentialsGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials": { + "post": { + "operationId": "Namespaces_GetPnsCredentials", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PnsCredentialsResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_GetPnsCredentials": { + "$ref": "./examples/Namespaces/PnsCredentialsGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections": { + "get": { + "operationId": "PrivateEndpointConnections_List", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResourceListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_List": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "operationId": "PrivateEndpointConnections_Get", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Get": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionGet.json" + } + } + }, + "put": { + "operationId": "PrivateEndpointConnections_Update", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "201": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Update": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "PrivateEndpointConnections_Delete", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 87, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" + } + ], + "responses": { + "202": { + "description": "ignore" + }, + "204": { + "description": "ignore" + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Delete": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources": { + "get": { + "operationId": "PrivateEndpointConnections_ListGroupIds", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_ListGroupIds": { + "$ref": "./examples/Namespaces/PrivateLinkResourceList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}": { + "get": { + "operationId": "PrivateEndpointConnections_GetGroupId", + "parameters": [ + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" + }, + { + "name": "subResourceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^namespace$" + } + ], + "responses": { + "200": { + "description": "ignore", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "ignore", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_GetGroupId": { + "$ref": "./examples/Namespaces/PrivateLinkResourceGet.json" + } + } + } + } + }, + "definitions": { + "AdmCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AdmCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "x-ms-secret": true + }, + "AdmCredentialProperties": { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "clientSecret": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "authTokenUrl": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "authTokenUrl", + "clientId", + "clientSecret" + ] + }, + "ApnsCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ApnsCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "x-ms-secret": true + }, + "ApnsCredentialProperties": { + "type": "object", + "properties": { + "apnsCertificate": { + "type": "string", + "x-ms-secret": true + }, + "certificateKey": { + "type": "string", + "x-ms-secret": true + }, + "endpoint": { + "type": "string", + "minLength": 1, + "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 + } + }, + "required": [ + "endpoint" + ] + }, + "Availability": { + "type": "object", + "properties": { + "timeGrain": { + "type": "string", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "readOnly": true + } + } + }, + "BaiduCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/BaiduCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "x-ms-secret": true + }, + "BaiduCredentialProperties": { + "type": "object", + "properties": { + "baiduApiKey": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "baiduEndPoint": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "baiduSecretKey": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "baiduApiKey", + "baiduEndPoint", + "baiduSecretKey" + ] + }, + "BrowserCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/BrowserCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "x-ms-secret": true + }, + "BrowserCredentialProperties": { + "type": "object", + "properties": { + "subject": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "vapidPrivateKey": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "vapidPublicKey": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "subject", + "vapidPrivateKey", + "vapidPublicKey" + ] + }, + "CheckAvailabilityParameters": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "minLength": 1 + }, + "type": { + "type": "string", + "readOnly": true + }, + "location": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "isAvailiable": { + "type": "boolean" + }, + "sku": { + "$ref": "#/definitions/Sku" + } + }, + "required": [ + "name" + ] + }, + "CheckAvailabilityResult": { + "type": "object", + "properties": { + "isAvailiable": { + "type": "boolean" + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/Sku" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "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": { + "properties": { + "$ref": "#/definitions/DebugSendResult", + "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "DebugSendResult": { + "type": "object", + "properties": { + "success": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "failure": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RegistrationResult" + }, + "readOnly": true, + "x-ms-identifiers": [] + } + } + }, + "FcmV1Credential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/FcmV1CredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "x-ms-secret": true + }, + "FcmV1CredentialProperties": { + "type": "object", + "properties": { + "clientEmail": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "privateKey": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "projectId": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "clientEmail", + "privateKey", + "projectId" + ] + }, + "GcmCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/GcmCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "x-ms-secret": true + }, + "GcmCredentialProperties": { + "type": "object", + "properties": { + "gcmEndpoint": { + "type": "string", + "x-ms-secret": true + }, + "googleApiKey": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "googleApiKey" + ] + }, + "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": { + "type": "object", + "properties": { + "ipMask": { + "type": "string", + "minLength": 1 + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + } + }, + "required": [ + "ipMask", + "rights" + ] + }, + "LogSpecification": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "displayName": { + "type": "string", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "readOnly": true + }, + "categoryGroups": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "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, + "x-ms-identifiers": [] + }, + "supportedTimeGrainTypes": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "metricFilterPattern": { + "type": "string", + "readOnly": true + }, + "fillGapWithZero": { + "type": "boolean", + "readOnly": true + } + } + }, + "MpnsCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MpnsCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "x-ms-secret": true + }, + "MpnsCredentialProperties": { + "type": "object", + "properties": { + "mpnsCertificate": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "certificateKey": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + }, + "thumbprint": { + "type": "string", + "minLength": 1, + "x-ms-secret": true + } + }, + "required": [ + "certificateKey", + "mpnsCertificate", + "thumbprint" + ] + }, + "NamespaceListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/NamespaceResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "NamespacePatchParameters": { + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NamespaceProperties": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "enum": [ + "Unknown", + "InProgress", + "Succeeded", + "Failed", + "Canceled", + "Pending", + "Disabled" + ], + "x-ms-enum": { + "name": "OperationProvisioningState", + "modelAsString": true + } + }, + "status": { + "type": "string", + "enum": [ + "Created", + "Creating", + "Suspended", + "Deleting" + ], + "x-ms-enum": { + "name": "NamespaceStatus", + "modelAsString": true + } + }, + "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": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "namespaceType": { + "type": "string", + "enum": [ + "Messaging", + "NotificationHub" + ], + "x-ms-enum": { + "name": "NamespaceType", + "modelAsString": true + } + }, + "replicationRegion": { + "type": "string", + "enum": [ + "Default", + "WestUs2", + "NorthEurope", + "AustraliaEast", + "BrazilSouth", + "SouthEastAsia", + "SouthAfricaNorth", + "None" + ], + "x-ms-enum": { + "name": "ReplicationRegion", + "modelAsString": true + } + }, + "zoneRedundancy": { + "type": "string", + "default": "Disabled", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "ZoneRedundancyPreference", + "modelAsString": true + }, + "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 + }, + "scaleUnit": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "dataCenter": { + "type": "string" + }, + "publicNetworkAccess": { + "type": "string", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + } + } + }, + "NamespaceResource": { + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "location", + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "NetworkAcls": { + "type": "object", + "properties": { + "ipRules": { + "type": "array", + "items": { + "$ref": "#/definitions/IpRule" + }, + "x-ms-identifiers": [] + }, + "publicNetworkRule": { + "$ref": "#/definitions/PublicInternetAuthorizationRule" + } + } + }, + "NotificationHubListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/NotificationHubResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "NotificationHubPatchParameters": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/NotificationHubProperties", + "x-ms-client-flatten": true + }, + "sku": { + "$ref": "#/definitions/Sku" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "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-identifiers": [ + "keyName" + ], + "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" + }, + "fcmV1Credential": { + "$ref": "#/definitions/FcmV1Credential" + }, + "dailyMaxActiveDevices": { + "type": "integer", + "format": "int64", + "readOnly": true + } + } + }, + "NotificationHubResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/NotificationHubProperties", + "x-ms-client-flatten": true + }, + "sku": { + "$ref": "#/definitions/Sku" + } + }, + "required": [ + "location" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "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", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/Operation" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "OperationProperties": { + "type": "object", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification" + } + } + }, + "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" + }, + "fcmV1Credential": { + "$ref": "#/definitions/FcmV1Credential" + } + }, + "x-ms-secret": true + }, + "PnsCredentialsResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PnsCredentials", + "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "PolicyKeyResource": { + "type": "object", + "properties": { + "policyKey": { + "type": "string", + "enum": [ + "PrimaryKey", + "SecondaryKey" + ], + "x-ms-enum": { + "name": "PolicyKeyType", + "modelAsString": true + } + } + }, + "required": [ + "policyKey" + ] + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "provisioningState": { + "type": "string", + "enum": [ + "Unknown", + "Succeeded", + "Creating", + "Updating", + "UpdatingByProxy", + "Deleting", + "DeletingByProxy", + "Deleted" + ], + "x-ms-enum": { + "name": "PrivateEndpointConnectionProvisioningState", + "modelAsString": true + } + }, + "privateEndpoint": { + "$ref": "#/definitions/RemotePrivateEndpointConnection" + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState" + } + } + }, + "PrivateEndpointConnectionResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "PrivateEndpointConnectionResourceListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "PrivateLinkResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "PrivateLinkResourceListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "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": { + "name": { + "type": "string" + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "requestMessage": { + "type": "string" + } + } + }, + "PublicInternetAuthorizationRule": { + "type": "object", + "properties": { + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + } + }, + "required": [ + "rights" + ] + }, + "RegistrationResult": { + "type": "object", + "properties": { + "applicationPlatform": { + "type": "string", + "readOnly": true + }, + "pnsHandle": { + "type": "string", + "readOnly": true + }, + "registrationId": { + "type": "string", + "readOnly": true + }, + "outcome": { + "type": "string", + "readOnly": true + } + } + }, + "RemotePrivateEndpointConnection": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true + } + } + }, + "RemotePrivateLinkServiceConnectionState": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "Disconnected", + "Pending", + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "PrivateLinkConnectionStatus", + "modelAsString": true + } + }, + "description": { + "type": "string", + "readOnly": true + }, + "actionsRequired": { + "type": "string", + "readOnly": 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, + "x-ms-identifiers": [ + "name" + ] + }, + "metricSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name", + "unit" + ] + } + } + }, + "SharedAccessAuthorizationRuleListResult": { + "type": "object", + "description": "[Placeholder] Discription for page model", + "properties": { + "value": { + "type": "array", + "description": "[Placeholder] Discription for value property", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "[Placeholder] Discription for nextLink property" + } + }, + "required": [ + "value" + ] + }, + "SharedAccessAuthorizationRuleProperties": { + "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": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "createdTime": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "claimType": { + "type": "string", + "readOnly": true + }, + "claimValue": { + "type": "string", + "readOnly": true + }, + "revision": { + "type": "integer", + "format": "int32", + "readOnly": true + } + }, + "required": [ + "rights" + ] + }, + "SharedAccessAuthorizationRuleResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", + "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "enum": [ + "Free", + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, + "tier": { + "type": "string" + }, + "size": { + "type": "string" + }, + "family": { + "type": "string" + }, + "capacity": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "name" + ] + }, + "WnsCredential": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/WnsCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "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": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/XiaomiCredentialProperties", + "x-ms-client-flatten": true + } + }, + "required": [ + "properties" + ], + "x-ms-secret": true + }, + "XiaomiCredentialProperties": { + "type": "object", + "properties": { + "appSecret": { + "type": "string", + "x-ms-secret": true + }, + "endpoint": { + "type": "string", + "x-ms-secret": true + } + } + } + }, + "parameters": {} +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json index caf1813ca3e8..bd9dc7247272 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json @@ -78,7 +78,7 @@ "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + "$ref": "#/definitions/OperationListResult" } }, "default": { @@ -111,7 +111,7 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "body", + "name": "parameters", "in": "body", "description": "The request body", "required": true, @@ -174,9 +174,9 @@ ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/NamespaceResourceListResult" + "$ref": "#/definitions/NamespaceListResult" } }, "default": { @@ -232,9 +232,9 @@ ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/NamespaceResourceListResult" + "$ref": "#/definitions/NamespaceListResult" } }, "default": { @@ -511,9 +511,9 @@ ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResourceListResult" + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" } }, "default": { @@ -932,9 +932,9 @@ ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/NotificationHubResourceListResult" + "$ref": "#/definitions/NotificationHubListResult" } }, "default": { @@ -1244,9 +1244,9 @@ ], "responses": { "200": { - "description": "Azure operation completed successfully.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResourceListResult" + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" } }, "default": { @@ -2196,18 +2196,24 @@ "properties": { "clientId": { "type": "string", + "format": "password", "description": "Gets or sets the client identifier.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "clientSecret": { "type": "string", + "format": "password", "description": "Gets or sets the credential secret access key.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "authTokenUrl": { "type": "string", + "format": "password", "description": "Gets or sets the URL of the authorization token.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true } }, "required": [ @@ -2236,42 +2242,74 @@ "properties": { "apnsCertificate": { "type": "string", - "description": "Gets or sets the APNS certificate." + "format": "password", + "description": "Gets or sets the APNS certificate.", + "x-ms-secret": true }, "certificateKey": { "type": "string", - "description": "Gets or sets the certificate key." + "format": "password", + "description": "Gets or sets the certificate key.", + "x-ms-secret": true }, "endpoint": { "type": "string", + "format": "password", "description": "Gets or sets the endpoint of this credential.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "thumbprint": { "type": "string", - "description": "Gets or sets the APNS certificate Thumbprint" + "format": "password", + "description": "Gets or sets the APNS certificate Thumbprint", + "x-ms-secret": true }, "keyId": { "type": "string", - "description": "Gets or sets a 10-character key identifier (kid) key, obtained from\nyour developer account" + "format": "password", + "description": "Gets or sets a 10-character key identifier (kid) key, obtained from\nyour developer account", + "x-ms-secret": true }, "appName": { "type": "string", - "description": "Gets or sets the name of the application" + "format": "password", + "description": "Gets or sets the name of the application", + "x-ms-secret": true }, "appId": { "type": "string", - "description": "Gets or sets the issuer (iss) registered claim key, whose value is\nyour 10-character Team ID, obtained from your developer account" + "format": "password", + "description": "Gets or sets the issuer (iss) registered claim key, whose value is\nyour 10-character Team ID, obtained from your developer account", + "x-ms-secret": true }, "token": { "type": "string", - "description": "Gets or sets provider Authentication Token, obtained through your\ndeveloper account" + "format": "password", + "description": "Gets or sets provider Authentication Token, obtained through your\ndeveloper account", + "x-ms-secret": true } }, "required": [ "endpoint" ] }, + "Availability": { + "type": "object", + "description": "Represents metric availability (part of RP operation descriptions).", + "properties": { + "timeGrain": { + "type": "string", + "description": "Time grain of the availability.", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "description": "Duration of the availability blob.", + "readOnly": true + } + } + }, "BaiduCredential": { "type": "object", "description": "Description of a NotificationHub BaiduCredential.", @@ -2292,18 +2330,24 @@ "properties": { "baiduApiKey": { "type": "string", + "format": "password", "description": "Gets or sets baidu Api Key.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "baiduEndPoint": { "type": "string", + "format": "password", "description": "Gets or sets baidu Endpoint.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "baiduSecretKey": { "type": "string", + "format": "password", "description": "Gets or sets baidu Secret Key", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true } }, "required": [ @@ -2332,18 +2376,24 @@ "properties": { "subject": { "type": "string", + "format": "password", "description": "Gets or sets web push subject.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "vapidPrivateKey": { "type": "string", + "format": "password", "description": "Gets or sets VAPID private key.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "vapidPublicKey": { "type": "string", + "format": "password", "description": "Gets or sets VAPID public key.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true } }, "required": [ @@ -2507,18 +2557,24 @@ "properties": { "clientEmail": { "type": "string", + "format": "password", "description": "Gets or sets client email.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "privateKey": { "type": "string", + "format": "password", "description": "Gets or sets private key.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "projectId": { "type": "string", + "format": "password", "description": "Gets or sets project id.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true } }, "required": [ @@ -2547,12 +2603,16 @@ "properties": { "gcmEndpoint": { "type": "string", - "description": "Gets or sets the GCM endpoint." + "format": "password", + "description": "Gets or sets the GCM endpoint.", + "x-ms-secret": true }, "googleApiKey": { "type": "string", + "format": "password", "description": "Gets or sets the Google API key.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true } }, "required": [ @@ -2581,6 +2641,93 @@ "rights" ] }, + "LogSpecification": { + "type": "object", + "description": "A single log category specification.", + "properties": { + "name": { + "type": "string", + "description": "Name of the log category.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "Display name of the log category.", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "description": "Duration of data written to a single blob.", + "readOnly": true + }, + "categoryGroups": { + "type": "array", + "description": "Category group for the log specification.", + "items": { + "type": "string" + } + } + } + }, + "MetricSpecification": { + "type": "object", + "description": "A metric specification.", + "properties": { + "name": { + "type": "string", + "description": "Metric name / id.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "User-visible metric name.", + "readOnly": true + }, + "displayDescription": { + "type": "string", + "description": "Description of the metric.", + "readOnly": true + }, + "unit": { + "type": "string", + "description": "Metric unit.", + "readOnly": true + }, + "aggregationType": { + "type": "string", + "description": "Type of the aggregation (Average, Minimum, Maximum, Total or Count).", + "readOnly": true + }, + "availabilities": { + "type": "array", + "description": "List of availabilities.", + "items": { + "$ref": "#/definitions/Availability" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "supportedTimeGrainTypes": { + "type": "array", + "description": "List of supported time grain types.", + "items": { + "type": "string" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "metricFilterPattern": { + "type": "string", + "description": "The matching regex pattern to be applied to the field pointed by the \"metricsFilterPathSelector\" flag in the ARM manifest.", + "readOnly": true + }, + "fillGapWithZero": { + "type": "boolean", + "description": "Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published.", + "readOnly": true + } + } + }, "MpnsCredential": { "type": "object", "description": "Description of a NotificationHub MpnsCredential.", @@ -2601,18 +2748,24 @@ "properties": { "mpnsCertificate": { "type": "string", + "format": "password", "description": "Gets or sets the MPNS certificate.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "certificateKey": { "type": "string", + "format": "password", "description": "Gets or sets the certificate key for this credential.", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true }, "thumbprint": { "type": "string", + "format": "password", "description": "Gets or sets the MPNS certificate Thumbprint", - "minLength": 1 + "minLength": 1, + "x-ms-secret": true } }, "required": [ @@ -2621,6 +2774,28 @@ "thumbprint" ] }, + "NamespaceListResult": { + "type": "object", + "description": "Paged collection of NamespaceResource items", + "properties": { + "value": { + "type": "array", + "description": "The NamespaceResource items on this page", + "items": { + "$ref": "#/definitions/NamespaceResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, "NamespacePatchParameters": { "type": "object", "description": "Patch parameter for NamespaceResource.", @@ -2725,7 +2900,11 @@ "value": "Enabled" } ] - } + }, + "x-ms-mutability": [ + "read", + "create" + ] }, "networkAcls": { "$ref": "#/definitions/NetworkAcls", @@ -2808,27 +2987,6 @@ } ] }, - "NamespaceResourceListResult": { - "type": "object", - "description": "The response of a NamespaceResource list operation.", - "properties": { - "value": { - "type": "array", - "description": "The NamespaceResource items on this page", - "items": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, "NamespaceStatus": { "type": "string", "description": "Namespace status.", @@ -2901,6 +3059,28 @@ } } }, + "NotificationHubListResult": { + "type": "object", + "description": "Paged collection of NotificationHubResource items", + "properties": { + "value": { + "type": "array", + "description": "The NotificationHubResource items on this page", + "items": { + "$ref": "#/definitions/NotificationHubResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, "NotificationHubPatchParameters": { "type": "object", "description": "Patch parameter for NamespaceResource.", @@ -3013,16 +3193,67 @@ } ] }, - "NotificationHubResourceListResult": { + "Operation": { "type": "object", - "description": "The response of a NotificationHubResource list operation.", + "description": "Result of the request to list SQL operations.", + "properties": { + "name": { + "type": "string", + "description": "The name of the operation being performed on this particular object.\"", + "readOnly": true + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "he localized display information for this particular operation / action." + }, + "isDataAction": { + "type": "boolean", + "description": "The intended executor of the operation.\"", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/OperationProperties", + "description": "Additional descriptions for the operation." + } + } + }, + "OperationDisplay": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "description": "The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".", + "readOnly": true + }, + "resource": { + "type": "string", + "description": "The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".", + "readOnly": true + }, + "operation": { + "type": "string", + "description": "The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".", + "readOnly": true + }, + "description": { + "type": "string", + "description": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.", + "readOnly": true + } + } + }, + "OperationListResult": { + "type": "object", + "description": "Paged collection of Operation items", "properties": { "value": { "type": "array", - "description": "The NotificationHubResource items on this page", + "description": "The Operation items on this page", "items": { - "$ref": "#/definitions/NotificationHubResource" - } + "$ref": "#/definitions/Operation" + }, + "readOnly": true, + "x-ms-identifiers": [] }, "nextLink": { "type": "string", @@ -3034,6 +3265,16 @@ "value" ] }, + "OperationProperties": { + "type": "object", + "description": "Optional operation properties.", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification", + "description": "Optional service specification used in Operations API." + } + } + }, "OperationProvisioningState": { "type": "string", "description": "Defines values for OperationProvisioningState.", @@ -3293,7 +3534,8 @@ "description": "The PrivateEndpointConnectionResource items on this page", "items": { "$ref": "#/definitions/PrivateEndpointConnectionResource" - } + }, + "readOnly": true }, "nextLink": { "type": "string", @@ -3362,7 +3604,8 @@ "description": "The PrivateLinkResource items on this page", "items": { "$ref": "#/definitions/PrivateLinkResource" - } + }, + "readOnly": true }, "nextLink": { "type": "string", @@ -3532,23 +3775,31 @@ "properties": { "primaryConnectionString": { "type": "string", + "format": "password", "description": "Gets or sets primaryConnectionString of the AuthorizationRule.", - "readOnly": true + "readOnly": true, + "x-ms-secret": true }, "secondaryConnectionString": { "type": "string", + "format": "password", "description": "Gets or sets secondaryConnectionString of the created\nAuthorizationRule", - "readOnly": true + "readOnly": true, + "x-ms-secret": true }, "primaryKey": { "type": "string", + "format": "password", "description": "Gets or sets primaryKey of the created AuthorizationRule.", - "readOnly": true + "readOnly": true, + "x-ms-secret": true }, "secondaryKey": { "type": "string", + "format": "password", "description": "Gets or sets secondaryKey of the created AuthorizationRule", - "readOnly": true + "readOnly": true, + "x-ms-secret": true }, "keyName": { "type": "string", @@ -3557,6 +3808,57 @@ } } }, + "ServiceSpecification": { + "type": "object", + "description": "Optional service specification used in Operations API.", + "properties": { + "logSpecifications": { + "type": "array", + "description": "Log specifications.", + "items": { + "$ref": "#/definitions/LogSpecification" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + }, + "metricSpecifications": { + "type": "array", + "description": "Metric specification.", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name", + "unit" + ] + } + } + }, + "SharedAccessAuthorizationRuleListResult": { + "type": "object", + "description": "Paged collection of SharedAccessAuthorizationRuleResource items", + "properties": { + "value": { + "type": "array", + "description": "The SharedAccessAuthorizationRuleResource items on this page", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, "SharedAccessAuthorizationRuleProperties": { "type": "object", "description": "SharedAccessAuthorizationRule properties.", @@ -3570,11 +3872,15 @@ }, "primaryKey": { "type": "string", - "description": "Gets a base64-encoded 256-bit primary key for signing and\nvalidating the SAS token." + "format": "password", + "description": "Gets a base64-encoded 256-bit primary key for signing and\nvalidating the SAS token.", + "x-ms-secret": true }, "secondaryKey": { "type": "string", - "description": "Gets a base64-encoded 256-bit primary key for signing and\nvalidating the SAS token." + "format": "password", + "description": "Gets a base64-encoded 256-bit primary key for signing and\nvalidating the SAS token.", + "x-ms-secret": true }, "keyName": { "type": "string", @@ -3630,27 +3936,6 @@ } ] }, - "SharedAccessAuthorizationRuleResourceListResult": { - "type": "object", - "description": "The response of a SharedAccessAuthorizationRuleResource list operation.", - "properties": { - "value": { - "type": "array", - "description": "The SharedAccessAuthorizationRuleResource items on this page", - "items": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, "Sku": { "type": "object", "description": "The Sku description for a namespace", @@ -3728,23 +4013,33 @@ "properties": { "packageSid": { "type": "string", - "description": "Gets or sets the package ID for this credential." + "format": "password", + "description": "Gets or sets the package ID for this credential.", + "x-ms-secret": true }, "secretKey": { "type": "string", - "description": "Gets or sets the secret key." + "format": "password", + "description": "Gets or sets the secret key.", + "x-ms-secret": true }, "windowsLiveEndpoint": { "type": "string", - "description": "Gets or sets the Windows Live endpoint." + "format": "password", + "description": "Gets or sets the Windows Live endpoint.", + "x-ms-secret": true }, "certificateKey": { "type": "string", - "description": "Ges or sets the WNS Certificate Key." + "format": "password", + "description": "Ges or sets the WNS Certificate Key.", + "x-ms-secret": true }, "wnsCertificate": { "type": "string", - "description": "Gets or sets the WNS Certificate." + "format": "password", + "description": "Gets or sets the WNS Certificate.", + "x-ms-secret": true } } }, @@ -3768,11 +4063,15 @@ "properties": { "appSecret": { "type": "string", - "description": "Gets or sets app secret." + "format": "password", + "description": "Gets or sets app secret.", + "x-ms-secret": true }, "endpoint": { "type": "string", - "description": "Gets or sets xiaomi service endpoint." + "format": "password", + "description": "Gets or sets xiaomi service endpoint.", + "x-ms-secret": true } } } From c06ecaf2425a5de1ac22c084f8dc9253dcd5cc95 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Tue, 6 May 2025 15:41:05 +0800 Subject: [PATCH 05/14] update --- .../SharedAccessAuthorizationRuleResource.tsp | 8 +++++- .../Notificationhubs.Management/models.tsp | 1 + .../tspconfig.yaml | 8 ++++-- .../notificationhubs/output/diff.json | 2 +- .../notificationhubs/output/newSwagger.json | 28 +++++++++++++------ .../2023-10-01-preview/notificationhubs.json | 28 +++++++++++++------ 6 files changed, 55 insertions(+), 20 deletions(-) diff --git a/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp b/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp index bb8e3b5ed0be..c3ae94b5c7fc 100644 --- a/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/SharedAccessAuthorizationRuleResource.tsp @@ -16,13 +16,15 @@ namespace Microsoft.NotificationHubs; */ @parentResource(NotificationHubResource) model SharedAccessAuthorizationRuleResource - is Azure.ResourceManager.TrackedResource { + is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = SharedAccessAuthorizationRuleResource, KeyName = "authorizationRuleName", SegmentName = "authorizationRules", NamePattern = "^[a-zA-Z0-9!()*-._]+$" >; + location?: string; + tags?: Record; } @armResourceOperations @@ -192,3 +194,7 @@ interface Namespaces { "Request content." ); @@doc(Namespaces.regenerateKeys::parameters.body, "Request content."); +@@visibility(SharedAccessAuthorizationRuleResource.location, + Lifecycle.Read, + Lifecycle.Create +); diff --git a/specification/notificationhubs/Notificationhubs.Management/models.tsp b/specification/notificationhubs/Notificationhubs.Management/models.tsp index 1fd050e8d256..17eb48916246 100644 --- a/specification/notificationhubs/Notificationhubs.Management/models.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/models.tsp @@ -1602,3 +1602,4 @@ model SharedAccessAuthorizationRuleListResult model NotificationHubListResult is Azure.Core.Page; @@visibility(Azure.Core.Page.value, Lifecycle.Read); +@@OpenAPI.extension(OperationListResult.value, "x-ms-identifiers", #["name"]); diff --git a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml index 647758588df1..ca8cdbc81601 100644 --- a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml +++ b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml @@ -2,13 +2,17 @@ emit: - "@azure-tools/typespec-autorest" options: "@azure-tools/typespec-autorest": - use-read-only-status-schema: true omit-unreachable-types: true emitter-output-dir: "{project-root}/.." azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/notificationhubs.json" examples-dir: "{project-root}/examples" - arm-resource-flattening: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" + disable: + "@azure-tools/typespec-azure-core/documentation-required" : "Check" + "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" : "Check" + "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property" : "Check" + "@azure-tools/typespec-azure-resource-manager/arm-no-record" : "Check" + "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" : "Check" \ No newline at end of file diff --git a/specification/notificationhubs/output/diff.json b/specification/notificationhubs/output/diff.json index c263de95fa98..ff9d1f0b47ce 100644 --- a/specification/notificationhubs/output/diff.json +++ b/specification/notificationhubs/output/diff.json @@ -1 +1 @@ -" {\n\u001b[32m+ produces: [\u001b[39m\n\u001b[32m+ \"application/json\"\u001b[39m\n\u001b[32m+ ]\u001b[39m\n\u001b[32m+ consumes: [\u001b[39m\n\u001b[32m+ \"application/json\"\u001b[39m\n\u001b[32m+ ]\u001b[39m\n info: {\n\u001b[32m+ x-typespec-generated: [\u001b[39m\n\u001b[32m+ {\u001b[39m\n\u001b[32m+ emitter: \"@azure-tools/typespec-autorest\"\u001b[39m\n\u001b[32m+ }\u001b[39m\n\u001b[32m+ ]\u001b[39m\n }\n paths: {\n /providers/Microsoft.NotificationHubs/operations: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n ]\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n put: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n delete: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n ]\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n put: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n delete: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n }\n definitions: {\n\u001b[31m- ConnectionDetails: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- id: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- privateIpAddress: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- linkIdentifier: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- groupId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- memberName: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- GroupConnectivityInformation: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- groupId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- memberName: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- customerVisibleFqdns: {\u001b[39m\n\u001b[31m- type: \"array\"\u001b[39m\n\u001b[31m- items: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- internalFqdn: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- redirectMapId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- privateLinkServiceArmRegion: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- PrivateLinkServiceConnection: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- name: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- groupIds: {\u001b[39m\n\u001b[31m- type: \"array\"\u001b[39m\n\u001b[31m- items: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- requestMessage: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n AdmCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n AdmCredentialProperties: {\n properties: {\n clientId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n clientSecret: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n authTokenUrl: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n ApnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n ApnsCredentialProperties: {\n properties: {\n apnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n endpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n thumbprint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n keyId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n appName: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n appId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n token: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n BaiduCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n BaiduCredentialProperties: {\n properties: {\n baiduApiKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n baiduEndPoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n baiduSecretKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n BrowserCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n BrowserCredentialProperties: {\n properties: {\n subject: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n vapidPrivateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n vapidPublicKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n FcmV1Credential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n FcmV1CredentialProperties: {\n properties: {\n clientEmail: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n privateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n projectId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n GcmCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n GcmCredentialProperties: {\n properties: {\n gcmEndpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n googleApiKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n MpnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n MpnsCredentialProperties: {\n properties: {\n mpnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n thumbprint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n NamespaceProperties: {\n properties: {\n provisioningState: {\n\u001b[32m+ readOnly: true\u001b[39m\n }\n }\n }\n NamespaceResource: {\n required: [\n\u001b[31m- \"location\"\u001b[39m\n ...\n ]\n }\n NotificationHubProperties: {\n properties: {\n authorizationRules: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n }\n }\n NotificationHubResource: {\n\u001b[31m- required: [\u001b[39m\n\u001b[31m- \"location\"\u001b[39m\n\u001b[31m- ]\u001b[39m\n }\n OperationListResult: {\n properties: {\n value: {\n x-ms-identifiers: [\n\u001b[31m- \"name\"\u001b[39m\n ]\n }\n }\n }\n PnsCredentials: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n PrivateEndpointConnectionResource: {\n properties: {\n properties: {\n\u001b[32m+ x-ms-client-flatten: true\u001b[39m\n }\n }\n }\n PrivateLinkResource: {\n properties: {\n properties: {\n\u001b[32m+ x-ms-client-flatten: true\u001b[39m\n }\n }\n }\n ResourceListKeys: {\n properties: {\n primaryConnectionString: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryConnectionString: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n primaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n SharedAccessAuthorizationRuleProperties: {\n properties: {\n primaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n SharedAccessAuthorizationRuleResource: {\n properties: {\n\u001b[31m- location: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- x-ms-mutability: [\u001b[39m\n\u001b[31m- \"create\"\u001b[39m\n\u001b[31m- \"read\"\u001b[39m\n\u001b[31m- ]\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- tags: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- additionalProperties: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n }\n allOf: [\n {\n\u001b[31m- $ref: \"../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource\"\u001b[39m\n\u001b[32m+ $ref: \"../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource\"\u001b[39m\n }\n ]\n }\n WnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n WnsCredentialProperties: {\n properties: {\n packageSid: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secretKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n windowsLiveEndpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n wnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n XiaomiCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n XiaomiCredentialProperties: {\n properties: {\n appSecret: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n endpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n }\n }\n" \ No newline at end of file +" {\n\u001b[32m+ produces: [\u001b[39m\n\u001b[32m+ \"application/json\"\u001b[39m\n\u001b[32m+ ]\u001b[39m\n\u001b[32m+ consumes: [\u001b[39m\n\u001b[32m+ \"application/json\"\u001b[39m\n\u001b[32m+ ]\u001b[39m\n info: {\n\u001b[32m+ x-typespec-generated: [\u001b[39m\n\u001b[32m+ {\u001b[39m\n\u001b[32m+ emitter: \"@azure-tools/typespec-autorest\"\u001b[39m\n\u001b[32m+ }\u001b[39m\n\u001b[32m+ ]\u001b[39m\n }\n paths: {\n /providers/Microsoft.NotificationHubs/operations: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n ]\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n put: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n delete: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n ]\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n put: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n delete: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n }\n definitions: {\n\u001b[31m- ConnectionDetails: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- id: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- privateIpAddress: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- linkIdentifier: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- groupId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- memberName: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- GroupConnectivityInformation: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- groupId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- memberName: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- customerVisibleFqdns: {\u001b[39m\n\u001b[31m- type: \"array\"\u001b[39m\n\u001b[31m- items: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- internalFqdn: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- redirectMapId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- privateLinkServiceArmRegion: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- PrivateLinkServiceConnection: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- name: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- groupIds: {\u001b[39m\n\u001b[31m- type: \"array\"\u001b[39m\n\u001b[31m- items: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- requestMessage: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n AdmCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n AdmCredentialProperties: {\n properties: {\n clientId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n clientSecret: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n authTokenUrl: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n ApnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n ApnsCredentialProperties: {\n properties: {\n apnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n endpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n thumbprint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n keyId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n appName: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n appId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n token: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n BaiduCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n BaiduCredentialProperties: {\n properties: {\n baiduApiKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n baiduEndPoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n baiduSecretKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n BrowserCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n BrowserCredentialProperties: {\n properties: {\n subject: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n vapidPrivateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n vapidPublicKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n FcmV1Credential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n FcmV1CredentialProperties: {\n properties: {\n clientEmail: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n privateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n projectId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n GcmCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n GcmCredentialProperties: {\n properties: {\n gcmEndpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n googleApiKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n MpnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n MpnsCredentialProperties: {\n properties: {\n mpnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n thumbprint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n NamespaceResource: {\n required: [\n\u001b[31m- \"location\"\u001b[39m\n ...\n ]\n }\n NotificationHubProperties: {\n properties: {\n authorizationRules: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n }\n }\n NotificationHubResource: {\n\u001b[31m- required: [\u001b[39m\n\u001b[31m- \"location\"\u001b[39m\n\u001b[31m- ]\u001b[39m\n }\n PnsCredentials: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n ResourceListKeys: {\n properties: {\n primaryConnectionString: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryConnectionString: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n primaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n SharedAccessAuthorizationRuleProperties: {\n properties: {\n primaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n WnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n WnsCredentialProperties: {\n properties: {\n packageSid: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secretKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n windowsLiveEndpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n wnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n XiaomiCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n XiaomiCredentialProperties: {\n properties: {\n appSecret: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n endpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n }\n }\n" \ No newline at end of file diff --git a/specification/notificationhubs/output/newSwagger.json b/specification/notificationhubs/output/newSwagger.json index afd0ba99fb70..50984b592c14 100644 --- a/specification/notificationhubs/output/newSwagger.json +++ b/specification/notificationhubs/output/newSwagger.json @@ -2116,8 +2116,7 @@ "x-ms-enum": { "name": "OperationProvisioningState", "modelAsString": true - }, - "readOnly": true + } }, "status": { "type": "string", @@ -2447,7 +2446,9 @@ "$ref": "#/definitions/Operation" }, "readOnly": true, - "x-ms-identifiers": [] + "x-ms-identifiers": [ + "name" + ] }, "nextLink": { "type": "string", @@ -2584,8 +2585,7 @@ "type": "object", "properties": { "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties", - "x-ms-client-flatten": true + "$ref": "#/definitions/PrivateEndpointConnectionProperties" } }, "allOf": [ @@ -2620,8 +2620,7 @@ "type": "object", "properties": { "properties": { - "$ref": "#/definitions/PrivateLinkResourceProperties", - "x-ms-client-flatten": true + "$ref": "#/definitions/PrivateLinkResourceProperties" } }, "allOf": [ @@ -2883,11 +2882,24 @@ "properties": { "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json index bd9dc7247272..33f8c912e161 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json @@ -3253,7 +3253,9 @@ "$ref": "#/definitions/Operation" }, "readOnly": true, - "x-ms-identifiers": [] + "x-ms-identifiers": [ + "name" + ] }, "nextLink": { "type": "string", @@ -3320,8 +3322,7 @@ "value": "Disabled" } ] - }, - "readOnly": true + } }, "PnsCredentials": { "type": "object", @@ -3515,8 +3516,7 @@ "properties": { "properties": { "$ref": "#/definitions/PrivateEndpointConnectionProperties", - "description": "Private Endpoint Connection properties.", - "x-ms-client-flatten": true + "description": "Private Endpoint Connection properties." } }, "allOf": [ @@ -3585,8 +3585,7 @@ "properties": { "properties": { "$ref": "#/definitions/PrivateLinkResourceProperties", - "description": "Represents properties of Private Link Resource.", - "x-ms-client-flatten": true + "description": "Represents properties of Private Link Resource." } }, "allOf": [ @@ -3928,11 +3927,24 @@ "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", "description": "SharedAccessAuthorizationRule properties.", "x-ms-client-flatten": true + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, From a37cb5763fd0fe2bfa8355a3ff4c7293452a343f Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Wed, 7 May 2025 14:55:43 +0800 Subject: [PATCH 06/14] update --- .../tspconfig.yaml | 10 +- .../notificationhubs/output/diff.json | 1 - .../notificationhubs/output/newSwagger.json | 3010 ---------------- .../notificationhubs/output/oldSwagger.json | 3114 ----------------- 4 files changed, 5 insertions(+), 6130 deletions(-) delete mode 100644 specification/notificationhubs/output/diff.json delete mode 100644 specification/notificationhubs/output/newSwagger.json delete mode 100644 specification/notificationhubs/output/oldSwagger.json diff --git a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml index ca8cdbc81601..b78ccef5b809 100644 --- a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml +++ b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml @@ -11,8 +11,8 @@ linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" disable: - "@azure-tools/typespec-azure-core/documentation-required" : "Check" - "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" : "Check" - "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property" : "Check" - "@azure-tools/typespec-azure-resource-manager/arm-no-record" : "Check" - "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" : "Check" \ No newline at end of file + "@azure-tools/typespec-azure-core/documentation-required" : "backward compatibility" + "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" : "backward compatibility" + "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property" : "backward compatibility" + "@azure-tools/typespec-azure-resource-manager/arm-no-record" : "backward compatibility" + "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" : "backward compatibility" \ No newline at end of file diff --git a/specification/notificationhubs/output/diff.json b/specification/notificationhubs/output/diff.json deleted file mode 100644 index ff9d1f0b47ce..000000000000 --- a/specification/notificationhubs/output/diff.json +++ /dev/null @@ -1 +0,0 @@ -" {\n\u001b[32m+ produces: [\u001b[39m\n\u001b[32m+ \"application/json\"\u001b[39m\n\u001b[32m+ ]\u001b[39m\n\u001b[32m+ consumes: [\u001b[39m\n\u001b[32m+ \"application/json\"\u001b[39m\n\u001b[32m+ ]\u001b[39m\n info: {\n\u001b[32m+ x-typespec-generated: [\u001b[39m\n\u001b[32m+ {\u001b[39m\n\u001b[32m+ emitter: \"@azure-tools/typespec-autorest\"\u001b[39m\n\u001b[32m+ }\u001b[39m\n\u001b[32m+ ]\u001b[39m\n }\n paths: {\n /providers/Microsoft.NotificationHubs/operations: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n ]\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n put: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n delete: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n ]\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}: {\n get: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n put: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n delete: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys: {\n post: {\n parameters: [\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 50\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 265\u001b[39m\n }\n {\n\u001b[31m- minLength: 1\u001b[39m\n\u001b[31m- maxLength: 256\u001b[39m\n }\n ...\n ]\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources: {\n get: {\n x-ms-pageable: {\n\u001b[31m- itemName: \"value\"\u001b[39m\n }\n }\n }\n }\n definitions: {\n\u001b[31m- ConnectionDetails: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- id: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- privateIpAddress: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- linkIdentifier: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- groupId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- memberName: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- GroupConnectivityInformation: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- groupId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- memberName: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- customerVisibleFqdns: {\u001b[39m\n\u001b[31m- type: \"array\"\u001b[39m\n\u001b[31m- items: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- internalFqdn: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- redirectMapId: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- privateLinkServiceArmRegion: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- readOnly: true\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- PrivateLinkServiceConnection: {\u001b[39m\n\u001b[31m- type: \"object\"\u001b[39m\n\u001b[31m- properties: {\u001b[39m\n\u001b[31m- name: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- groupIds: {\u001b[39m\n\u001b[31m- type: \"array\"\u001b[39m\n\u001b[31m- items: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- requestMessage: {\u001b[39m\n\u001b[31m- type: \"string\"\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n\u001b[31m- }\u001b[39m\n AdmCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n AdmCredentialProperties: {\n properties: {\n clientId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n clientSecret: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n authTokenUrl: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n ApnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n ApnsCredentialProperties: {\n properties: {\n apnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n endpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n thumbprint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n keyId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n appName: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n appId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n token: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n BaiduCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n BaiduCredentialProperties: {\n properties: {\n baiduApiKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n baiduEndPoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n baiduSecretKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n BrowserCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n BrowserCredentialProperties: {\n properties: {\n subject: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n vapidPrivateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n vapidPublicKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n FcmV1Credential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n FcmV1CredentialProperties: {\n properties: {\n clientEmail: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n privateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n projectId: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n GcmCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n GcmCredentialProperties: {\n properties: {\n gcmEndpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n googleApiKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n MpnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n MpnsCredentialProperties: {\n properties: {\n mpnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n thumbprint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n NamespaceResource: {\n required: [\n\u001b[31m- \"location\"\u001b[39m\n ...\n ]\n }\n NotificationHubProperties: {\n properties: {\n authorizationRules: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n }\n }\n NotificationHubResource: {\n\u001b[31m- required: [\u001b[39m\n\u001b[31m- \"location\"\u001b[39m\n\u001b[31m- ]\u001b[39m\n }\n PnsCredentials: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n ResourceListKeys: {\n properties: {\n primaryConnectionString: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryConnectionString: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n primaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n SharedAccessAuthorizationRuleProperties: {\n properties: {\n primaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secondaryKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n WnsCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n WnsCredentialProperties: {\n properties: {\n packageSid: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n secretKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n windowsLiveEndpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n certificateKey: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n wnsCertificate: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n XiaomiCredential: {\n\u001b[31m- x-ms-secret: true\u001b[39m\n }\n XiaomiCredentialProperties: {\n properties: {\n appSecret: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n endpoint: {\n\u001b[32m+ format: \"password\"\u001b[39m\n }\n }\n }\n }\n }\n" \ No newline at end of file diff --git a/specification/notificationhubs/output/newSwagger.json b/specification/notificationhubs/output/newSwagger.json deleted file mode 100644 index 50984b592c14..000000000000 --- a/specification/notificationhubs/output/newSwagger.json +++ /dev/null @@ -1,3010 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "NotificationHubs RP Client", - "version": "2023-10-01-preview", - "description": "Microsoft Notification Hubs Resource Provider REST API.", - "x-typespec-generated": [ - { - "emitter": "@azure-tools/typespec-autorest" - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "paths": { - "/providers/Microsoft.NotificationHubs/operations": { - "get": { - "operationId": "Operations_List", - "parameters": [], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/NHOperationsList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { - "post": { - "operationId": "Namespaces_CheckAvailability", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckAvailabilityParameters" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/CheckAvailabilityResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_CheckAvailability": { - "$ref": "./examples/Namespaces/CheckAvailability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { - "get": { - "operationId": "Namespaces_ListAll", - "parameters": [ - { - "name": "$skipToken", - "in": "query", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "type": "integer", - "format": "int32", - "default": 100 - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_ListAll": { - "$ref": "./examples/Namespaces/ListBySubscription.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { - "get": { - "operationId": "Namespaces_List", - "parameters": [ - { - "name": "$skipToken", - "in": "query", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "type": "integer", - "format": "int32", - "default": 100 - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_List": { - "$ref": "./examples/Namespaces/ListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { - "get": { - "operationId": "Namespaces_Get", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_Get": { - "$ref": "./examples/Namespaces/Get.json" - } - } - }, - "put": { - "operationId": "Namespaces_CreateOrUpdate", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_CreateOrUpdate": { - "$ref": "./examples/Namespaces/CreateOrUpdate.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "Namespaces_Update", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NamespacePatchParameters" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_Update": { - "$ref": "./examples/Namespaces/Update.json" - } - } - }, - "delete": { - "operationId": "Namespaces_Delete", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_Delete": { - "$ref": "./examples/Namespaces/Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { - "get": { - "operationId": "Namespaces_ListAuthorizationRules", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_ListAuthorizationRules": { - "$ref": "./examples/Namespaces/AuthorizationRuleList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": { - "get": { - "operationId": "Namespaces_GetAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_GetAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" - } - } - }, - "put": { - "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_CreateOrUpdateAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleCreateOrUpdate.json" - } - } - }, - "delete": { - "operationId": "Namespaces_DeleteAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_DeleteAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { - "post": { - "operationId": "Namespaces_ListKeys", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_ListKeys": { - "$ref": "./examples/Namespaces/AuthorizationRuleListKeys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { - "post": { - "operationId": "Namespaces_RegenerateKeys", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PolicyKeyResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_RegenerateKeys": { - "$ref": "./examples/Namespaces/AuthorizationRuleRegenerateKey.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { - "post": { - "operationId": "NotificationHubs_CheckNotificationHubAvailability", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckAvailabilityParameters" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/CheckAvailabilityResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_CheckNotificationHubAvailability": { - "$ref": "./examples/NotificationHubs/CheckAvailability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { - "get": { - "operationId": "NotificationHubs_List", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "$skipToken", - "in": "query", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "type": "integer", - "format": "int32", - "default": 100 - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_List": { - "$ref": "./examples/NotificationHubs/List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { - "get": { - "operationId": "NotificationHubs_Get", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_Get": { - "$ref": "./examples/NotificationHubs/Get.json" - } - } - }, - "put": { - "operationId": "NotificationHubs_CreateOrUpdate", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_CreateOrUpdate": { - "$ref": "./examples/NotificationHubs/CreateOrUpdate.json" - } - } - }, - "patch": { - "operationId": "NotificationHubs_Update", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NotificationHubPatchParameters" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_Update": { - "$ref": "./examples/NotificationHubs/Update.json" - } - } - }, - "delete": { - "operationId": "NotificationHubs_Delete", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_Delete": { - "$ref": "./examples/NotificationHubs/Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { - "get": { - "operationId": "NotificationHubs_ListAuthorizationRules", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_ListAuthorizationRules": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}": { - "get": { - "operationId": "NotificationHubs_GetAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_GetAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" - } - } - }, - "put": { - "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_CreateOrUpdateAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json" - } - } - }, - "delete": { - "operationId": "NotificationHubs_DeleteAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_DeleteAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys": { - "post": { - "operationId": "NotificationHubs_ListKeys", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_ListKeys": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleListKeys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { - "post": { - "operationId": "NotificationHubs_RegenerateKeys", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9!()*-._]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PolicyKeyResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_RegenerateKeys": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleRegenerateKey.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { - "post": { - "operationId": "NotificationHubs_DebugSend", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/DebugSendResponse" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_DebugSend": { - "$ref": "./examples/NotificationHubs/DebugSend.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { - "post": { - "operationId": "NotificationHubs_GetPnsCredentials", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PnsCredentialsResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_GetPnsCredentials": { - "$ref": "./examples/NotificationHubs/PnsCredentialsGet.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials": { - "post": { - "operationId": "Namespaces_GetPnsCredentials", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PnsCredentialsResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_GetPnsCredentials": { - "$ref": "./examples/Namespaces/PnsCredentialsGet.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections": { - "get": { - "operationId": "PrivateEndpointConnections_List", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResourceListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_List": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { - "get": { - "operationId": "PrivateEndpointConnections_Get", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 87, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_Get": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionGet.json" - } - } - }, - "put": { - "operationId": "PrivateEndpointConnections_Update", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 87, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_Update": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionUpdate.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-long-running-operation": true - }, - "delete": { - "operationId": "PrivateEndpointConnections_Delete", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 87, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" - } - ], - "responses": { - "202": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_Delete": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionDelete.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources": { - "get": { - "operationId": "PrivateEndpointConnections_ListGroupIds", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_ListGroupIds": { - "$ref": "./examples/Namespaces/PrivateLinkResourceList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}": { - "get": { - "operationId": "PrivateEndpointConnections_GetGroupId", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "subResourceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^namespace$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_GetGroupId": { - "$ref": "./examples/Namespaces/PrivateLinkResourceGet.json" - } - } - } - } - }, - "definitions": { - "AdmCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/AdmCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "AdmCredentialProperties": { - "type": "object", - "properties": { - "clientId": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "clientSecret": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "authTokenUrl": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "authTokenUrl", - "clientId", - "clientSecret" - ] - }, - "ApnsCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/ApnsCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "ApnsCredentialProperties": { - "type": "object", - "properties": { - "apnsCertificate": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "certificateKey": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "endpoint": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "thumbprint": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "keyId": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "appName": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "appId": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "token": { - "type": "string", - "format": "password", - "x-ms-secret": true - } - }, - "required": [ - "endpoint" - ] - }, - "Availability": { - "type": "object", - "properties": { - "timeGrain": { - "type": "string", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "readOnly": true - } - } - }, - "BaiduCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/BaiduCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "BaiduCredentialProperties": { - "type": "object", - "properties": { - "baiduApiKey": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "baiduEndPoint": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "baiduSecretKey": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "baiduApiKey", - "baiduEndPoint", - "baiduSecretKey" - ] - }, - "BrowserCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/BrowserCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "BrowserCredentialProperties": { - "type": "object", - "properties": { - "subject": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "vapidPrivateKey": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "vapidPublicKey": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "subject", - "vapidPrivateKey", - "vapidPublicKey" - ] - }, - "CheckAvailabilityParameters": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "readOnly": true - }, - "location": { - "type": "string" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "isAvailiable": { - "type": "boolean" - }, - "sku": { - "$ref": "#/definitions/Sku" - } - }, - "required": [ - "name" - ] - }, - "CheckAvailabilityResult": { - "type": "object", - "properties": { - "isAvailiable": { - "type": "boolean" - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "sku": { - "$ref": "#/definitions/Sku" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "DebugSendResponse": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/DebugSendResult", - "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "DebugSendResult": { - "type": "object", - "properties": { - "success": { - "type": "integer", - "format": "int64", - "readOnly": true - }, - "failure": { - "type": "integer", - "format": "int64", - "readOnly": true - }, - "results": { - "type": "array", - "items": { - "$ref": "#/definitions/RegistrationResult" - }, - "readOnly": true, - "x-ms-identifiers": [] - } - } - }, - "FcmV1Credential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/FcmV1CredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "FcmV1CredentialProperties": { - "type": "object", - "properties": { - "clientEmail": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "privateKey": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "projectId": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "clientEmail", - "privateKey", - "projectId" - ] - }, - "GcmCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/GcmCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "GcmCredentialProperties": { - "type": "object", - "properties": { - "gcmEndpoint": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "googleApiKey": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "googleApiKey" - ] - }, - "IpRule": { - "type": "object", - "properties": { - "ipMask": { - "type": "string", - "minLength": 1 - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/AccessRights" - } - } - }, - "required": [ - "ipMask", - "rights" - ] - }, - "LogSpecification": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "displayName": { - "type": "string", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "readOnly": true - }, - "categoryGroups": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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, - "x-ms-identifiers": [] - }, - "supportedTimeGrainTypes": { - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true, - "x-ms-identifiers": [] - }, - "metricFilterPattern": { - "type": "string", - "readOnly": true - }, - "fillGapWithZero": { - "type": "boolean", - "readOnly": true - } - } - }, - "MpnsCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/MpnsCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "MpnsCredentialProperties": { - "type": "object", - "properties": { - "mpnsCertificate": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "certificateKey": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - }, - "thumbprint": { - "type": "string", - "format": "password", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "certificateKey", - "mpnsCertificate", - "thumbprint" - ] - }, - "NamespaceListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/NamespaceResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "NamespacePatchParameters": { - "type": "object", - "properties": { - "sku": { - "$ref": "#/definitions/Sku" - }, - "properties": { - "$ref": "#/definitions/NamespaceProperties" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "NamespaceProperties": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "provisioningState": { - "type": "string", - "enum": [ - "Unknown", - "InProgress", - "Succeeded", - "Failed", - "Canceled", - "Pending", - "Disabled" - ], - "x-ms-enum": { - "name": "OperationProvisioningState", - "modelAsString": true - } - }, - "status": { - "type": "string", - "enum": [ - "Created", - "Creating", - "Suspended", - "Deleting" - ], - "x-ms-enum": { - "name": "NamespaceStatus", - "modelAsString": true - } - }, - "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": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "namespaceType": { - "type": "string", - "enum": [ - "Messaging", - "NotificationHub" - ], - "x-ms-enum": { - "name": "NamespaceType", - "modelAsString": true - } - }, - "replicationRegion": { - "type": "string", - "enum": [ - "Default", - "WestUs2", - "NorthEurope", - "AustraliaEast", - "BrazilSouth", - "SouthEastAsia", - "SouthAfricaNorth", - "None" - ], - "x-ms-enum": { - "name": "ReplicationRegion", - "modelAsString": true - } - }, - "zoneRedundancy": { - "type": "string", - "default": "Disabled", - "enum": [ - "Disabled", - "Enabled" - ], - "x-ms-enum": { - "name": "ZoneRedundancyPreference", - "modelAsString": true - }, - "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 - }, - "scaleUnit": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "dataCenter": { - "type": "string" - }, - "publicNetworkAccess": { - "type": "string", - "default": "Enabled", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "PublicNetworkAccess", - "modelAsString": true - } - } - } - }, - "NamespaceResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/NamespaceProperties", - "x-ms-client-flatten": true - }, - "sku": { - "$ref": "#/definitions/Sku" - } - }, - "required": [ - "sku" - ], - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ] - }, - "NetworkAcls": { - "type": "object", - "properties": { - "ipRules": { - "type": "array", - "items": { - "$ref": "#/definitions/IpRule" - }, - "x-ms-identifiers": [] - }, - "publicNetworkRule": { - "$ref": "#/definitions/PublicInternetAuthorizationRule" - } - } - }, - "NotificationHubListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/NotificationHubResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "NotificationHubPatchParameters": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/NotificationHubProperties", - "x-ms-client-flatten": true - }, - "sku": { - "$ref": "#/definitions/Sku" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "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-identifiers": [ - "keyName" - ] - }, - "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" - }, - "fcmV1Credential": { - "$ref": "#/definitions/FcmV1Credential" - }, - "dailyMaxActiveDevices": { - "type": "integer", - "format": "int64", - "readOnly": true - } - } - }, - "NotificationHubResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/NotificationHubProperties", - "x-ms-client-flatten": true - }, - "sku": { - "$ref": "#/definitions/Sku" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ] - }, - "Operation": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "display": { - "$ref": "#/definitions/OperationDisplay" - }, - "isDataAction": { - "type": "boolean", - "readOnly": true - }, - "properties": { - "$ref": "#/definitions/OperationProperties" - } - } - }, - "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", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/Operation" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name" - ] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "OperationProperties": { - "type": "object", - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification" - } - } - }, - "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" - }, - "fcmV1Credential": { - "$ref": "#/definitions/FcmV1Credential" - } - } - }, - "PnsCredentialsResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PnsCredentials", - "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "PolicyKeyResource": { - "type": "object", - "properties": { - "policyKey": { - "type": "string", - "enum": [ - "PrimaryKey", - "SecondaryKey" - ], - "x-ms-enum": { - "name": "PolicyKeyType", - "modelAsString": true - } - } - }, - "required": [ - "policyKey" - ] - }, - "PrivateEndpointConnectionProperties": { - "type": "object", - "properties": { - "provisioningState": { - "type": "string", - "enum": [ - "Unknown", - "Succeeded", - "Creating", - "Updating", - "UpdatingByProxy", - "Deleting", - "DeletingByProxy", - "Deleted" - ], - "x-ms-enum": { - "name": "PrivateEndpointConnectionProvisioningState", - "modelAsString": true - } - }, - "privateEndpoint": { - "$ref": "#/definitions/RemotePrivateEndpointConnection" - }, - "groupIds": { - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - }, - "privateLinkServiceConnectionState": { - "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState" - } - } - }, - "PrivateEndpointConnectionResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "PrivateEndpointConnectionResourceListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "PrivateLinkResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateLinkResourceProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "PrivateLinkResourceListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/PrivateLinkResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "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 - } - } - }, - "PublicInternetAuthorizationRule": { - "type": "object", - "properties": { - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/AccessRights" - } - } - }, - "required": [ - "rights" - ] - }, - "RegistrationResult": { - "type": "object", - "properties": { - "applicationPlatform": { - "type": "string", - "readOnly": true - }, - "pnsHandle": { - "type": "string", - "readOnly": true - }, - "registrationId": { - "type": "string", - "readOnly": true - }, - "outcome": { - "type": "string", - "readOnly": true - } - } - }, - "RemotePrivateEndpointConnection": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true - } - } - }, - "RemotePrivateLinkServiceConnectionState": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "Disconnected", - "Pending", - "Approved", - "Rejected" - ], - "x-ms-enum": { - "name": "PrivateLinkConnectionStatus", - "modelAsString": true - } - }, - "description": { - "type": "string", - "readOnly": true - }, - "actionsRequired": { - "type": "string", - "readOnly": true - } - } - }, - "ResourceListKeys": { - "type": "object", - "properties": { - "primaryConnectionString": { - "type": "string", - "format": "password", - "readOnly": true, - "x-ms-secret": true - }, - "secondaryConnectionString": { - "type": "string", - "format": "password", - "readOnly": true, - "x-ms-secret": true - }, - "primaryKey": { - "type": "string", - "format": "password", - "readOnly": true, - "x-ms-secret": true - }, - "secondaryKey": { - "type": "string", - "format": "password", - "readOnly": true, - "x-ms-secret": true - }, - "keyName": { - "type": "string", - "readOnly": true - } - } - }, - "ServiceSpecification": { - "type": "object", - "properties": { - "logSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/LogSpecification" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name" - ] - }, - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name", - "unit" - ] - } - } - }, - "SharedAccessAuthorizationRuleListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "SharedAccessAuthorizationRuleProperties": { - "type": "object", - "properties": { - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/AccessRights" - } - }, - "primaryKey": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "secondaryKey": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "keyName": { - "type": "string", - "readOnly": true - }, - "modifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "createdTime": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "claimType": { - "type": "string", - "readOnly": true - }, - "claimValue": { - "type": "string", - "readOnly": true - }, - "revision": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "required": [ - "rights" - ] - }, - "SharedAccessAuthorizationRuleResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", - "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "enum": [ - "Free", - "Basic", - "Standard" - ], - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true - } - }, - "tier": { - "type": "string" - }, - "size": { - "type": "string" - }, - "family": { - "type": "string" - }, - "capacity": { - "type": "integer", - "format": "int32" - } - }, - "required": [ - "name" - ] - }, - "WnsCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/WnsCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "WnsCredentialProperties": { - "type": "object", - "properties": { - "packageSid": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "secretKey": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "windowsLiveEndpoint": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "certificateKey": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "wnsCertificate": { - "type": "string", - "format": "password", - "x-ms-secret": true - } - } - }, - "XiaomiCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/XiaomiCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ] - }, - "XiaomiCredentialProperties": { - "type": "object", - "properties": { - "appSecret": { - "type": "string", - "format": "password", - "x-ms-secret": true - }, - "endpoint": { - "type": "string", - "format": "password", - "x-ms-secret": true - } - } - } - }, - "parameters": {} -} \ No newline at end of file diff --git a/specification/notificationhubs/output/oldSwagger.json b/specification/notificationhubs/output/oldSwagger.json deleted file mode 100644 index f209a5a5ebc9..000000000000 --- a/specification/notificationhubs/output/oldSwagger.json +++ /dev/null @@ -1,3114 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "NotificationHubs RP Client", - "version": "2023-10-01-preview", - "description": "Microsoft Notification Hubs Resource Provider REST API." - }, - "paths": { - "/providers/Microsoft.NotificationHubs/operations": { - "get": { - "operationId": "Operations_List", - "parameters": [], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/NHOperationsList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { - "post": { - "operationId": "Namespaces_CheckAvailability", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckAvailabilityParameters" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/CheckAvailabilityResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_CheckAvailability": { - "$ref": "./examples/Namespaces/CheckAvailability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { - "get": { - "operationId": "Namespaces_ListAll", - "parameters": [ - { - "name": "$skipToken", - "in": "query", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "type": "integer", - "format": "int32", - "default": 100 - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_ListAll": { - "$ref": "./examples/Namespaces/ListBySubscription.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { - "get": { - "operationId": "Namespaces_List", - "parameters": [ - { - "name": "$skipToken", - "in": "query", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "type": "integer", - "format": "int32", - "default": 100 - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_List": { - "$ref": "./examples/Namespaces/ListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { - "get": { - "operationId": "Namespaces_Get", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_Get": { - "$ref": "./examples/Namespaces/Get.json" - } - } - }, - "put": { - "operationId": "Namespaces_CreateOrUpdate", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_CreateOrUpdate": { - "$ref": "./examples/Namespaces/CreateOrUpdate.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "Namespaces_Update", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NamespacePatchParameters" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_Update": { - "$ref": "./examples/Namespaces/Update.json" - } - } - }, - "delete": { - "operationId": "Namespaces_Delete", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_Delete": { - "$ref": "./examples/Namespaces/Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { - "get": { - "operationId": "Namespaces_ListAuthorizationRules", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_ListAuthorizationRules": { - "$ref": "./examples/Namespaces/AuthorizationRuleList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": { - "get": { - "operationId": "Namespaces_GetAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_GetAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" - } - } - }, - "put": { - "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_CreateOrUpdateAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleCreateOrUpdate.json" - } - } - }, - "delete": { - "operationId": "Namespaces_DeleteAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_DeleteAuthorizationRule": { - "$ref": "./examples/Namespaces/AuthorizationRuleDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { - "post": { - "operationId": "Namespaces_ListKeys", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_ListKeys": { - "$ref": "./examples/Namespaces/AuthorizationRuleListKeys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { - "post": { - "operationId": "Namespaces_RegenerateKeys", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PolicyKeyResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_RegenerateKeys": { - "$ref": "./examples/Namespaces/AuthorizationRuleRegenerateKey.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { - "post": { - "operationId": "NotificationHubs_CheckNotificationHubAvailability", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckAvailabilityParameters" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/CheckAvailabilityResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_CheckNotificationHubAvailability": { - "$ref": "./examples/NotificationHubs/CheckAvailability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { - "get": { - "operationId": "NotificationHubs_List", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "$skipToken", - "in": "query", - "type": "string" - }, - { - "name": "$top", - "in": "query", - "type": "integer", - "format": "int32", - "default": 100 - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_List": { - "$ref": "./examples/NotificationHubs/List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { - "get": { - "operationId": "NotificationHubs_Get", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_Get": { - "$ref": "./examples/NotificationHubs/Get.json" - } - } - }, - "put": { - "operationId": "NotificationHubs_CreateOrUpdate", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_CreateOrUpdate": { - "$ref": "./examples/NotificationHubs/CreateOrUpdate.json" - } - } - }, - "patch": { - "operationId": "NotificationHubs_Update", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NotificationHubPatchParameters" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_Update": { - "$ref": "./examples/NotificationHubs/Update.json" - } - } - }, - "delete": { - "operationId": "NotificationHubs_Delete", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_Delete": { - "$ref": "./examples/NotificationHubs/Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { - "get": { - "operationId": "NotificationHubs_ListAuthorizationRules", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_ListAuthorizationRules": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}": { - "get": { - "operationId": "NotificationHubs_GetAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_GetAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" - } - } - }, - "put": { - "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_CreateOrUpdateAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json" - } - } - }, - "delete": { - "operationId": "NotificationHubs_DeleteAuthorizationRule", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_DeleteAuthorizationRule": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys": { - "post": { - "operationId": "NotificationHubs_ListKeys", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_ListKeys": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleListKeys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { - "post": { - "operationId": "NotificationHubs_RegenerateKeys", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[a-zA-Z0-9!()*-._]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PolicyKeyResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_RegenerateKeys": { - "$ref": "./examples/NotificationHubs/AuthorizationRuleRegenerateKey.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { - "post": { - "operationId": "NotificationHubs_DebugSend", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/DebugSendResponse" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_DebugSend": { - "$ref": "./examples/NotificationHubs/DebugSend.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { - "post": { - "operationId": "NotificationHubs_GetPnsCredentials", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 265, - "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PnsCredentialsResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NotificationHubs_GetPnsCredentials": { - "$ref": "./examples/NotificationHubs/PnsCredentialsGet.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials": { - "post": { - "operationId": "Namespaces_GetPnsCredentials", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PnsCredentialsResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Namespaces_GetPnsCredentials": { - "$ref": "./examples/Namespaces/PnsCredentialsGet.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections": { - "get": { - "operationId": "PrivateEndpointConnections_List", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResourceListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_List": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { - "get": { - "operationId": "PrivateEndpointConnections_Get", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 87, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_Get": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionGet.json" - } - } - }, - "put": { - "operationId": "PrivateEndpointConnections_Update", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 87, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - }, - "201": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_Update": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionUpdate.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-long-running-operation": true - }, - "delete": { - "operationId": "PrivateEndpointConnections_Delete", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 87, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$" - } - ], - "responses": { - "202": { - "description": "ignore" - }, - "204": { - "description": "ignore" - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_Delete": { - "$ref": "./examples/Namespaces/PrivateEndpointConnectionDelete.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources": { - "get": { - "operationId": "PrivateEndpointConnections_ListGroupIds", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_ListGroupIds": { - "$ref": "./examples/Namespaces/PrivateLinkResourceList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}": { - "get": { - "operationId": "PrivateEndpointConnections_GetGroupId", - "parameters": [ - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$" - }, - { - "name": "subResourceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^namespace$" - } - ], - "responses": { - "200": { - "description": "ignore", - "schema": { - "$ref": "#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "ignore", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_GetGroupId": { - "$ref": "./examples/Namespaces/PrivateLinkResourceGet.json" - } - } - } - } - }, - "definitions": { - "AdmCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/AdmCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "x-ms-secret": true - }, - "AdmCredentialProperties": { - "type": "object", - "properties": { - "clientId": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "clientSecret": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "authTokenUrl": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "authTokenUrl", - "clientId", - "clientSecret" - ] - }, - "ApnsCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/ApnsCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "x-ms-secret": true - }, - "ApnsCredentialProperties": { - "type": "object", - "properties": { - "apnsCertificate": { - "type": "string", - "x-ms-secret": true - }, - "certificateKey": { - "type": "string", - "x-ms-secret": true - }, - "endpoint": { - "type": "string", - "minLength": 1, - "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 - } - }, - "required": [ - "endpoint" - ] - }, - "Availability": { - "type": "object", - "properties": { - "timeGrain": { - "type": "string", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "readOnly": true - } - } - }, - "BaiduCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/BaiduCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "x-ms-secret": true - }, - "BaiduCredentialProperties": { - "type": "object", - "properties": { - "baiduApiKey": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "baiduEndPoint": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "baiduSecretKey": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "baiduApiKey", - "baiduEndPoint", - "baiduSecretKey" - ] - }, - "BrowserCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/BrowserCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "x-ms-secret": true - }, - "BrowserCredentialProperties": { - "type": "object", - "properties": { - "subject": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "vapidPrivateKey": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "vapidPublicKey": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "subject", - "vapidPrivateKey", - "vapidPublicKey" - ] - }, - "CheckAvailabilityParameters": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "readOnly": true - }, - "location": { - "type": "string" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "isAvailiable": { - "type": "boolean" - }, - "sku": { - "$ref": "#/definitions/Sku" - } - }, - "required": [ - "name" - ] - }, - "CheckAvailabilityResult": { - "type": "object", - "properties": { - "isAvailiable": { - "type": "boolean" - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "sku": { - "$ref": "#/definitions/Sku" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "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": { - "properties": { - "$ref": "#/definitions/DebugSendResult", - "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "DebugSendResult": { - "type": "object", - "properties": { - "success": { - "type": "integer", - "format": "int64", - "readOnly": true - }, - "failure": { - "type": "integer", - "format": "int64", - "readOnly": true - }, - "results": { - "type": "array", - "items": { - "$ref": "#/definitions/RegistrationResult" - }, - "readOnly": true, - "x-ms-identifiers": [] - } - } - }, - "FcmV1Credential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/FcmV1CredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "x-ms-secret": true - }, - "FcmV1CredentialProperties": { - "type": "object", - "properties": { - "clientEmail": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "privateKey": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "projectId": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "clientEmail", - "privateKey", - "projectId" - ] - }, - "GcmCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/GcmCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "x-ms-secret": true - }, - "GcmCredentialProperties": { - "type": "object", - "properties": { - "gcmEndpoint": { - "type": "string", - "x-ms-secret": true - }, - "googleApiKey": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "googleApiKey" - ] - }, - "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": { - "type": "object", - "properties": { - "ipMask": { - "type": "string", - "minLength": 1 - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/AccessRights" - } - } - }, - "required": [ - "ipMask", - "rights" - ] - }, - "LogSpecification": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "displayName": { - "type": "string", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "readOnly": true - }, - "categoryGroups": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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, - "x-ms-identifiers": [] - }, - "supportedTimeGrainTypes": { - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true, - "x-ms-identifiers": [] - }, - "metricFilterPattern": { - "type": "string", - "readOnly": true - }, - "fillGapWithZero": { - "type": "boolean", - "readOnly": true - } - } - }, - "MpnsCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/MpnsCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "x-ms-secret": true - }, - "MpnsCredentialProperties": { - "type": "object", - "properties": { - "mpnsCertificate": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "certificateKey": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - }, - "thumbprint": { - "type": "string", - "minLength": 1, - "x-ms-secret": true - } - }, - "required": [ - "certificateKey", - "mpnsCertificate", - "thumbprint" - ] - }, - "NamespaceListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/NamespaceResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "NamespacePatchParameters": { - "type": "object", - "properties": { - "sku": { - "$ref": "#/definitions/Sku" - }, - "properties": { - "$ref": "#/definitions/NamespaceProperties" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "NamespaceProperties": { - "type": "object", - "properties": { - "name": { - "type": "string", - "readOnly": true - }, - "provisioningState": { - "type": "string", - "enum": [ - "Unknown", - "InProgress", - "Succeeded", - "Failed", - "Canceled", - "Pending", - "Disabled" - ], - "x-ms-enum": { - "name": "OperationProvisioningState", - "modelAsString": true - } - }, - "status": { - "type": "string", - "enum": [ - "Created", - "Creating", - "Suspended", - "Deleting" - ], - "x-ms-enum": { - "name": "NamespaceStatus", - "modelAsString": true - } - }, - "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": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "namespaceType": { - "type": "string", - "enum": [ - "Messaging", - "NotificationHub" - ], - "x-ms-enum": { - "name": "NamespaceType", - "modelAsString": true - } - }, - "replicationRegion": { - "type": "string", - "enum": [ - "Default", - "WestUs2", - "NorthEurope", - "AustraliaEast", - "BrazilSouth", - "SouthEastAsia", - "SouthAfricaNorth", - "None" - ], - "x-ms-enum": { - "name": "ReplicationRegion", - "modelAsString": true - } - }, - "zoneRedundancy": { - "type": "string", - "default": "Disabled", - "enum": [ - "Disabled", - "Enabled" - ], - "x-ms-enum": { - "name": "ZoneRedundancyPreference", - "modelAsString": true - }, - "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 - }, - "scaleUnit": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "dataCenter": { - "type": "string" - }, - "publicNetworkAccess": { - "type": "string", - "default": "Enabled", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "PublicNetworkAccess", - "modelAsString": true - } - } - } - }, - "NamespaceResource": { - "type": "object", - "properties": { - "sku": { - "$ref": "#/definitions/Sku" - }, - "properties": { - "$ref": "#/definitions/NamespaceProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "location", - "sku" - ], - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ] - }, - "NetworkAcls": { - "type": "object", - "properties": { - "ipRules": { - "type": "array", - "items": { - "$ref": "#/definitions/IpRule" - }, - "x-ms-identifiers": [] - }, - "publicNetworkRule": { - "$ref": "#/definitions/PublicInternetAuthorizationRule" - } - } - }, - "NotificationHubListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/NotificationHubResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "NotificationHubPatchParameters": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/NotificationHubProperties", - "x-ms-client-flatten": true - }, - "sku": { - "$ref": "#/definitions/Sku" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "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-identifiers": [ - "keyName" - ], - "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" - }, - "fcmV1Credential": { - "$ref": "#/definitions/FcmV1Credential" - }, - "dailyMaxActiveDevices": { - "type": "integer", - "format": "int64", - "readOnly": true - } - } - }, - "NotificationHubResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/NotificationHubProperties", - "x-ms-client-flatten": true - }, - "sku": { - "$ref": "#/definitions/Sku" - } - }, - "required": [ - "location" - ], - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ] - }, - "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", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/Operation" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name" - ] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "OperationProperties": { - "type": "object", - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification" - } - } - }, - "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" - }, - "fcmV1Credential": { - "$ref": "#/definitions/FcmV1Credential" - } - }, - "x-ms-secret": true - }, - "PnsCredentialsResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PnsCredentials", - "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "PolicyKeyResource": { - "type": "object", - "properties": { - "policyKey": { - "type": "string", - "enum": [ - "PrimaryKey", - "SecondaryKey" - ], - "x-ms-enum": { - "name": "PolicyKeyType", - "modelAsString": true - } - } - }, - "required": [ - "policyKey" - ] - }, - "PrivateEndpointConnectionProperties": { - "type": "object", - "properties": { - "provisioningState": { - "type": "string", - "enum": [ - "Unknown", - "Succeeded", - "Creating", - "Updating", - "UpdatingByProxy", - "Deleting", - "DeletingByProxy", - "Deleted" - ], - "x-ms-enum": { - "name": "PrivateEndpointConnectionProvisioningState", - "modelAsString": true - } - }, - "privateEndpoint": { - "$ref": "#/definitions/RemotePrivateEndpointConnection" - }, - "groupIds": { - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - }, - "privateLinkServiceConnectionState": { - "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState" - } - } - }, - "PrivateEndpointConnectionResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "PrivateEndpointConnectionResourceListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/PrivateEndpointConnectionResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "PrivateLinkResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateLinkResourceProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "PrivateLinkResourceListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/PrivateLinkResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "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": { - "name": { - "type": "string" - }, - "groupIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "requestMessage": { - "type": "string" - } - } - }, - "PublicInternetAuthorizationRule": { - "type": "object", - "properties": { - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/AccessRights" - } - } - }, - "required": [ - "rights" - ] - }, - "RegistrationResult": { - "type": "object", - "properties": { - "applicationPlatform": { - "type": "string", - "readOnly": true - }, - "pnsHandle": { - "type": "string", - "readOnly": true - }, - "registrationId": { - "type": "string", - "readOnly": true - }, - "outcome": { - "type": "string", - "readOnly": true - } - } - }, - "RemotePrivateEndpointConnection": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true - } - } - }, - "RemotePrivateLinkServiceConnectionState": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "Disconnected", - "Pending", - "Approved", - "Rejected" - ], - "x-ms-enum": { - "name": "PrivateLinkConnectionStatus", - "modelAsString": true - } - }, - "description": { - "type": "string", - "readOnly": true - }, - "actionsRequired": { - "type": "string", - "readOnly": 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, - "x-ms-identifiers": [ - "name" - ] - }, - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "readOnly": true, - "x-ms-identifiers": [ - "name", - "unit" - ] - } - } - }, - "SharedAccessAuthorizationRuleListResult": { - "type": "object", - "description": "[Placeholder] Discription for page model", - "properties": { - "value": { - "type": "array", - "description": "[Placeholder] Discription for value property", - "items": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - }, - "readOnly": true - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "[Placeholder] Discription for nextLink property" - } - }, - "required": [ - "value" - ] - }, - "SharedAccessAuthorizationRuleProperties": { - "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": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "createdTime": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "claimType": { - "type": "string", - "readOnly": true - }, - "claimValue": { - "type": "string", - "readOnly": true - }, - "revision": { - "type": "integer", - "format": "int32", - "readOnly": true - } - }, - "required": [ - "rights" - ] - }, - "SharedAccessAuthorizationRuleResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", - "x-ms-client-flatten": true - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "enum": [ - "Free", - "Basic", - "Standard" - ], - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true - } - }, - "tier": { - "type": "string" - }, - "size": { - "type": "string" - }, - "family": { - "type": "string" - }, - "capacity": { - "type": "integer", - "format": "int32" - } - }, - "required": [ - "name" - ] - }, - "WnsCredential": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/WnsCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "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": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/XiaomiCredentialProperties", - "x-ms-client-flatten": true - } - }, - "required": [ - "properties" - ], - "x-ms-secret": true - }, - "XiaomiCredentialProperties": { - "type": "object", - "properties": { - "appSecret": { - "type": "string", - "x-ms-secret": true - }, - "endpoint": { - "type": "string", - "x-ms-secret": true - } - } - } - }, - "parameters": {} -} \ No newline at end of file From 3af5fc9856e0e1c79acfa6a795b886792150a4a6 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Wed, 7 May 2025 15:22:42 +0800 Subject: [PATCH 07/14] update --- .../Notificationhubs.Management/NamespaceResource.tsp | 10 ++++++++-- .../Notificationhubs.Management/tspconfig.yaml | 4 +++- .../preview/2023-10-01-preview/notificationhubs.json | 8 ++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp b/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp index f1412d88e00d..77045827d149 100644 --- a/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/NamespaceResource.tsp @@ -13,8 +13,9 @@ namespace Microsoft.NotificationHubs; /** * Notification Hubs Namespace Resource. */ -model NamespaceResource - is Azure.ResourceManager.TrackedResource { +@Azure.ResourceManager.Private.armResourceInternal(NamespaceProperties) +@Http.Private.includeInapplicableMetadataInPayload(false) +model NamespaceResource extends Foundations.TrackedResource { ...ResourceNameParameter< Resource = NamespaceResource, KeyName = "namespaceName", @@ -27,6 +28,11 @@ model NamespaceResource */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" sku: Sku; + + @doc("The resource-specific properties for this resource.") + @Azure.ResourceManager.Private.conditionalClientFlatten + @Azure.ResourceManager.Private.armResourcePropertiesOptionality(true) + properties?: NamespaceProperties; } @armResourceOperations diff --git a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml index b78ccef5b809..49b7b3b27ed6 100644 --- a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml +++ b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml @@ -15,4 +15,6 @@ linter: "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" : "backward compatibility" "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property" : "backward compatibility" "@azure-tools/typespec-azure-resource-manager/arm-no-record" : "backward compatibility" - "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" : "backward compatibility" \ No newline at end of file + "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" : "backward compatibility" + "@azure-tools/typespec-azure-core/composition-over-inheritance" : "backward compatibility" + "@azure-tools/typespec-azure-core/no-private-usage" : "backward compatibility" \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json index 33f8c912e161..6affaa8227d8 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json @@ -2968,14 +2968,14 @@ "type": "object", "description": "Notification Hubs Namespace Resource.", "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The Sku description for a namespace" + }, "properties": { "$ref": "#/definitions/NamespaceProperties", "description": "Represents namespace properties.", "x-ms-client-flatten": true - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The Sku description for a namespace" } }, "required": [ From 9c8aec93050847df90f00fbba7685298a7a4e656 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Thu, 8 May 2025 17:06:17 +0800 Subject: [PATCH 08/14] update --- .../tspconfig.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml index 49b7b3b27ed6..405ac5acf98a 100644 --- a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml +++ b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/notificationhubs" emit: - "@azure-tools/typespec-autorest" options: @@ -7,6 +10,40 @@ options: azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/notificationhubs.json" examples-dir: "{project-root}/examples" + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.Notificationhubs" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-notificationhubs" + namespace: "azure.mgmt.notificationhubs" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-notificationhubs" + namespace: "com.azure.resourcemanager.notificationhubs" + service-name: "Notificationhubs" # human-readable service name, whitespace allowed + flavor: azure + "@azure-tools/typespec-ts": + package-dir: "arm-notificationhubs" + is-modular-library: true + flavor: "azure" + experimental-extensible-enums: true + package-details: + name: "@azure/arm-notificationhubs" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/notificationhubs" + package-dir: "armnotificationhubs" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" From 68885fbf98f0895b8802cb62bfaa641f8f73c70d Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Fri, 9 May 2025 13:31:18 +0800 Subject: [PATCH 09/14] fix name --- .../Notificationhubs.Management/back-compatible.tsp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp index 05367964a544..600f97e4c648 100644 --- a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp @@ -77,3 +77,6 @@ using Microsoft.NotificationHubs; @@clientName(NamespacesOperationGroup.checkAvailability::parameters.body, "parameters" ); +@@clientName(CheckAvailabilityParameters, "CheckAvailabilityContent", "csharp"); +@@clientName(Operation, "Info", "csharp"); +@@clientName(DebugSendResponse, "DebugSendResult", "csharp"); From bbe4112f3f0bfdbd254519a71d97befb7b790c9c Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Fri, 9 May 2025 14:51:22 +0800 Subject: [PATCH 10/14] update --- .../Notificationhubs.Management/back-compatible.tsp | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp index 600f97e4c648..d69eff797243 100644 --- a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp @@ -79,4 +79,3 @@ using Microsoft.NotificationHubs; ); @@clientName(CheckAvailabilityParameters, "CheckAvailabilityContent", "csharp"); @@clientName(Operation, "Info", "csharp"); -@@clientName(DebugSendResponse, "DebugSendResult", "csharp"); From f0e5d330be0d437d7b9cb9b0780dbbea4c678f22 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Fri, 9 May 2025 15:30:27 +0800 Subject: [PATCH 11/14] update --- .../Notificationhubs.Management/tspconfig.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml index 405ac5acf98a..a4c003bdbc9e 100644 --- a/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml +++ b/specification/notificationhubs/Notificationhubs.Management/tspconfig.yaml @@ -48,10 +48,10 @@ linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" disable: - "@azure-tools/typespec-azure-core/documentation-required" : "backward compatibility" - "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" : "backward compatibility" - "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property" : "backward compatibility" - "@azure-tools/typespec-azure-resource-manager/arm-no-record" : "backward compatibility" - "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" : "backward compatibility" - "@azure-tools/typespec-azure-core/composition-over-inheritance" : "backward compatibility" - "@azure-tools/typespec-azure-core/no-private-usage" : "backward compatibility" \ No newline at end of file + "@azure-tools/typespec-azure-core/documentation-required": "backward compatibility" + "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state": "backward compatibility" + "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property": "backward compatibility" + "@azure-tools/typespec-azure-resource-manager/arm-no-record": "backward compatibility" + "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property": "backward compatibility" + "@azure-tools/typespec-azure-core/composition-over-inheritance": "backward compatibility" + "@azure-tools/typespec-azure-core/no-private-usage": "backward compatibility" From b53585f224fe0728db32c75331f9c1cd38b82fdd Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Fri, 9 May 2025 15:57:21 +0800 Subject: [PATCH 12/14] update --- .../examples/2023-10-01-preview/NHOperationsList.json | 2 +- .../Namespaces/AuthorizationRuleCreateOrUpdate.json | 2 +- .../2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json | 2 +- .../2023-10-01-preview/Namespaces/AuthorizationRuleGet.json | 2 +- .../2023-10-01-preview/Namespaces/AuthorizationRuleList.json | 2 +- .../Namespaces/AuthorizationRuleListKeys.json | 2 +- .../Namespaces/AuthorizationRuleRegenerateKey.json | 2 +- .../2023-10-01-preview/Namespaces/CheckAvailability.json | 2 +- .../examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json | 2 +- .../examples/2023-10-01-preview/Namespaces/Delete.json | 2 +- .../examples/2023-10-01-preview/Namespaces/Get.json | 2 +- .../2023-10-01-preview/Namespaces/ListByResourceGroup.json | 2 +- .../2023-10-01-preview/Namespaces/ListBySubscription.json | 2 +- .../2023-10-01-preview/Namespaces/PnsCredentialsGet.json | 2 +- .../Namespaces/PrivateEndpointConnectionDelete.json | 2 +- .../Namespaces/PrivateEndpointConnectionGet.json | 2 +- .../Namespaces/PrivateEndpointConnectionList.json | 2 +- .../Namespaces/PrivateEndpointConnectionUpdate.json | 2 +- .../2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json | 2 +- .../2023-10-01-preview/Namespaces/PrivateLinkResourceList.json | 2 +- .../examples/2023-10-01-preview/Namespaces/Update.json | 2 +- .../NotificationHubs/AuthorizationRuleCreateOrUpdate.json | 2 +- .../NotificationHubs/AuthorizationRuleDelete.json | 2 +- .../NotificationHubs/AuthorizationRuleGet.json | 2 +- .../NotificationHubs/AuthorizationRuleList.json | 2 +- .../NotificationHubs/AuthorizationRuleListKeys.json | 2 +- .../NotificationHubs/AuthorizationRuleRegenerateKey.json | 2 +- .../2023-10-01-preview/NotificationHubs/CheckAvailability.json | 2 +- .../2023-10-01-preview/NotificationHubs/CreateOrUpdate.json | 2 +- .../examples/2023-10-01-preview/NotificationHubs/DebugSend.json | 2 +- .../examples/2023-10-01-preview/NotificationHubs/Delete.json | 2 +- .../examples/2023-10-01-preview/NotificationHubs/Get.json | 2 +- .../examples/2023-10-01-preview/NotificationHubs/List.json | 2 +- .../2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json | 2 +- .../examples/2023-10-01-preview/NotificationHubs/Update.json | 2 +- .../preview/2023-10-01-preview/examples/NHOperationsList.json | 2 +- .../examples/Namespaces/AuthorizationRuleCreateOrUpdate.json | 2 +- .../examples/Namespaces/AuthorizationRuleDelete.json | 2 +- .../examples/Namespaces/AuthorizationRuleGet.json | 2 +- .../examples/Namespaces/AuthorizationRuleList.json | 2 +- .../examples/Namespaces/AuthorizationRuleListKeys.json | 2 +- .../examples/Namespaces/AuthorizationRuleRegenerateKey.json | 2 +- .../examples/Namespaces/CheckAvailability.json | 2 +- .../2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json | 2 +- .../preview/2023-10-01-preview/examples/Namespaces/Delete.json | 2 +- .../preview/2023-10-01-preview/examples/Namespaces/Get.json | 2 +- .../examples/Namespaces/ListByResourceGroup.json | 2 +- .../examples/Namespaces/ListBySubscription.json | 2 +- .../examples/Namespaces/PnsCredentialsGet.json | 2 +- .../examples/Namespaces/PrivateEndpointConnectionDelete.json | 2 +- .../examples/Namespaces/PrivateEndpointConnectionGet.json | 2 +- .../examples/Namespaces/PrivateEndpointConnectionList.json | 2 +- .../examples/Namespaces/PrivateEndpointConnectionUpdate.json | 2 +- .../examples/Namespaces/PrivateLinkResourceGet.json | 2 +- .../examples/Namespaces/PrivateLinkResourceList.json | 2 +- .../preview/2023-10-01-preview/examples/Namespaces/Update.json | 2 +- .../NotificationHubs/AuthorizationRuleCreateOrUpdate.json | 2 +- .../examples/NotificationHubs/AuthorizationRuleDelete.json | 2 +- .../examples/NotificationHubs/AuthorizationRuleGet.json | 2 +- .../examples/NotificationHubs/AuthorizationRuleList.json | 2 +- .../examples/NotificationHubs/AuthorizationRuleListKeys.json | 2 +- .../NotificationHubs/AuthorizationRuleRegenerateKey.json | 2 +- .../examples/NotificationHubs/CheckAvailability.json | 2 +- .../examples/NotificationHubs/CreateOrUpdate.json | 2 +- .../2023-10-01-preview/examples/NotificationHubs/DebugSend.json | 2 +- .../2023-10-01-preview/examples/NotificationHubs/Delete.json | 2 +- .../2023-10-01-preview/examples/NotificationHubs/Get.json | 2 +- .../2023-10-01-preview/examples/NotificationHubs/List.json | 2 +- .../examples/NotificationHubs/PnsCredentialsGet.json | 2 +- .../2023-10-01-preview/examples/NotificationHubs/Update.json | 2 +- 70 files changed, 70 insertions(+), 70 deletions(-) diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NHOperationsList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NHOperationsList.json index 550243a9e11f..296b48cc6286 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NHOperationsList.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NHOperationsList.json @@ -1266,4 +1266,4 @@ }, "operationId": "Operations_List", "title": "Operations_List" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleCreateOrUpdate.json index 34abb1002041..d72fcafe57ff 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleCreateOrUpdate.json @@ -49,4 +49,4 @@ }, "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", "title": "Namespaces_CreateOrUpdateAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json index ffc046b09c3c..eea3b56a21b0 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleDelete.json @@ -12,4 +12,4 @@ }, "operationId": "Namespaces_DeleteAuthorizationRule", "title": "Namespaces_DeleteAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleGet.json index 94feec65bfab..14b53ee67326 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleGet.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleGet.json @@ -26,4 +26,4 @@ }, "operationId": "Namespaces_GetAuthorizationRule", "title": "Namespaces_GetAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleList.json index fb223bfab70d..8de2fd6bb8a7 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleList.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleList.json @@ -42,4 +42,4 @@ }, "operationId": "Namespaces_ListAuthorizationRules", "title": "Namespaces_ListAuthorizationRules" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleListKeys.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleListKeys.json index 534679abb6a9..fb1ee6d37cc9 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleListKeys.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleListKeys.json @@ -19,4 +19,4 @@ }, "operationId": "Namespaces_ListKeys", "title": "Namespaces_ListKeys" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleRegenerateKey.json index 807b11e83c5e..0e253611442f 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/AuthorizationRuleRegenerateKey.json @@ -22,4 +22,4 @@ }, "operationId": "Namespaces_RegenerateKeys", "title": "Namespaces_RegenerateKeys" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CheckAvailability.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CheckAvailability.json index 1daafce83f1d..820eb2aa92cc 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CheckAvailability.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CheckAvailability.json @@ -18,4 +18,4 @@ }, "operationId": "Namespaces_CheckAvailability", "title": "Namespaces_CheckAvailability" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json index 6c8274ac72b6..112762c680f2 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/CreateOrUpdate.json @@ -124,4 +124,4 @@ }, "operationId": "Namespaces_CreateOrUpdate", "title": "Namespaces_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Delete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Delete.json index 7d7b81f54cc2..2acc2235904b 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Delete.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Delete.json @@ -11,4 +11,4 @@ }, "operationId": "Namespaces_Delete", "title": "Namespaces_Delete" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Get.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Get.json index eb3be7a9feae..ed1c4b2d4a25 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Get.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Get.json @@ -55,4 +55,4 @@ }, "operationId": "Namespaces_Get", "title": "Namespaces_Get" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListByResourceGroup.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListByResourceGroup.json index d5b3f87399d3..cf8ea8f353b6 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListByResourceGroup.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListByResourceGroup.json @@ -93,4 +93,4 @@ }, "operationId": "Namespaces_List", "title": "Namespaces_List" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListBySubscription.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListBySubscription.json index bbf0a2cbb46f..653f63ad5d5d 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListBySubscription.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/ListBySubscription.json @@ -92,4 +92,4 @@ }, "operationId": "Namespaces_ListAll", "title": "Namespaces_ListAll" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PnsCredentialsGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PnsCredentialsGet.json index 6f51cf2e5d72..6330d5e722a9 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PnsCredentialsGet.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PnsCredentialsGet.json @@ -24,4 +24,4 @@ }, "operationId": "Namespaces_GetPnsCredentials", "title": "Namespaces_GetPnsCredentials" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionDelete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionDelete.json index 05ead0fbedc9..f259a1afca21 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionDelete.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionDelete.json @@ -16,4 +16,4 @@ }, "operationId": "PrivateEndpointConnections_Delete", "title": "PrivateEndpointConnections_Delete" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionGet.json index 2ba945ff54c3..96737489fc27 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionGet.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionGet.json @@ -30,4 +30,4 @@ }, "operationId": "PrivateEndpointConnections_Get", "title": "PrivateEndpointConnections_Get" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionList.json index 96af6228d8ee..129053322c5c 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionList.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionList.json @@ -33,4 +33,4 @@ }, "operationId": "PrivateEndpointConnections_List", "title": "PrivateEndpointConnections_List" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionUpdate.json index 893c537d8031..b100c1bdc493 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionUpdate.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateEndpointConnectionUpdate.json @@ -58,4 +58,4 @@ }, "operationId": "PrivateEndpointConnections_Update", "title": "PrivateEndpointConnections_Update" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json index 548112e43aeb..a42d26ea3fe0 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceGet.json @@ -27,4 +27,4 @@ }, "operationId": "PrivateEndpointConnections_GetGroupId", "title": "PrivateEndpointConnections_GetGroupId" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceList.json index 79eab8274770..88cd945a89e7 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceList.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/PrivateLinkResourceList.json @@ -30,4 +30,4 @@ }, "operationId": "PrivateEndpointConnections_ListGroupIds", "title": "PrivateEndpointConnections_ListGroupIds" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Update.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Update.json index 4d39e25a43bd..661638842428 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Update.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/Namespaces/Update.json @@ -72,4 +72,4 @@ }, "operationId": "Namespaces_Update", "title": "Namespaces_Update" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleCreateOrUpdate.json index 13b723994435..8881da94f619 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleCreateOrUpdate.json @@ -49,4 +49,4 @@ }, "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", "title": "NotificationHubs_CreateOrUpdateAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleDelete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleDelete.json index 906893f12805..61313074cc79 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleDelete.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleDelete.json @@ -13,4 +13,4 @@ }, "operationId": "NotificationHubs_DeleteAuthorizationRule", "title": "NotificationHubs_DeleteAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleGet.json index 7d3fd0e43c78..e6c3897d5c14 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleGet.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleGet.json @@ -26,4 +26,4 @@ }, "operationId": "NotificationHubs_GetAuthorizationRule", "title": "NotificationHubs_GetAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleList.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleList.json index f31a2aafed30..7f901ee5026a 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleList.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleList.json @@ -42,4 +42,4 @@ }, "operationId": "NotificationHubs_ListAuthorizationRules", "title": "NotificationHubs_ListAuthorizationRules" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleListKeys.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleListKeys.json index ba7b46d5c605..1969d44401e4 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleListKeys.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleListKeys.json @@ -20,4 +20,4 @@ }, "operationId": "NotificationHubs_ListKeys", "title": "NotificationHubs_ListKeys" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleRegenerateKey.json index ffc287c74197..413c9d8db170 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/AuthorizationRuleRegenerateKey.json @@ -23,4 +23,4 @@ }, "operationId": "NotificationHubs_RegenerateKeys", "title": "NotificationHubs_RegenerateKeys" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CheckAvailability.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CheckAvailability.json index dfe04ece18e2..22596682699d 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CheckAvailability.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CheckAvailability.json @@ -21,4 +21,4 @@ }, "operationId": "NotificationHubs_CheckNotificationHubAvailability", "title": "NotificationHubs_CheckNotificationHubAvailability" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CreateOrUpdate.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CreateOrUpdate.json index 6a9770bb1d4f..feeb1a7ea1d8 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CreateOrUpdate.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/CreateOrUpdate.json @@ -48,4 +48,4 @@ }, "operationId": "NotificationHubs_CreateOrUpdate", "title": "NotificationHubs_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/DebugSend.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/DebugSend.json index 8c3f88ec82d5..76c0a6b0d1bd 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/DebugSend.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/DebugSend.json @@ -27,4 +27,4 @@ }, "operationId": "NotificationHubs_DebugSend", "title": "NotificationHubs_DebugSend" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Delete.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Delete.json index c0e4ecd876c6..16c0070fa3a4 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Delete.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Delete.json @@ -12,4 +12,4 @@ }, "operationId": "NotificationHubs_Delete", "title": "NotificationHubs_Delete" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Get.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Get.json index fa469847253e..63b0b8953426 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Get.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Get.json @@ -27,4 +27,4 @@ }, "operationId": "NotificationHubs_Get", "title": "NotificationHubs_Get" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/List.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/List.json index 40df4ac106bc..988a9c02834a 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/List.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/List.json @@ -30,4 +30,4 @@ }, "operationId": "NotificationHubs_List", "title": "NotificationHubs_List" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json index 537891dba324..a16e1f936fb4 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/PnsCredentialsGet.json @@ -25,4 +25,4 @@ }, "operationId": "NotificationHubs_GetPnsCredentials", "title": "NotificationHubs_GetPnsCredentials" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Update.json b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Update.json index c96572d3ebf3..712fc6be484c 100644 --- a/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Update.json +++ b/specification/notificationhubs/Notificationhubs.Management/examples/2023-10-01-preview/NotificationHubs/Update.json @@ -38,4 +38,4 @@ }, "operationId": "NotificationHubs_Update", "title": "NotificationHubs_Update" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json index 550243a9e11f..296b48cc6286 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json @@ -1266,4 +1266,4 @@ }, "operationId": "Operations_List", "title": "Operations_List" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json index 34abb1002041..d72fcafe57ff 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json @@ -49,4 +49,4 @@ }, "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", "title": "Namespaces_CreateOrUpdateAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json index ffc046b09c3c..eea3b56a21b0 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json @@ -12,4 +12,4 @@ }, "operationId": "Namespaces_DeleteAuthorizationRule", "title": "Namespaces_DeleteAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json index 94feec65bfab..14b53ee67326 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json @@ -26,4 +26,4 @@ }, "operationId": "Namespaces_GetAuthorizationRule", "title": "Namespaces_GetAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json index fb223bfab70d..8de2fd6bb8a7 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json @@ -42,4 +42,4 @@ }, "operationId": "Namespaces_ListAuthorizationRules", "title": "Namespaces_ListAuthorizationRules" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json index 534679abb6a9..fb1ee6d37cc9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json @@ -19,4 +19,4 @@ }, "operationId": "Namespaces_ListKeys", "title": "Namespaces_ListKeys" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json index 807b11e83c5e..0e253611442f 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json @@ -22,4 +22,4 @@ }, "operationId": "Namespaces_RegenerateKeys", "title": "Namespaces_RegenerateKeys" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json index 1daafce83f1d..820eb2aa92cc 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json @@ -18,4 +18,4 @@ }, "operationId": "Namespaces_CheckAvailability", "title": "Namespaces_CheckAvailability" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json index 6c8274ac72b6..112762c680f2 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json @@ -124,4 +124,4 @@ }, "operationId": "Namespaces_CreateOrUpdate", "title": "Namespaces_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json index 7d7b81f54cc2..2acc2235904b 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json @@ -11,4 +11,4 @@ }, "operationId": "Namespaces_Delete", "title": "Namespaces_Delete" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json index eb3be7a9feae..ed1c4b2d4a25 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json @@ -55,4 +55,4 @@ }, "operationId": "Namespaces_Get", "title": "Namespaces_Get" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json index d5b3f87399d3..cf8ea8f353b6 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json @@ -93,4 +93,4 @@ }, "operationId": "Namespaces_List", "title": "Namespaces_List" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json index bbf0a2cbb46f..653f63ad5d5d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json @@ -92,4 +92,4 @@ }, "operationId": "Namespaces_ListAll", "title": "Namespaces_ListAll" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json index 6f51cf2e5d72..6330d5e722a9 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json @@ -24,4 +24,4 @@ }, "operationId": "Namespaces_GetPnsCredentials", "title": "Namespaces_GetPnsCredentials" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json index 05ead0fbedc9..f259a1afca21 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json @@ -16,4 +16,4 @@ }, "operationId": "PrivateEndpointConnections_Delete", "title": "PrivateEndpointConnections_Delete" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json index 2ba945ff54c3..96737489fc27 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json @@ -30,4 +30,4 @@ }, "operationId": "PrivateEndpointConnections_Get", "title": "PrivateEndpointConnections_Get" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json index 96af6228d8ee..129053322c5c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json @@ -33,4 +33,4 @@ }, "operationId": "PrivateEndpointConnections_List", "title": "PrivateEndpointConnections_List" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json index 893c537d8031..b100c1bdc493 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json @@ -58,4 +58,4 @@ }, "operationId": "PrivateEndpointConnections_Update", "title": "PrivateEndpointConnections_Update" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json index 548112e43aeb..a42d26ea3fe0 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json @@ -27,4 +27,4 @@ }, "operationId": "PrivateEndpointConnections_GetGroupId", "title": "PrivateEndpointConnections_GetGroupId" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json index 79eab8274770..88cd945a89e7 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json @@ -30,4 +30,4 @@ }, "operationId": "PrivateEndpointConnections_ListGroupIds", "title": "PrivateEndpointConnections_ListGroupIds" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json index 4d39e25a43bd..661638842428 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json @@ -72,4 +72,4 @@ }, "operationId": "Namespaces_Update", "title": "Namespaces_Update" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json index 13b723994435..8881da94f619 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json @@ -49,4 +49,4 @@ }, "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", "title": "NotificationHubs_CreateOrUpdateAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json index 906893f12805..61313074cc79 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json @@ -13,4 +13,4 @@ }, "operationId": "NotificationHubs_DeleteAuthorizationRule", "title": "NotificationHubs_DeleteAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json index 7d3fd0e43c78..e6c3897d5c14 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json @@ -26,4 +26,4 @@ }, "operationId": "NotificationHubs_GetAuthorizationRule", "title": "NotificationHubs_GetAuthorizationRule" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json index f31a2aafed30..7f901ee5026a 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json @@ -42,4 +42,4 @@ }, "operationId": "NotificationHubs_ListAuthorizationRules", "title": "NotificationHubs_ListAuthorizationRules" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json index ba7b46d5c605..1969d44401e4 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json @@ -20,4 +20,4 @@ }, "operationId": "NotificationHubs_ListKeys", "title": "NotificationHubs_ListKeys" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json index ffc287c74197..413c9d8db170 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json @@ -23,4 +23,4 @@ }, "operationId": "NotificationHubs_RegenerateKeys", "title": "NotificationHubs_RegenerateKeys" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json index dfe04ece18e2..22596682699d 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json @@ -21,4 +21,4 @@ }, "operationId": "NotificationHubs_CheckNotificationHubAvailability", "title": "NotificationHubs_CheckNotificationHubAvailability" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json index 6a9770bb1d4f..feeb1a7ea1d8 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json @@ -48,4 +48,4 @@ }, "operationId": "NotificationHubs_CreateOrUpdate", "title": "NotificationHubs_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json index 8c3f88ec82d5..76c0a6b0d1bd 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json @@ -27,4 +27,4 @@ }, "operationId": "NotificationHubs_DebugSend", "title": "NotificationHubs_DebugSend" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json index c0e4ecd876c6..16c0070fa3a4 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json @@ -12,4 +12,4 @@ }, "operationId": "NotificationHubs_Delete", "title": "NotificationHubs_Delete" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json index fa469847253e..63b0b8953426 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json @@ -27,4 +27,4 @@ }, "operationId": "NotificationHubs_Get", "title": "NotificationHubs_Get" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json index 40df4ac106bc..988a9c02834a 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json @@ -30,4 +30,4 @@ }, "operationId": "NotificationHubs_List", "title": "NotificationHubs_List" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json index 537891dba324..a16e1f936fb4 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json @@ -25,4 +25,4 @@ }, "operationId": "NotificationHubs_GetPnsCredentials", "title": "NotificationHubs_GetPnsCredentials" -} \ No newline at end of file +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json index c96572d3ebf3..712fc6be484c 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json @@ -38,4 +38,4 @@ }, "operationId": "NotificationHubs_Update", "title": "NotificationHubs_Update" -} \ No newline at end of file +} From b6c9684e9100712e3541097ab422b5f1640ad236 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Fri, 9 May 2025 16:29:40 +0800 Subject: [PATCH 13/14] update --- .../Notificationhubs.Management/back-compatible.tsp | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp index d69eff797243..a5e9501a6235 100644 --- a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp @@ -78,4 +78,5 @@ using Microsoft.NotificationHubs; "parameters" ); @@clientName(CheckAvailabilityParameters, "CheckAvailabilityContent", "csharp"); +@@clientName(DebugSendResponse, "DebugSendResult", "csharp"); @@clientName(Operation, "Info", "csharp"); From 84761fc2eddf086f6211d5b1b28e95c88007fe05 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Fri, 9 May 2025 16:35:45 +0800 Subject: [PATCH 14/14] fix --- .../Notificationhubs.Management/back-compatible.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp index a5e9501a6235..d2cae27b022a 100644 --- a/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp +++ b/specification/notificationhubs/Notificationhubs.Management/back-compatible.tsp @@ -78,5 +78,5 @@ using Microsoft.NotificationHubs; "parameters" ); @@clientName(CheckAvailabilityParameters, "CheckAvailabilityContent", "csharp"); -@@clientName(DebugSendResponse, "DebugSendResult", "csharp"); +@@clientName(DebugSendResponse, "DebugSendResponseResult", "csharp"); @@clientName(Operation, "Info", "csharp");