diff --git a/.vscode/settings.json b/.vscode/settings.json index 76eab4509993..60d1dce046d5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -22,6 +22,6 @@ ], "typescript.tsdk": "node_modules\\typescript\\lib", "[json]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "vscode.json-language-features" } } diff --git a/custom-words.txt b/custom-words.txt index 5c8a536776b5..4f9a28413b11 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -3352,6 +3352,306 @@ Metadatas Gtid GTID gtid +Wifi +Nwfs +Hnsw +Piqd +Reranked +Reranking +contentsafety +availiable +xiaomi +msapi +msapiddl +partitioninfo +ddls +serde +onetoone +onetomany +manytoone +manytomany +stransparent +forceencryption +tlsciphers +tlsprotocols +nocopy +xcool +noAddressPrefixes +serviceTagChangeNumber +NodePool +hnsonmigration +aborthnsonmigration +telemetryconfig +UpgradingKVAIO +WaitingForKVAIO +lsilogic +buslogic +pvscsi +lsilogicsas +ipsettings +linklayer +Ctlr +pmem +actuals +Actuals +rawphysical +rawvirtual +sesparse +blobstorage +dataexplorer +servicebusqueue +servicebustopic +dataexports +stackset +CSPM +autoprovisioning +videoanalyzer +Unsecure +linkconnections +edittables +detailedstatus +linktables +querytablestatus +loadtestservice +appcomponents +vusers +clientmetric +testruns +testrun +yvalue +IAASVM +Picometer +Petabit +questionanswering +napt +Napt +NAPT +Plmn +IMSI +UE's +Preemptable +Ambr +AMBR +rfsp +Rfsp +snssai +Snssai +NSSAI +Tbps +Vuln +Quickbase +Smartsheet +valn +adamw +hflip +nesterov +yolo +CUDA +xlarge +Sobol +Seasonality +Wargs +featurizers +Spearman's +Qualys +primingjob +operatorconnect +getent +useraccount +businessmetadata +usermetadata +Relaytype +Deboards +Deregisters +Dataworld +Asana +AppFigures +Twilio +getazresiliencystatus +providerport +unassignment +unassign +Unassigns +enrollmentgroups +scheduledjobs +getdevices +unmodeled +getx +setx +verifyx +removex +generateverificationcodex +favorited +datawarehousequeries +Dataware +SIMIDs +ICCID +unversioned +RANs +azuresqldbkeyrotation +DBCMK +DTCs +Angika +Awadhi +Bagheli +Balkar +Bhojpuri +Bodo +Brajbha +Bundeli +Chamling +Chhattisgarhi +Dari +Devanagiri +Dhimal +Dogri +Erzya +Faroese +Frulian +Gagauz +Gurung +Halbi +Haryanvi +Inari +Jaunsari +K'iche +Kangri +Karachay +Khaling +Korku +Koryak +Kosraean +Kumyk +Kurukh +Lule +Mahasu +Malto +Niuean +Nogay +Sadri +Sami +Santali +Sirmauri +Skolt +Gondor +Thangmi +Tuvan +Uyghur +occured +Occured +Paramter +metallb +kubevirt +vmip +xlargerc +largerc +mediumrc +smallrc +Autotune +multiadsample +Showmount +autogrid +IPVS +taginheritance +Satya +Nadella +Telangana +servicehealth +metricstaticthreshold +metricsdynamicthreshold +logalert +logalertv2 +smartalert +webtestalert +logalertv1numresult +logalertv1metricmeasurement +activitylog +budget +actualcostbudget +forecastedbudget +syncsets +Syncsets +openshiftclusters +openshiftversions +PaloAltoNetworks +Cloudngfw +galleryimage +networkinterfaces +storagecontainers +virtualharddisks +vippool +vwan +Vwan +VWAN +routeset +routesets +wayfind +wayfinding +Securitytypes +seccomp +leadgen +dryruns +Dryrun +dryrun +Discoverability +Precheck +logbase +Ueba +Untrust +Untrusted +hotpatching +Offersby +Versionswithin +generatesastoken +updation +interactivequery +tmpfs +npipe +Tmpfs +widget's +BGP +DPDK +IPVLAN +MACVLAN +SRIOV +Uncordoned +Uncordon +uncordon +MAC +PXE +SHA +TPM +Tcpdump +tcpdump +SATA +CNI +Traceroute +Kubectl +Numastat +Numactl +Virsh +Lldp +lldp +Virtio +virtio +Mebibytes +UTURN +Isochrone +Ochestrator +remediatable +Overprovisioning +Unprepares +Unpreparing +Pearsons +Smirnov +Kolmogorov +Wasserstein +DSPM +Dspm +Metadatas +Gtid +GTID +gtid Acks safeuint JWTs diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json new file mode 100644 index 000000000000..c8172bb1e417 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NHOperationsList.json @@ -0,0 +1,1267 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.NotificationHubs/register/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Registers the NotificationHubs Provider", + "description": "Registers the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs" + } + }, + { + "name": "Microsoft.NotificationHubs/unregister/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Unregisters the NotificationHubs Provider", + "description": "Unregisters the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs" + } + }, + { + "name": "Microsoft.NotificationHubs/operations/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Notification Hubs provider operations", + "description": "Returns a list of supported operations for Notification Hubs provider" + } + }, + { + "name": "Microsoft.NotificationHubs/operationResults/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Operation results for Notification Hubs provider", + "description": "Returns operation results for Notification Hubs provider" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Read diagnostics setting", + "description": "Get Namespace diagnostic settings" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Write diagnostic settings", + "description": "Create or Update Namespace diagnostic settings" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "The log definition of Namespace", + "operation": "Read Namespace log definitions", + "description": "Gets the available logs for Namespace" + }, + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "OperationalLogs", + "displayName": "Operational Logs", + "blobDuration": "PT1H" + } + ] + } + } + }, + { + "name": "Microsoft.NotificationHubs/CheckNamespaceAvailability/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Check Namespace name availability.", + "description": "Checks whether or not a given Namespace resource name is available within the NotificationHub service." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Create Or Update Namespace", + "description": "Create a Namespace Resource and Update its properties. Tags and Capacity of the Namespace are the properties which can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Get Namespace Resource", + "description": "Get the list of Namespace Resource Description" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Delete Namespace", + "description": "Delete Namespace Resource" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Create or Update Namespace Authorization Rules", + "description": "Create a Namespace level Authorization Rules and update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Get Namespace Authorization Rules", + "description": "Get the list of Namespaces Authorization Rules description." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Get Namespace Authorization Rules", + "description": "Get the list of Namespaces Authorization Rules description." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Delete Namespace Authorization Rule", + "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Get Namespace Listkeys", + "description": "Get the Connection String to the Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace Authorization Rule", + "operation": "Namespace Authorization Rule Regenerate Keys", + "description": "Namespace Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/CheckNotificationHubAvailability/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Check NotificationHub name availability.", + "description": "Checks whether or not a given NotificationHub name is available inside a Namespace." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Create or Update Notification Hub", + "description": "Create a Notification Hub and Update its properties. Its properties mainly include PNS Credentials. Authorization Rules and TTL" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/vapidkeys/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Get VAPID keys for a Notification Hub", + "description": "Get new pair of VAPID keys for a Notification Hub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Get Notification Hub", + "description": "Get list of Notification Hub Resource Descriptions" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Delete Notification Hub", + "description": "Delete Notification Hub Resource" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Create or Update Notification hub Authorization Rule", + "description": "Create Notification Hub Authorization Rules and Update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Get Notification Hub Authorization Rules", + "description": "Get the list of Notification Hub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Get Notification Hub Authorization Rules", + "description": "Get the list of Notification Hub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Delete Notification Hub Authorization Rules", + "description": "Delete Notification Hub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Get Notification Hub Listkeys", + "description": "Get the Connection String to the Notification Hub" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub Authorization Rule", + "operation": "Notification Hub Authorization Rule Regenerate Keys", + "description": "Notification Hub Authorization Rule Regenerate Primary/SecondaryKey, Specify the Key that needs to be regenerated" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/pnsCredentials/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub PnsCredential", + "operation": "Get Notification Hub PNS Credentials", + "description": "Get All Notification Hub PNS Credentials. This includes, WNS, MPNS, APNS, GCM and Baidu credentials" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/debugSend/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "NotificationHub", + "operation": "Send a test push notification.", + "description": "Send a test push notification to 10 matched devices." + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/metricDefinitions/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace metrics", + "operation": "Get Namespace metrics", + "description": "Get list of Namespace metrics Resource Descriptions" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "registration.all", + "displayName": "Registration Operations", + "displayDescription": "The count of all successful registration operations (creations updates queries and deletions). ", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "registration.create", + "displayName": "Registration Create Operations", + "displayDescription": "The count of all successful registration creations.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "registration.update", + "displayName": "Registration Update Operations", + "displayDescription": "The count of all successful registration updates.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "registration.get", + "displayName": "Registration Read Operations", + "displayDescription": "The count of all successful registration queries.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "registration.delete", + "displayName": "Registration Delete Operations", + "displayDescription": "The count of all successful registration deletions.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming", + "displayName": "Incoming Messages", + "displayDescription": "The count of all successful send API calls. ", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming.scheduled", + "displayName": "Scheduled Push Notifications Sent", + "displayDescription": "Scheduled Push Notifications Sent", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming.scheduled.cancel", + "displayName": "Scheduled Push Notifications Cancelled", + "displayDescription": "Scheduled Push Notifications Cancelled", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "scheduled.pending", + "displayName": "Pending Scheduled Notifications", + "displayDescription": "Pending Scheduled Notifications", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.all", + "displayName": "Installation Management Operations", + "displayDescription": "Installation Management Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.get", + "displayName": "Get Installation Operations", + "displayDescription": "Get Installation Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.upsert", + "displayName": "Create or Update Installation Operations", + "displayDescription": "Create or Update Installation Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.patch", + "displayName": "Patch Installation Operations", + "displayDescription": "Patch Installation Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "installation.delete", + "displayName": "Delete Installation Operations", + "displayDescription": "Delete Installation Operations", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.success", + "displayName": "Successful notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.invalidpayload", + "displayName": "Payload Errors", + "displayDescription": "The count of pushes that failed because the PNS returned a bad payload error.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.pnserror", + "displayName": "External Notification System Errors", + "displayDescription": "The count of pushes that failed because there was a problem communicating with the PNS (excludes authentication problems).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.channelerror", + "displayName": "Channel Errors", + "displayDescription": "The count of pushes that failed because the channel was invalid not associated with the correct app throttled or expired.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.allpns.badorexpiredchannel", + "displayName": "Bad or Expired Channel Errors", + "displayDescription": "The count of pushes that failed because the channel/token/registrationId in the registration was expired or invalid.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.success", + "displayName": "WNS Successful Notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.invalidcredentials", + "displayName": "WNS Authorization Errors (Invalid Credentials)", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked. (Windows Live does not recognize the credentials).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.badchannel", + "displayName": "WNS Bad Channel Error", + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was not recognized (WNS status: 404 not found).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.expiredchannel", + "displayName": "WNS Expired Channel Error", + "displayDescription": "The count of pushes that failed because the ChannelURI is expired (WNS status: 410 Gone).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.throttled", + "displayName": "WNS Throttled Notifications", + "displayDescription": "The count of pushes that failed because WNS is throttling this app (WNS status: 406 Not Acceptable).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.tokenproviderunreachable", + "displayName": "WNS Authorization Errors (Unreachable)", + "displayDescription": "Windows Live is not reachable.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.invalidtoken", + "displayName": "WNS Authorization Errors (Invalid Token)", + "displayDescription": "The token provided to WNS is not valid (WNS status: 401 Unauthorized).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.wrongtoken", + "displayName": "WNS Authorization Errors (Wrong Token)", + "displayDescription": "The token provided to WNS is valid but for another application (WNS status: 403 Forbidden). This can happen if the ChannelURI in the registration is associated with another app. Check that the client app is associated with the same app whose credentials are in the notification hub.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.invalidnotificationformat", + "displayName": "WNS Invalid Notification Format", + "displayDescription": "The format of the notification is invalid (WNS status: 400). Note that WNS does not reject all invalid payloads.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.invalidnotificationsize", + "displayName": "WNS Invalid Notification Size Error", + "displayDescription": "The notification payload is too large (WNS status: 413).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.channelthrottled", + "displayName": "WNS Channel Throttled", + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (WNS response header: X-WNS-NotificationStatus:channelThrottled).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.channeldisconnected", + "displayName": "WNS Channel Disconnected", + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (WNS response header: X-WNS-DeviceConnectionStatus: disconnected).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.dropped", + "displayName": "WNS Dropped Notifications", + "displayDescription": "The notification was dropped because the ChannelURI in the registration is throttled (X-WNS-NotificationStatus: dropped but not X-WNS-DeviceConnectionStatus: disconnected).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.pnserror", + "displayName": "WNS Errors", + "displayDescription": "Notification not delivered because of errors communicating with WNS.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.wns.authenticationerror", + "displayName": "WNS Authentication Errors", + "displayDescription": "Notification not delivered because of errors communicating with Windows Live invalid credentials or wrong token.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.success", + "displayName": "APNS Successful Notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.invalidcredentials", + "displayName": "APNS Authorization Errors", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.badchannel", + "displayName": "APNS Bad Channel Error", + "displayDescription": "The count of pushes that failed because the token is invalid (APNS status code: 8).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.expiredchannel", + "displayName": "APNS Expired Channel Error", + "displayDescription": "The count of token that were invalidated by the APNS feedback channel.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.invalidnotificationsize", + "displayName": "APNS Invalid Notification Size Error", + "displayDescription": "The count of pushes that failed because the payload was too large (APNS status code: 7).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.apns.pnserror", + "displayName": "APNS Errors", + "displayDescription": "The count of pushes that failed because of errors communicating with APNS.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.success", + "displayName": "GCM Successful Notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.invalidcredentials", + "displayName": "GCM Authorization Errors (Invalid Credentials)", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.badchannel", + "displayName": "GCM Bad Channel Error", + "displayDescription": "The count of pushes that failed because the registrationId in the registration was not recognized (GCM result: Invalid Registration).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.expiredchannel", + "displayName": "GCM Expired Channel Error", + "displayDescription": "The count of pushes that failed because the registrationId in the registration was expired (GCM result: NotRegistered).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.throttled", + "displayName": "GCM Throttled Notifications", + "displayDescription": "The count of pushes that failed because GCM throttled this app (GCM status code: 501-599 or result:Unavailable).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.invalidnotificationformat", + "displayName": "GCM Invalid Notification Format", + "displayDescription": "The count of pushes that failed because the payload was not formatted correctly (GCM result: InvalidDataKey or InvalidTtl).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.invalidnotificationsize", + "displayName": "GCM Invalid Notification Size Error", + "displayDescription": "The count of pushes that failed because the payload was too large (GCM result: MessageTooBig).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.wrongchannel", + "displayName": "GCM Wrong Channel Error", + "displayDescription": "The count of pushes that failed because the registrationId in the registration is not associated to the current app (GCM result: InvalidPackageName).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.pnserror", + "displayName": "GCM Errors", + "displayDescription": "The count of pushes that failed because of errors communicating with GCM.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.gcm.authenticationerror", + "displayName": "GCM Authentication Errors", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials the credentials are blocked or the SenderId is not correctly configured in the app (GCM result: MismatchedSenderId).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.success", + "displayName": "MPNS Successful Notifications", + "displayDescription": "The count of all successful notifications.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.invalidcredentials", + "displayName": "MPNS Invalid Credentials", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.badchannel", + "displayName": "MPNS Bad Channel Error", + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was not recognized (MPNS status: 404 not found).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.throttled", + "displayName": "MPNS Throttled Notifications", + "displayDescription": "The count of pushes that failed because MPNS is throttling this app (WNS MPNS: 406 Not Acceptable).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.invalidnotificationformat", + "displayName": "MPNS Invalid Notification Format", + "displayDescription": "The count of pushes that failed because the payload of the notification was too large.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.channeldisconnected", + "displayName": "MPNS Channel Disconnected", + "displayDescription": "The count of pushes that failed because the ChannelURI in the registration was disconnected (MPNS status: 412 not found).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.dropped", + "displayName": "MPNS Dropped Notifications", + "displayDescription": "The count of pushes that were dropped by MPNS (MPNS response header: X-NotificationStatus: QueueFull or Suppressed).", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.pnserror", + "displayName": "MPNS Errors", + "displayDescription": "The count of pushes that failed because of errors communicating with MPNS.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "outgoing.mpns.authenticationerror", + "displayName": "MPNS Authentication Errors", + "displayDescription": "The count of pushes that failed because the PNS did not accept the provided credentials or the credentials are blocked.", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "notificationhub.pushes", + "displayName": "All Outgoing Notifications", + "displayDescription": "All outgoing notifications of the notification hub", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming.all.requests", + "displayName": "All Incoming Requests", + "displayDescription": "Total incoming requests for a notification hub", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + }, + { + "name": "incoming.all.failedrequests", + "displayName": "All Incoming Failed Requests", + "displayDescription": "Total incoming failed requests for a notification hub", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "P30D" + } + ], + "fillGapWithZero": true + } + ] + } + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionsApproval/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Approve Private Endpoint Connection", + "description": "Approve Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/validate/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Validate Private Endpoint Connection Proxy", + "description": "Validate Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Get Private Endpoint Connection Proxy", + "description": "Get Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Create Private Endpoint Connection Proxy", + "description": "Create Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Delete Private Endpoint Connection Proxy", + "description": "Delete Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnectionProxies/operationstatus/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection Proxy", + "operation": "Private endpoint operation status", + "description": "Get the status of an asynchronous private endpoint operation" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection", + "operation": "Get Private Endpoint Connection", + "description": "Get Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection", + "operation": "Create or Update Private Endpoint Connection", + "description": "Create or Update Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/delete", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection", + "operation": "Removes Private Endpoint Connection", + "description": "Removes Private Endpoint Connection" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections/operationstatus/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Private Endpoint Connection", + "operation": "Removes Private Endpoint Connection", + "description": "Removes Private Endpoint Connection" + } + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json new file mode 100644 index 000000000000..d223e0c330b9 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "sdk-AuthRules-1788", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "location": "West Europe", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "createdTime": "2023-04-26T10:09:19.9675121+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" + } + }, + "201": { + "body": { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "createdTime": "2023-04-26T10:09:19.9675121+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json new file mode 100644 index 000000000000..d6c6ba08861f --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json new file mode 100644 index 000000000000..427baa49a3c1 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "properties": { + "rights": [ + "Manage", + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T10:19:36.3315279+00:00", + "createdTime": "2023-04-26T10:19:36.3315279+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json new file mode 100644 index 000000000000..ac6469fecf9d --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleList.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "rights": [ + "Manage", + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T06:10:44.0407987+00:00", + "createdTime": "2023-04-26T06:10:44.0407982+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" + }, + { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T10:09:19.9675121+00:00", + "createdTime": "2023-04-26T10:09:19.9675121+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/authorizationRules/NewAuthorizationRule", + "name": "NewAuthorizationRule", + "type": "Microsoft.NotificationHubs/namespaces/authorizationRules" + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json new file mode 100644 index 000000000000..907d628d2600 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "RootManageSharedAccessKey" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json new file mode 100644 index 000000000000..deb54da7d94e --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "policyKey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=########################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=########################################", + "primaryKey": "########################################", + "secondaryKey": "########################################", + "keyName": "RootManageSharedAccessKey" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json new file mode 100644 index 000000000000..b4dedf2f4c14 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CheckAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "name": "sdk-Namespace-2924" + } + }, + "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" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json new file mode 100644 index 000000000000..54c681b17a1c --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/CreateOrUpdate.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "zoneRedundancy": "Enabled", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + } + } + } + }, + "responses": { + "200": { + "body": { + "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", + "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", + "zoneRedundancy": "Enabled", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "201": { + "body": { + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "InProgress", + "publicNetworkAccess": "Enabled", + "zoneRedundancy": "Enabled", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + } + }, + "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" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json new file mode 100644 index 000000000000..dee90c1abfc7 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json new file mode 100644 index 000000000000..b8fdf6d0116e --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Get.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "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", + "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json new file mode 100644 index 000000000000..86b9de33a5d8 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListByResourceGroup.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "name": "namespace-1", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://namespace-1.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": {} + }, + { + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "name": "namespace-2", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", + "networkAcls": { + "ipRules": [], + "publicNetworkRule": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + "serviceBusEndpoint": "https://namespace-2.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-2", + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces?api-version=2023-01-01-preview&$count=2&$skipToken=##################" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json new file mode 100644 index 000000000000..c2e1eaeceb58 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/ListBySubscription.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "name": "namespace-1", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://namespace-1.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-1", + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": {} + }, + { + "location": "East US", + "sku": { + "name": "Standard" + }, + "properties": { + "name": "namespace-2", + "provisioningState": "Succeeded", + "status": "Created", + "enabled": true, + "critical": false, + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "createdAt": "2023-04-26T06:10:44.01+00:00", + "updatedAt": "2023-04-26T06:10:44.03+00:00", + "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", + "networkAcls": { + "ipRules": [], + "publicNetworkRule": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + "serviceBusEndpoint": "https://namespace-2.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/namespace-2", + "name": "namespace-2", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/namespaces?api-version=2023-01-01-preview&$count=2&$skipToken=##################" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json new file mode 100644 index 000000000000..dd62b35c68a5 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PnsCredentialsGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/pnsCredentials", + "properties": { + "mpnsCredential": { + "properties": { + "thumbprint": "#################################" + } + } + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json new file mode 100644 index 000000000000..dff2f2e4dae6 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + }, + "responses": { + "202": { + "headers": { + "Location": "https://nh-sdk-ns.servicebus.windows.net/operationXYZ" + } + }, + "204": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json new file mode 100644 index 000000000000..69cc5766df14 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + }, + "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" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json new file mode 100644 index 000000000000..54b5fe31e08d --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.Network/privateEndpoints/demo-private-endpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + }, + "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" + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json new file mode 100644 index 000000000000..bbb739568c9c --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "privateEndpointConnectionName": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "parameters": { + "properties": { + "privateEndpoint": {}, + "privateLinkServiceConnectionState": { + "status": "Approved" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "name": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "type": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections" + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateEndpointConnections/nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "name": "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e", + "type": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json new file mode 100644 index 000000000000..133780f301e7 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subResourceName": "namespace", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "properties": { + "groupId": "namespace", + "requiredMembers": [ + "namespace" + ], + "requiredZoneNames": [ + "privatelink.servicebus.windows.net", + "privatelink.notificationhub.windows.net" + ] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json new file mode 100644 index 000000000000..630b3c704d27 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/PrivateLinkResourceList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "groupId": "namespace", + "requiredMembers": [ + "namespace" + ], + "requiredZoneNames": [ + "privatelink.servicebus.windows.net", + "privatelink.notificationhub.windows.net" + ] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/privateLinkResources/namespace", + "name": "namespace", + "type": "Microsoft.NotificationHubs/namespaces/privateLinkResources" + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json new file mode 100644 index 000000000000..2b077b69dbcf --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/Namespaces/Update.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "sku": { + "name": "Free" + }, + "tags": { + "tag1": "value3" + }, + "properties": { + "pnsCredentials": { + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "#############################" + } + } + } + } + } + }, + "responses": { + "200": { + "body": { + "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", + "namespaceType": "NotificationHub", + "publicNetworkAccess": "Enabled", + "networkAcls": { + "ipRules": [ + { + "ipMask": "185.48.100.00/24", + "rights": [ + "Manage", + "Send", + "Listen" + ] + } + ], + "publicNetworkRule": { + "rights": [ + "Listen" + ] + } + }, + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "privateEndpointConnections": [] + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "tags": { + "tag1": "value3" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json new file mode 100644 index 000000000000..461ca096a84f --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "MyManageSharedAccessKey", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "createdTime": "2023-04-26T12:24:40.5863818+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/MyManageSharedAccessKey", + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + } + }, + "201": { + "body": { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "createdTime": "2023-04-26T12:24:40.5863818+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/MyManageSharedAccessKey", + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json new file mode 100644 index 000000000000..05f1199a71ce --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json new file mode 100644 index 000000000000..173580bbb99c --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "properties": { + "rights": [ + "Listen", + "Send" + ], + "modifiedTime": "2023-04-26T12:24:40.5863818+00:00", + "createdTime": "2023-04-26T12:24:40.5863818+00:00" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test/authorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json new file mode 100644 index 000000000000..96f5aa1cf710 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleList.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "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" + }, + { + "properties": { + "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" + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json new file mode 100644 index 000000000000..c1fb7cbafe61 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "sdk-AuthRules-5800", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "sdk-AuthRules-5800" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json new file mode 100644 index 000000000000..53047178e0ca --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "policyKey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "DefaultListenSharedAccessSignature" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json new file mode 100644 index 000000000000..17beb34edcbc --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CheckAvailability.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "namespaceName": "locp-newns", + "resourceGroupName": "5ktrial", + "parameters": { + "name": "sdktest", + "location": "West Europe" + } + }, + "responses": { + "200": { + "body": { + "isAvailiable": true, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/sdktest", + "name": "sdktest", + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json new file mode 100644 index 000000000000..ac5c620b200b --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/CreateOrUpdate.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "location": "eastus", + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "location": "East US", + "properties": { + "name": "test", + "registrationTtl": "10675199.02:48:05.4775807", + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + }, + "201": { + "body": { + "location": "East US", + "properties": { + "name": "test", + "registrationTtl": "10675199.02:48:05.4775807", + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json new file mode 100644 index 000000000000..85e7437c0fba --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/DebugSend.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "data": { + "message": "Hello" + } + } + }, + "responses": { + "200": { + "body": { + "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" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json new file mode 100644 index 000000000000..7a6b8e5ead3d --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json new file mode 100644 index 000000000000..4a72302627b9 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "location": "East US", + "properties": { + "name": "test", + "registrationTtl": "10675199.02:48:05.4775807", + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json new file mode 100644 index 000000000000..24dc02a2fe30 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "East US", + "properties": { + "name": "test", + "registrationTtl": "10675199.02:48:05.4775807", + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + ] + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json new file mode 100644 index 000000000000..0a3294833199 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/PnsCredentialsGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "properties": { + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "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" + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json new file mode 100644 index 000000000000..6170f41af468 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/examples/NotificationHubs/Update.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "sdkresourceGroup", + "notificationHubName": "sdk-notificationHubs-8708", + "api-version": "2023-01-01-preview", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "gcmCredential": { + "properties": { + "gcmEndpoint": "https://fcm.googleapis.com/fcm/send", + "googleApiKey": "###################################" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "East US", + "properties": { + "name": "test", + "registrationTtl": "10675199.02:48:05.4775807", + "dailyMaxActiveDevices": 0 + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/test", + "name": "test", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "tags": { + "hubTag1": "hubTagValue1", + "hubTag2": "hubTagValue2" + } + } + } + } +} diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json new file mode 100644 index 000000000000..b23e35c4f0ab --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json @@ -0,0 +1,3601 @@ +{ + "swagger": "2.0", + "info": { + "title": "NotificationHubs RP Client", + "description": "Microsoft Notification Hubs Resource Provider REST API.", + "version": "2023-01-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Checks the availability of the given notificationHub in a namespace.", + "operationId": "NotificationHubs_CheckNotificationHubAvailability", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "Error code with reason.", + "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/{notificationHubName}": { + "get": { + "tags": [ + "Hubs" + ], + "summary": "Gets the notification hub.", + "operationId": "NotificationHubs_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_Get": { + "$ref": "./examples/NotificationHubs/Get.json" + } + } + }, + "put": { + "tags": [ + "Hubs" + ], + "summary": "Creates/Update a NotificationHub in a namespace.", + "operationId": "NotificationHubs_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + } + ], + "responses": { + "200": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_CreateOrUpdate": { + "$ref": "./examples/NotificationHubs/CreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "Hubs" + ], + "summary": "Patch a NotificationHub in a namespace.", + "operationId": "NotificationHubs_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationHubPatchParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_Update": { + "$ref": "./examples/NotificationHubs/Update.json" + } + } + }, + "delete": { + "tags": [ + "Hubs" + ], + "summary": "Deletes a notification hub associated with a namespace.", + "operationId": "NotificationHubs_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$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" + } + ], + "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": { + "NotificationHubs_Delete": { + "$ref": "./examples/NotificationHubs/Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { + "get": { + "tags": [ + "Hubs" + ], + "summary": "Lists the notification hubs associated with a namespace.", + "operationId": "NotificationHubs_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "in": "query", + "name": "$skipToken", + "description": "Continuation token.", + "type": "string" + }, + { + "in": "query", + "name": "$top", + "description": "Page size.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NotificationHubListResult" + } + }, + "default": { + "description": "Error code with reason.", + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Test send a push notification.", + "operationId": "NotificationHubs_DebugSend", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$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" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DebugSendResponse" + } + }, + "default": { + "description": "Error code with reason.", + "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}/authorizationRules/{authorizationRuleName}": { + "put": { + "tags": [ + "Hubs" + ], + "summary": "Creates/Updates an authorization rule for a NotificationHub", + "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + ], + "responses": { + "200": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "Hubs" + ], + "summary": "Deletes a notificationHub authorization rule", + "operationId": "NotificationHubs_DeleteAuthorizationRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_DeleteAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleDelete.json" + } + } + }, + "get": { + "tags": [ + "Hubs" + ], + "summary": "Gets an authorization rule for a NotificationHub by name.", + "operationId": "NotificationHubs_GetAuthorizationRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_GetAuthorizationRule": { + "$ref": "./examples/NotificationHubs/AuthorizationRuleGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules": { + "get": { + "tags": [ + "Hubs" + ], + "summary": "Gets the authorization rules for a NotificationHub.", + "operationId": "NotificationHubs_ListAuthorizationRules", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$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" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + }, + "default": { + "description": "Error code with reason.", + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Gets the Primary and Secondary ConnectionStrings to the NotificationHub", + "operationId": "NotificationHubs_ListKeys", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "Error code with reason.", + "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": { + "tags": [ + "Hubs" + ], + "summary": "Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule", + "operationId": "NotificationHubs_RegenerateKeys", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "Error code with reason.", + "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}/pnsCredentials": { + "post": { + "tags": [ + "Hubs" + ], + "summary": "Lists the PNS Credentials associated with a notification hub.", + "operationId": "NotificationHubs_GetPnsCredentials", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/HubName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PnsCredentialsResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationHubs_GetPnsCredentials": { + "$ref": "./examples/NotificationHubs/PnsCredentialsGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { + "post": { + "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" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_CheckAvailability": { + "$ref": "./examples/Namespaces/CheckAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { + "get": { + "tags": [ + "Namespaces" + ], + "summary": "Returns the given namespace.", + "operationId": "Namespaces_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_Get": { + "$ref": "./examples/Namespaces/Get.json" + } + } + }, + "put": { + "tags": [ + "Namespaces" + ], + "summary": "Creates / Updates a Notification Hub namespace. This operation is idempotent.", + "operationId": "Namespaces_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + } + ], + "responses": { + "200": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "Error code with reason.", + "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": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "Namespaces" + ], + "summary": "Patches the existing namespace.", + "operationId": "Namespaces_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/NamespacePatchParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_Update": { + "$ref": "./examples/Namespaces/Update.json" + } + } + }, + "delete": { + "tags": [ + "Namespaces" + ], + "summary": "Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace.", + "operationId": "Namespaces_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$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_Delete": { + "$ref": "./examples/Namespaces/Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "tags": [ + "Namespaces" + ], + "summary": "Lists all the available namespaces within the subscription.", + "operationId": "Namespaces_ListAll", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "in": "query", + "name": "$skipToken", + "description": "Skip token for subsequent requests.", + "type": "string" + }, + { + "in": "query", + "name": "$top", + "description": "Maximum number of results to return.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + }, + "default": { + "description": "Error code with reason.", + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "tags": [ + "Namespaces" + ], + "summary": "Lists the available namespaces within a resource group.", + "operationId": "Namespaces_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "in": "query", + "name": "$skipToken", + "description": "Skip token for subsequent requests.", + "type": "string" + }, + { + "in": "query", + "name": "$top", + "description": "Maximum number of results to return.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + }, + "default": { + "description": "Error code with reason.", + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": { + "put": { + "tags": [ + "Namespaces" + ], + "summary": "Creates an authorization rule for a namespace", + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + ], + "responses": { + "200": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_CreateOrUpdateAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleCreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "Namespaces" + ], + "summary": "Deletes a namespace authorization rule", + "operationId": "Namespaces_DeleteAuthorizationRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "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" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_GetAuthorizationRule": { + "$ref": "./examples/Namespaces/AuthorizationRuleGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules": { + "get": { + "tags": [ + "Namespaces" + ], + "summary": "Gets the authorization rules for a namespace.", + "operationId": "Namespaces_ListAuthorizationRules", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + }, + "default": { + "description": "Error code with reason.", + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "tags": [ + "Namespaces" + ], + "summary": "Gets the Primary and Secondary ConnectionStrings to the namespace.", + "operationId": "Namespaces_ListKeys", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "Error code with reason.", + "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": { + "tags": [ + "Namespaces" + ], + "summary": "Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule", + "operationId": "Namespaces_RegenerateKeys", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/AuthorizationRuleName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Request content.", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyKeyResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + }, + "default": { + "description": "Error code with reason.", + "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}/pnsCredentials": { + "post": { + "tags": [ + "Namespaces" + ], + "summary": "Lists the PNS credentials associated with a namespace.", + "operationId": "Namespaces_GetPnsCredentials", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PnsCredentialsResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Namespaces_GetPnsCredentials": { + "$ref": "./examples/Namespaces/PnsCredentialsGet.json" + } + } + } + }, + "/providers/Microsoft.NotificationHubs/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "Lists all available Notification Hubs operations.", + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error code with reason.", + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "put": { + "tags": [ + "PrivateLink" + ], + "summary": "Approves or rejects Private Endpoint Connection.\r\nThis is a public API that can be called directly by Notification Hubs users.", + "operationId": "PrivateEndpointConnections_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "Description of the Private Endpoint Connection resource.", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + } + ], + "responses": { + "200": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "default": { + "description": "Error code with reason.", + "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": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "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" + ], + "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/PrivateEndpointConnectionName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error code with reason.", + "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, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "PrivateLink" + ], + "summary": "Returns a Private Endpoint Connection with a given name. \r\nThis is a public API that can be called directly by Notification Hubs users.", + "operationId": "PrivateEndpointConnections_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Get": { + "$ref": "./examples/Namespaces/PrivateEndpointConnectionGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateLink" + ], + "summary": "Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace.\r\nThis is a public API that can be called directly by Notification Hubs users.", + "operationId": "PrivateEndpointConnections_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionResourceListResult" + } + }, + "default": { + "description": "Error code with reason.", + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}": { + "get": { + "tags": [ + "PrivateLink" + ], + "summary": "Returns Group Id response. \r\nThis is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users.", + "description": "Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called.\r\nThat's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.", + "operationId": "PrivateEndpointConnections_GetGroupId", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "in": "path", + "name": "subResourceName", + "description": "Name of the Private Link sub-resource. The only supported sub-resource is \"namespace\"", + "required": true, + "type": "string", + "pattern": "^namespace$" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Error code with reason.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_GetGroupId": { + "$ref": "./examples/Namespaces/PrivateLinkResourceGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLink" + ], + "summary": "Returns all Group Ids supported by the Notification Hubs RP.\r\nThis is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users.", + "description": "Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called.\r\nThat's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.", + "operationId": "PrivateEndpointConnections_ListGroupIds", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceName" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Error code with reason.", + "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" + } + } + } + } + }, + "definitions": { + "AccessRights": { + "description": "Defines values for AccessRights.", + "enum": [ + "Manage", + "Send", + "Listen" + ], + "type": "string", + "x-ms-enum": { + "name": "AccessRights", + "modelAsString": true + } + }, + "AdmCredential": { + "description": "Description of a NotificationHub AdmCredential.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AdmCredentialProperties" + } + }, + "x-ms-secret": true + }, + "AdmCredentialProperties": { + "description": "Description of a NotificationHub AdmCredential.", + "required": [ + "authTokenUrl", + "clientId", + "clientSecret" + ], + "type": "object", + "properties": { + "clientId": { + "description": "Gets or sets the client identifier.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "clientSecret": { + "description": "Gets or sets the credential secret access key.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "authTokenUrl": { + "description": "Gets or sets the URL of the authorization token.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "ApnsCredential": { + "description": "Description of a NotificationHub ApnsCredential.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ApnsCredentialProperties" + } + }, + "x-ms-secret": true + }, + "ApnsCredentialProperties": { + "description": "Description of a NotificationHub ApnsCredential.", + "required": [ + "endpoint" + ], + "type": "object", + "properties": { + "apnsCertificate": { + "description": "Gets or sets the APNS certificate.", + "type": "string", + "x-ms-secret": true + }, + "certificateKey": { + "description": "Gets or sets the certificate key.", + "type": "string", + "x-ms-secret": true + }, + "endpoint": { + "description": "Gets or sets the endpoint of this credential.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "thumbprint": { + "description": "Gets or sets the APNS certificate Thumbprint", + "type": "string", + "x-ms-secret": true + }, + "keyId": { + "description": "Gets or sets a 10-character key identifier (kid) key, obtained from\r\nyour developer account", + "type": "string", + "x-ms-secret": true + }, + "appName": { + "description": "Gets or sets the name of the application", + "type": "string", + "x-ms-secret": true + }, + "appId": { + "description": "Gets or sets the issuer (iss) registered claim key, whose value is\r\nyour 10-character Team ID, obtained from your developer account", + "type": "string", + "x-ms-secret": true + }, + "token": { + "description": "Gets or sets provider Authentication Token, obtained through your\r\ndeveloper account", + "type": "string", + "x-ms-secret": true + } + } + }, + "Availability": { + "description": "Represents metric availability (part of RP operation descriptions).", + "type": "object", + "properties": { + "timeGrain": { + "description": "Time grain of the availability.", + "type": "string", + "readOnly": true + }, + "blobDuration": { + "description": "Duration of the availability blob.", + "type": "string", + "readOnly": true + } + } + }, + "BaiduCredential": { + "description": "Description of a NotificationHub BaiduCredential.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/BaiduCredentialProperties" + } + }, + "x-ms-secret": true + }, + "BaiduCredentialProperties": { + "description": "Description of a NotificationHub BaiduCredential.", + "required": [ + "baiduApiKey", + "baiduEndPoint", + "baiduSecretKey" + ], + "type": "object", + "properties": { + "baiduApiKey": { + "description": "Gets or sets baidu Api Key.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "baiduEndPoint": { + "description": "Gets or sets baidu Endpoint.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "baiduSecretKey": { + "description": "Gets or sets baidu Secret Key", + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "BrowserCredential": { + "description": "Description of a NotificationHub BrowserCredential.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/BrowserCredentialProperties" + } + }, + "x-ms-secret": true + }, + "BrowserCredentialProperties": { + "description": "Description of a NotificationHub BrowserCredential.", + "required": [ + "subject", + "vapidPrivateKey", + "vapidPublicKey" + ], + "type": "object", + "properties": { + "subject": { + "description": "Gets or sets web push subject.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "vapidPrivateKey": { + "description": "Gets or sets VAPID private key.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "vapidPublicKey": { + "description": "Gets or sets VAPID public key.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "CheckAvailabilityParameters": { + "description": "Parameters supplied to the Check Name Availability for Namespace and\r\nNotificationHubs.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "id": { + "description": "Gets resource Id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Gets or sets resource name", + "minLength": 1, + "type": "string" + }, + "type": { + "description": "Gets resource type", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Gets or sets resource location", + "type": "string" + }, + "tags": { + "description": "Gets or sets resource tags", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "isAvailiable": { + "description": "Not used and deprecated since API version 2023-01-01-preview", + "type": "boolean" + }, + "sku": { + "$ref": "#/definitions/Sku" + } + } + }, + "CheckAvailabilityResult": { + "description": "Description of a CheckAvailability resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "isAvailiable": { + "description": "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false.", + "type": "boolean" + }, + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "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 + } + } + }, + "DebugSendResponse": { + "description": "Description of a NotificationHub Resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/DebugSendResult" + }, + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "DebugSendResult": { + "description": "Result of DebugSend operations.", + "type": "object", + "properties": { + "success": { + "format": "int64", + "description": "Gets or sets successful send", + "type": "integer", + "readOnly": true + }, + "failure": { + "format": "int64", + "description": "Gets or sets send failure", + "type": "integer", + "readOnly": true + }, + "results": { + "description": "Gets or sets actual failure description", + "type": "array", + "items": { + "$ref": "#/definitions/RegistrationResult" + }, + "readOnly": true, + "x-ms-identifiers": [] + } + } + }, + "GcmCredential": { + "description": "Description of a NotificationHub GcmCredential.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/GcmCredentialProperties" + } + }, + "x-ms-secret": true + }, + "GcmCredentialProperties": { + "description": "Description of a NotificationHub GcmCredential.", + "required": [ + "googleApiKey" + ], + "type": "object", + "properties": { + "gcmEndpoint": { + "description": "Gets or sets the GCM endpoint.", + "type": "string", + "x-ms-secret": true + }, + "googleApiKey": { + "description": "Gets or sets the Google API key.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "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 + } + } + }, + "IpRule": { + "description": "A network authorization rule that filters traffic based on IP address.", + "required": [ + "ipMask", + "rights" + ], + "type": "object", + "properties": { + "ipMask": { + "description": "IP mask.", + "minLength": 1, + "type": "string" + }, + "rights": { + "description": "List of access rights.", + "type": "array", + "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 + } + } + }, + "MetricSpecification": { + "description": "A metric specification.", + "type": "object", + "properties": { + "name": { + "description": "Metric name / id.", + "type": "string", + "readOnly": true + }, + "displayName": { + "description": "User-visible metric name.", + "type": "string", + "readOnly": true + }, + "displayDescription": { + "description": "Description of the metric.", + "type": "string", + "readOnly": true + }, + "unit": { + "description": "Metric unit.", + "type": "string", + "readOnly": true + }, + "aggregationType": { + "description": "Type of the aggregation (Average, Minimum, Maximum, Total or Count).", + "type": "string", + "readOnly": true + }, + "availabilities": { + "description": "List of availabilities.", + "type": "array", + "items": { + "$ref": "#/definitions/Availability" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "metricFilterPattern": { + "description": "The matching regex pattern to be applied to the field pointed by the \"metricsFilterPathSelector\" flag in the ARM manifest.", + "type": "string", + "readOnly": true + }, + "fillGapWithZero": { + "description": "Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published.", + "type": "boolean", + "readOnly": true + } + } + }, + "MpnsCredential": { + "description": "Description of a NotificationHub MpnsCredential.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MpnsCredentialProperties" + } + }, + "x-ms-secret": true + }, + "MpnsCredentialProperties": { + "description": "Description of a NotificationHub MpnsCredential.", + "required": [ + "certificateKey", + "mpnsCertificate", + "thumbprint" + ], + "type": "object", + "properties": { + "mpnsCertificate": { + "description": "Gets or sets the MPNS certificate.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "certificateKey": { + "description": "Gets or sets the certificate key for this credential.", + "minLength": 1, + "type": "string", + "x-ms-secret": true + }, + "thumbprint": { + "description": "Gets or sets the MPNS certificate Thumbprint", + "minLength": 1, + "type": "string", + "x-ms-secret": true + } + } + }, + "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 + } + } + }, + "NamespacePatchParameters": { + "description": "Patch parameter for NamespaceResource.", + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NamespaceProperties": { + "description": "Represents namespace properties.", + "type": "object", + "properties": { + "name": { + "description": "Name of the Notification Hubs namespace. This is immutable property, set automatically \r\nby the service when the namespace is created.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/OperationProvisioningState" + }, + "status": { + "$ref": "#/definitions/NamespaceStatus" + }, + "enabled": { + "description": "Gets or sets whether or not the namespace is currently enabled.", + "type": "boolean", + "readOnly": true + }, + "critical": { + "description": "Gets or sets whether or not the namespace is set as Critical.", + "type": "boolean", + "readOnly": true + }, + "subscriptionId": { + "description": "Namespace subscription id.", + "type": "string", + "readOnly": true + }, + "region": { + "description": "Region. The value is always set to the same value as Namespace.Location, so we are deprecating\r\nthis property.", + "type": "string", + "readOnly": true + }, + "metricId": { + "description": "Azure Insights Metrics id.", + "type": "string", + "readOnly": true + }, + "createdAt": { + "format": "date-time", + "description": "Time when the namespace was created.", + "type": "string", + "readOnly": true + }, + "updatedAt": { + "format": "date-time", + "description": "Time when the namespace was updated.", + "type": "string", + "readOnly": true + }, + "namespaceType": { + "$ref": "#/definitions/NamespaceType" + }, + "replicationRegion": { + "$ref": "#/definitions/ReplicationRegion" + }, + "zoneRedundancy": { + "$ref": "#/definitions/ZoneRedundancyPreference" + }, + "networkAcls": { + "$ref": "#/definitions/NetworkAcls" + }, + "pnsCredentials": { + "$ref": "#/definitions/PnsCredentials" + }, + "serviceBusEndpoint": { + "description": "Gets or sets endpoint you can use to perform NotificationHub\r\noperations.", + "type": "string", + "readOnly": true + }, + "privateEndpointConnections": { + "description": "Private Endpoint Connections for namespace", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + }, + "readOnly": true + }, + "scaleUnit": { + "description": "Gets or sets scaleUnit where the namespace gets created", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "dataCenter": { + "description": "Deprecated.", + "type": "string" + }, + "publicNetworkAccess": { + "$ref": "#/definitions/PublicNetworkAccess" + } + } + }, + "NamespaceResource": { + "description": "Notification Hubs Namespace Resource.", + "required": [ + "location", + "sku" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "$ref": "#/definitions/NamespaceProperties" + } + } + }, + "NamespaceStatus": { + "description": "Namespace status.", + "enum": [ + "Created", + "Creating", + "Suspended", + "Deleting" + ], + "type": "string", + "x-ms-enum": { + "name": "NamespaceStatus", + "modelAsString": true + } + }, + "NamespaceType": { + "description": "Defines values for NamespaceType.", + "enum": [ + "Messaging", + "NotificationHub" + ], + "type": "string", + "x-ms-enum": { + "name": "NamespaceType", + "modelAsString": true + } + }, + "NetworkAcls": { + "description": "A collection of network authorization rules.", + "type": "object", + "properties": { + "ipRules": { + "description": "List of IP rules.", + "type": "array", + "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 + } + } + }, + "NotificationHubPatchParameters": { + "description": "Patch parameter for NamespaceResource.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/NotificationHubProperties" + }, + "sku": { + "$ref": "#/definitions/Sku" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NotificationHubProperties": { + "description": "NotificationHub properties.", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets the NotificationHub name.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "registrationTtl": { + "description": "Gets or sets the RegistrationTtl of the created NotificationHub", + "type": "string" + }, + "authorizationRules": { + "description": "Gets or sets the AuthorizationRules of the created NotificationHub", + "type": "array", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + "readOnly": true, + "x-ms-secret": 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" + }, + "dailyMaxActiveDevices": { + "format": "int64", + "type": "integer", + "readOnly": true + } + } + }, + "NotificationHubResource": { + "description": "Notification Hub Resource.", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/NotificationHubProperties" + }, + "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 + } + } + }, + "OperationDisplay": { + "description": "The object that represents the operation.", + "type": "object", + "properties": { + "provider": { + "description": "Gets service provider: Microsoft.NotificationHubs", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Gets resource on which the operation is performed: Invoice, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Gets operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Human-friendly operation description.", + "type": "string", + "readOnly": true + } + } + }, + "OperationListResult": { + "description": "Result of the request to list NotificationHubs operations. It contains\r\na list of operations and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "description": "Gets list of NotificationHubs operations supported by the\r\nMicrosoft.NotificationHubs resource provider.", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "description": "Gets URL to get the next set of operation list results if there are\r\nany.", + "type": "string", + "readOnly": true + } + } + }, + "OperationProperties": { + "description": "Optional operation properties.", + "type": "object", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification" + } + } + }, + "OperationProvisioningState": { + "description": "Defines values for OperationProvisioningState.", + "enum": [ + "Unknown", + "InProgress", + "Succeeded", + "Failed", + "Canceled", + "Pending", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "OperationProvisioningState", + "modelAsString": true + } + }, + "PnsCredentials": { + "description": "Collection of Notification Hub or Notification Hub Namespace PNS credentials.", + "type": "object", + "properties": { + "admCredential": { + "$ref": "#/definitions/AdmCredential" + }, + "apnsCredential": { + "$ref": "#/definitions/ApnsCredential" + }, + "baiduCredential": { + "$ref": "#/definitions/BaiduCredential" + }, + "browserCredential": { + "$ref": "#/definitions/BrowserCredential" + }, + "gcmCredential": { + "$ref": "#/definitions/GcmCredential" + }, + "mpnsCredential": { + "$ref": "#/definitions/MpnsCredential" + }, + "wnsCredential": { + "$ref": "#/definitions/WnsCredential" + }, + "xiaomiCredential": { + "$ref": "#/definitions/XiaomiCredential" + } + }, + "x-ms-secret": true + }, + "PnsCredentialsResource": { + "description": "Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs\r\nPNS credentials.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PnsCredentials" + }, + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PolicyKeyResource": { + "description": "Namespace / NotificationHub Regenerate Keys request.", + "required": [ + "policyKey" + ], + "type": "object", + "properties": { + "policyKey": { + "$ref": "#/definitions/PolicyKeyType" + } + } + }, + "PolicyKeyType": { + "description": "Type of Shared Access Policy Key (primary or secondary).", + "enum": [ + "PrimaryKey", + "SecondaryKey" + ], + "type": "string", + "x-ms-enum": { + "name": "PolicyKeyType", + "modelAsString": true + } + }, + "PrivateEndpointConnectionProperties": { + "description": "Private Endpoint Connection properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState" + }, + "privateEndpoint": { + "$ref": "#/definitions/RemotePrivateEndpointConnection" + }, + "groupIds": { + "description": "List of group ids. For Notification Hubs, it always contains a single \"namespace\" element.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState" + } + } + }, + "PrivateEndpointConnectionProvisioningState": { + "description": "State of Private Endpoint Connection.", + "enum": [ + "Unknown", + "Succeeded", + "Creating", + "Updating", + "UpdatingByProxy", + "Deleting", + "DeletingByProxy", + "Deleted" + ], + "type": "string", + "x-ms-enum": { + "name": "PrivateEndpointConnectionProvisioningState", + "modelAsString": true + } + }, + "PrivateEndpointConnectionResource": { + "description": "Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + } + } + }, + "PrivateEndpointConnectionResourceListResult": { + "description": "The response of the List Private Endpoint Connections operation.", + "type": "object", + "properties": { + "value": { + "description": "Gets or sets result of the List AuthorizationRules operation.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionResource" + }, + "readOnly": true + }, + "nextLink": { + "description": "Gets or sets link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateLinkConnectionStatus": { + "description": "State of Private Link Connection.", + "enum": [ + "Disconnected", + "Pending", + "Approved", + "Rejected" + ], + "type": "string", + "x-ms-enum": { + "name": "PrivateLinkConnectionStatus", + "modelAsString": true + } + }, + "PrivateLinkResource": { + "description": "A Private Link Arm Resource.", + "type": "object", + "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", + "properties": { + "value": { + "description": "Gets or sets result of the List AuthorizationRules operation.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "readOnly": true + }, + "nextLink": { + "description": "Gets or sets link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateLinkResourceProperties": { + "description": "Represents properties of Private Link Resource.", + "type": "object", + "properties": { + "groupId": { + "description": "A Group Id for Private Link. For Notification Hubs, it is always set to \"namespace\".", + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "description": "Required members. For Notification Hubs, it's always a collection with a single \"namespace\" item.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "requiredZoneNames": { + "description": "Required DNS zone names. For Notification Hubs, it contains two CNames for Service Bus and Notification Hubs zones.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "PrivateLinkServiceConnection": { + "description": "A customer-visible sub-resource of Private Endpoint, which describe the connection between Private Endpoint and Notification Hubs namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the Private Link Service connection.", + "type": "string" + }, + "groupIds": { + "description": "List of group ids. Always contains a single element - \"namespace\" - for Notification Hub Namespace.", + "type": "array", + "items": { + "type": "string" + } + }, + "requestMessage": { + "description": "Request message provided by the user that created the connection. This is usually used when the connection requires manual approval.", + "type": "string" + } + } + }, + "PublicInternetAuthorizationRule": { + "description": "A default (public Internet) network authorization rule, which contains rights if no other network rule matches.", + "required": [ + "rights" + ], + "type": "object", + "properties": { + "rights": { + "description": "List of access rights.", + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + } + } + }, + "PublicNetworkAccess": { + "description": "Type of public network access.", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + }, + "RegistrationResult": { + "description": "Notification result for a single registration.", + "type": "object", + "properties": { + "applicationPlatform": { + "description": "PNS type.", + "type": "string", + "readOnly": true + }, + "pnsHandle": { + "description": "PNS handle.", + "type": "string", + "readOnly": true + }, + "registrationId": { + "description": "Registration id.", + "type": "string", + "readOnly": true + }, + "outcome": { + "description": "Notification outcome.", + "type": "string", + "readOnly": true + } + } + }, + "RemotePrivateEndpointConnection": { + "description": "Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection.", + "type": "object", + "properties": { + "id": { + "description": "ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace.", + "type": "string", + "readOnly": true + } + } + }, + "RemotePrivateLinkServiceConnectionState": { + "description": "State of the Private Link Service connection.", + "type": "object", + "properties": { + "status": { + "$ref": "#/definitions/PrivateLinkConnectionStatus" + }, + "description": { + "description": "Human-friendly description.", + "type": "string", + "readOnly": true + }, + "actionsRequired": { + "description": "Human-friendly description of required actions.", + "type": "string", + "readOnly": true + } + } + }, + "ReplicationRegion": { + "description": "Allowed replication region", + "enum": [ + "Default", + "WestUs2", + "NorthEurope", + "AustraliaEast", + "BrazilSouth", + "SouthEastAsia", + "SouthAfricaNorth", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ReplicationRegion", + "modelAsString": true + } + }, + "ResourceListKeys": { + "description": "Response for the POST request that returns Namespace or NotificationHub access keys (connection strings).", + "type": "object", + "properties": { + "primaryConnectionString": { + "description": "Gets or sets primaryConnectionString of the AuthorizationRule.", + "type": "string", + "readOnly": true, + "x-ms-secret": true + }, + "secondaryConnectionString": { + "description": "Gets or sets secondaryConnectionString of the created\r\nAuthorizationRule", + "type": "string", + "readOnly": true, + "x-ms-secret": true + }, + "primaryKey": { + "description": "Gets or sets primaryKey of the created AuthorizationRule.", + "type": "string", + "readOnly": true, + "x-ms-secret": true + }, + "secondaryKey": { + "description": "Gets or sets secondaryKey of the created AuthorizationRule", + "type": "string", + "readOnly": true, + "x-ms-secret": true + }, + "keyName": { + "description": "Gets or sets keyName of the created AuthorizationRule", + "type": "string", + "readOnly": true + } + } + }, + "ServiceSpecification": { + "description": "Optional service specification used in Operations API.", + "type": "object", + "properties": { + "logSpecifications": { + "description": "Log specifications.", + "type": "array", + "items": { + "$ref": "#/definitions/LogSpecification" + }, + "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" + }, + "readOnly": true + }, + "nextLink": { + "description": "Gets or sets link to the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "SharedAccessAuthorizationRuleProperties": { + "description": "SharedAccessAuthorizationRule properties.", + "required": [ + "rights" + ], + "type": "object", + "properties": { + "rights": { + "description": "Gets or sets the rights associated with the rule.", + "type": "array", + "items": { + "$ref": "#/definitions/AccessRights" + } + }, + "primaryKey": { + "description": "Gets a base64-encoded 256-bit primary key for signing and\r\nvalidating the SAS token.", + "type": "string", + "x-ms-secret": true + }, + "secondaryKey": { + "description": "Gets a base64-encoded 256-bit primary key for signing and\r\nvalidating the SAS token.", + "type": "string", + "x-ms-secret": true + }, + "keyName": { + "description": "Gets a string that describes the authorization rule.", + "type": "string", + "readOnly": true + }, + "modifiedTime": { + "format": "date-time", + "description": "Gets the last modified time for this rule", + "type": "string", + "readOnly": true + }, + "createdTime": { + "format": "date-time", + "description": "Gets the created time for this rule", + "type": "string", + "readOnly": true + }, + "claimType": { + "description": "Gets a string that describes the claim type", + "type": "string", + "readOnly": true + }, + "claimValue": { + "description": "Gets a string that describes the claim value", + "type": "string", + "readOnly": true + }, + "revision": { + "format": "int32", + "description": "Gets the revision number for the rule", + "type": "integer", + "readOnly": true + } + } + }, + "SharedAccessAuthorizationRuleResource": { + "description": "Response for POST requests that return single SharedAccessAuthorizationRule.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + "location": { + "description": "Deprecated - only for compatibility.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "description": "Deprecated - only for compatibility.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "Sku": { + "description": "The Sku description for a namespace", + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/SkuName" + }, + "tier": { + "description": "Gets or sets the tier of particular sku", + "type": "string" + }, + "size": { + "description": "Gets or sets the Sku size", + "type": "string" + }, + "family": { + "description": "Gets or sets the Sku Family", + "type": "string" + }, + "capacity": { + "format": "int32", + "description": "Gets or sets the capacity of the resource", + "type": "integer" + } + } + }, + "SkuName": { + "description": "Namespace SKU name.", + "enum": [ + "Free", + "Basic", + "Standard" + ], + "type": "string", + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, + "WnsCredential": { + "description": "Description of a NotificationHub WnsCredential.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/WnsCredentialProperties" + } + }, + "x-ms-secret": true + }, + "WnsCredentialProperties": { + "description": "Description of a NotificationHub WnsCredential.", + "type": "object", + "properties": { + "packageSid": { + "description": "Gets or sets the package ID for this credential.", + "type": "string", + "x-ms-secret": true + }, + "secretKey": { + "description": "Gets or sets the secret key.", + "type": "string", + "x-ms-secret": true + }, + "windowsLiveEndpoint": { + "description": "Gets or sets the Windows Live endpoint.", + "type": "string", + "x-ms-secret": true + }, + "certificateKey": { + "description": "Ges or sets the WNS Certificate Key.", + "type": "string", + "x-ms-secret": true + }, + "wnsCertificate": { + "description": "Gets or sets the WNS Certificate.", + "type": "string", + "x-ms-secret": true + } + } + }, + "XiaomiCredential": { + "description": "Description of a NotificationHub XiaomiCredential.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/XiaomiCredentialProperties" + } + }, + "x-ms-secret": true + }, + "XiaomiCredentialProperties": { + "description": "Description of a NotificationHub XiaomiCredentialProperties.", + "type": "object", + "properties": { + "appSecret": { + "description": "Gets or sets app secret.", + "type": "string", + "x-ms-secret": true + }, + "endpoint": { + "description": "Gets or sets xiaomi service endpoint.", + "type": "string", + "x-ms-secret": true + } + } + }, + "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" + ] + } + ] +} diff --git a/specification/notificationhubs/resource-manager/readme.md b/specification/notificationhubs/resource-manager/readme.md index 135d3e331ab7..f10dce4b049f 100644 --- a/specification/notificationhubs/resource-manager/readme.md +++ b/specification/notificationhubs/resource-manager/readme.md @@ -4,10 +4,10 @@ This is the AutoRest configuration file for NotificationHubs. - - --- + ## Getting Started + To build the SDK for NotificationHubs, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,28 +15,34 @@ To build the SDK for NotificationHubs, simply [Install AutoRest](https://aka.ms/ To see additional help and options, run: > `autorest --help` + --- ## Configuration - - ### Basic Information + These are the global settings for the NotificationHubs API. directive: - - where: - - $.definitions.NamespaceCreateOrUpdateParameters - suppress: - - TrackedResourcePatchOperation - - where: - - $.definitions.NamespaceCreateOrUpdateParameters - suppress: - - TrackedResourceGetOperation + +* where: + + * $.definitions.NamespaceCreateOrUpdateParameters +suppress: + + * TrackedResourcePatchOperation + +* where: + + * $.definitions.NamespaceCreateOrUpdateParameters +suppress: + + * TrackedResourceGetOperation ``` yaml openapi-type: arm -tag: package-2017-04 +tag: package-preview-2023-01 directive: - where: - $.definitions.NamespaceCreateOrUpdateParameters @@ -45,6 +51,19 @@ directive: - TrackedResourceGetOperation ``` + +### Tag: package-preview-2023-01 + +These settings apply only when `--tag=package-preview-2023-01` is specified on the command line. + +```yaml $(tag) == 'package-preview-2023-01' +input-file: + - Microsoft.NotificationHubs/preview/2023-01-01-preview/notificationhubs.json + +suppressions: + - code: RepeatedPathInfo + reason: We cannot remove the subscriptionId parameter without introducing a breaking change. +``` ### Tag: package-2017-04 These settings apply only when `--tag=package-2017-04` is specified on the command line. @@ -72,10 +91,9 @@ input-file: - Microsoft.NotificationHubs/stable/2014-09-01/notificationhubs.json ``` - --- -# Code Generation +# Code Generation ## Swagger to SDK @@ -97,7 +115,6 @@ swagger-to-sdk: - repo: azure-powershell ``` - ## C# These settings apply only when `--csharp` is specified on the command line. @@ -112,7 +129,6 @@ csharp: clear-output-folder: true ``` - ## Python See configuration in [readme.python.md](./readme.python.md) @@ -182,8 +198,3 @@ java: regenerate-manager: true generate-interface: true ``` - - - - -