From 2927863841bee30d9ab38da1fad266ae5374a7ca Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:03:09 +0800 Subject: [PATCH 1/2] [mgmt] webpubsub release --- common/config/rush/pnpm-lock.yaml | 5 +- sdk/web-pubsub/arm-webpubsub/CHANGELOG.md | 61 + sdk/web-pubsub/arm-webpubsub/LICENSE | 2 +- sdk/web-pubsub/arm-webpubsub/README.md | 2 +- sdk/web-pubsub/arm-webpubsub/_meta.json | 8 +- sdk/web-pubsub/arm-webpubsub/assets.json | 2 +- sdk/web-pubsub/arm-webpubsub/package.json | 22 +- .../arm-webpubsub/review/arm-webpubsub.api.md | 47 + .../samples-dev/operationsListSample.ts | 2 +- .../samples-dev/usagesListSample.ts | 2 +- .../webPubSubCheckNameAvailabilitySample.ts | 8 +- .../webPubSubCreateOrUpdateSample.ts | 17 +- ...bCustomCertificatesCreateOrUpdateSample.ts | 19 +- ...webPubSubCustomCertificatesDeleteSample.ts | 4 +- .../webPubSubCustomCertificatesGetSample.ts | 4 +- .../webPubSubCustomCertificatesListSample.ts | 4 +- ...PubSubCustomDomainsCreateOrUpdateSample.ts | 9 +- .../webPubSubCustomDomainsDeleteSample.ts | 4 +- .../webPubSubCustomDomainsGetSample.ts | 4 +- .../webPubSubCustomDomainsListSample.ts | 4 +- .../samples-dev/webPubSubDeleteSample.ts | 4 +- .../samples-dev/webPubSubGetSample.ts | 2 +- .../webPubSubHubsCreateOrUpdateSample.ts | 23 +- .../samples-dev/webPubSubHubsDeleteSample.ts | 4 +- .../samples-dev/webPubSubHubsGetSample.ts | 4 +- .../samples-dev/webPubSubHubsListSample.ts | 4 +- .../webPubSubListByResourceGroupSample.ts | 4 +- .../webPubSubListBySubscriptionSample.ts | 2 +- .../samples-dev/webPubSubListKeysSample.ts | 4 +- .../webPubSubListReplicaSkusSample.ts | 4 +- .../samples-dev/webPubSubListSkusSample.ts | 4 +- ...bPrivateEndpointConnectionsDeleteSample.ts | 13 +- ...bSubPrivateEndpointConnectionsGetSample.ts | 4 +- ...SubPrivateEndpointConnectionsListSample.ts | 4 +- ...bPrivateEndpointConnectionsUpdateSample.ts | 10 +- ...webPubSubPrivateLinkResourcesListSample.ts | 4 +- .../webPubSubRegenerateKeySample.ts | 6 +- ...rivateLinkResourcesCreateOrUpdateSample.ts | 58 + ...licaSharedPrivateLinkResourcesGetSample.ts | 47 + ...icaSharedPrivateLinkResourcesListSample.ts | 48 + .../webPubSubReplicasCreateOrUpdateSample.ts | 6 +- .../webPubSubReplicasDeleteSample.ts | 4 +- .../samples-dev/webPubSubReplicasGetSample.ts | 4 +- .../webPubSubReplicasListSample.ts | 4 +- .../webPubSubReplicasRestartSample.ts | 4 +- .../webPubSubReplicasUpdateSample.ts | 6 +- .../samples-dev/webPubSubRestartSample.ts | 4 +- ...rivateLinkResourcesCreateOrUpdateSample.ts | 19 +- ...bSharedPrivateLinkResourcesDeleteSample.ts | 13 +- ...bSubSharedPrivateLinkResourcesGetSample.ts | 4 +- ...SubSharedPrivateLinkResourcesListSample.ts | 4 +- .../samples-dev/webPubSubUpdateSample.ts | 17 +- .../samples/v2-beta/javascript/README.md | 130 -- .../samples/v2-beta/typescript/README.md | 143 -- .../samples/v2/javascript/README.md | 136 ++ .../javascript/operationsListSample.js | 2 +- .../{v2-beta => v2}/javascript/package.json | 6 +- .../{v2-beta => v2}/javascript/sample.env | 0 .../javascript/usagesListSample.js | 2 +- .../webPubSubCheckNameAvailabilitySample.js | 2 +- .../webPubSubCreateOrUpdateSample.js | 5 +- ...bCustomCertificatesCreateOrUpdateSample.js | 4 +- ...webPubSubCustomCertificatesDeleteSample.js | 4 +- .../webPubSubCustomCertificatesGetSample.js | 4 +- .../webPubSubCustomCertificatesListSample.js | 2 +- ...PubSubCustomDomainsCreateOrUpdateSample.js | 4 +- .../webPubSubCustomDomainsDeleteSample.js | 4 +- .../webPubSubCustomDomainsGetSample.js | 2 +- .../webPubSubCustomDomainsListSample.js | 2 +- .../javascript/webPubSubDeleteSample.js | 2 +- .../javascript/webPubSubGetSample.js | 2 +- .../webPubSubHubsCreateOrUpdateSample.js | 5 +- .../javascript/webPubSubHubsDeleteSample.js | 4 +- .../javascript/webPubSubHubsGetSample.js | 2 +- .../javascript/webPubSubHubsListSample.js | 2 +- .../webPubSubListByResourceGroupSample.js | 2 +- .../webPubSubListBySubscriptionSample.js | 2 +- .../javascript/webPubSubListKeysSample.js | 2 +- .../webPubSubListReplicaSkusSample.js | 4 +- .../javascript/webPubSubListSkusSample.js | 2 +- ...bPrivateEndpointConnectionsDeleteSample.js | 4 +- ...bSubPrivateEndpointConnectionsGetSample.js | 4 +- ...SubPrivateEndpointConnectionsListSample.js | 4 +- ...bPrivateEndpointConnectionsUpdateSample.js | 4 +- ...webPubSubPrivateLinkResourcesListSample.js | 4 +- .../webPubSubRegenerateKeySample.js | 4 +- ...rivateLinkResourcesCreateOrUpdateSample.js | 50 + ...licaSharedPrivateLinkResourcesGetSample.js | 43 + ...icaSharedPrivateLinkResourcesListSample.js | 44 + .../webPubSubReplicasCreateOrUpdateSample.js | 4 +- .../webPubSubReplicasDeleteSample.js | 4 +- .../javascript/webPubSubReplicasGetSample.js | 2 +- .../javascript/webPubSubReplicasListSample.js | 2 +- .../webPubSubReplicasRestartSample.js | 4 +- .../webPubSubReplicasUpdateSample.js | 4 +- .../javascript/webPubSubRestartSample.js | 2 +- ...rivateLinkResourcesCreateOrUpdateSample.js | 4 +- ...bSharedPrivateLinkResourcesDeleteSample.js | 4 +- ...bSubSharedPrivateLinkResourcesGetSample.js | 4 +- ...SubSharedPrivateLinkResourcesListSample.js | 4 +- .../javascript/webPubSubUpdateSample.js | 5 +- .../samples/v2/typescript/README.md | 149 ++ .../{v2-beta => v2}/typescript/package.json | 6 +- .../{v2-beta => v2}/typescript/sample.env | 0 .../typescript/src/operationsListSample.ts | 2 +- .../typescript/src/usagesListSample.ts | 2 +- .../webPubSubCheckNameAvailabilitySample.ts | 8 +- .../src/webPubSubCreateOrUpdateSample.ts | 17 +- ...bCustomCertificatesCreateOrUpdateSample.ts | 19 +- ...webPubSubCustomCertificatesDeleteSample.ts | 4 +- .../webPubSubCustomCertificatesGetSample.ts | 4 +- .../webPubSubCustomCertificatesListSample.ts | 4 +- ...PubSubCustomDomainsCreateOrUpdateSample.ts | 9 +- .../src/webPubSubCustomDomainsDeleteSample.ts | 4 +- .../src/webPubSubCustomDomainsGetSample.ts | 4 +- .../src/webPubSubCustomDomainsListSample.ts | 4 +- .../typescript/src/webPubSubDeleteSample.ts | 4 +- .../typescript/src/webPubSubGetSample.ts | 2 +- .../src/webPubSubHubsCreateOrUpdateSample.ts | 23 +- .../src/webPubSubHubsDeleteSample.ts | 4 +- .../typescript/src/webPubSubHubsGetSample.ts | 4 +- .../typescript/src/webPubSubHubsListSample.ts | 4 +- .../src/webPubSubListByResourceGroupSample.ts | 4 +- .../src/webPubSubListBySubscriptionSample.ts | 2 +- .../typescript/src/webPubSubListKeysSample.ts | 4 +- .../src/webPubSubListReplicaSkusSample.ts | 4 +- .../typescript/src/webPubSubListSkusSample.ts | 4 +- ...bPrivateEndpointConnectionsDeleteSample.ts | 13 +- ...bSubPrivateEndpointConnectionsGetSample.ts | 4 +- ...SubPrivateEndpointConnectionsListSample.ts | 4 +- ...bPrivateEndpointConnectionsUpdateSample.ts | 10 +- ...webPubSubPrivateLinkResourcesListSample.ts | 4 +- .../src/webPubSubRegenerateKeySample.ts | 6 +- ...rivateLinkResourcesCreateOrUpdateSample.ts | 58 + ...licaSharedPrivateLinkResourcesGetSample.ts | 47 + ...icaSharedPrivateLinkResourcesListSample.ts | 48 + .../webPubSubReplicasCreateOrUpdateSample.ts | 6 +- .../src/webPubSubReplicasDeleteSample.ts | 4 +- .../src/webPubSubReplicasGetSample.ts | 4 +- .../src/webPubSubReplicasListSample.ts | 4 +- .../src/webPubSubReplicasRestartSample.ts | 4 +- .../src/webPubSubReplicasUpdateSample.ts | 6 +- .../typescript/src/webPubSubRestartSample.ts | 4 +- ...rivateLinkResourcesCreateOrUpdateSample.ts | 19 +- ...bSharedPrivateLinkResourcesDeleteSample.ts | 13 +- ...bSubSharedPrivateLinkResourcesGetSample.ts | 4 +- ...SubSharedPrivateLinkResourcesListSample.ts | 4 +- .../typescript/src/webPubSubUpdateSample.ts | 17 +- .../{v2-beta => v2}/typescript/tsconfig.json | 0 sdk/web-pubsub/arm-webpubsub/src/lroImpl.ts | 6 +- .../arm-webpubsub/src/models/index.ts | 139 +- .../arm-webpubsub/src/models/mappers.ts | 1476 +++++++++-------- .../arm-webpubsub/src/models/parameters.ts | 125 +- .../arm-webpubsub/src/operations/index.ts | 1 + .../src/operations/operations.ts | 32 +- .../arm-webpubsub/src/operations/usages.ts | 41 +- .../arm-webpubsub/src/operations/webPubSub.ts | 403 +++-- .../operations/webPubSubCustomCertificates.ts | 134 +- .../src/operations/webPubSubCustomDomains.ts | 154 +- .../src/operations/webPubSubHubs.ts | 154 +- .../webPubSubPrivateEndpointConnections.ts | 132 +- .../webPubSubPrivateLinkResources.ts | 50 +- ...PubSubReplicaSharedPrivateLinkResources.ts | 424 +++++ .../src/operations/webPubSubReplicas.ts | 229 ++- .../webPubSubSharedPrivateLinkResources.ts | 173 +- .../src/operationsInterfaces/index.ts | 1 + .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/usages.ts | 2 +- .../src/operationsInterfaces/webPubSub.ts | 36 +- .../webPubSubCustomCertificates.ts | 12 +- .../webPubSubCustomDomains.ts | 14 +- .../src/operationsInterfaces/webPubSubHubs.ts | 14 +- .../webPubSubPrivateEndpointConnections.ts | 12 +- .../webPubSubPrivateLinkResources.ts | 4 +- ...PubSubReplicaSharedPrivateLinkResources.ts | 90 + .../operationsInterfaces/webPubSubReplicas.ts | 20 +- .../webPubSubSharedPrivateLinkResources.ts | 24 +- .../arm-webpubsub/src/pagingHelper.ts | 2 +- .../src/webPubSubManagementClient.ts | 54 +- .../test/webpubsub_examples.spec.ts | 4 - 180 files changed, 3472 insertions(+), 2327 deletions(-) create mode 100644 sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts create mode 100644 sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts create mode 100644 sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts delete mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/README.md delete mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/README.md create mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/README.md rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/operationsListSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/package.json (81%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/sample.env (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/usagesListSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCheckNameAvailabilitySample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCreateOrUpdateSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCustomCertificatesDeleteSample.js (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCustomCertificatesGetSample.js (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCustomCertificatesListSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCustomDomainsDeleteSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCustomDomainsGetSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubCustomDomainsListSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubDeleteSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubGetSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubHubsCreateOrUpdateSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubHubsDeleteSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubHubsGetSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubHubsListSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubListByResourceGroupSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubListBySubscriptionSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubListKeysSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubListReplicaSkusSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubListSkusSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubPrivateEndpointConnectionsGetSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubPrivateEndpointConnectionsListSample.js (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubPrivateLinkResourcesListSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubRegenerateKeySample.js (93%) create mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js create mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js create mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubReplicasCreateOrUpdateSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubReplicasDeleteSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubReplicasGetSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubReplicasListSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubReplicasRestartSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubReplicasUpdateSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubRestartSample.js (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubSharedPrivateLinkResourcesListSample.js (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/javascript/webPubSubUpdateSample.js (93%) create mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/README.md rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/package.json (84%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/sample.env (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/operationsListSample.ts (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/usagesListSample.ts (93%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCheckNameAvailabilitySample.ts (87%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCreateOrUpdateSample.ts (84%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts (79%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCustomCertificatesDeleteSample.ts (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCustomCertificatesGetSample.ts (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCustomCertificatesListSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts (81%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCustomDomainsDeleteSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCustomDomainsGetSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubCustomDomainsListSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubDeleteSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubGetSample.ts (94%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubHubsCreateOrUpdateSample.ts (86%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubHubsDeleteSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubHubsGetSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubHubsListSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubListByResourceGroupSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubListBySubscriptionSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubListKeysSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubListReplicaSkusSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubListSkusSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts (83%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts (90%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubPrivateLinkResourcesListSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubRegenerateKeySample.ts (92%) create mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts create mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts create mode 100644 sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubReplicasDeleteSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubReplicasGetSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubReplicasListSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubReplicasRestartSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubReplicasUpdateSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubRestartSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts (80%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts (82%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts (92%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts (91%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/src/webPubSubUpdateSample.ts (85%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2-beta => v2}/typescript/tsconfig.json (100%) create mode 100644 sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubReplicaSharedPrivateLinkResources.ts create mode 100644 sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubReplicaSharedPrivateLinkResources.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index b0736120830c..fdff40612389 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -19149,7 +19149,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-M/la3E8Hmbf4jUjZuJHlcFwh8mj6IwL1DkUhsZPTI8PShkyt62ED0eqkYSjH7Rk3d9eqejzt5ml5kqOD83PVXg==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-mgD83ZxY7EvwRkIDflZnDI+TI/XR0d3NAEg7DDgnTnrqptv/reDMinQMKS4xaaZs/nNIC9rQaSGhUkRwS4A6LA==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -19170,6 +19170,7 @@ packages: rimraf: 5.0.10 ts-node: 10.9.2(@types/node@18.19.50)(typescript@5.5.4) tslib: 2.7.0 + tsx: 4.19.0 typescript: 5.5.4 uglify-js: 3.19.3 transitivePeerDependencies: @@ -23755,7 +23756,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-cGQF+Z00t0R9e/YZbdiNh5tsKt8OcUTukL0XQqT7O9z8S+Yr20Du/H9UPEncOH055//F1GdQBhFAodgymPa1aw==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-/qbDiimKPXxVgo/f0UNUYp0Go8bCihidXs97egK/xuen7KFfBY6OXOXu/giA/gTXJjol6h5SKLUe5LGKD7yCMA==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: diff --git a/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md b/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md index 7b7d63fb5054..c6ffec227ba6 100644 --- a/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md +++ b/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md @@ -1,5 +1,66 @@ # Release History +## 2.0.0 (2024-09-11) + +### Features Added + + - Added operation group WebPubSubReplicas + - Added operation group WebPubSubReplicaSharedPrivateLinkResources + - Added operation WebPubSub.listReplicaSkus + - Added Interface IPRule + - Added Interface Replica + - Added Interface ReplicaList + - Added Interface WebPubSubListReplicaSkusOptionalParams + - Added Interface WebPubSubRegenerateKeyHeaders + - Added Interface WebPubSubReplicasCreateOrUpdateOptionalParams + - Added Interface WebPubSubReplicasDeleteOptionalParams + - Added Interface WebPubSubReplicasGetOptionalParams + - Added Interface WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams + - Added Interface WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams + - Added Interface WebPubSubReplicaSharedPrivateLinkResourcesListNextOptionalParams + - Added Interface WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams + - Added Interface WebPubSubReplicasListNextOptionalParams + - Added Interface WebPubSubReplicasListOptionalParams + - Added Interface WebPubSubReplicasRestartHeaders + - Added Interface WebPubSubReplicasRestartOptionalParams + - Added Interface WebPubSubReplicasUpdateHeaders + - Added Interface WebPubSubReplicasUpdateOptionalParams + - Added Interface WebPubSubRestartHeaders + - Added Interface WebPubSubSocketIOSettings + - Added Interface WebPubSubUpdateHeaders + - Added Type Alias ServiceKind + - Added Type Alias WebPubSubListReplicaSkusResponse + - Added Type Alias WebPubSubReplicasCreateOrUpdateResponse + - Added Type Alias WebPubSubReplicasGetResponse + - Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse + - Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesGetResponse + - Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesListNextResponse + - Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesListResponse + - Added Type Alias WebPubSubReplicasListNextResponse + - Added Type Alias WebPubSubReplicasListResponse + - Added Type Alias WebPubSubReplicasRestartResponse + - Added Type Alias WebPubSubReplicasUpdateResponse + - Added Type Alias WebPubSubRestartResponse + - Interface Resource has a new optional parameter systemData + - Interface WebPubSubHubProperties has a new optional parameter webSocketKeepAliveIntervalInSeconds + - Interface WebPubSubNetworkACLs has a new optional parameter ipRules + - Interface WebPubSubResource has a new optional parameter kind + - Interface WebPubSubResource has a new optional parameter regionEndpointEnabled + - Interface WebPubSubResource has a new optional parameter resourceStopped + - Interface WebPubSubResource has a new optional parameter socketIO + - Added Enum KnownServiceKind + +### Breaking Changes + + - Interface CustomCertificate no longer has parameter systemData + - Interface CustomDomain no longer has parameter systemData + - Interface PrivateEndpointConnection no longer has parameter systemData + - Interface SharedPrivateLinkResource no longer has parameter systemData + - Interface WebPubSubHub no longer has parameter systemData + - Interface WebPubSubResource no longer has parameter systemData + - Parameter location of interface TrackedResource is now required + + ## 2.0.0-beta.2 (2023-10-10) ### Features Added diff --git a/sdk/web-pubsub/arm-webpubsub/LICENSE b/sdk/web-pubsub/arm-webpubsub/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/web-pubsub/arm-webpubsub/LICENSE +++ b/sdk/web-pubsub/arm-webpubsub/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/web-pubsub/arm-webpubsub/README.md b/sdk/web-pubsub/arm-webpubsub/README.md index 3b32767350c2..1be3dc2e4569 100644 --- a/sdk/web-pubsub/arm-webpubsub/README.md +++ b/sdk/web-pubsub/arm-webpubsub/README.md @@ -6,7 +6,7 @@ REST API for Azure WebPubSub Service [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-webpubsub) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/web-pubsub/arm-webpubsub/_meta.json b/sdk/web-pubsub/arm-webpubsub/_meta.json index b5d9cca89c91..3750b2eec563 100644 --- a/sdk/web-pubsub/arm-webpubsub/_meta.json +++ b/sdk/web-pubsub/arm-webpubsub/_meta.json @@ -1,8 +1,8 @@ { - "commit": "e1017d9ab49f41296177b4f4c9ac741fb7de044d", + "commit": "3519c80fe510a268f6e59a29ccac8a53fdec15b6", "readme": "specification/webpubsub/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\webpubsub\\resource-manager\\readme.md --use=@autorest/typescript@6.0.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\webpubsub\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.9" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.13", + "use": "@autorest/typescript@6.0.27" } \ No newline at end of file diff --git a/sdk/web-pubsub/arm-webpubsub/assets.json b/sdk/web-pubsub/arm-webpubsub/assets.json index 687e07a7640b..476538c32bd8 100644 --- a/sdk/web-pubsub/arm-webpubsub/assets.json +++ b/sdk/web-pubsub/arm-webpubsub/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/web-pubsub/arm-webpubsub", - "Tag": "js/web-pubsub/arm-webpubsub_33e23101b1" + "Tag": "js/web-pubsub/arm-webpubsub_23ca31b031" } diff --git a/sdk/web-pubsub/arm-webpubsub/package.json b/sdk/web-pubsub/arm-webpubsub/package.json index f822cdf84487..16a15d39fed7 100644 --- a/sdk/web-pubsub/arm-webpubsub/package.json +++ b/sdk/web-pubsub/arm-webpubsub/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for WebPubSubManagementClient.", - "version": "2.0.0-beta.2", + "version": "2.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-lro": "^2.5.4", - "@azure/abort-controller": "^1.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -34,17 +34,18 @@ "uglify-js": "^3.4.9", "rimraf": "^5.0.0", "dotenv": "^16.0.0", - "@azure/identity": "^4.0.1", + "@azure/dev-tool": "^1.0.0", + "@azure/identity": "^4.2.1", "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.0.0", + "@azure-tools/test-credential": "^1.1.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "ts-node": "^10.0.0", - "@azure/dev-tool": "^1.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -115,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md b/sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md index cf834b2bbbbc..6a6b6420c4f7 100644 --- a/sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md +++ b/sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md @@ -752,6 +752,7 @@ export interface WebPubSubHubProperties { anonymousConnectPolicy?: string; eventHandlers?: EventHandler[]; eventListeners?: EventListener_2[]; + webSocketKeepAliveIntervalInSeconds?: number; } // @public @@ -885,6 +886,8 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { // (undocumented) webPubSubReplicas: WebPubSubReplicas; // (undocumented) + webPubSubReplicaSharedPrivateLinkResources: WebPubSubReplicaSharedPrivateLinkResources; + // (undocumented) webPubSubSharedPrivateLinkResources: WebPubSubSharedPrivateLinkResources; } @@ -1013,6 +1016,44 @@ export interface WebPubSubReplicasGetOptionalParams extends coreClient.Operation // @public export type WebPubSubReplicasGetResponse = Replica; +// @public +export interface WebPubSubReplicaSharedPrivateLinkResources { + beginCreateOrUpdate(resourceGroupName: string, resourceName: string, replicaName: string, sharedPrivateLinkResourceName: string, parameters: SharedPrivateLinkResource, options?: WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams): Promise, WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, replicaName: string, sharedPrivateLinkResourceName: string, parameters: SharedPrivateLinkResource, options?: WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, replicaName: string, sharedPrivateLinkResourceName: string, options?: WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, replicaName: string, options?: WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse = SharedPrivateLinkResource; + +// @public +export interface WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebPubSubReplicaSharedPrivateLinkResourcesGetResponse = SharedPrivateLinkResource; + +// @public +export interface WebPubSubReplicaSharedPrivateLinkResourcesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebPubSubReplicaSharedPrivateLinkResourcesListNextResponse = SharedPrivateLinkResourceList; + +// @public +export interface WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebPubSubReplicaSharedPrivateLinkResourcesListResponse = SharedPrivateLinkResourceList; + // @public export interface WebPubSubReplicasListNextOptionalParams extends coreClient.OperationOptions { } @@ -1081,6 +1122,7 @@ export interface WebPubSubResource extends TrackedResource { readonly serverPort?: number; readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[]; sku?: ResourceSku; + socketIO?: WebPubSubSocketIOSettings; tls?: WebPubSubTlsSettings; readonly version?: string; } @@ -1155,6 +1197,11 @@ export type WebPubSubSharedPrivateLinkResourcesListResponse = SharedPrivateLinkR // @public export type WebPubSubSkuTier = string; +// @public +export interface WebPubSubSocketIOSettings { + serviceMode?: string; +} + // @public export interface WebPubSubTlsSettings { clientCertEnabled?: boolean; diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/operationsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/operationsListSample.ts index 96505d07dc10..67b6a4b2bd6d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/operationsListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.SignalRService provider. * * @summary Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Operations_List.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/usagesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/usagesListSample.ts index 46f4710106e5..428a69f7a372 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/usagesListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/usagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List resource usage quotas by location. * * @summary List resource usage quotas by location. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Usages_List.json */ async function usagesList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCheckNameAvailabilitySample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCheckNameAvailabilitySample.ts index 146cd9473fe1..e6d9522b3284 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCheckNameAvailabilitySample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { NameAvailabilityParameters, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks that the resource name is valid and is not already in use. * * @summary Checks that the resource name is valid and is not already in use. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CheckNameAvailability.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CheckNameAvailability.json */ async function webPubSubCheckNameAvailability() { const subscriptionId = @@ -30,13 +30,13 @@ async function webPubSubCheckNameAvailability() { const location = "eastus"; const parameters: NameAvailabilityParameters = { name: "myWebPubSubService", - type: "Microsoft.SignalRService/WebPubSub" + type: "Microsoft.SignalRService/WebPubSub", }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.checkNameAvailability( location, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCreateOrUpdateSample.ts index e6a1ec719a5b..1a9cbc0900ba 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { WebPubSubResource, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a resource. * * @summary Create or update a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CreateOrUpdate.json */ async function webPubSubCreateOrUpdate() { const subscriptionId = @@ -37,7 +37,7 @@ async function webPubSubCreateOrUpdate() { kind: "WebPubSub", liveTraceConfiguration: { categories: [{ name: "ConnectivityLogs", enabled: "true" }], - enabled: "false" + enabled: "false", }, location: "eastus", networkACLs: { @@ -45,22 +45,23 @@ async function webPubSubCreateOrUpdate() { privateEndpoints: [ { name: "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - allow: ["ServerConnection"] - } + allow: ["ServerConnection"], + }, ], - publicNetwork: { allow: ["ClientConnection"] } + publicNetwork: { allow: ["ClientConnection"] }, }, publicNetworkAccess: "Enabled", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, + socketIO: { serviceMode: "Serverless" }, tags: { key1: "value1" }, - tls: { clientCertEnabled: false } + tls: { clientCertEnabled: false }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.beginCreateOrUpdateAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesCreateOrUpdateSample.ts index 48aef474b8cb..80b48dcb0b2d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CustomCertificate, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a custom certificate. * * @summary Create or update a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_CreateOrUpdate.json */ async function webPubSubCustomCertificatesCreateOrUpdate() { const subscriptionId = @@ -34,16 +34,17 @@ async function webPubSubCustomCertificatesCreateOrUpdate() { const parameters: CustomCertificate = { keyVaultBaseUri: "https://myvault.keyvault.azure.net/", keyVaultSecretName: "mycert", - keyVaultSecretVersion: "bb6a44b2743f47f68dad0d6cc9756432" + keyVaultSecretVersion: "bb6a44b2743f47f68dad0d6cc9756432", }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); - const result = await client.webPubSubCustomCertificates.beginCreateOrUpdateAndWait( - resourceGroupName, - resourceName, - certificateName, - parameters - ); + const result = + await client.webPubSubCustomCertificates.beginCreateOrUpdateAndWait( + resourceGroupName, + resourceName, + certificateName, + parameters, + ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesDeleteSample.ts index 8069218ec5e8..93f124a2d06b 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a custom certificate. * * @summary Delete a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Delete.json */ async function webPubSubCustomCertificatesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubCustomCertificatesDelete() { const result = await client.webPubSubCustomCertificates.delete( resourceGroupName, resourceName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesGetSample.ts index e75598fd4b39..41426c1a8049 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a custom certificate. * * @summary Get a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Get.json */ async function webPubSubCustomCertificatesGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubCustomCertificatesGet() { const result = await client.webPubSubCustomCertificates.get( resourceGroupName, resourceName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesListSample.ts index 74a0ec7d873f..ac31427c7ad2 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomCertificatesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all custom certificates. * * @summary List all custom certificates. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_List.json */ async function webPubSubCustomCertificatesList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubCustomCertificatesList() { const resArray = new Array(); for await (let item of client.webPubSubCustomCertificates.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsCreateOrUpdateSample.ts index aebf1859df47..de3c7f710361 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a custom domain. * * @summary Create or update a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_CreateOrUpdate.json */ async function webPubSubCustomDomainsCreateOrUpdate() { const subscriptionId = @@ -30,10 +30,9 @@ async function webPubSubCustomDomainsCreateOrUpdate() { const name = "myDomain"; const parameters: CustomDomain = { customCertificate: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/customCertificates/myCert" + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/customCertificates/myCert", }, - domainName: "example.com" + domainName: "example.com", }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -41,7 +40,7 @@ async function webPubSubCustomDomainsCreateOrUpdate() { resourceGroupName, resourceName, name, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsDeleteSample.ts index 2d73d57c7c61..d9c77d520261 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a custom domain. * * @summary Delete a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Delete.json */ async function webPubSubCustomDomainsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubCustomDomainsDelete() { const result = await client.webPubSubCustomDomains.beginDeleteAndWait( resourceGroupName, resourceName, - name + name, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsGetSample.ts index 7ee41011e9e5..3c61e29fcf5d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a custom domain. * * @summary Get a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Get.json */ async function webPubSubCustomDomainsGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubCustomDomainsGet() { const result = await client.webPubSubCustomDomains.get( resourceGroupName, resourceName, - name + name, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsListSample.ts index 41fc67476b53..f1e0aceb7c42 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCustomDomainsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all custom domains. * * @summary List all custom domains. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_List.json */ async function webPubSubCustomDomainsList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubCustomDomainsList() { const resArray = new Array(); for await (let item of client.webPubSubCustomDomains.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubDeleteSample.ts index 7166ca120da4..ea4def0dbb6a 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a resource. * * @summary Operation to delete a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Delete.json */ async function webPubSubDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function webPubSubDelete() { const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.beginDeleteAndWait( resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubGetSample.ts index 5d92bbf183fd..511bd42e7faa 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the resource and its properties. * * @summary Get the resource and its properties. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Get.json */ async function webPubSubGet() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsCreateOrUpdateSample.ts index 79e32abc4d3c..107e5402d883 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a hub setting. * * @summary Create or update a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_CreateOrUpdate.json */ async function webPubSubHubsCreateOrUpdate() { const subscriptionId = @@ -35,28 +35,29 @@ async function webPubSubHubsCreateOrUpdate() { { auth: { type: "ManagedIdentity", - managedIdentity: { resource: "abc" } + managedIdentity: { resource: "abc" }, }, systemEvents: ["connect", "connected"], urlTemplate: "http://host.com", - userEventPattern: "*" - } + userEventPattern: "*", + }, ], eventListeners: [ { endpoint: { type: "EventHub", eventHubName: "eventHubName1", - fullyQualifiedNamespace: "example.servicebus.windows.net" + fullyQualifiedNamespace: "example.servicebus.windows.net", }, filter: { type: "EventName", systemEvents: ["connected", "disconnected"], - userEventPattern: "*" - } - } - ] - } + userEventPattern: "*", + }, + }, + ], + webSocketKeepAliveIntervalInSeconds: 50, + }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -64,7 +65,7 @@ async function webPubSubHubsCreateOrUpdate() { hubName, resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsDeleteSample.ts index f3b1aade4f62..b0cf85abbc0f 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a hub setting. * * @summary Delete a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Delete.json */ async function webPubSubHubsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubHubsDelete() { const result = await client.webPubSubHubs.beginDeleteAndWait( hubName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsGetSample.ts index 3079e9e2cb25..72cbe7ba7eef 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a hub setting. * * @summary Get a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Get.json */ async function webPubSubHubsGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubHubsGet() { const result = await client.webPubSubHubs.get( hubName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsListSample.ts index 32c859ff3643..80d463f80ec8 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubHubsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List hub settings. * * @summary List hub settings. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_List.json */ async function webPubSubHubsList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubHubsList() { const resArray = new Array(); for await (let item of client.webPubSubHubs.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListByResourceGroupSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListByResourceGroupSample.ts index 437447c2a52b..6f0f026e8489 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListByResourceGroupSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListByResourceGroup.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListByResourceGroup.json */ async function webPubSubListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function webPubSubListByResourceGroup() { const client = new WebPubSubManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.webPubSub.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListBySubscriptionSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListBySubscriptionSample.ts index 38d105291ec4..a669059492e1 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListBySubscriptionSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListBySubscription.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListBySubscription.json */ async function webPubSubListBySubscription() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListKeysSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListKeysSample.ts index 0c3dd27b37a1..fea4e1cdeb7d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListKeysSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the access keys of the resource. * * @summary Get the access keys of the resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListKeys.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListKeys.json */ async function webPubSubListKeys() { const subscriptionId = @@ -31,7 +31,7 @@ async function webPubSubListKeys() { const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.listKeys( resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListReplicaSkusSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListReplicaSkusSample.ts index 5eaa782a0b3e..3bea7116907b 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListReplicaSkusSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListReplicaSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all available skus of the replica resource. * * @summary List all available skus of the replica resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListReplicaSkus.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListReplicaSkus.json */ async function webPubSubListReplicaSkus() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubListReplicaSkus() { const result = await client.webPubSub.listReplicaSkus( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListSkusSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListSkusSample.ts index 723501cc7f54..390e0a923965 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListSkusSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubListSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all available skus of the resource. * * @summary List all available skus of the resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListSkus.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListSkus.json */ async function webPubSubListSkus() { const subscriptionId = @@ -31,7 +31,7 @@ async function webPubSubListSkus() { const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.listSkus( resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsDeleteSample.ts index a04cf6a185ad..77683849aea6 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified private endpoint connection * * @summary Delete the specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Delete.json */ async function webPubSubPrivateEndpointConnectionsDelete() { const subscriptionId = @@ -31,11 +31,12 @@ async function webPubSubPrivateEndpointConnectionsDelete() { const resourceName = "myWebPubSubService"; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); - const result = await client.webPubSubPrivateEndpointConnections.beginDeleteAndWait( - privateEndpointConnectionName, - resourceGroupName, - resourceName - ); + const result = + await client.webPubSubPrivateEndpointConnections.beginDeleteAndWait( + privateEndpointConnectionName, + resourceGroupName, + resourceName, + ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsGetSample.ts index 314a83a0246a..6a874bd6b0c6 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified private endpoint connection * * @summary Get the specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Get.json */ async function webPubSubPrivateEndpointConnectionsGet() { const subscriptionId = @@ -34,7 +34,7 @@ async function webPubSubPrivateEndpointConnectionsGet() { const result = await client.webPubSubPrivateEndpointConnections.get( privateEndpointConnectionName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsListSample.ts index 0cf616412dc6..0b36eabfe8dd 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List private endpoint connections * * @summary List private endpoint connections - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_List.json */ async function webPubSubPrivateEndpointConnectionsList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubPrivateEndpointConnectionsList() { const resArray = new Array(); for await (let item of client.webPubSubPrivateEndpointConnections.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsUpdateSample.ts index ee4eb5546ee2..a55ec094ead5 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateEndpointConnectionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the state of specified private endpoint connection * * @summary Update the state of specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Update.json */ async function webPubSubPrivateEndpointConnectionsUpdate() { const subscriptionId = @@ -36,8 +36,8 @@ async function webPubSubPrivateEndpointConnectionsUpdate() { privateEndpoint: {}, privateLinkServiceConnectionState: { actionsRequired: "None", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -45,7 +45,7 @@ async function webPubSubPrivateEndpointConnectionsUpdate() { privateEndpointConnectionName, resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateLinkResourcesListSample.ts index 41478308a516..733fca3e3253 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateLinkResourcesListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubPrivateLinkResourcesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the private link resources that need to be created for a resource. * * @summary Get the private link resources that need to be created for a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateLinkResources_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateLinkResources_List.json */ async function webPubSubPrivateLinkResourcesList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubPrivateLinkResourcesList() { const resArray = new Array(); for await (let item of client.webPubSubPrivateLinkResources.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubRegenerateKeySample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubRegenerateKeySample.ts index 341e520028ae..85e81bc09618 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubRegenerateKeySample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RegenerateKeyParameters, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. * * @summary Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_RegenerateKey.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_RegenerateKey.json */ async function webPubSubRegenerateKey() { const subscriptionId = @@ -36,7 +36,7 @@ async function webPubSubRegenerateKey() { const result = await client.webPubSub.beginRegenerateKeyAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..c163861566b8 --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SharedPrivateLinkResource, + WebPubSubManagementClient, +} from "@azure/arm-webpubsub"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update a shared private link resource + * + * @summary Create or update a shared private link resource + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_CreateOrUpdate.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdate() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const sharedPrivateLinkResourceName = "upstream"; + const parameters: SharedPrivateLinkResource = { + groupId: "sites", + privateLinkResourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp", + requestMessage: "Please approve", + }; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const result = + await client.webPubSubReplicaSharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts new file mode 100644 index 000000000000..ee50f4970c5d --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { WebPubSubManagementClient } from "@azure/arm-webpubsub"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the specified shared private link resource + * + * @summary Get the specified shared private link resource + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_Get.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesGet() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const sharedPrivateLinkResourceName = "upstream"; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const result = await client.webPubSubReplicaSharedPrivateLinkResources.get( + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesGet(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts new file mode 100644 index 000000000000..80c4ddf4261d --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { WebPubSubManagementClient } from "@azure/arm-webpubsub"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List shared private link resources + * + * @summary List shared private link resources + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_List.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesList() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.webPubSubReplicaSharedPrivateLinkResources.list( + resourceGroupName, + resourceName, + replicaName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesList(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasCreateOrUpdateSample.ts index f66fbd492824..4c4d19b08556 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a replica. * * @summary Create or update a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_CreateOrUpdate.json */ async function webPubSubReplicasCreateOrUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubReplicasCreateOrUpdate() { location: "eastus", resourceStopped: "false", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, - tags: { key1: "value1" } + tags: { key1: "value1" }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function webPubSubReplicasCreateOrUpdate() { resourceGroupName, resourceName, replicaName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasDeleteSample.ts index 8ffa1022b75a..da670e13bcc7 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a replica. * * @summary Operation to delete a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Delete.json */ async function webPubSubReplicasDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubReplicasDelete() { const result = await client.webPubSubReplicas.delete( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasGetSample.ts index a491b0619e75..3fc60568f63d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the replica and its properties. * * @summary Get the replica and its properties. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Get.json */ async function webPubSubReplicasGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubReplicasGet() { const result = await client.webPubSubReplicas.get( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasListSample.ts index 0fbfb31df4d1..5c9bff4de432 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replicas belong to this resource * * @summary List all replicas belong to this resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_List.json */ async function webPubSubReplicasList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubReplicasList() { const resArray = new Array(); for await (let item of client.webPubSubReplicas.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasRestartSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasRestartSample.ts index a9781cef00d3..141cddf65ddc 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasRestartSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to restart a replica. * * @summary Operation to restart a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Restart.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Restart.json */ async function webPubSubReplicasRestart() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubReplicasRestart() { const result = await client.webPubSubReplicas.beginRestartAndWait( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasUpdateSample.ts index 29fd7520a613..a38b7d74976c 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubReplicasUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to update an exiting replica. * * @summary Operation to update an exiting replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Update.json */ async function webPubSubReplicasUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubReplicasUpdate() { location: "eastus", resourceStopped: "false", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, - tags: { key1: "value1" } + tags: { key1: "value1" }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function webPubSubReplicasUpdate() { resourceGroupName, resourceName, replicaName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubRestartSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubRestartSample.ts index 2ce57c6a0fc9..34cd7758a480 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubRestartSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to restart a resource. * * @summary Operation to restart a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Restart.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Restart.json */ async function webPubSubRestart() { const subscriptionId = @@ -31,7 +31,7 @@ async function webPubSubRestart() { const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.beginRestartAndWait( resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts index e5219b721adc..05625f34848e 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SharedPrivateLinkResource, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a shared private link resource * * @summary Create or update a shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json */ async function webPubSubSharedPrivateLinkResourcesCreateOrUpdate() { const subscriptionId = @@ -35,16 +35,17 @@ async function webPubSubSharedPrivateLinkResourcesCreateOrUpdate() { groupId: "sites", privateLinkResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp", - requestMessage: "Please approve" + requestMessage: "Please approve", }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); - const result = await client.webPubSubSharedPrivateLinkResources.beginCreateOrUpdateAndWait( - sharedPrivateLinkResourceName, - resourceGroupName, - resourceName, - parameters - ); + const result = + await client.webPubSubSharedPrivateLinkResources.beginCreateOrUpdateAndWait( + sharedPrivateLinkResourceName, + resourceGroupName, + resourceName, + parameters, + ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesDeleteSample.ts index 4512e3af7675..c080c933f5e3 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified shared private link resource * * @summary Delete the specified shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Delete.json */ async function webPubSubSharedPrivateLinkResourcesDelete() { const subscriptionId = @@ -30,11 +30,12 @@ async function webPubSubSharedPrivateLinkResourcesDelete() { const resourceName = "myWebPubSubService"; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); - const result = await client.webPubSubSharedPrivateLinkResources.beginDeleteAndWait( - sharedPrivateLinkResourceName, - resourceGroupName, - resourceName - ); + const result = + await client.webPubSubSharedPrivateLinkResources.beginDeleteAndWait( + sharedPrivateLinkResourceName, + resourceGroupName, + resourceName, + ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesGetSample.ts index 75c609123975..8ad97b95ccb4 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified shared private link resource * * @summary Get the specified shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Get.json */ async function webPubSubSharedPrivateLinkResourcesGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubSharedPrivateLinkResourcesGet() { const result = await client.webPubSubSharedPrivateLinkResources.get( sharedPrivateLinkResourceName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesListSample.ts index 472a4bad7de3..fa814cc8b672 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubSharedPrivateLinkResourcesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared private link resources * * @summary List shared private link resources - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_List.json */ async function webPubSubSharedPrivateLinkResourcesList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubSharedPrivateLinkResourcesList() { const resArray = new Array(); for await (let item of client.webPubSubSharedPrivateLinkResources.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubUpdateSample.ts index 7d7ab01f8d4d..b84b9a50cc89 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { WebPubSubResource, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Operation to update an exiting resource. * * @summary Operation to update an exiting resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Update.json */ async function webPubSubUpdate() { const subscriptionId = @@ -37,7 +37,7 @@ async function webPubSubUpdate() { kind: "WebPubSub", liveTraceConfiguration: { categories: [{ name: "ConnectivityLogs", enabled: "true" }], - enabled: "false" + enabled: "false", }, location: "eastus", networkACLs: { @@ -45,22 +45,23 @@ async function webPubSubUpdate() { privateEndpoints: [ { name: "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - allow: ["ServerConnection"] - } + allow: ["ServerConnection"], + }, ], - publicNetwork: { allow: ["ClientConnection"] } + publicNetwork: { allow: ["ClientConnection"] }, }, publicNetworkAccess: "Enabled", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, + socketIO: { serviceMode: "Serverless" }, tags: { key1: "value1" }, - tls: { clientCertEnabled: false } + tls: { clientCertEnabled: false }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.beginUpdateAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/README.md b/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/README.md deleted file mode 100644 index 57ceb86e6da1..000000000000 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/README.md +++ /dev/null @@ -1,130 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.SignalRService provider. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Operations_List.json | -| [usagesListSample.js][usageslistsample] | List resource usage quotas by location. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List.json | -| [webPubSubCheckNameAvailabilitySample.js][webpubsubchecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CheckNameAvailability.json | -| [webPubSubCreateOrUpdateSample.js][webpubsubcreateorupdatesample] | Create or update a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CreateOrUpdate.json | -| [webPubSubCustomCertificatesCreateOrUpdateSample.js][webpubsubcustomcertificatescreateorupdatesample] | Create or update a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_CreateOrUpdate.json | -| [webPubSubCustomCertificatesDeleteSample.js][webpubsubcustomcertificatesdeletesample] | Delete a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Delete.json | -| [webPubSubCustomCertificatesGetSample.js][webpubsubcustomcertificatesgetsample] | Get a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Get.json | -| [webPubSubCustomCertificatesListSample.js][webpubsubcustomcertificateslistsample] | List all custom certificates. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_List.json | -| [webPubSubCustomDomainsCreateOrUpdateSample.js][webpubsubcustomdomainscreateorupdatesample] | Create or update a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_CreateOrUpdate.json | -| [webPubSubCustomDomainsDeleteSample.js][webpubsubcustomdomainsdeletesample] | Delete a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Delete.json | -| [webPubSubCustomDomainsGetSample.js][webpubsubcustomdomainsgetsample] | Get a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Get.json | -| [webPubSubCustomDomainsListSample.js][webpubsubcustomdomainslistsample] | List all custom domains. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_List.json | -| [webPubSubDeleteSample.js][webpubsubdeletesample] | Operation to delete a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Delete.json | -| [webPubSubGetSample.js][webpubsubgetsample] | Get the resource and its properties. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Get.json | -| [webPubSubHubsCreateOrUpdateSample.js][webpubsubhubscreateorupdatesample] | Create or update a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_CreateOrUpdate.json | -| [webPubSubHubsDeleteSample.js][webpubsubhubsdeletesample] | Delete a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Delete.json | -| [webPubSubHubsGetSample.js][webpubsubhubsgetsample] | Get a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Get.json | -| [webPubSubHubsListSample.js][webpubsubhubslistsample] | List hub settings. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_List.json | -| [webPubSubListByResourceGroupSample.js][webpubsublistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListByResourceGroup.json | -| [webPubSubListBySubscriptionSample.js][webpubsublistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListBySubscription.json | -| [webPubSubListKeysSample.js][webpubsublistkeyssample] | Get the access keys of the resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListKeys.json | -| [webPubSubListReplicaSkusSample.js][webpubsublistreplicaskussample] | List all available skus of the replica resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListReplicaSkus.json | -| [webPubSubListSkusSample.js][webpubsublistskussample] | List all available skus of the resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListSkus.json | -| [webPubSubPrivateEndpointConnectionsDeleteSample.js][webpubsubprivateendpointconnectionsdeletesample] | Delete the specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Delete.json | -| [webPubSubPrivateEndpointConnectionsGetSample.js][webpubsubprivateendpointconnectionsgetsample] | Get the specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Get.json | -| [webPubSubPrivateEndpointConnectionsListSample.js][webpubsubprivateendpointconnectionslistsample] | List private endpoint connections x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_List.json | -| [webPubSubPrivateEndpointConnectionsUpdateSample.js][webpubsubprivateendpointconnectionsupdatesample] | Update the state of specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Update.json | -| [webPubSubPrivateLinkResourcesListSample.js][webpubsubprivatelinkresourceslistsample] | Get the private link resources that need to be created for a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateLinkResources_List.json | -| [webPubSubRegenerateKeySample.js][webpubsubregeneratekeysample] | Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_RegenerateKey.json | -| [webPubSubReplicasCreateOrUpdateSample.js][webpubsubreplicascreateorupdatesample] | Create or update a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_CreateOrUpdate.json | -| [webPubSubReplicasDeleteSample.js][webpubsubreplicasdeletesample] | Operation to delete a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Delete.json | -| [webPubSubReplicasGetSample.js][webpubsubreplicasgetsample] | Get the replica and its properties. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Get.json | -| [webPubSubReplicasListSample.js][webpubsubreplicaslistsample] | List all replicas belong to this resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_List.json | -| [webPubSubReplicasRestartSample.js][webpubsubreplicasrestartsample] | Operation to restart a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Restart.json | -| [webPubSubReplicasUpdateSample.js][webpubsubreplicasupdatesample] | Operation to update an exiting replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Update.json | -| [webPubSubRestartSample.js][webpubsubrestartsample] | Operation to restart a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Restart.json | -| [webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js][webpubsubsharedprivatelinkresourcescreateorupdatesample] | Create or update a shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json | -| [webPubSubSharedPrivateLinkResourcesDeleteSample.js][webpubsubsharedprivatelinkresourcesdeletesample] | Delete the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Delete.json | -| [webPubSubSharedPrivateLinkResourcesGetSample.js][webpubsubsharedprivatelinkresourcesgetsample] | Get the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Get.json | -| [webPubSubSharedPrivateLinkResourcesListSample.js][webpubsubsharedprivatelinkresourceslistsample] | List shared private link resources x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_List.json | -| [webPubSubUpdateSample.js][webpubsubupdatesample] | Operation to update an exiting resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Update.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node operationsListSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env WEB-PUBSUB_SUBSCRIPTION_ID="" node operationsListSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/operationsListSample.js -[usageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/usagesListSample.js -[webpubsubchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCheckNameAvailabilitySample.js -[webpubsubcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCreateOrUpdateSample.js -[webpubsubcustomcertificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js -[webpubsubcustomcertificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesDeleteSample.js -[webpubsubcustomcertificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesGetSample.js -[webpubsubcustomcertificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesListSample.js -[webpubsubcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js -[webpubsubcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsDeleteSample.js -[webpubsubcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsGetSample.js -[webpubsubcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsListSample.js -[webpubsubdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubDeleteSample.js -[webpubsubgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubGetSample.js -[webpubsubhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsCreateOrUpdateSample.js -[webpubsubhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsDeleteSample.js -[webpubsubhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsGetSample.js -[webpubsubhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsListSample.js -[webpubsublistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListByResourceGroupSample.js -[webpubsublistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListBySubscriptionSample.js -[webpubsublistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListKeysSample.js -[webpubsublistreplicaskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListReplicaSkusSample.js -[webpubsublistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListSkusSample.js -[webpubsubprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js -[webpubsubprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsGetSample.js -[webpubsubprivateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsListSample.js -[webpubsubprivateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js -[webpubsubprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateLinkResourcesListSample.js -[webpubsubregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubRegenerateKeySample.js -[webpubsubreplicascreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasCreateOrUpdateSample.js -[webpubsubreplicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasDeleteSample.js -[webpubsubreplicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasGetSample.js -[webpubsubreplicaslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasListSample.js -[webpubsubreplicasrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasRestartSample.js -[webpubsubreplicasupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasUpdateSample.js -[webpubsubrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubRestartSample.js -[webpubsubsharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js -[webpubsubsharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js -[webpubsubsharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js -[webpubsubsharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesListSample.js -[webpubsubupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubUpdateSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub/README.md diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/README.md b/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/README.md deleted file mode 100644 index 564d14154119..000000000000 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/README.md +++ /dev/null @@ -1,143 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.SignalRService provider. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Operations_List.json | -| [usagesListSample.ts][usageslistsample] | List resource usage quotas by location. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List.json | -| [webPubSubCheckNameAvailabilitySample.ts][webpubsubchecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CheckNameAvailability.json | -| [webPubSubCreateOrUpdateSample.ts][webpubsubcreateorupdatesample] | Create or update a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CreateOrUpdate.json | -| [webPubSubCustomCertificatesCreateOrUpdateSample.ts][webpubsubcustomcertificatescreateorupdatesample] | Create or update a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_CreateOrUpdate.json | -| [webPubSubCustomCertificatesDeleteSample.ts][webpubsubcustomcertificatesdeletesample] | Delete a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Delete.json | -| [webPubSubCustomCertificatesGetSample.ts][webpubsubcustomcertificatesgetsample] | Get a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Get.json | -| [webPubSubCustomCertificatesListSample.ts][webpubsubcustomcertificateslistsample] | List all custom certificates. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_List.json | -| [webPubSubCustomDomainsCreateOrUpdateSample.ts][webpubsubcustomdomainscreateorupdatesample] | Create or update a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_CreateOrUpdate.json | -| [webPubSubCustomDomainsDeleteSample.ts][webpubsubcustomdomainsdeletesample] | Delete a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Delete.json | -| [webPubSubCustomDomainsGetSample.ts][webpubsubcustomdomainsgetsample] | Get a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Get.json | -| [webPubSubCustomDomainsListSample.ts][webpubsubcustomdomainslistsample] | List all custom domains. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_List.json | -| [webPubSubDeleteSample.ts][webpubsubdeletesample] | Operation to delete a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Delete.json | -| [webPubSubGetSample.ts][webpubsubgetsample] | Get the resource and its properties. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Get.json | -| [webPubSubHubsCreateOrUpdateSample.ts][webpubsubhubscreateorupdatesample] | Create or update a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_CreateOrUpdate.json | -| [webPubSubHubsDeleteSample.ts][webpubsubhubsdeletesample] | Delete a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Delete.json | -| [webPubSubHubsGetSample.ts][webpubsubhubsgetsample] | Get a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Get.json | -| [webPubSubHubsListSample.ts][webpubsubhubslistsample] | List hub settings. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_List.json | -| [webPubSubListByResourceGroupSample.ts][webpubsublistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListByResourceGroup.json | -| [webPubSubListBySubscriptionSample.ts][webpubsublistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListBySubscription.json | -| [webPubSubListKeysSample.ts][webpubsublistkeyssample] | Get the access keys of the resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListKeys.json | -| [webPubSubListReplicaSkusSample.ts][webpubsublistreplicaskussample] | List all available skus of the replica resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListReplicaSkus.json | -| [webPubSubListSkusSample.ts][webpubsublistskussample] | List all available skus of the resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListSkus.json | -| [webPubSubPrivateEndpointConnectionsDeleteSample.ts][webpubsubprivateendpointconnectionsdeletesample] | Delete the specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Delete.json | -| [webPubSubPrivateEndpointConnectionsGetSample.ts][webpubsubprivateendpointconnectionsgetsample] | Get the specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Get.json | -| [webPubSubPrivateEndpointConnectionsListSample.ts][webpubsubprivateendpointconnectionslistsample] | List private endpoint connections x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_List.json | -| [webPubSubPrivateEndpointConnectionsUpdateSample.ts][webpubsubprivateendpointconnectionsupdatesample] | Update the state of specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Update.json | -| [webPubSubPrivateLinkResourcesListSample.ts][webpubsubprivatelinkresourceslistsample] | Get the private link resources that need to be created for a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateLinkResources_List.json | -| [webPubSubRegenerateKeySample.ts][webpubsubregeneratekeysample] | Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_RegenerateKey.json | -| [webPubSubReplicasCreateOrUpdateSample.ts][webpubsubreplicascreateorupdatesample] | Create or update a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_CreateOrUpdate.json | -| [webPubSubReplicasDeleteSample.ts][webpubsubreplicasdeletesample] | Operation to delete a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Delete.json | -| [webPubSubReplicasGetSample.ts][webpubsubreplicasgetsample] | Get the replica and its properties. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Get.json | -| [webPubSubReplicasListSample.ts][webpubsubreplicaslistsample] | List all replicas belong to this resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_List.json | -| [webPubSubReplicasRestartSample.ts][webpubsubreplicasrestartsample] | Operation to restart a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Restart.json | -| [webPubSubReplicasUpdateSample.ts][webpubsubreplicasupdatesample] | Operation to update an exiting replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Update.json | -| [webPubSubRestartSample.ts][webpubsubrestartsample] | Operation to restart a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Restart.json | -| [webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts][webpubsubsharedprivatelinkresourcescreateorupdatesample] | Create or update a shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json | -| [webPubSubSharedPrivateLinkResourcesDeleteSample.ts][webpubsubsharedprivatelinkresourcesdeletesample] | Delete the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Delete.json | -| [webPubSubSharedPrivateLinkResourcesGetSample.ts][webpubsubsharedprivatelinkresourcesgetsample] | Get the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Get.json | -| [webPubSubSharedPrivateLinkResourcesListSample.ts][webpubsubsharedprivatelinkresourceslistsample] | List shared private link resources x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_List.json | -| [webPubSubUpdateSample.ts][webpubsubupdatesample] | Operation to update an exiting resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Update.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/operationsListSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env WEB-PUBSUB_SUBSCRIPTION_ID="" node dist/operationsListSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/operationsListSample.ts -[usageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/usagesListSample.ts -[webpubsubchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCheckNameAvailabilitySample.ts -[webpubsubcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCreateOrUpdateSample.ts -[webpubsubcustomcertificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts -[webpubsubcustomcertificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesDeleteSample.ts -[webpubsubcustomcertificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesGetSample.ts -[webpubsubcustomcertificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesListSample.ts -[webpubsubcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts -[webpubsubcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsDeleteSample.ts -[webpubsubcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsGetSample.ts -[webpubsubcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsListSample.ts -[webpubsubdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubDeleteSample.ts -[webpubsubgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubGetSample.ts -[webpubsubhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsCreateOrUpdateSample.ts -[webpubsubhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsDeleteSample.ts -[webpubsubhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsGetSample.ts -[webpubsubhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsListSample.ts -[webpubsublistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListByResourceGroupSample.ts -[webpubsublistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListBySubscriptionSample.ts -[webpubsublistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListKeysSample.ts -[webpubsublistreplicaskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListReplicaSkusSample.ts -[webpubsublistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListSkusSample.ts -[webpubsubprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts -[webpubsubprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts -[webpubsubprivateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts -[webpubsubprivateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts -[webpubsubprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateLinkResourcesListSample.ts -[webpubsubregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubRegenerateKeySample.ts -[webpubsubreplicascreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts -[webpubsubreplicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasDeleteSample.ts -[webpubsubreplicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasGetSample.ts -[webpubsubreplicaslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasListSample.ts -[webpubsubreplicasrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasRestartSample.ts -[webpubsubreplicasupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasUpdateSample.ts -[webpubsubrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubRestartSample.ts -[webpubsubsharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts -[webpubsubsharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts -[webpubsubsharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts -[webpubsubsharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts -[webpubsubupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubUpdateSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/README.md b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/README.md new file mode 100644 index 000000000000..9829804e2f38 --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/README.md @@ -0,0 +1,136 @@ +# client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.SignalRService provider. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Operations_List.json | +| [usagesListSample.js][usageslistsample] | List resource usage quotas by location. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Usages_List.json | +| [webPubSubCheckNameAvailabilitySample.js][webpubsubchecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CheckNameAvailability.json | +| [webPubSubCreateOrUpdateSample.js][webpubsubcreateorupdatesample] | Create or update a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CreateOrUpdate.json | +| [webPubSubCustomCertificatesCreateOrUpdateSample.js][webpubsubcustomcertificatescreateorupdatesample] | Create or update a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_CreateOrUpdate.json | +| [webPubSubCustomCertificatesDeleteSample.js][webpubsubcustomcertificatesdeletesample] | Delete a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Delete.json | +| [webPubSubCustomCertificatesGetSample.js][webpubsubcustomcertificatesgetsample] | Get a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Get.json | +| [webPubSubCustomCertificatesListSample.js][webpubsubcustomcertificateslistsample] | List all custom certificates. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_List.json | +| [webPubSubCustomDomainsCreateOrUpdateSample.js][webpubsubcustomdomainscreateorupdatesample] | Create or update a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_CreateOrUpdate.json | +| [webPubSubCustomDomainsDeleteSample.js][webpubsubcustomdomainsdeletesample] | Delete a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Delete.json | +| [webPubSubCustomDomainsGetSample.js][webpubsubcustomdomainsgetsample] | Get a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Get.json | +| [webPubSubCustomDomainsListSample.js][webpubsubcustomdomainslistsample] | List all custom domains. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_List.json | +| [webPubSubDeleteSample.js][webpubsubdeletesample] | Operation to delete a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Delete.json | +| [webPubSubGetSample.js][webpubsubgetsample] | Get the resource and its properties. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Get.json | +| [webPubSubHubsCreateOrUpdateSample.js][webpubsubhubscreateorupdatesample] | Create or update a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_CreateOrUpdate.json | +| [webPubSubHubsDeleteSample.js][webpubsubhubsdeletesample] | Delete a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Delete.json | +| [webPubSubHubsGetSample.js][webpubsubhubsgetsample] | Get a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Get.json | +| [webPubSubHubsListSample.js][webpubsubhubslistsample] | List hub settings. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_List.json | +| [webPubSubListByResourceGroupSample.js][webpubsublistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListByResourceGroup.json | +| [webPubSubListBySubscriptionSample.js][webpubsublistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListBySubscription.json | +| [webPubSubListKeysSample.js][webpubsublistkeyssample] | Get the access keys of the resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListKeys.json | +| [webPubSubListReplicaSkusSample.js][webpubsublistreplicaskussample] | List all available skus of the replica resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListReplicaSkus.json | +| [webPubSubListSkusSample.js][webpubsublistskussample] | List all available skus of the resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListSkus.json | +| [webPubSubPrivateEndpointConnectionsDeleteSample.js][webpubsubprivateendpointconnectionsdeletesample] | Delete the specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Delete.json | +| [webPubSubPrivateEndpointConnectionsGetSample.js][webpubsubprivateendpointconnectionsgetsample] | Get the specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Get.json | +| [webPubSubPrivateEndpointConnectionsListSample.js][webpubsubprivateendpointconnectionslistsample] | List private endpoint connections x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_List.json | +| [webPubSubPrivateEndpointConnectionsUpdateSample.js][webpubsubprivateendpointconnectionsupdatesample] | Update the state of specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Update.json | +| [webPubSubPrivateLinkResourcesListSample.js][webpubsubprivatelinkresourceslistsample] | Get the private link resources that need to be created for a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateLinkResources_List.json | +| [webPubSubRegenerateKeySample.js][webpubsubregeneratekeysample] | Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_RegenerateKey.json | +| [webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js][webpubsubreplicasharedprivatelinkresourcescreateorupdatesample] | Create or update a shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_CreateOrUpdate.json | +| [webPubSubReplicaSharedPrivateLinkResourcesGetSample.js][webpubsubreplicasharedprivatelinkresourcesgetsample] | Get the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_Get.json | +| [webPubSubReplicaSharedPrivateLinkResourcesListSample.js][webpubsubreplicasharedprivatelinkresourceslistsample] | List shared private link resources x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_List.json | +| [webPubSubReplicasCreateOrUpdateSample.js][webpubsubreplicascreateorupdatesample] | Create or update a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_CreateOrUpdate.json | +| [webPubSubReplicasDeleteSample.js][webpubsubreplicasdeletesample] | Operation to delete a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Delete.json | +| [webPubSubReplicasGetSample.js][webpubsubreplicasgetsample] | Get the replica and its properties. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Get.json | +| [webPubSubReplicasListSample.js][webpubsubreplicaslistsample] | List all replicas belong to this resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_List.json | +| [webPubSubReplicasRestartSample.js][webpubsubreplicasrestartsample] | Operation to restart a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Restart.json | +| [webPubSubReplicasUpdateSample.js][webpubsubreplicasupdatesample] | Operation to update an exiting replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Update.json | +| [webPubSubRestartSample.js][webpubsubrestartsample] | Operation to restart a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Restart.json | +| [webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js][webpubsubsharedprivatelinkresourcescreateorupdatesample] | Create or update a shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json | +| [webPubSubSharedPrivateLinkResourcesDeleteSample.js][webpubsubsharedprivatelinkresourcesdeletesample] | Delete the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Delete.json | +| [webPubSubSharedPrivateLinkResourcesGetSample.js][webpubsubsharedprivatelinkresourcesgetsample] | Get the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Get.json | +| [webPubSubSharedPrivateLinkResourcesListSample.js][webpubsubsharedprivatelinkresourceslistsample] | List shared private link resources x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_List.json | +| [webPubSubUpdateSample.js][webpubsubupdatesample] | Operation to update an exiting resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Update.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node operationsListSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env WEB-PUBSUB_SUBSCRIPTION_ID="" node operationsListSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/operationsListSample.js +[usageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/usagesListSample.js +[webpubsubchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCheckNameAvailabilitySample.js +[webpubsubcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCreateOrUpdateSample.js +[webpubsubcustomcertificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js +[webpubsubcustomcertificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesDeleteSample.js +[webpubsubcustomcertificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesGetSample.js +[webpubsubcustomcertificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesListSample.js +[webpubsubcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js +[webpubsubcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsDeleteSample.js +[webpubsubcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsGetSample.js +[webpubsubcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsListSample.js +[webpubsubdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubDeleteSample.js +[webpubsubgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubGetSample.js +[webpubsubhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsCreateOrUpdateSample.js +[webpubsubhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsDeleteSample.js +[webpubsubhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsGetSample.js +[webpubsubhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsListSample.js +[webpubsublistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListByResourceGroupSample.js +[webpubsublistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListBySubscriptionSample.js +[webpubsublistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListKeysSample.js +[webpubsublistreplicaskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListReplicaSkusSample.js +[webpubsublistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListSkusSample.js +[webpubsubprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js +[webpubsubprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsGetSample.js +[webpubsubprivateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsListSample.js +[webpubsubprivateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js +[webpubsubprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateLinkResourcesListSample.js +[webpubsubregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRegenerateKeySample.js +[webpubsubreplicasharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js +[webpubsubreplicasharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js +[webpubsubreplicasharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js +[webpubsubreplicascreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasCreateOrUpdateSample.js +[webpubsubreplicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasDeleteSample.js +[webpubsubreplicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasGetSample.js +[webpubsubreplicaslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasListSample.js +[webpubsubreplicasrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasRestartSample.js +[webpubsubreplicasupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasUpdateSample.js +[webpubsubrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRestartSample.js +[webpubsubsharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js +[webpubsubsharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js +[webpubsubsharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js +[webpubsubsharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesListSample.js +[webpubsubupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubUpdateSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub/README.md diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/operationsListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/operationsListSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/operationsListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/operationsListSample.js index 7d6176456755..b16dffef6a07 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/operationsListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.SignalRService provider. * * @summary Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Operations_List.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/package.json b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/package.json similarity index 81% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/package.json rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/package.json index 9cd52eb38712..42e53719642b 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/package.json +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-webpubsub-js-beta", + "name": "@azure-samples/arm-webpubsub-js", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", + "description": " client library samples for JavaScript", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub", "dependencies": { - "@azure/arm-webpubsub": "next", + "@azure/arm-webpubsub": "latest", "dotenv": "latest", "@azure/identity": "^4.2.1" } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/sample.env b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/sample.env similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/sample.env rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/sample.env diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/usagesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/usagesListSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/usagesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/usagesListSample.js index 6ac737d6cec3..592c0d54a7cc 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/usagesListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/usagesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List resource usage quotas by location. * * @summary List resource usage quotas by location. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Usages_List.json */ async function usagesList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCheckNameAvailabilitySample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCheckNameAvailabilitySample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCheckNameAvailabilitySample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCheckNameAvailabilitySample.js index 60e9196b9265..673d7cdcada6 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCheckNameAvailabilitySample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks that the resource name is valid and is not already in use. * * @summary Checks that the resource name is valid and is not already in use. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CheckNameAvailability.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CheckNameAvailability.json */ async function webPubSubCheckNameAvailability() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCreateOrUpdateSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCreateOrUpdateSample.js index 77765d069de6..96e43ea8aeac 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCreateOrUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a resource. * * @summary Create or update a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CreateOrUpdate.json */ async function webPubSubCreateOrUpdate() { const subscriptionId = @@ -45,6 +45,7 @@ async function webPubSubCreateOrUpdate() { }, publicNetworkAccess: "Enabled", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, + socketIO: { serviceMode: "Serverless" }, tags: { key1: "value1" }, tls: { clientCertEnabled: false }, }; @@ -53,7 +54,7 @@ async function webPubSubCreateOrUpdate() { const result = await client.webPubSub.beginCreateOrUpdateAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js index 7244c30585ef..e6af2ff4db33 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a custom certificate. * * @summary Create or update a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_CreateOrUpdate.json */ async function webPubSubCustomCertificatesCreateOrUpdate() { const subscriptionId = @@ -35,7 +35,7 @@ async function webPubSubCustomCertificatesCreateOrUpdate() { resourceGroupName, resourceName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesDeleteSample.js similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesDeleteSample.js index 0bf0afd65703..ba4b68ba9e67 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesDeleteSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a custom certificate. * * @summary Delete a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Delete.json */ async function webPubSubCustomCertificatesDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubCustomCertificatesDelete() { const result = await client.webPubSubCustomCertificates.delete( resourceGroupName, resourceName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesGetSample.js similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesGetSample.js index ef7494814873..35cea086afac 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesGetSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a custom certificate. * * @summary Get a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Get.json */ async function webPubSubCustomCertificatesGet() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubCustomCertificatesGet() { const result = await client.webPubSubCustomCertificates.get( resourceGroupName, resourceName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesListSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesListSample.js index e317356ac137..623a28e0b8fd 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomCertificatesListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all custom certificates. * * @summary List all custom certificates. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_List.json */ async function webPubSubCustomCertificatesList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js index f45f721a5d37..84caabfb87fd 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a custom domain. * * @summary Create or update a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_CreateOrUpdate.json */ async function webPubSubCustomDomainsCreateOrUpdate() { const subscriptionId = @@ -36,7 +36,7 @@ async function webPubSubCustomDomainsCreateOrUpdate() { resourceGroupName, resourceName, name, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsDeleteSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsDeleteSample.js index 886a4c0d2449..22938ee63870 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsDeleteSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a custom domain. * * @summary Delete a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Delete.json */ async function webPubSubCustomDomainsDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubCustomDomainsDelete() { const result = await client.webPubSubCustomDomains.beginDeleteAndWait( resourceGroupName, resourceName, - name + name, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsGetSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsGetSample.js index 2c81b9e2bdbb..2efa404055ad 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsGetSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a custom domain. * * @summary Get a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Get.json */ async function webPubSubCustomDomainsGet() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsListSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsListSample.js index df598645f02d..66949a1a2a36 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubCustomDomainsListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all custom domains. * * @summary List all custom domains. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_List.json */ async function webPubSubCustomDomainsList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubDeleteSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubDeleteSample.js index 580712178a06..e175b10a6b0c 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubDeleteSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Operation to delete a resource. * * @summary Operation to delete a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Delete.json */ async function webPubSubDelete() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubGetSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubGetSample.js index 274bbb45f1bd..88b7807a6da8 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubGetSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the resource and its properties. * * @summary Get the resource and its properties. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Get.json */ async function webPubSubGet() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsCreateOrUpdateSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsCreateOrUpdateSample.js index 99bc41c96d12..5b5bed9c8000 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsCreateOrUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a hub setting. * * @summary Create or update a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_CreateOrUpdate.json */ async function webPubSubHubsCreateOrUpdate() { const subscriptionId = @@ -52,6 +52,7 @@ async function webPubSubHubsCreateOrUpdate() { }, }, ], + webSocketKeepAliveIntervalInSeconds: 50, }, }; const credential = new DefaultAzureCredential(); @@ -60,7 +61,7 @@ async function webPubSubHubsCreateOrUpdate() { hubName, resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsDeleteSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsDeleteSample.js index 5f37b4fbb286..6a1b9fc83e89 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsDeleteSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a hub setting. * * @summary Delete a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Delete.json */ async function webPubSubHubsDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubHubsDelete() { const result = await client.webPubSubHubs.beginDeleteAndWait( hubName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsGetSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsGetSample.js index 10bd4658fd52..6a81e74b5e18 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsGetSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a hub setting. * * @summary Get a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Get.json */ async function webPubSubHubsGet() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsListSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsListSample.js index e49bc05d240b..42837026bfea 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubHubsListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List hub settings. * * @summary List hub settings. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_List.json */ async function webPubSubHubsList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListByResourceGroupSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListByResourceGroupSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListByResourceGroupSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListByResourceGroupSample.js index 905e616784fb..57a0116fed52 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListByResourceGroupSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListByResourceGroup.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListByResourceGroup.json */ async function webPubSubListByResourceGroup() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListBySubscriptionSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListBySubscriptionSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListBySubscriptionSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListBySubscriptionSample.js index 6d179448cc70..a77bdcf66a70 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListBySubscriptionSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListBySubscription.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListBySubscription.json */ async function webPubSubListBySubscription() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListKeysSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListKeysSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListKeysSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListKeysSample.js index 718e1cb1225e..abecba0102f3 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListKeysSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the access keys of the resource. * * @summary Get the access keys of the resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListKeys.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListKeys.json */ async function webPubSubListKeys() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListReplicaSkusSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListReplicaSkusSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListReplicaSkusSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListReplicaSkusSample.js index 1b9e15d1251a..1e8dac858b91 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListReplicaSkusSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListReplicaSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all available skus of the replica resource. * * @summary List all available skus of the replica resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListReplicaSkus.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListReplicaSkus.json */ async function webPubSubListReplicaSkus() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubListReplicaSkus() { const result = await client.webPubSub.listReplicaSkus( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListSkusSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListSkusSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListSkusSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListSkusSample.js index 5a256a64d2bc..3cb9076fdbb9 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubListSkusSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all available skus of the resource. * * @summary List all available skus of the resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListSkus.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListSkus.json */ async function webPubSubListSkus() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js index 3841b7525f2d..f8719e770c8a 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified private endpoint connection * * @summary Delete the specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Delete.json */ async function webPubSubPrivateEndpointConnectionsDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubPrivateEndpointConnectionsDelete() { const result = await client.webPubSubPrivateEndpointConnections.beginDeleteAndWait( privateEndpointConnectionName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsGetSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsGetSample.js index e4ecd23b3018..c1c7be0f3267 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsGetSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the specified private endpoint connection * * @summary Get the specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Get.json */ async function webPubSubPrivateEndpointConnectionsGet() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubPrivateEndpointConnectionsGet() { const result = await client.webPubSubPrivateEndpointConnections.get( privateEndpointConnectionName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsListSample.js similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsListSample.js index 994e51172895..c4edcab1062c 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List private endpoint connections * * @summary List private endpoint connections - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_List.json */ async function webPubSubPrivateEndpointConnectionsList() { const subscriptionId = @@ -28,7 +28,7 @@ async function webPubSubPrivateEndpointConnectionsList() { const resArray = new Array(); for await (let item of client.webPubSubPrivateEndpointConnections.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js index df8b9153018f..3736b35b1aad 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update the state of specified private endpoint connection * * @summary Update the state of specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Update.json */ async function webPubSubPrivateEndpointConnectionsUpdate() { const subscriptionId = @@ -37,7 +37,7 @@ async function webPubSubPrivateEndpointConnectionsUpdate() { privateEndpointConnectionName, resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateLinkResourcesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateLinkResourcesListSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateLinkResourcesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateLinkResourcesListSample.js index d6926d978651..bdfd39419ec3 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubPrivateLinkResourcesListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateLinkResourcesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the private link resources that need to be created for a resource. * * @summary Get the private link resources that need to be created for a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateLinkResources_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateLinkResources_List.json */ async function webPubSubPrivateLinkResourcesList() { const subscriptionId = @@ -28,7 +28,7 @@ async function webPubSubPrivateLinkResourcesList() { const resArray = new Array(); for await (let item of client.webPubSubPrivateLinkResources.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubRegenerateKeySample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRegenerateKeySample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubRegenerateKeySample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRegenerateKeySample.js index 9925316fc86c..789a8ca93d4d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubRegenerateKeySample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRegenerateKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. * * @summary Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_RegenerateKey.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_RegenerateKey.json */ async function webPubSubRegenerateKey() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubRegenerateKey() { const result = await client.webPubSub.beginRegenerateKeyAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js new file mode 100644 index 000000000000..9c784ca9ae5b --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { WebPubSubManagementClient } = require("@azure/arm-webpubsub"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update a shared private link resource + * + * @summary Create or update a shared private link resource + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_CreateOrUpdate.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdate() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const sharedPrivateLinkResourceName = "upstream"; + const parameters = { + groupId: "sites", + privateLinkResourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp", + requestMessage: "Please approve", + }; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const result = await client.webPubSubReplicaSharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js new file mode 100644 index 000000000000..2c1012e698e3 --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { WebPubSubManagementClient } = require("@azure/arm-webpubsub"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the specified shared private link resource + * + * @summary Get the specified shared private link resource + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_Get.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesGet() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const sharedPrivateLinkResourceName = "upstream"; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const result = await client.webPubSubReplicaSharedPrivateLinkResources.get( + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesGet(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js new file mode 100644 index 000000000000..3922d682b6eb --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { WebPubSubManagementClient } = require("@azure/arm-webpubsub"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List shared private link resources + * + * @summary List shared private link resources + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_List.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesList() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.webPubSubReplicaSharedPrivateLinkResources.list( + resourceGroupName, + resourceName, + replicaName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesList(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasCreateOrUpdateSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasCreateOrUpdateSample.js index 7c0633e9e6e2..556b92b046f4 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasCreateOrUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a replica. * * @summary Create or update a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_CreateOrUpdate.json */ async function webPubSubReplicasCreateOrUpdate() { const subscriptionId = @@ -36,7 +36,7 @@ async function webPubSubReplicasCreateOrUpdate() { resourceGroupName, resourceName, replicaName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasDeleteSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasDeleteSample.js index 230625bbe49f..4e1745cdbc1f 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasDeleteSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Operation to delete a replica. * * @summary Operation to delete a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Delete.json */ async function webPubSubReplicasDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubReplicasDelete() { const result = await client.webPubSubReplicas.delete( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasGetSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasGetSample.js index 1eb86e121cd7..d31186cf1ac4 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasGetSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the replica and its properties. * * @summary Get the replica and its properties. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Get.json */ async function webPubSubReplicasGet() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasListSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasListSample.js index 552d301c63f6..67845b1770ba 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all replicas belong to this resource * * @summary List all replicas belong to this resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_List.json */ async function webPubSubReplicasList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasRestartSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasRestartSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasRestartSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasRestartSample.js index ce82e1a30b08..9a9c187b9a1c 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasRestartSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasRestartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Operation to restart a replica. * * @summary Operation to restart a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Restart.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Restart.json */ async function webPubSubReplicasRestart() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubReplicasRestart() { const result = await client.webPubSubReplicas.beginRestartAndWait( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasUpdateSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasUpdateSample.js index bd4a28e92f7f..a1904ec524b9 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubReplicasUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Operation to update an exiting replica. * * @summary Operation to update an exiting replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Update.json */ async function webPubSubReplicasUpdate() { const subscriptionId = @@ -36,7 +36,7 @@ async function webPubSubReplicasUpdate() { resourceGroupName, resourceName, replicaName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubRestartSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRestartSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubRestartSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRestartSample.js index 54a0c0c46f24..eb65615055c1 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubRestartSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRestartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Operation to restart a resource. * * @summary Operation to restart a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Restart.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Restart.json */ async function webPubSubRestart() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js index acdd8c8ae9d6..10ac93de5a43 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a shared private link resource * * @summary Create or update a shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json */ async function webPubSubSharedPrivateLinkResourcesCreateOrUpdate() { const subscriptionId = @@ -36,7 +36,7 @@ async function webPubSubSharedPrivateLinkResourcesCreateOrUpdate() { sharedPrivateLinkResourceName, resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js index 33e6ec3a21ca..f7f4cf2d0a83 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified shared private link resource * * @summary Delete the specified shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Delete.json */ async function webPubSubSharedPrivateLinkResourcesDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubSharedPrivateLinkResourcesDelete() { const result = await client.webPubSubSharedPrivateLinkResources.beginDeleteAndWait( sharedPrivateLinkResourceName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js index bc86fe1f0504..490f10cc502f 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the specified shared private link resource * * @summary Get the specified shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Get.json */ async function webPubSubSharedPrivateLinkResourcesGet() { const subscriptionId = @@ -29,7 +29,7 @@ async function webPubSubSharedPrivateLinkResourcesGet() { const result = await client.webPubSubSharedPrivateLinkResources.get( sharedPrivateLinkResourceName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesListSample.js similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesListSample.js index 1abecf4ed452..6341fcd8f59b 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubSharedPrivateLinkResourcesListSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List shared private link resources * * @summary List shared private link resources - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_List.json */ async function webPubSubSharedPrivateLinkResourcesList() { const subscriptionId = @@ -28,7 +28,7 @@ async function webPubSubSharedPrivateLinkResourcesList() { const resArray = new Array(); for await (let item of client.webPubSubSharedPrivateLinkResources.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubUpdateSample.js similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubUpdateSample.js index 7146581e9110..4bb1bf856200 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/javascript/webPubSubUpdateSample.js +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Operation to update an exiting resource. * * @summary Operation to update an exiting resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Update.json */ async function webPubSubUpdate() { const subscriptionId = @@ -45,6 +45,7 @@ async function webPubSubUpdate() { }, publicNetworkAccess: "Enabled", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, + socketIO: { serviceMode: "Serverless" }, tags: { key1: "value1" }, tls: { clientCertEnabled: false }, }; @@ -53,7 +54,7 @@ async function webPubSubUpdate() { const result = await client.webPubSub.beginUpdateAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/README.md b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/README.md new file mode 100644 index 000000000000..fd50edb914a0 --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/README.md @@ -0,0 +1,149 @@ +# client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.SignalRService provider. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Operations_List.json | +| [usagesListSample.ts][usageslistsample] | List resource usage quotas by location. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Usages_List.json | +| [webPubSubCheckNameAvailabilitySample.ts][webpubsubchecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CheckNameAvailability.json | +| [webPubSubCreateOrUpdateSample.ts][webpubsubcreateorupdatesample] | Create or update a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CreateOrUpdate.json | +| [webPubSubCustomCertificatesCreateOrUpdateSample.ts][webpubsubcustomcertificatescreateorupdatesample] | Create or update a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_CreateOrUpdate.json | +| [webPubSubCustomCertificatesDeleteSample.ts][webpubsubcustomcertificatesdeletesample] | Delete a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Delete.json | +| [webPubSubCustomCertificatesGetSample.ts][webpubsubcustomcertificatesgetsample] | Get a custom certificate. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Get.json | +| [webPubSubCustomCertificatesListSample.ts][webpubsubcustomcertificateslistsample] | List all custom certificates. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_List.json | +| [webPubSubCustomDomainsCreateOrUpdateSample.ts][webpubsubcustomdomainscreateorupdatesample] | Create or update a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_CreateOrUpdate.json | +| [webPubSubCustomDomainsDeleteSample.ts][webpubsubcustomdomainsdeletesample] | Delete a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Delete.json | +| [webPubSubCustomDomainsGetSample.ts][webpubsubcustomdomainsgetsample] | Get a custom domain. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Get.json | +| [webPubSubCustomDomainsListSample.ts][webpubsubcustomdomainslistsample] | List all custom domains. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_List.json | +| [webPubSubDeleteSample.ts][webpubsubdeletesample] | Operation to delete a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Delete.json | +| [webPubSubGetSample.ts][webpubsubgetsample] | Get the resource and its properties. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Get.json | +| [webPubSubHubsCreateOrUpdateSample.ts][webpubsubhubscreateorupdatesample] | Create or update a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_CreateOrUpdate.json | +| [webPubSubHubsDeleteSample.ts][webpubsubhubsdeletesample] | Delete a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Delete.json | +| [webPubSubHubsGetSample.ts][webpubsubhubsgetsample] | Get a hub setting. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Get.json | +| [webPubSubHubsListSample.ts][webpubsubhubslistsample] | List hub settings. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_List.json | +| [webPubSubListByResourceGroupSample.ts][webpubsublistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListByResourceGroup.json | +| [webPubSubListBySubscriptionSample.ts][webpubsublistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListBySubscription.json | +| [webPubSubListKeysSample.ts][webpubsublistkeyssample] | Get the access keys of the resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListKeys.json | +| [webPubSubListReplicaSkusSample.ts][webpubsublistreplicaskussample] | List all available skus of the replica resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListReplicaSkus.json | +| [webPubSubListSkusSample.ts][webpubsublistskussample] | List all available skus of the resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListSkus.json | +| [webPubSubPrivateEndpointConnectionsDeleteSample.ts][webpubsubprivateendpointconnectionsdeletesample] | Delete the specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Delete.json | +| [webPubSubPrivateEndpointConnectionsGetSample.ts][webpubsubprivateendpointconnectionsgetsample] | Get the specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Get.json | +| [webPubSubPrivateEndpointConnectionsListSample.ts][webpubsubprivateendpointconnectionslistsample] | List private endpoint connections x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_List.json | +| [webPubSubPrivateEndpointConnectionsUpdateSample.ts][webpubsubprivateendpointconnectionsupdatesample] | Update the state of specified private endpoint connection x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Update.json | +| [webPubSubPrivateLinkResourcesListSample.ts][webpubsubprivatelinkresourceslistsample] | Get the private link resources that need to be created for a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateLinkResources_List.json | +| [webPubSubRegenerateKeySample.ts][webpubsubregeneratekeysample] | Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_RegenerateKey.json | +| [webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts][webpubsubreplicasharedprivatelinkresourcescreateorupdatesample] | Create or update a shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_CreateOrUpdate.json | +| [webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts][webpubsubreplicasharedprivatelinkresourcesgetsample] | Get the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_Get.json | +| [webPubSubReplicaSharedPrivateLinkResourcesListSample.ts][webpubsubreplicasharedprivatelinkresourceslistsample] | List shared private link resources x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_List.json | +| [webPubSubReplicasCreateOrUpdateSample.ts][webpubsubreplicascreateorupdatesample] | Create or update a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_CreateOrUpdate.json | +| [webPubSubReplicasDeleteSample.ts][webpubsubreplicasdeletesample] | Operation to delete a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Delete.json | +| [webPubSubReplicasGetSample.ts][webpubsubreplicasgetsample] | Get the replica and its properties. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Get.json | +| [webPubSubReplicasListSample.ts][webpubsubreplicaslistsample] | List all replicas belong to this resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_List.json | +| [webPubSubReplicasRestartSample.ts][webpubsubreplicasrestartsample] | Operation to restart a replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Restart.json | +| [webPubSubReplicasUpdateSample.ts][webpubsubreplicasupdatesample] | Operation to update an exiting replica. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Update.json | +| [webPubSubRestartSample.ts][webpubsubrestartsample] | Operation to restart a resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Restart.json | +| [webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts][webpubsubsharedprivatelinkresourcescreateorupdatesample] | Create or update a shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json | +| [webPubSubSharedPrivateLinkResourcesDeleteSample.ts][webpubsubsharedprivatelinkresourcesdeletesample] | Delete the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Delete.json | +| [webPubSubSharedPrivateLinkResourcesGetSample.ts][webpubsubsharedprivatelinkresourcesgetsample] | Get the specified shared private link resource x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Get.json | +| [webPubSubSharedPrivateLinkResourcesListSample.ts][webpubsubsharedprivatelinkresourceslistsample] | List shared private link resources x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_List.json | +| [webPubSubUpdateSample.ts][webpubsubupdatesample] | Operation to update an exiting resource. x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Update.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/operationsListSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env WEB-PUBSUB_SUBSCRIPTION_ID="" node dist/operationsListSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/operationsListSample.ts +[usageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/usagesListSample.ts +[webpubsubchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCheckNameAvailabilitySample.ts +[webpubsubcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCreateOrUpdateSample.ts +[webpubsubcustomcertificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts +[webpubsubcustomcertificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesDeleteSample.ts +[webpubsubcustomcertificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesGetSample.ts +[webpubsubcustomcertificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesListSample.ts +[webpubsubcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts +[webpubsubcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsDeleteSample.ts +[webpubsubcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsGetSample.ts +[webpubsubcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsListSample.ts +[webpubsubdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubDeleteSample.ts +[webpubsubgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubGetSample.ts +[webpubsubhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsCreateOrUpdateSample.ts +[webpubsubhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsDeleteSample.ts +[webpubsubhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsGetSample.ts +[webpubsubhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsListSample.ts +[webpubsublistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListByResourceGroupSample.ts +[webpubsublistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListBySubscriptionSample.ts +[webpubsublistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListKeysSample.ts +[webpubsublistreplicaskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListReplicaSkusSample.ts +[webpubsublistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListSkusSample.ts +[webpubsubprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts +[webpubsubprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts +[webpubsubprivateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts +[webpubsubprivateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts +[webpubsubprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateLinkResourcesListSample.ts +[webpubsubregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRegenerateKeySample.ts +[webpubsubreplicasharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts +[webpubsubreplicasharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts +[webpubsubreplicasharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts +[webpubsubreplicascreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts +[webpubsubreplicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasDeleteSample.ts +[webpubsubreplicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasGetSample.ts +[webpubsubreplicaslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasListSample.ts +[webpubsubreplicasrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasRestartSample.ts +[webpubsubreplicasupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasUpdateSample.ts +[webpubsubrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRestartSample.ts +[webpubsubsharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts +[webpubsubsharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts +[webpubsubsharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts +[webpubsubsharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts +[webpubsubupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubUpdateSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/package.json b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/package.json similarity index 84% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/package.json rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/package.json index f3e751e4f07b..e2b6f5ffd74c 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/package.json +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-webpubsub-ts-beta", + "name": "@azure-samples/arm-webpubsub-ts", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", + "description": " client library samples for TypeScript", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub", "dependencies": { - "@azure/arm-webpubsub": "next", + "@azure/arm-webpubsub": "latest", "dotenv": "latest", "@azure/identity": "^4.2.1" }, diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/sample.env b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/sample.env similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/sample.env rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/sample.env diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/operationsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/operationsListSample.ts similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/operationsListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/operationsListSample.ts index 96505d07dc10..67b6a4b2bd6d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/operationsListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.SignalRService provider. * * @summary Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Operations_List.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/usagesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/usagesListSample.ts similarity index 93% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/usagesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/usagesListSample.ts index 46f4710106e5..428a69f7a372 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/usagesListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/usagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List resource usage quotas by location. * * @summary List resource usage quotas by location. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Usages_List.json */ async function usagesList() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCheckNameAvailabilitySample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCheckNameAvailabilitySample.ts similarity index 87% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCheckNameAvailabilitySample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCheckNameAvailabilitySample.ts index 146cd9473fe1..e6d9522b3284 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCheckNameAvailabilitySample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { NameAvailabilityParameters, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks that the resource name is valid and is not already in use. * * @summary Checks that the resource name is valid and is not already in use. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CheckNameAvailability.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CheckNameAvailability.json */ async function webPubSubCheckNameAvailability() { const subscriptionId = @@ -30,13 +30,13 @@ async function webPubSubCheckNameAvailability() { const location = "eastus"; const parameters: NameAvailabilityParameters = { name: "myWebPubSubService", - type: "Microsoft.SignalRService/WebPubSub" + type: "Microsoft.SignalRService/WebPubSub", }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.checkNameAvailability( location, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCreateOrUpdateSample.ts similarity index 84% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCreateOrUpdateSample.ts index e6a1ec719a5b..1a9cbc0900ba 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { WebPubSubResource, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a resource. * * @summary Create or update a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CreateOrUpdate.json */ async function webPubSubCreateOrUpdate() { const subscriptionId = @@ -37,7 +37,7 @@ async function webPubSubCreateOrUpdate() { kind: "WebPubSub", liveTraceConfiguration: { categories: [{ name: "ConnectivityLogs", enabled: "true" }], - enabled: "false" + enabled: "false", }, location: "eastus", networkACLs: { @@ -45,22 +45,23 @@ async function webPubSubCreateOrUpdate() { privateEndpoints: [ { name: "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - allow: ["ServerConnection"] - } + allow: ["ServerConnection"], + }, ], - publicNetwork: { allow: ["ClientConnection"] } + publicNetwork: { allow: ["ClientConnection"] }, }, publicNetworkAccess: "Enabled", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, + socketIO: { serviceMode: "Serverless" }, tags: { key1: "value1" }, - tls: { clientCertEnabled: false } + tls: { clientCertEnabled: false }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.beginCreateOrUpdateAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts similarity index 79% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts index 48aef474b8cb..80b48dcb0b2d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CustomCertificate, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a custom certificate. * * @summary Create or update a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_CreateOrUpdate.json */ async function webPubSubCustomCertificatesCreateOrUpdate() { const subscriptionId = @@ -34,16 +34,17 @@ async function webPubSubCustomCertificatesCreateOrUpdate() { const parameters: CustomCertificate = { keyVaultBaseUri: "https://myvault.keyvault.azure.net/", keyVaultSecretName: "mycert", - keyVaultSecretVersion: "bb6a44b2743f47f68dad0d6cc9756432" + keyVaultSecretVersion: "bb6a44b2743f47f68dad0d6cc9756432", }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); - const result = await client.webPubSubCustomCertificates.beginCreateOrUpdateAndWait( - resourceGroupName, - resourceName, - certificateName, - parameters - ); + const result = + await client.webPubSubCustomCertificates.beginCreateOrUpdateAndWait( + resourceGroupName, + resourceName, + certificateName, + parameters, + ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesDeleteSample.ts similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesDeleteSample.ts index 8069218ec5e8..93f124a2d06b 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a custom certificate. * * @summary Delete a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Delete.json */ async function webPubSubCustomCertificatesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubCustomCertificatesDelete() { const result = await client.webPubSubCustomCertificates.delete( resourceGroupName, resourceName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesGetSample.ts similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesGetSample.ts index e75598fd4b39..41426c1a8049 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a custom certificate. * * @summary Get a custom certificate. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_Get.json */ async function webPubSubCustomCertificatesGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubCustomCertificatesGet() { const result = await client.webPubSubCustomCertificates.get( resourceGroupName, resourceName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesListSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesListSample.ts index 74a0ec7d873f..ac31427c7ad2 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomCertificatesListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all custom certificates. * * @summary List all custom certificates. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomCertificates_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomCertificates_List.json */ async function webPubSubCustomCertificatesList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubCustomCertificatesList() { const resArray = new Array(); for await (let item of client.webPubSubCustomCertificates.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts similarity index 81% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts index aebf1859df47..de3c7f710361 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a custom domain. * * @summary Create or update a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_CreateOrUpdate.json */ async function webPubSubCustomDomainsCreateOrUpdate() { const subscriptionId = @@ -30,10 +30,9 @@ async function webPubSubCustomDomainsCreateOrUpdate() { const name = "myDomain"; const parameters: CustomDomain = { customCertificate: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/customCertificates/myCert" + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/customCertificates/myCert", }, - domainName: "example.com" + domainName: "example.com", }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -41,7 +40,7 @@ async function webPubSubCustomDomainsCreateOrUpdate() { resourceGroupName, resourceName, name, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsDeleteSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsDeleteSample.ts index 2d73d57c7c61..d9c77d520261 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a custom domain. * * @summary Delete a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Delete.json */ async function webPubSubCustomDomainsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubCustomDomainsDelete() { const result = await client.webPubSubCustomDomains.beginDeleteAndWait( resourceGroupName, resourceName, - name + name, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsGetSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsGetSample.ts index 7ee41011e9e5..3c61e29fcf5d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a custom domain. * * @summary Get a custom domain. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_Get.json */ async function webPubSubCustomDomainsGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubCustomDomainsGet() { const result = await client.webPubSubCustomDomains.get( resourceGroupName, resourceName, - name + name, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsListSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsListSample.ts index 41fc67476b53..f1e0aceb7c42 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubCustomDomainsListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all custom domains. * * @summary List all custom domains. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubCustomDomains_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubCustomDomains_List.json */ async function webPubSubCustomDomainsList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubCustomDomainsList() { const resArray = new Array(); for await (let item of client.webPubSubCustomDomains.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubDeleteSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubDeleteSample.ts index 7166ca120da4..ea4def0dbb6a 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a resource. * * @summary Operation to delete a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Delete.json */ async function webPubSubDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function webPubSubDelete() { const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.beginDeleteAndWait( resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubGetSample.ts similarity index 94% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubGetSample.ts index 5d92bbf183fd..511bd42e7faa 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the resource and its properties. * * @summary Get the resource and its properties. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Get.json */ async function webPubSubGet() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsCreateOrUpdateSample.ts similarity index 86% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsCreateOrUpdateSample.ts index 79e32abc4d3c..107e5402d883 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a hub setting. * * @summary Create or update a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_CreateOrUpdate.json */ async function webPubSubHubsCreateOrUpdate() { const subscriptionId = @@ -35,28 +35,29 @@ async function webPubSubHubsCreateOrUpdate() { { auth: { type: "ManagedIdentity", - managedIdentity: { resource: "abc" } + managedIdentity: { resource: "abc" }, }, systemEvents: ["connect", "connected"], urlTemplate: "http://host.com", - userEventPattern: "*" - } + userEventPattern: "*", + }, ], eventListeners: [ { endpoint: { type: "EventHub", eventHubName: "eventHubName1", - fullyQualifiedNamespace: "example.servicebus.windows.net" + fullyQualifiedNamespace: "example.servicebus.windows.net", }, filter: { type: "EventName", systemEvents: ["connected", "disconnected"], - userEventPattern: "*" - } - } - ] - } + userEventPattern: "*", + }, + }, + ], + webSocketKeepAliveIntervalInSeconds: 50, + }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -64,7 +65,7 @@ async function webPubSubHubsCreateOrUpdate() { hubName, resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsDeleteSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsDeleteSample.ts index f3b1aade4f62..b0cf85abbc0f 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a hub setting. * * @summary Delete a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Delete.json */ async function webPubSubHubsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubHubsDelete() { const result = await client.webPubSubHubs.beginDeleteAndWait( hubName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsGetSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsGetSample.ts index 3079e9e2cb25..72cbe7ba7eef 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a hub setting. * * @summary Get a hub setting. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_Get.json */ async function webPubSubHubsGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubHubsGet() { const result = await client.webPubSubHubs.get( hubName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsListSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsListSample.ts index 32c859ff3643..80d463f80ec8 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubHubsListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List hub settings. * * @summary List hub settings. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubHubs_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubHubs_List.json */ async function webPubSubHubsList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubHubsList() { const resArray = new Array(); for await (let item of client.webPubSubHubs.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListByResourceGroupSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListByResourceGroupSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListByResourceGroupSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListByResourceGroupSample.ts index 437447c2a52b..6f0f026e8489 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListByResourceGroupSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListByResourceGroup.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListByResourceGroup.json */ async function webPubSubListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function webPubSubListByResourceGroup() { const client = new WebPubSubManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.webPubSub.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListBySubscriptionSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListBySubscriptionSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListBySubscriptionSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListBySubscriptionSample.ts index 38d105291ec4..a669059492e1 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListBySubscriptionSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListBySubscription.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListBySubscription.json */ async function webPubSubListBySubscription() { const subscriptionId = diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListKeysSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListKeysSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListKeysSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListKeysSample.ts index 0c3dd27b37a1..fea4e1cdeb7d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListKeysSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the access keys of the resource. * * @summary Get the access keys of the resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListKeys.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListKeys.json */ async function webPubSubListKeys() { const subscriptionId = @@ -31,7 +31,7 @@ async function webPubSubListKeys() { const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.listKeys( resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListReplicaSkusSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListReplicaSkusSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListReplicaSkusSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListReplicaSkusSample.ts index 5eaa782a0b3e..3bea7116907b 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListReplicaSkusSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListReplicaSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all available skus of the replica resource. * * @summary List all available skus of the replica resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListReplicaSkus.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListReplicaSkus.json */ async function webPubSubListReplicaSkus() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubListReplicaSkus() { const result = await client.webPubSub.listReplicaSkus( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListSkusSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListSkusSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListSkusSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListSkusSample.ts index 723501cc7f54..390e0a923965 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubListSkusSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all available skus of the resource. * * @summary List all available skus of the resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_ListSkus.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_ListSkus.json */ async function webPubSubListSkus() { const subscriptionId = @@ -31,7 +31,7 @@ async function webPubSubListSkus() { const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.listSkus( resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts similarity index 83% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts index a04cf6a185ad..77683849aea6 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified private endpoint connection * * @summary Delete the specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Delete.json */ async function webPubSubPrivateEndpointConnectionsDelete() { const subscriptionId = @@ -31,11 +31,12 @@ async function webPubSubPrivateEndpointConnectionsDelete() { const resourceName = "myWebPubSubService"; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); - const result = await client.webPubSubPrivateEndpointConnections.beginDeleteAndWait( - privateEndpointConnectionName, - resourceGroupName, - resourceName - ); + const result = + await client.webPubSubPrivateEndpointConnections.beginDeleteAndWait( + privateEndpointConnectionName, + resourceGroupName, + resourceName, + ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts index 314a83a0246a..6a874bd6b0c6 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified private endpoint connection * * @summary Get the specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Get.json */ async function webPubSubPrivateEndpointConnectionsGet() { const subscriptionId = @@ -34,7 +34,7 @@ async function webPubSubPrivateEndpointConnectionsGet() { const result = await client.webPubSubPrivateEndpointConnections.get( privateEndpointConnectionName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts index 0cf616412dc6..0b36eabfe8dd 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List private endpoint connections * * @summary List private endpoint connections - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_List.json */ async function webPubSubPrivateEndpointConnectionsList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubPrivateEndpointConnectionsList() { const resArray = new Array(); for await (let item of client.webPubSubPrivateEndpointConnections.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts similarity index 90% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts index ee4eb5546ee2..a55ec094ead5 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the state of specified private endpoint connection * * @summary Update the state of specified private endpoint connection - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateEndpointConnections_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateEndpointConnections_Update.json */ async function webPubSubPrivateEndpointConnectionsUpdate() { const subscriptionId = @@ -36,8 +36,8 @@ async function webPubSubPrivateEndpointConnectionsUpdate() { privateEndpoint: {}, privateLinkServiceConnectionState: { actionsRequired: "None", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -45,7 +45,7 @@ async function webPubSubPrivateEndpointConnectionsUpdate() { privateEndpointConnectionName, resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateLinkResourcesListSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateLinkResourcesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateLinkResourcesListSample.ts index 41478308a516..733fca3e3253 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubPrivateLinkResourcesListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateLinkResourcesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the private link resources that need to be created for a resource. * * @summary Get the private link resources that need to be created for a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubPrivateLinkResources_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubPrivateLinkResources_List.json */ async function webPubSubPrivateLinkResourcesList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubPrivateLinkResourcesList() { const resArray = new Array(); for await (let item of client.webPubSubPrivateLinkResources.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubRegenerateKeySample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRegenerateKeySample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubRegenerateKeySample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRegenerateKeySample.ts index 341e520028ae..85e81bc09618 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubRegenerateKeySample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RegenerateKeyParameters, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. * * @summary Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_RegenerateKey.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_RegenerateKey.json */ async function webPubSubRegenerateKey() { const subscriptionId = @@ -36,7 +36,7 @@ async function webPubSubRegenerateKey() { const result = await client.webPubSub.beginRegenerateKeyAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..c163861566b8 --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SharedPrivateLinkResource, + WebPubSubManagementClient, +} from "@azure/arm-webpubsub"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update a shared private link resource + * + * @summary Create or update a shared private link resource + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_CreateOrUpdate.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdate() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const sharedPrivateLinkResourceName = "upstream"; + const parameters: SharedPrivateLinkResource = { + groupId: "sites", + privateLinkResourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp", + requestMessage: "Please approve", + }; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const result = + await client.webPubSubReplicaSharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts new file mode 100644 index 000000000000..ee50f4970c5d --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { WebPubSubManagementClient } from "@azure/arm-webpubsub"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the specified shared private link resource + * + * @summary Get the specified shared private link resource + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_Get.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesGet() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const sharedPrivateLinkResourceName = "upstream"; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const result = await client.webPubSubReplicaSharedPrivateLinkResources.get( + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesGet(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts new file mode 100644 index 000000000000..80c4ddf4261d --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { WebPubSubManagementClient } from "@azure/arm-webpubsub"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List shared private link resources + * + * @summary List shared private link resources + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicaSharedPrivateLinkResources_List.json + */ +async function webPubSubReplicaSharedPrivateLinkResourcesList() { + const subscriptionId = + process.env["WEB-PUBSUB_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["WEB-PUBSUB_RESOURCE_GROUP"] || "myResourceGroup"; + const resourceName = "myWebPubSubService"; + const replicaName = "myWebPubSubService-eastus"; + const credential = new DefaultAzureCredential(); + const client = new WebPubSubManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.webPubSubReplicaSharedPrivateLinkResources.list( + resourceGroupName, + resourceName, + replicaName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + webPubSubReplicaSharedPrivateLinkResourcesList(); +} + +main().catch(console.error); diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts index f66fbd492824..4c4d19b08556 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a replica. * * @summary Create or update a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_CreateOrUpdate.json */ async function webPubSubReplicasCreateOrUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubReplicasCreateOrUpdate() { location: "eastus", resourceStopped: "false", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, - tags: { key1: "value1" } + tags: { key1: "value1" }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function webPubSubReplicasCreateOrUpdate() { resourceGroupName, resourceName, replicaName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasDeleteSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasDeleteSample.ts index 8ffa1022b75a..da670e13bcc7 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a replica. * * @summary Operation to delete a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Delete.json */ async function webPubSubReplicasDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubReplicasDelete() { const result = await client.webPubSubReplicas.delete( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasGetSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasGetSample.ts index a491b0619e75..3fc60568f63d 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the replica and its properties. * * @summary Get the replica and its properties. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Get.json */ async function webPubSubReplicasGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubReplicasGet() { const result = await client.webPubSubReplicas.get( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasListSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasListSample.ts index 0fbfb31df4d1..5c9bff4de432 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replicas belong to this resource * * @summary List all replicas belong to this resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_List.json */ async function webPubSubReplicasList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubReplicasList() { const resArray = new Array(); for await (let item of client.webPubSubReplicas.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasRestartSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasRestartSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasRestartSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasRestartSample.ts index a9781cef00d3..141cddf65ddc 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasRestartSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to restart a replica. * * @summary Operation to restart a replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Restart.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Restart.json */ async function webPubSubReplicasRestart() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubReplicasRestart() { const result = await client.webPubSubReplicas.beginRestartAndWait( resourceGroupName, resourceName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasUpdateSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasUpdateSample.ts index 29fd7520a613..a38b7d74976c 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubReplicasUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to update an exiting replica. * * @summary Operation to update an exiting replica. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubReplicas_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubReplicas_Update.json */ async function webPubSubReplicasUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubReplicasUpdate() { location: "eastus", resourceStopped: "false", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, - tags: { key1: "value1" } + tags: { key1: "value1" }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function webPubSubReplicasUpdate() { resourceGroupName, resourceName, replicaName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubRestartSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRestartSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubRestartSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRestartSample.ts index 2ce57c6a0fc9..34cd7758a480 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubRestartSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Operation to restart a resource. * * @summary Operation to restart a resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Restart.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Restart.json */ async function webPubSubRestart() { const subscriptionId = @@ -31,7 +31,7 @@ async function webPubSubRestart() { const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.beginRestartAndWait( resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts similarity index 80% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts index e5219b721adc..05625f34848e 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SharedPrivateLinkResource, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a shared private link resource * * @summary Create or update a shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_CreateOrUpdate.json */ async function webPubSubSharedPrivateLinkResourcesCreateOrUpdate() { const subscriptionId = @@ -35,16 +35,17 @@ async function webPubSubSharedPrivateLinkResourcesCreateOrUpdate() { groupId: "sites", privateLinkResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp", - requestMessage: "Please approve" + requestMessage: "Please approve", }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); - const result = await client.webPubSubSharedPrivateLinkResources.beginCreateOrUpdateAndWait( - sharedPrivateLinkResourceName, - resourceGroupName, - resourceName, - parameters - ); + const result = + await client.webPubSubSharedPrivateLinkResources.beginCreateOrUpdateAndWait( + sharedPrivateLinkResourceName, + resourceGroupName, + resourceName, + parameters, + ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts similarity index 82% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts index 4512e3af7675..c080c933f5e3 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified shared private link resource * * @summary Delete the specified shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Delete.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Delete.json */ async function webPubSubSharedPrivateLinkResourcesDelete() { const subscriptionId = @@ -30,11 +30,12 @@ async function webPubSubSharedPrivateLinkResourcesDelete() { const resourceName = "myWebPubSubService"; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); - const result = await client.webPubSubSharedPrivateLinkResources.beginDeleteAndWait( - sharedPrivateLinkResourceName, - resourceGroupName, - resourceName - ); + const result = + await client.webPubSubSharedPrivateLinkResources.beginDeleteAndWait( + sharedPrivateLinkResourceName, + resourceGroupName, + resourceName, + ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts similarity index 92% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts index 75c609123975..8ad97b95ccb4 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified shared private link resource * * @summary Get the specified shared private link resource - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_Get.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_Get.json */ async function webPubSubSharedPrivateLinkResourcesGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function webPubSubSharedPrivateLinkResourcesGet() { const result = await client.webPubSubSharedPrivateLinkResources.get( sharedPrivateLinkResourceName, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts similarity index 91% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts index 472a4bad7de3..fa814cc8b672 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared private link resources * * @summary List shared private link resources - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSubSharedPrivateLinkResources_List.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSubSharedPrivateLinkResources_List.json */ async function webPubSubSharedPrivateLinkResourcesList() { const subscriptionId = @@ -32,7 +32,7 @@ async function webPubSubSharedPrivateLinkResourcesList() { const resArray = new Array(); for await (let item of client.webPubSubSharedPrivateLinkResources.list( resourceGroupName, - resourceName + resourceName, )) { resArray.push(item); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubUpdateSample.ts similarity index 85% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubUpdateSample.ts index 7d7ab01f8d4d..b84b9a50cc89 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/src/webPubSubUpdateSample.ts +++ b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { WebPubSubResource, - WebPubSubManagementClient + WebPubSubManagementClient, } from "@azure/arm-webpubsub"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Operation to update an exiting resource. * * @summary Operation to update an exiting resource. - * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_Update.json + * x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_Update.json */ async function webPubSubUpdate() { const subscriptionId = @@ -37,7 +37,7 @@ async function webPubSubUpdate() { kind: "WebPubSub", liveTraceConfiguration: { categories: [{ name: "ConnectivityLogs", enabled: "true" }], - enabled: "false" + enabled: "false", }, location: "eastus", networkACLs: { @@ -45,22 +45,23 @@ async function webPubSubUpdate() { privateEndpoints: [ { name: "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - allow: ["ServerConnection"] - } + allow: ["ServerConnection"], + }, ], - publicNetwork: { allow: ["ClientConnection"] } + publicNetwork: { allow: ["ClientConnection"] }, }, publicNetworkAccess: "Enabled", sku: { name: "Premium_P1", capacity: 1, tier: "Premium" }, + socketIO: { serviceMode: "Serverless" }, tags: { key1: "value1" }, - tls: { clientCertEnabled: false } + tls: { clientCertEnabled: false }, }; const credential = new DefaultAzureCredential(); const client = new WebPubSubManagementClient(credential, subscriptionId); const result = await client.webPubSub.beginUpdateAndWait( resourceGroupName, resourceName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/tsconfig.json b/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/tsconfig.json similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2-beta/typescript/tsconfig.json rename to sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/tsconfig.json diff --git a/sdk/web-pubsub/arm-webpubsub/src/lroImpl.ts b/sdk/web-pubsub/arm-webpubsub/src/lroImpl.ts index 52f6eaacfb83..5f88efab981b 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/lroImpl.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/models/index.ts b/sdk/web-pubsub/arm-webpubsub/src/models/index.ts index a9ed6aeb88a5..f1cf47217ef6 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/models/index.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/models/index.ts @@ -224,7 +224,7 @@ export interface ResourceSku { /** * The name of the SKU. Required. * - * Allowed values: Standard_S1, Free_F1, Premium_P1 + * Allowed values: Standard_S1, Free_F1, Premium_P1, Premium_P2 */ name: string; /** @@ -244,12 +244,14 @@ export interface ResourceSku { */ readonly family?: string; /** - * Optional, integer. The unit count of the resource. 1 by default. + * Optional, integer. The unit count of the resource. + * 1 for Free_F1/Standard_S1/Premium_P1, 100 for Premium_P2 by default. * * If present, following values are allowed: - * Free: 1; - * Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; - * Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Free_F1: 1; + * Standard_S1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Premium_P1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Premium_P2: 100,200,300,400,500,600,700,800,900,1000; */ capacity?: number; } @@ -396,6 +398,16 @@ export interface IPRule { action?: ACLAction; } +/** SocketIO settings for the resource */ +export interface WebPubSubSocketIOSettings { + /** + * The service mode of Web PubSub for Socket.IO. Values allowed: + * "Default": have your own backend Socket.IO server + * "Serverless": your application doesn't have a backend server + */ + serviceMode?: string; +} + /** A class represent managed identities used for request and response */ export interface ManagedIdentity { /** Represents the identity type: systemAssigned, userAssigned, None */ @@ -485,6 +497,8 @@ export interface WebPubSubHubProperties { eventListeners?: EventListener[]; /** The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny". Default to "deny". */ anonymousConnectPolicy?: string; + /** The settings for configuring the WebSocket ping-pong interval in seconds for all clients in the hub. Valid range: 1 to 120. Default to 20 seconds. */ + webSocketKeepAliveIntervalInSeconds?: number; } /** Properties of event handler. */ @@ -610,6 +624,14 @@ export interface ReplicaList { nextLink?: string; } +/** A list of shared private link resources */ +export interface SharedPrivateLinkResourceList { + /** The list of the shared private link resources */ + value?: SharedPrivateLinkResource[]; + /** Request URL that can be used to query next page of private endpoint connections. Returned when the total number of requested private endpoint connections exceed maximum page size. */ + nextLink?: string; +} + /** The list skus operation response */ export interface SkuList { /** @@ -673,14 +695,6 @@ export interface SkuCapacity { readonly scaleType?: ScaleType; } -/** A list of shared private link resources */ -export interface SharedPrivateLinkResourceList { - /** The list of the shared private link resources */ - value?: SharedPrivateLinkResource[]; - /** Request URL that can be used to query next page of private endpoint connections. Returned when the total number of requested private endpoint connections exceed maximum page size. */ - nextLink?: string; -} - /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} @@ -897,11 +911,13 @@ export interface WebPubSubResource extends TrackedResource { */ regionEndpointEnabled?: string; /** - * Stop or start the resource. Default to "false". + * Stop or start the resource. Default to "False". * When it's true, the data plane of the resource is shutdown. * When it's false, the data plane of the resource is started. */ resourceStopped?: string; + /** SocketIO settings for the resource */ + socketIO?: WebPubSubSocketIOSettings; } /** A class represent a replica resource. */ @@ -960,7 +976,7 @@ export enum KnownWebPubSubSkuTier { /** Standard */ Standard = "Standard", /** Premium */ - Premium = "Premium" + Premium = "Premium", } /** @@ -994,7 +1010,7 @@ export enum KnownProvisioningState { /** Deleting */ Deleting = "Deleting", /** Moving */ - Moving = "Moving" + Moving = "Moving", } /** @@ -1023,7 +1039,7 @@ export enum KnownPrivateLinkServiceConnectionStatus { /** Rejected */ Rejected = "Rejected", /** Disconnected */ - Disconnected = "Disconnected" + Disconnected = "Disconnected", } /** @@ -1047,7 +1063,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -1073,7 +1089,7 @@ export enum KnownSharedPrivateLinkResourceStatus { /** Disconnected */ Disconnected = "Disconnected", /** Timeout */ - Timeout = "Timeout" + Timeout = "Timeout", } /** @@ -1094,7 +1110,7 @@ export enum KnownACLAction { /** Allow */ Allow = "Allow", /** Deny */ - Deny = "Deny" + Deny = "Deny", } /** @@ -1116,7 +1132,7 @@ export enum KnownWebPubSubRequestType { /** Restapi */ Restapi = "RESTAPI", /** Trace */ - Trace = "Trace" + Trace = "Trace", } /** @@ -1136,7 +1152,7 @@ export enum KnownServiceKind { /** WebPubSub */ WebPubSub = "WebPubSub", /** SocketIO */ - SocketIO = "SocketIO" + SocketIO = "SocketIO", } /** @@ -1156,7 +1172,7 @@ export enum KnownManagedIdentityType { /** SystemAssigned */ SystemAssigned = "SystemAssigned", /** UserAssigned */ - UserAssigned = "UserAssigned" + UserAssigned = "UserAssigned", } /** @@ -1175,7 +1191,7 @@ export enum KnownUpstreamAuthType { /** None */ None = "None", /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity" + ManagedIdentity = "ManagedIdentity", } /** @@ -1191,7 +1207,7 @@ export type UpstreamAuthType = string; /** Known values of {@link EventListenerFilterDiscriminator} that the service accepts. */ export enum KnownEventListenerFilterDiscriminator { /** EventName */ - EventName = "EventName" + EventName = "EventName", } /** @@ -1206,7 +1222,7 @@ export type EventListenerFilterDiscriminator = string; /** Known values of {@link EventListenerEndpointDiscriminator} that the service accepts. */ export enum KnownEventListenerEndpointDiscriminator { /** EventHub */ - EventHub = "EventHub" + EventHub = "EventHub", } /** @@ -1225,7 +1241,7 @@ export enum KnownKeyType { /** Secondary */ Secondary = "Secondary", /** Salt */ - Salt = "Salt" + Salt = "Salt", } /** @@ -1246,7 +1262,7 @@ export enum KnownScaleType { /** Manual */ Manual = "Manual", /** Automatic */ - Automatic = "Automatic" + Automatic = "Automatic", } /** @@ -1431,7 +1447,8 @@ export interface WebPubSubCustomCertificatesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WebPubSubCustomCertificatesCreateOrUpdateResponse = CustomCertificate; +export type WebPubSubCustomCertificatesCreateOrUpdateResponse = + CustomCertificate; /** Optional parameters. */ export interface WebPubSubCustomCertificatesDeleteOptionalParams @@ -1533,21 +1550,24 @@ export interface WebPubSubPrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WebPubSubPrivateEndpointConnectionsListResponse = PrivateEndpointConnectionList; +export type WebPubSubPrivateEndpointConnectionsListResponse = + PrivateEndpointConnectionList; /** Optional parameters. */ export interface WebPubSubPrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WebPubSubPrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type WebPubSubPrivateEndpointConnectionsGetResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface WebPubSubPrivateEndpointConnectionsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type WebPubSubPrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection; +export type WebPubSubPrivateEndpointConnectionsUpdateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface WebPubSubPrivateEndpointConnectionsDeleteOptionalParams @@ -1563,7 +1583,8 @@ export interface WebPubSubPrivateEndpointConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WebPubSubPrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionList; +export type WebPubSubPrivateEndpointConnectionsListNextResponse = + PrivateEndpointConnectionList; /** Optional parameters. */ export interface WebPubSubPrivateLinkResourcesListOptionalParams @@ -1577,7 +1598,8 @@ export interface WebPubSubPrivateLinkResourcesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WebPubSubPrivateLinkResourcesListNextResponse = PrivateLinkResourceList; +export type WebPubSubPrivateLinkResourcesListNextResponse = + PrivateLinkResourceList; /** Optional parameters. */ export interface WebPubSubReplicasListOptionalParams @@ -1640,19 +1662,58 @@ export interface WebPubSubReplicasListNextOptionalParams /** Contains response data for the listNext operation. */ export type WebPubSubReplicasListNextResponse = ReplicaList; +/** Optional parameters. */ +export interface WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WebPubSubReplicaSharedPrivateLinkResourcesListResponse = + SharedPrivateLinkResourceList; + +/** Optional parameters. */ +export interface WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WebPubSubReplicaSharedPrivateLinkResourcesGetResponse = + SharedPrivateLinkResource; + +/** Optional parameters. */ +export interface WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse = + SharedPrivateLinkResource; + +/** Optional parameters. */ +export interface WebPubSubReplicaSharedPrivateLinkResourcesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WebPubSubReplicaSharedPrivateLinkResourcesListNextResponse = + SharedPrivateLinkResourceList; + /** Optional parameters. */ export interface WebPubSubSharedPrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WebPubSubSharedPrivateLinkResourcesListResponse = SharedPrivateLinkResourceList; +export type WebPubSubSharedPrivateLinkResourcesListResponse = + SharedPrivateLinkResourceList; /** Optional parameters. */ export interface WebPubSubSharedPrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WebPubSubSharedPrivateLinkResourcesGetResponse = SharedPrivateLinkResource; +export type WebPubSubSharedPrivateLinkResourcesGetResponse = + SharedPrivateLinkResource; /** Optional parameters. */ export interface WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams @@ -1664,7 +1725,8 @@ export interface WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WebPubSubSharedPrivateLinkResourcesCreateOrUpdateResponse = SharedPrivateLinkResource; +export type WebPubSubSharedPrivateLinkResourcesCreateOrUpdateResponse = + SharedPrivateLinkResource; /** Optional parameters. */ export interface WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams @@ -1680,7 +1742,8 @@ export interface WebPubSubSharedPrivateLinkResourcesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WebPubSubSharedPrivateLinkResourcesListNextResponse = SharedPrivateLinkResourceList; +export type WebPubSubSharedPrivateLinkResourcesListNextResponse = + SharedPrivateLinkResourceList; /** Optional parameters. */ export interface WebPubSubManagementClientOptionalParams diff --git a/sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts b/sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts index 129949e13ed6..90b67d62ce44 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts @@ -20,19 +20,19 @@ export const OperationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -43,37 +43,37 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OperationProperties" - } - } - } - } + className: "OperationProperties", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -84,29 +84,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationProperties: coreClient.CompositeMapper = { @@ -118,11 +118,11 @@ export const OperationProperties: coreClient.CompositeMapper = { serializedName: "serviceSpecification", type: { name: "Composite", - className: "ServiceSpecification" - } - } - } - } + className: "ServiceSpecification", + }, + }, + }, + }, }; export const ServiceSpecification: coreClient.CompositeMapper = { @@ -137,10 +137,10 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricSpecification" - } - } - } + className: "MetricSpecification", + }, + }, + }, }, logSpecifications: { serializedName: "logSpecifications", @@ -149,13 +149,13 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LogSpecification" - } - } - } - } - } - } + className: "LogSpecification", + }, + }, + }, + }, + }, + }, }; export const MetricSpecification: coreClient.CompositeMapper = { @@ -166,44 +166,44 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, displayDescription: { serializedName: "displayDescription", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, aggregationType: { serializedName: "aggregationType", type: { - name: "String" - } + name: "String", + }, }, fillGapWithZero: { serializedName: "fillGapWithZero", type: { - name: "String" - } + name: "String", + }, }, category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, dimensions: { serializedName: "dimensions", @@ -212,13 +212,13 @@ export const MetricSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Dimension" - } - } - } - } - } - } + className: "Dimension", + }, + }, + }, + }, + }, + }, }; export const Dimension: coreClient.CompositeMapper = { @@ -229,29 +229,29 @@ export const Dimension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, internalName: { serializedName: "internalName", type: { - name: "String" - } + name: "String", + }, }, toBeExportedForShoebox: { serializedName: "toBeExportedForShoebox", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LogSpecification: coreClient.CompositeMapper = { @@ -262,17 +262,17 @@ export const LogSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -284,11 +284,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -300,22 +300,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -325,10 +325,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -338,13 +338,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -356,19 +356,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const NameAvailabilityParameters: coreClient.CompositeMapper = { @@ -380,18 +380,18 @@ export const NameAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NameAvailability: coreClient.CompositeMapper = { @@ -402,23 +402,23 @@ export const NameAvailability: coreClient.CompositeMapper = { nameAvailable: { serializedName: "nameAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SignalRServiceUsageList: coreClient.CompositeMapper = { @@ -433,19 +433,19 @@ export const SignalRServiceUsageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SignalRServiceUsage" - } - } - } + className: "SignalRServiceUsage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SignalRServiceUsage: coreClient.CompositeMapper = { @@ -456,36 +456,36 @@ export const SignalRServiceUsage: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, currentValue: { serializedName: "currentValue", type: { - name: "Number" - } + name: "Number", + }, }, limit: { serializedName: "limit", type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { name: "Composite", - className: "SignalRServiceUsageName" - } + className: "SignalRServiceUsageName", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SignalRServiceUsageName: coreClient.CompositeMapper = { @@ -496,17 +496,17 @@ export const SignalRServiceUsageName: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, localizedValue: { serializedName: "localizedValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubResourceList: coreClient.CompositeMapper = { @@ -521,19 +521,19 @@ export const WebPubSubResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WebPubSubResource" - } - } - } + className: "WebPubSubResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -545,37 +545,37 @@ export const ResourceSku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -586,11 +586,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -601,23 +601,23 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -629,32 +629,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -665,41 +665,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const WebPubSubTlsSettings: coreClient.CompositeMapper = { @@ -711,11 +711,11 @@ export const WebPubSubTlsSettings: coreClient.CompositeMapper = { defaultValue: false, serializedName: "clientCertEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LiveTraceConfiguration: coreClient.CompositeMapper = { @@ -727,8 +727,8 @@ export const LiveTraceConfiguration: coreClient.CompositeMapper = { defaultValue: "false", serializedName: "enabled", type: { - name: "String" - } + name: "String", + }, }, categories: { serializedName: "categories", @@ -737,13 +737,13 @@ export const LiveTraceConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LiveTraceCategory" - } - } - } - } - } - } + className: "LiveTraceCategory", + }, + }, + }, + }, + }, + }, }; export const LiveTraceCategory: coreClient.CompositeMapper = { @@ -754,17 +754,17 @@ export const LiveTraceCategory: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceLogConfiguration: coreClient.CompositeMapper = { @@ -779,13 +779,13 @@ export const ResourceLogConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceLogCategory" - } - } - } - } - } - } + className: "ResourceLogCategory", + }, + }, + }, + }, + }, + }, }; export const ResourceLogCategory: coreClient.CompositeMapper = { @@ -796,17 +796,17 @@ export const ResourceLogCategory: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubNetworkACLs: coreClient.CompositeMapper = { @@ -817,15 +817,15 @@ export const WebPubSubNetworkACLs: coreClient.CompositeMapper = { defaultAction: { serializedName: "defaultAction", type: { - name: "String" - } + name: "String", + }, }, publicNetwork: { serializedName: "publicNetwork", type: { name: "Composite", - className: "NetworkACL" - } + className: "NetworkACL", + }, }, privateEndpoints: { serializedName: "privateEndpoints", @@ -834,14 +834,14 @@ export const WebPubSubNetworkACLs: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointACL" - } - } - } + className: "PrivateEndpointACL", + }, + }, + }, }, ipRules: { constraints: { - MaxItems: 30 + MaxItems: 30, }, serializedName: "ipRules", type: { @@ -849,13 +849,13 @@ export const WebPubSubNetworkACLs: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IPRule" - } - } - } - } - } - } + className: "IPRule", + }, + }, + }, + }, + }, + }, }; export const NetworkACL: coreClient.CompositeMapper = { @@ -869,10 +869,10 @@ export const NetworkACL: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, deny: { serializedName: "deny", @@ -880,13 +880,13 @@ export const NetworkACL: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const IPRule: coreClient.CompositeMapper = { @@ -897,17 +897,32 @@ export const IPRule: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, action: { serializedName: "action", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const WebPubSubSocketIOSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebPubSubSocketIOSettings", + modelProperties: { + serviceMode: { + serializedName: "serviceMode", + type: { + name: "String", + }, + }, + }, + }, }; export const ManagedIdentity: coreClient.CompositeMapper = { @@ -918,8 +933,8 @@ export const ManagedIdentity: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -928,27 +943,27 @@ export const ManagedIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentityProperty" - } - } - } + className: "UserAssignedIdentityProperty", + }, + }, + }, }, principalId: { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserAssignedIdentityProperty: coreClient.CompositeMapper = { @@ -960,18 +975,18 @@ export const UserAssignedIdentityProperty: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomCertificateList: coreClient.CompositeMapper = { @@ -986,19 +1001,19 @@ export const CustomCertificateList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomCertificate" - } - } - } + className: "CustomCertificate", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomDomainList: coreClient.CompositeMapper = { @@ -1013,19 +1028,19 @@ export const CustomDomainList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomDomain" - } - } - } + className: "CustomDomain", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceReference: coreClient.CompositeMapper = { @@ -1036,11 +1051,11 @@ export const ResourceReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubHubList: coreClient.CompositeMapper = { @@ -1055,20 +1070,20 @@ export const WebPubSubHubList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WebPubSubHub" - } - } - } + className: "WebPubSubHub", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubHubProperties: coreClient.CompositeMapper = { @@ -1083,10 +1098,10 @@ export const WebPubSubHubProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EventHandler" - } - } - } + className: "EventHandler", + }, + }, + }, }, eventListeners: { serializedName: "eventListeners", @@ -1095,20 +1110,31 @@ export const WebPubSubHubProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EventListener" - } - } - } + className: "EventListener", + }, + }, + }, }, anonymousConnectPolicy: { defaultValue: "deny", serializedName: "anonymousConnectPolicy", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + webSocketKeepAliveIntervalInSeconds: { + defaultValue: 20, + constraints: { + InclusiveMaximum: 120, + InclusiveMinimum: 1, + }, + serializedName: "webSocketKeepAliveIntervalInSeconds", + type: { + name: "Number", + }, + }, + }, + }, }; export const EventHandler: coreClient.CompositeMapper = { @@ -1120,14 +1146,14 @@ export const EventHandler: coreClient.CompositeMapper = { serializedName: "urlTemplate", required: true, type: { - name: "String" - } + name: "String", + }, }, userEventPattern: { serializedName: "userEventPattern", type: { - name: "String" - } + name: "String", + }, }, systemEvents: { serializedName: "systemEvents", @@ -1135,20 +1161,20 @@ export const EventHandler: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, auth: { serializedName: "auth", type: { name: "Composite", - className: "UpstreamAuthSettings" - } - } - } - } + className: "UpstreamAuthSettings", + }, + }, + }, + }, }; export const UpstreamAuthSettings: coreClient.CompositeMapper = { @@ -1159,18 +1185,18 @@ export const UpstreamAuthSettings: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, managedIdentity: { serializedName: "managedIdentity", type: { name: "Composite", - className: "ManagedIdentitySettings" - } - } - } - } + className: "ManagedIdentitySettings", + }, + }, + }, + }, }; export const ManagedIdentitySettings: coreClient.CompositeMapper = { @@ -1181,11 +1207,11 @@ export const ManagedIdentitySettings: coreClient.CompositeMapper = { resource: { serializedName: "resource", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventListener: coreClient.CompositeMapper = { @@ -1197,18 +1223,18 @@ export const EventListener: coreClient.CompositeMapper = { serializedName: "filter", type: { name: "Composite", - className: "EventListenerFilter" - } + className: "EventListenerFilter", + }, }, endpoint: { serializedName: "endpoint", type: { name: "Composite", - className: "EventListenerEndpoint" - } - } - } - } + className: "EventListenerEndpoint", + }, + }, + }, + }, }; export const EventListenerFilter: coreClient.CompositeMapper = { @@ -1218,18 +1244,18 @@ export const EventListenerFilter: coreClient.CompositeMapper = { uberParent: "EventListenerFilter", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventListenerEndpoint: coreClient.CompositeMapper = { @@ -1239,18 +1265,18 @@ export const EventListenerEndpoint: coreClient.CompositeMapper = { uberParent: "EventListenerEndpoint", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubKeys: coreClient.CompositeMapper = { @@ -1261,29 +1287,29 @@ export const WebPubSubKeys: coreClient.CompositeMapper = { primaryKey: { serializedName: "primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { serializedName: "secondaryKey", type: { - name: "String" - } + name: "String", + }, }, primaryConnectionString: { serializedName: "primaryConnectionString", type: { - name: "String" - } + name: "String", + }, }, secondaryConnectionString: { serializedName: "secondaryConnectionString", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionList: coreClient.CompositeMapper = { @@ -1298,19 +1324,19 @@ export const PrivateEndpointConnectionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceList: coreClient.CompositeMapper = { @@ -1325,19 +1351,19 @@ export const PrivateLinkResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ShareablePrivateLinkResourceType: coreClient.CompositeMapper = { @@ -1348,46 +1374,47 @@ export const ShareablePrivateLinkResourceType: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ShareablePrivateLinkResourceProperties" - } - } - } - } -}; - -export const ShareablePrivateLinkResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ShareablePrivateLinkResourceProperties", - modelProperties: { - description: { - serializedName: "description", - type: { - name: "String" - } + className: "ShareablePrivateLinkResourceProperties", + }, }, - groupId: { - serializedName: "groupId", + }, + }, +}; + +export const ShareablePrivateLinkResourceProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ShareablePrivateLinkResourceProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + groupId: { + serializedName: "groupId", + type: { + name: "String", + }, + }, type: { - name: "String" - } + serializedName: "type", + type: { + name: "String", + }, + }, }, - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const RegenerateKeyParameters: coreClient.CompositeMapper = { type: { @@ -1397,11 +1424,11 @@ export const RegenerateKeyParameters: coreClient.CompositeMapper = { keyType: { serializedName: "keyType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ReplicaList: coreClient.CompositeMapper = { @@ -1416,19 +1443,46 @@ export const ReplicaList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Replica" - } - } - } + className: "Replica", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SharedPrivateLinkResourceList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedPrivateLinkResourceList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SkuList: coreClient.CompositeMapper = { @@ -1444,20 +1498,20 @@ export const SkuList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Sku" - } - } - } + className: "Sku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -1469,25 +1523,25 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "SkuCapacity" - } - } - } - } + className: "SkuCapacity", + }, + }, + }, + }, }; export const SkuCapacity: coreClient.CompositeMapper = { @@ -1499,22 +1553,22 @@ export const SkuCapacity: coreClient.CompositeMapper = { serializedName: "minimum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, allowedValues: { serializedName: "allowedValues", @@ -1523,47 +1577,20 @@ export const SkuCapacity: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "Number" - } - } - } + name: "Number", + }, + }, + }, }, scaleType: { serializedName: "scaleType", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const SharedPrivateLinkResourceList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedPrivateLinkResourceList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -1571,9 +1598,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -1586,18 +1613,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointACL: coreClient.CompositeMapper = { @@ -1610,11 +1637,11 @@ export const PrivateEndpointACL: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventNameFilter: coreClient.CompositeMapper = { @@ -1632,19 +1659,19 @@ export const EventNameFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, userEventPattern: { serializedName: "userEventPattern", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventHubEndpoint: coreClient.CompositeMapper = { @@ -1661,18 +1688,18 @@ export const EventHubEndpoint: coreClient.CompositeMapper = { serializedName: "fullyQualifiedNamespace", required: true, type: { - name: "String" - } + name: "String", + }, }, eventHubName: { serializedName: "eventHubName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -1685,15 +1712,15 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, groupIds: { serializedName: "properties.groupIds", @@ -1702,20 +1729,20 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, }; export const SharedPrivateLinkResource: coreClient.CompositeMapper = { @@ -1727,37 +1754,37 @@ export const SharedPrivateLinkResource: coreClient.CompositeMapper = { groupId: { serializedName: "properties.groupId", type: { - name: "String" - } + name: "String", + }, }, privateLinkResourceId: { serializedName: "properties.privateLinkResourceId", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requestMessage: { serializedName: "properties.requestMessage", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomCertificate: coreClient.CompositeMapper = { @@ -1770,31 +1797,31 @@ export const CustomCertificate: coreClient.CompositeMapper = { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultBaseUri: { serializedName: "properties.keyVaultBaseUri", required: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultSecretName: { serializedName: "properties.keyVaultSecretName", required: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultSecretVersion: { serializedName: "properties.keyVaultSecretVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomDomain: coreClient.CompositeMapper = { @@ -1807,25 +1834,25 @@ export const CustomDomain: coreClient.CompositeMapper = { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, domainName: { serializedName: "properties.domainName", required: true, type: { - name: "String" - } + name: "String", + }, }, customCertificate: { serializedName: "properties.customCertificate", type: { name: "Composite", - className: "ResourceReference" - } - } - } - } + className: "ResourceReference", + }, + }, + }, + }, }; export const WebPubSubHub: coreClient.CompositeMapper = { @@ -1838,11 +1865,11 @@ export const WebPubSubHub: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "WebPubSubHubProperties" - } - } - } - } + className: "WebPubSubHubProperties", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -1854,8 +1881,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { groupId: { serializedName: "properties.groupId", type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -1863,10 +1890,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -1874,10 +1901,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, shareablePrivateLinkResourceTypes: { serializedName: "properties.shareablePrivateLinkResourceTypes", @@ -1886,13 +1913,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ShareablePrivateLinkResourceType" - } - } - } - } - } - } + className: "ShareablePrivateLinkResourceType", + }, + }, + }, + }, + }, + }, }; export const WebPubSubResource: coreClient.CompositeMapper = { @@ -1905,63 +1932,63 @@ export const WebPubSubResource: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedIdentity" - } + className: "ManagedIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, externalIP: { serializedName: "properties.externalIP", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hostName: { serializedName: "properties.hostName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, publicPort: { serializedName: "properties.publicPort", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, serverPort: { serializedName: "properties.serverPort", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, version: { serializedName: "properties.version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -1971,10 +1998,10 @@ export const WebPubSubResource: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, sharedPrivateLinkResources: { serializedName: "properties.sharedPrivateLinkResources", @@ -1984,83 +2011,90 @@ export const WebPubSubResource: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } + className: "SharedPrivateLinkResource", + }, + }, + }, }, tls: { serializedName: "properties.tls", type: { name: "Composite", - className: "WebPubSubTlsSettings" - } + className: "WebPubSubTlsSettings", + }, }, hostNamePrefix: { serializedName: "properties.hostNamePrefix", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, liveTraceConfiguration: { serializedName: "properties.liveTraceConfiguration", type: { name: "Composite", - className: "LiveTraceConfiguration" - } + className: "LiveTraceConfiguration", + }, }, resourceLogConfiguration: { serializedName: "properties.resourceLogConfiguration", type: { name: "Composite", - className: "ResourceLogConfiguration" - } + className: "ResourceLogConfiguration", + }, }, networkACLs: { serializedName: "properties.networkACLs", type: { name: "Composite", - className: "WebPubSubNetworkACLs" - } + className: "WebPubSubNetworkACLs", + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, disableLocalAuth: { defaultValue: false, serializedName: "properties.disableLocalAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, disableAadAuth: { defaultValue: false, serializedName: "properties.disableAadAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, regionEndpointEnabled: { defaultValue: "Enabled", serializedName: "properties.regionEndpointEnabled", type: { - name: "String" - } + name: "String", + }, }, resourceStopped: { defaultValue: "false", serializedName: "properties.resourceStopped", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + socketIO: { + serializedName: "properties.socketIO", + type: { + name: "Composite", + className: "WebPubSubSocketIOSettings", + }, + }, + }, + }, }; export const Replica: coreClient.CompositeMapper = { @@ -2073,32 +2107,32 @@ export const Replica: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, regionEndpointEnabled: { defaultValue: "Enabled", serializedName: "properties.regionEndpointEnabled", type: { - name: "String" - } + name: "String", + }, }, resourceStopped: { defaultValue: "false", serializedName: "properties.resourceStopped", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubUpdateHeaders: coreClient.CompositeMapper = { @@ -2109,11 +2143,11 @@ export const WebPubSubUpdateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubRegenerateKeyHeaders: coreClient.CompositeMapper = { @@ -2124,11 +2158,11 @@ export const WebPubSubRegenerateKeyHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubRestartHeaders: coreClient.CompositeMapper = { @@ -2139,11 +2173,11 @@ export const WebPubSubRestartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubReplicasUpdateHeaders: coreClient.CompositeMapper = { @@ -2154,11 +2188,11 @@ export const WebPubSubReplicasUpdateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WebPubSubReplicasRestartHeaders: coreClient.CompositeMapper = { @@ -2169,16 +2203,16 @@ export const WebPubSubReplicasRestartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export let discriminators = { EventListenerFilter: EventListenerFilter, EventListenerEndpoint: EventListenerEndpoint, "EventListenerFilter.EventName": EventNameFilter, - "EventListenerEndpoint.EventHub": EventHubEndpoint + "EventListenerEndpoint.EventHub": EventHubEndpoint, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/models/parameters.ts b/sdk/web-pubsub/arm-webpubsub/src/models/parameters.ts index 64a21cfb7d2b..c8c304075390 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/models/parameters.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { NameAvailabilityParameters as NameAvailabilityParametersMapper, @@ -20,7 +20,7 @@ import { WebPubSubHub as WebPubSubHubMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, Replica as ReplicaMapper, - SharedPrivateLinkResource as SharedPrivateLinkResourceMapper + SharedPrivateLinkResource as SharedPrivateLinkResourceMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -30,9 +30,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -41,22 +41,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-08-01-preview", + defaultValue: "2024-03-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -65,10 +65,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -78,14 +78,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: NameAvailabilityParametersMapper + mapper: NameAvailabilityParametersMapper, }; export const location: OperationURLParameter = { @@ -94,9 +94,9 @@ export const location: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -105,9 +105,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -115,14 +115,14 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceName: OperationURLParameter = { @@ -131,24 +131,24 @@ export const resourceName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$"), MaxLength: 63, - MinLength: 3 + MinLength: 3, }, serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: WebPubSubResourceMapper + mapper: WebPubSubResourceMapper, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: RegenerateKeyParametersMapper + mapper: RegenerateKeyParametersMapper, }; export const replicaName: OperationURLParameter = { @@ -157,14 +157,14 @@ export const replicaName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$"), MaxLength: 63, - MinLength: 3 + MinLength: 3, }, serializedName: "replicaName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const certificateName: OperationURLParameter = { @@ -173,14 +173,14 @@ export const certificateName: OperationURLParameter = { serializedName: "certificateName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: CustomCertificateMapper + mapper: CustomCertificateMapper, }; export const name: OperationURLParameter = { @@ -189,14 +189,14 @@ export const name: OperationURLParameter = { serializedName: "name", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: CustomDomainMapper + mapper: CustomDomainMapper, }; export const hubName: OperationURLParameter = { @@ -205,14 +205,14 @@ export const hubName: OperationURLParameter = { serializedName: "hubName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: WebPubSubHubMapper + mapper: WebPubSubHubMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -221,33 +221,38 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ReplicaMapper + mapper: ReplicaMapper, }; export const sharedPrivateLinkResourceName: OperationURLParameter = { parameterPath: "sharedPrivateLinkResourceName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$"), + MaxLength: 63, + MinLength: 3, + }, serializedName: "sharedPrivateLinkResourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: SharedPrivateLinkResourceMapper + mapper: SharedPrivateLinkResourceMapper, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/index.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/index.ts index 9ed9e9b6ad7f..f05d34e49c45 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/index.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/index.ts @@ -15,4 +15,5 @@ export * from "./webPubSubHubs"; export * from "./webPubSubPrivateEndpointConnections"; export * from "./webPubSubPrivateLinkResources"; export * from "./webPubSubReplicas"; +export * from "./webPubSubReplicaSharedPrivateLinkResources"; export * from "./webPubSubSharedPrivateLinkResources"; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/operations.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/operations.ts index fc781a2dc1b7..4044930fa7bf 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/operations.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationList + bodyMapper: Mappers.OperationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationList + bodyMapper: Mappers.OperationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/usages.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/usages.ts index ac480859b87d..b8659496b1d0 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/usages.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/usages.ts @@ -18,7 +18,7 @@ import { UsagesListNextOptionalParams, UsagesListOptionalParams, UsagesListResponse, - UsagesListNextResponse + UsagesListNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class UsagesImpl implements Usages { */ public list( location: string, - options?: UsagesListOptionalParams + options?: UsagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -56,14 +56,14 @@ export class UsagesImpl implements Usages { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: UsagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UsagesListResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class UsagesImpl implements Usages { private async *listPagingAll( location: string, - options?: UsagesListOptionalParams + options?: UsagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -99,11 +99,11 @@ export class UsagesImpl implements Usages { */ private _list( location: string, - options?: UsagesListOptionalParams + options?: UsagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -116,11 +116,11 @@ export class UsagesImpl implements Usages { private _listNext( location: string, nextLink: string, - options?: UsagesListNextOptionalParams + options?: UsagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -128,43 +128,42 @@ export class UsagesImpl implements Usages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SignalRServiceUsageList + bodyMapper: Mappers.SignalRServiceUsageList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SignalRServiceUsageList + bodyMapper: Mappers.SignalRServiceUsageList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSub.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSub.ts index 1345ecee8e82..560128ece30c 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSub.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSub.ts @@ -16,7 +16,7 @@ import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -49,7 +49,7 @@ import { WebPubSubListSkusOptionalParams, WebPubSubListSkusResponse, WebPubSubListBySubscriptionNextResponse, - WebPubSubListByResourceGroupNextResponse + WebPubSubListByResourceGroupNextResponse, } from "../models"; /// @@ -70,7 +70,7 @@ export class WebPubSubImpl implements WebPubSub { * @param options The options parameters. */ public listBySubscription( - options?: WebPubSubListBySubscriptionOptionalParams + options?: WebPubSubListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -85,13 +85,13 @@ export class WebPubSubImpl implements WebPubSub { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: WebPubSubListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -112,7 +112,7 @@ export class WebPubSubImpl implements WebPubSub { } private async *listBySubscriptionPagingAll( - options?: WebPubSubListBySubscriptionOptionalParams + options?: WebPubSubListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -126,7 +126,7 @@ export class WebPubSubImpl implements WebPubSub { */ public listByResourceGroup( resourceGroupName: string, - options?: WebPubSubListByResourceGroupOptionalParams + options?: WebPubSubListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -143,16 +143,16 @@ export class WebPubSubImpl implements WebPubSub { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: WebPubSubListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -167,7 +167,7 @@ export class WebPubSubImpl implements WebPubSub { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -178,11 +178,11 @@ export class WebPubSubImpl implements WebPubSub { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: WebPubSubListByResourceGroupOptionalParams + options?: WebPubSubListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -197,11 +197,11 @@ export class WebPubSubImpl implements WebPubSub { checkNameAvailability( location: string, parameters: NameAvailabilityParameters, - options?: WebPubSubCheckNameAvailabilityOptionalParams + options?: WebPubSubCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -210,11 +210,11 @@ export class WebPubSubImpl implements WebPubSub { * @param options The options parameters. */ private _listBySubscription( - options?: WebPubSubListBySubscriptionOptionalParams + options?: WebPubSubListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -225,11 +225,11 @@ export class WebPubSubImpl implements WebPubSub { */ private _listByResourceGroup( resourceGroupName: string, - options?: WebPubSubListByResourceGroupOptionalParams + options?: WebPubSubListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -242,11 +242,11 @@ export class WebPubSubImpl implements WebPubSub { get( resourceGroupName: string, resourceName: string, - options?: WebPubSubGetOptionalParams + options?: WebPubSubGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -261,7 +261,7 @@ export class WebPubSubImpl implements WebPubSub { resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, - options?: WebPubSubCreateOrUpdateOptionalParams + options?: WebPubSubCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,21 +270,20 @@ export class WebPubSubImpl implements WebPubSub { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +292,8 @@ export class WebPubSubImpl implements WebPubSub { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,15 +301,15 @@ export class WebPubSubImpl implements WebPubSub { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< WebPubSubCreateOrUpdateResponse, @@ -318,7 +317,7 @@ export class WebPubSubImpl implements WebPubSub { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -335,13 +334,13 @@ export class WebPubSubImpl implements WebPubSub { resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, - options?: WebPubSubCreateOrUpdateOptionalParams + options?: WebPubSubCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -355,25 +354,24 @@ export class WebPubSubImpl implements WebPubSub { async beginDelete( resourceGroupName: string, resourceName: string, - options?: WebPubSubDeleteOptionalParams + options?: WebPubSubDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -382,8 +380,8 @@ export class WebPubSubImpl implements WebPubSub { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -391,20 +389,20 @@ export class WebPubSubImpl implements WebPubSub { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -419,12 +417,12 @@ export class WebPubSubImpl implements WebPubSub { async beginDeleteAndWait( resourceGroupName: string, resourceName: string, - options?: WebPubSubDeleteOptionalParams + options?: WebPubSubDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -440,7 +438,7 @@ export class WebPubSubImpl implements WebPubSub { resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, - options?: WebPubSubUpdateOptionalParams + options?: WebPubSubUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -449,21 +447,20 @@ export class WebPubSubImpl implements WebPubSub { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -472,8 +469,8 @@ export class WebPubSubImpl implements WebPubSub { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -481,15 +478,15 @@ export class WebPubSubImpl implements WebPubSub { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< WebPubSubUpdateResponse, @@ -497,7 +494,7 @@ export class WebPubSubImpl implements WebPubSub { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -514,13 +511,13 @@ export class WebPubSubImpl implements WebPubSub { resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, - options?: WebPubSubUpdateOptionalParams + options?: WebPubSubUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -534,11 +531,11 @@ export class WebPubSubImpl implements WebPubSub { listKeys( resourceGroupName: string, resourceName: string, - options?: WebPubSubListKeysOptionalParams + options?: WebPubSubListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -554,7 +551,7 @@ export class WebPubSubImpl implements WebPubSub { resourceGroupName: string, resourceName: string, parameters: RegenerateKeyParameters, - options?: WebPubSubRegenerateKeyOptionalParams + options?: WebPubSubRegenerateKeyOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -563,21 +560,20 @@ export class WebPubSubImpl implements WebPubSub { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -586,8 +582,8 @@ export class WebPubSubImpl implements WebPubSub { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -595,15 +591,15 @@ export class WebPubSubImpl implements WebPubSub { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, parameters, options }, - spec: regenerateKeyOperationSpec + spec: regenerateKeyOperationSpec, }); const poller = await createHttpPoller< WebPubSubRegenerateKeyResponse, @@ -611,7 +607,7 @@ export class WebPubSubImpl implements WebPubSub { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -629,13 +625,13 @@ export class WebPubSubImpl implements WebPubSub { resourceGroupName: string, resourceName: string, parameters: RegenerateKeyParameters, - options?: WebPubSubRegenerateKeyOptionalParams + options?: WebPubSubRegenerateKeyOptionalParams, ): Promise { const poller = await this.beginRegenerateKey( resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -651,11 +647,11 @@ export class WebPubSubImpl implements WebPubSub { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubListReplicaSkusOptionalParams + options?: WebPubSubListReplicaSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, replicaName, options }, - listReplicaSkusOperationSpec + listReplicaSkusOperationSpec, ); } @@ -668,7 +664,7 @@ export class WebPubSubImpl implements WebPubSub { async beginRestart( resourceGroupName: string, resourceName: string, - options?: WebPubSubRestartOptionalParams + options?: WebPubSubRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -677,21 +673,20 @@ export class WebPubSubImpl implements WebPubSub { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -700,8 +695,8 @@ export class WebPubSubImpl implements WebPubSub { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -709,15 +704,15 @@ export class WebPubSubImpl implements WebPubSub { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller< WebPubSubRestartResponse, @@ -725,7 +720,7 @@ export class WebPubSubImpl implements WebPubSub { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -740,12 +735,12 @@ export class WebPubSubImpl implements WebPubSub { async beginRestartAndWait( resourceGroupName: string, resourceName: string, - options?: WebPubSubRestartOptionalParams + options?: WebPubSubRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -759,11 +754,11 @@ export class WebPubSubImpl implements WebPubSub { listSkus( resourceGroupName: string, resourceName: string, - options?: WebPubSubListSkusOptionalParams + options?: WebPubSubListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } @@ -774,11 +769,11 @@ export class WebPubSubImpl implements WebPubSub { */ private _listBySubscriptionNext( nextLink: string, - options?: WebPubSubListBySubscriptionNextOptionalParams + options?: WebPubSubListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -791,11 +786,11 @@ export class WebPubSubImpl implements WebPubSub { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: WebPubSubListByResourceGroupNextOptionalParams + options?: WebPubSubListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -803,108 +798,103 @@ export class WebPubSubImpl implements WebPubSub { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NameAvailability + bodyMapper: Mappers.NameAvailability, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/webPubSub", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/webPubSub", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebPubSubResourceList + bodyMapper: Mappers.WebPubSubResourceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebPubSubResourceList + bodyMapper: Mappers.WebPubSubResourceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, 201: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, 202: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, 204: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -912,15 +902,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -928,39 +917,38 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, 201: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, 202: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, 204: { - bodyMapper: Mappers.WebPubSubResource + bodyMapper: Mappers.WebPubSubResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -968,54 +956,52 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.WebPubSubKeys + bodyMapper: Mappers.WebPubSubKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/regenerateKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/regenerateKey", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.WebPubSubKeys + bodyMapper: Mappers.WebPubSubKeys, }, 201: { - bodyMapper: Mappers.WebPubSubKeys + bodyMapper: Mappers.WebPubSubKeys, }, 202: { - bodyMapper: Mappers.WebPubSubKeys + bodyMapper: Mappers.WebPubSubKeys, }, 204: { - bodyMapper: Mappers.WebPubSubKeys + bodyMapper: Mappers.WebPubSubKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -1023,23 +1009,22 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listReplicaSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SkuList + bodyMapper: Mappers.SkuList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1047,100 +1032,98 @@ const listReplicaSkusOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.replicaName + Parameters.replicaName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/restart", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.WebPubSubRestartHeaders + headersMapper: Mappers.WebPubSubRestartHeaders, }, 201: { - headersMapper: Mappers.WebPubSubRestartHeaders + headersMapper: Mappers.WebPubSubRestartHeaders, }, 202: { - headersMapper: Mappers.WebPubSubRestartHeaders + headersMapper: Mappers.WebPubSubRestartHeaders, }, 204: { - headersMapper: Mappers.WebPubSubRestartHeaders + headersMapper: Mappers.WebPubSubRestartHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SkuList + bodyMapper: Mappers.SkuList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebPubSubResourceList + bodyMapper: Mappers.WebPubSubResourceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebPubSubResourceList + bodyMapper: Mappers.WebPubSubResourceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubCustomCertificates.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubCustomCertificates.ts index af8d6d50a43d..4eba09f5d3fc 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubCustomCertificates.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubCustomCertificates.ts @@ -16,7 +16,7 @@ import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,13 +29,14 @@ import { WebPubSubCustomCertificatesCreateOrUpdateOptionalParams, WebPubSubCustomCertificatesCreateOrUpdateResponse, WebPubSubCustomCertificatesDeleteOptionalParams, - WebPubSubCustomCertificatesListNextResponse + WebPubSubCustomCertificatesListNextResponse, } from "../models"; /// /** Class containing WebPubSubCustomCertificates operations. */ export class WebPubSubCustomCertificatesImpl - implements WebPubSubCustomCertificates { + implements WebPubSubCustomCertificates +{ private readonly client: WebPubSubManagementClient; /** @@ -55,7 +56,7 @@ export class WebPubSubCustomCertificatesImpl public list( resourceGroupName: string, resourceName: string, - options?: WebPubSubCustomCertificatesListOptionalParams + options?: WebPubSubCustomCertificatesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -73,9 +74,9 @@ export class WebPubSubCustomCertificatesImpl resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +84,7 @@ export class WebPubSubCustomCertificatesImpl resourceGroupName: string, resourceName: string, options?: WebPubSubCustomCertificatesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubCustomCertificatesListResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +100,7 @@ export class WebPubSubCustomCertificatesImpl resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,12 +112,12 @@ export class WebPubSubCustomCertificatesImpl private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WebPubSubCustomCertificatesListOptionalParams + options?: WebPubSubCustomCertificatesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -131,11 +132,11 @@ export class WebPubSubCustomCertificatesImpl private _list( resourceGroupName: string, resourceName: string, - options?: WebPubSubCustomCertificatesListOptionalParams + options?: WebPubSubCustomCertificatesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -150,11 +151,11 @@ export class WebPubSubCustomCertificatesImpl resourceGroupName: string, resourceName: string, certificateName: string, - options?: WebPubSubCustomCertificatesGetOptionalParams + options?: WebPubSubCustomCertificatesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, certificateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -171,7 +172,7 @@ export class WebPubSubCustomCertificatesImpl resourceName: string, certificateName: string, parameters: CustomCertificate, - options?: WebPubSubCustomCertificatesCreateOrUpdateOptionalParams + options?: WebPubSubCustomCertificatesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -180,21 +181,20 @@ export class WebPubSubCustomCertificatesImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -203,8 +203,8 @@ export class WebPubSubCustomCertificatesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -212,8 +212,8 @@ export class WebPubSubCustomCertificatesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -224,9 +224,9 @@ export class WebPubSubCustomCertificatesImpl resourceName, certificateName, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< WebPubSubCustomCertificatesCreateOrUpdateResponse, @@ -234,7 +234,7 @@ export class WebPubSubCustomCertificatesImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -253,14 +253,14 @@ export class WebPubSubCustomCertificatesImpl resourceName: string, certificateName: string, parameters: CustomCertificate, - options?: WebPubSubCustomCertificatesCreateOrUpdateOptionalParams + options?: WebPubSubCustomCertificatesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, resourceName, certificateName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -276,11 +276,11 @@ export class WebPubSubCustomCertificatesImpl resourceGroupName: string, resourceName: string, certificateName: string, - options?: WebPubSubCustomCertificatesDeleteOptionalParams + options?: WebPubSubCustomCertificatesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, certificateName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -295,11 +295,11 @@ export class WebPubSubCustomCertificatesImpl resourceGroupName: string, resourceName: string, nextLink: string, - options?: WebPubSubCustomCertificatesListNextOptionalParams + options?: WebPubSubCustomCertificatesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -307,38 +307,36 @@ export class WebPubSubCustomCertificatesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomCertificateList + bodyMapper: Mappers.CustomCertificateList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomCertificate + bodyMapper: Mappers.CustomCertificate, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -346,31 +344,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CustomCertificate + bodyMapper: Mappers.CustomCertificate, }, 201: { - bodyMapper: Mappers.CustomCertificate + bodyMapper: Mappers.CustomCertificate, }, 202: { - bodyMapper: Mappers.CustomCertificate + bodyMapper: Mappers.CustomCertificate, }, 204: { - bodyMapper: Mappers.CustomCertificate + bodyMapper: Mappers.CustomCertificate, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -379,22 +376,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -402,29 +398,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomCertificateList + bodyMapper: Mappers.CustomCertificateList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubCustomDomains.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubCustomDomains.ts index 6422056e0a06..a21084c4edb9 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubCustomDomains.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubCustomDomains.ts @@ -16,7 +16,7 @@ import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { WebPubSubCustomDomainsCreateOrUpdateOptionalParams, WebPubSubCustomDomainsCreateOrUpdateResponse, WebPubSubCustomDomainsDeleteOptionalParams, - WebPubSubCustomDomainsListNextResponse + WebPubSubCustomDomainsListNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { public list( resourceGroupName: string, resourceName: string, - options?: WebPubSubCustomDomainsListOptionalParams + options?: WebPubSubCustomDomainsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -72,9 +72,9 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceGroupName: string, resourceName: string, options?: WebPubSubCustomDomainsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubCustomDomainsListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +110,12 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WebPubSubCustomDomainsListOptionalParams + options?: WebPubSubCustomDomainsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -130,11 +130,11 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { private _list( resourceGroupName: string, resourceName: string, - options?: WebPubSubCustomDomainsListOptionalParams + options?: WebPubSubCustomDomainsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -149,11 +149,11 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceGroupName: string, resourceName: string, name: string, - options?: WebPubSubCustomDomainsGetOptionalParams + options?: WebPubSubCustomDomainsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, name, options }, - getOperationSpec + getOperationSpec, ); } @@ -170,7 +170,7 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceName: string, name: string, parameters: CustomDomain, - options?: WebPubSubCustomDomainsCreateOrUpdateOptionalParams + options?: WebPubSubCustomDomainsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -179,21 +179,20 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -202,8 +201,8 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -211,15 +210,15 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, name, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< WebPubSubCustomDomainsCreateOrUpdateResponse, @@ -227,7 +226,7 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -246,14 +245,14 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceName: string, name: string, parameters: CustomDomain, - options?: WebPubSubCustomDomainsCreateOrUpdateOptionalParams + options?: WebPubSubCustomDomainsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, resourceName, name, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -269,25 +268,24 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceGroupName: string, resourceName: string, name: string, - options?: WebPubSubCustomDomainsDeleteOptionalParams + options?: WebPubSubCustomDomainsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -296,8 +294,8 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -305,20 +303,20 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, name, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -335,13 +333,13 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceGroupName: string, resourceName: string, name: string, - options?: WebPubSubCustomDomainsDeleteOptionalParams + options?: WebPubSubCustomDomainsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, resourceName, name, - options + options, ); return poller.pollUntilDone(); } @@ -357,11 +355,11 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { resourceGroupName: string, resourceName: string, nextLink: string, - options?: WebPubSubCustomDomainsListNextOptionalParams + options?: WebPubSubCustomDomainsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -369,38 +367,36 @@ export class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomDomainList + bodyMapper: Mappers.CustomDomainList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomDomain + bodyMapper: Mappers.CustomDomain, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -408,31 +404,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CustomDomain + bodyMapper: Mappers.CustomDomain, }, 201: { - bodyMapper: Mappers.CustomDomain + bodyMapper: Mappers.CustomDomain, }, 202: { - bodyMapper: Mappers.CustomDomain + bodyMapper: Mappers.CustomDomain, }, 204: { - bodyMapper: Mappers.CustomDomain + bodyMapper: Mappers.CustomDomain, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -441,15 +436,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}", httpMethod: "DELETE", responses: { 200: {}, @@ -457,8 +451,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -466,29 +460,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CustomDomainList + bodyMapper: Mappers.CustomDomainList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubHubs.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubHubs.ts index 4468015ac036..7d2e9f848e32 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubHubs.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubHubs.ts @@ -16,7 +16,7 @@ import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { WebPubSubHubsCreateOrUpdateOptionalParams, WebPubSubHubsCreateOrUpdateResponse, WebPubSubHubsDeleteOptionalParams, - WebPubSubHubsListNextResponse + WebPubSubHubsListNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { public list( resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsListOptionalParams + options?: WebPubSubHubsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -72,9 +72,9 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { resourceGroupName: string, resourceName: string, options?: WebPubSubHubsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubHubsListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +110,12 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsListOptionalParams + options?: WebPubSubHubsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -130,11 +130,11 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { private _list( resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsListOptionalParams + options?: WebPubSubHubsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -149,11 +149,11 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { hubName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsGetOptionalParams + options?: WebPubSubHubsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { hubName, resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -170,7 +170,7 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { resourceGroupName: string, resourceName: string, parameters: WebPubSubHub, - options?: WebPubSubHubsCreateOrUpdateOptionalParams + options?: WebPubSubHubsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -179,21 +179,20 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -202,8 +201,8 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -211,15 +210,15 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { hubName, resourceGroupName, resourceName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< WebPubSubHubsCreateOrUpdateResponse, @@ -227,7 +226,7 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -246,14 +245,14 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { resourceGroupName: string, resourceName: string, parameters: WebPubSubHub, - options?: WebPubSubHubsCreateOrUpdateOptionalParams + options?: WebPubSubHubsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( hubName, resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -269,25 +268,24 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { hubName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsDeleteOptionalParams + options?: WebPubSubHubsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -296,8 +294,8 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -305,20 +303,20 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { hubName, resourceGroupName, resourceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -335,13 +333,13 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { hubName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsDeleteOptionalParams + options?: WebPubSubHubsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( hubName, resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -357,11 +355,11 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { resourceGroupName: string, resourceName: string, nextLink: string, - options?: WebPubSubHubsListNextOptionalParams + options?: WebPubSubHubsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -369,38 +367,36 @@ export class WebPubSubHubsImpl implements WebPubSubHubs { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebPubSubHubList + bodyMapper: Mappers.WebPubSubHubList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebPubSubHub + bodyMapper: Mappers.WebPubSubHub, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -408,31 +404,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.hubName + Parameters.hubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WebPubSubHub + bodyMapper: Mappers.WebPubSubHub, }, 201: { - bodyMapper: Mappers.WebPubSubHub + bodyMapper: Mappers.WebPubSubHub, }, 202: { - bodyMapper: Mappers.WebPubSubHub + bodyMapper: Mappers.WebPubSubHub, }, 204: { - bodyMapper: Mappers.WebPubSubHub + bodyMapper: Mappers.WebPubSubHub, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -441,15 +436,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.hubName + Parameters.hubName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", httpMethod: "DELETE", responses: { 200: {}, @@ -457,8 +451,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -466,29 +460,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.hubName + Parameters.hubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebPubSubHubList + bodyMapper: Mappers.WebPubSubHubList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateEndpointConnections.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateEndpointConnections.ts index 67d0232e972b..2109511cc1cb 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateEndpointConnections.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateEndpointConnections.ts @@ -16,7 +16,7 @@ import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,13 +29,14 @@ import { WebPubSubPrivateEndpointConnectionsUpdateOptionalParams, WebPubSubPrivateEndpointConnectionsUpdateResponse, WebPubSubPrivateEndpointConnectionsDeleteOptionalParams, - WebPubSubPrivateEndpointConnectionsListNextResponse + WebPubSubPrivateEndpointConnectionsListNextResponse, } from "../models"; /// /** Class containing WebPubSubPrivateEndpointConnections operations. */ export class WebPubSubPrivateEndpointConnectionsImpl - implements WebPubSubPrivateEndpointConnections { + implements WebPubSubPrivateEndpointConnections +{ private readonly client: WebPubSubManagementClient; /** @@ -55,7 +56,7 @@ export class WebPubSubPrivateEndpointConnectionsImpl public list( resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsListOptionalParams + options?: WebPubSubPrivateEndpointConnectionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -73,9 +74,9 @@ export class WebPubSubPrivateEndpointConnectionsImpl resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +84,7 @@ export class WebPubSubPrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, options?: WebPubSubPrivateEndpointConnectionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubPrivateEndpointConnectionsListResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +100,7 @@ export class WebPubSubPrivateEndpointConnectionsImpl resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,12 +112,12 @@ export class WebPubSubPrivateEndpointConnectionsImpl private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsListOptionalParams + options?: WebPubSubPrivateEndpointConnectionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -131,11 +132,11 @@ export class WebPubSubPrivateEndpointConnectionsImpl private _list( resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsListOptionalParams + options?: WebPubSubPrivateEndpointConnectionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -151,16 +152,16 @@ export class WebPubSubPrivateEndpointConnectionsImpl privateEndpointConnectionName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsGetOptionalParams + options?: WebPubSubPrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { privateEndpointConnectionName, resourceGroupName, resourceName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +179,7 @@ export class WebPubSubPrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, parameters: PrivateEndpointConnection, - options?: WebPubSubPrivateEndpointConnectionsUpdateOptionalParams + options?: WebPubSubPrivateEndpointConnectionsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -186,9 +187,9 @@ export class WebPubSubPrivateEndpointConnectionsImpl resourceGroupName, resourceName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -204,25 +205,24 @@ export class WebPubSubPrivateEndpointConnectionsImpl privateEndpointConnectionName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsDeleteOptionalParams + options?: WebPubSubPrivateEndpointConnectionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -231,8 +231,8 @@ export class WebPubSubPrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -240,8 +240,8 @@ export class WebPubSubPrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -251,14 +251,14 @@ export class WebPubSubPrivateEndpointConnectionsImpl privateEndpointConnectionName, resourceGroupName, resourceName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -276,13 +276,13 @@ export class WebPubSubPrivateEndpointConnectionsImpl privateEndpointConnectionName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsDeleteOptionalParams + options?: WebPubSubPrivateEndpointConnectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( privateEndpointConnectionName, resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -298,11 +298,11 @@ export class WebPubSubPrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, nextLink: string, - options?: WebPubSubPrivateEndpointConnectionsListNextOptionalParams + options?: WebPubSubPrivateEndpointConnectionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -310,38 +310,36 @@ export class WebPubSubPrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionList + bodyMapper: Mappers.PrivateEndpointConnectionList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -349,22 +347,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -373,15 +370,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -389,8 +385,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -398,29 +394,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionList + bodyMapper: Mappers.PrivateEndpointConnectionList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateLinkResources.ts index b5f8327d4ecb..d6e1ccdfd891 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateLinkResources.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateLinkResources.ts @@ -18,13 +18,14 @@ import { WebPubSubPrivateLinkResourcesListNextOptionalParams, WebPubSubPrivateLinkResourcesListOptionalParams, WebPubSubPrivateLinkResourcesListResponse, - WebPubSubPrivateLinkResourcesListNextResponse + WebPubSubPrivateLinkResourcesListNextResponse, } from "../models"; /// /** Class containing WebPubSubPrivateLinkResources operations. */ export class WebPubSubPrivateLinkResourcesImpl - implements WebPubSubPrivateLinkResources { + implements WebPubSubPrivateLinkResources +{ private readonly client: WebPubSubManagementClient; /** @@ -44,7 +45,7 @@ export class WebPubSubPrivateLinkResourcesImpl public list( resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateLinkResourcesListOptionalParams + options?: WebPubSubPrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -62,9 +63,9 @@ export class WebPubSubPrivateLinkResourcesImpl resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -72,7 +73,7 @@ export class WebPubSubPrivateLinkResourcesImpl resourceGroupName: string, resourceName: string, options?: WebPubSubPrivateLinkResourcesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubPrivateLinkResourcesListResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +89,7 @@ export class WebPubSubPrivateLinkResourcesImpl resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -100,12 +101,12 @@ export class WebPubSubPrivateLinkResourcesImpl private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateLinkResourcesListOptionalParams + options?: WebPubSubPrivateLinkResourcesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -120,11 +121,11 @@ export class WebPubSubPrivateLinkResourcesImpl private _list( resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateLinkResourcesListOptionalParams + options?: WebPubSubPrivateLinkResourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -139,11 +140,11 @@ export class WebPubSubPrivateLinkResourcesImpl resourceGroupName: string, resourceName: string, nextLink: string, - options?: WebPubSubPrivateLinkResourcesListNextOptionalParams + options?: WebPubSubPrivateLinkResourcesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -151,45 +152,44 @@ export class WebPubSubPrivateLinkResourcesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceList + bodyMapper: Mappers.PrivateLinkResourceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceList + bodyMapper: Mappers.PrivateLinkResourceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubReplicaSharedPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubReplicaSharedPrivateLinkResources.ts new file mode 100644 index 000000000000..486730e81ea1 --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubReplicaSharedPrivateLinkResources.ts @@ -0,0 +1,424 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WebPubSubReplicaSharedPrivateLinkResources } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { WebPubSubManagementClient } from "../webPubSubManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + SharedPrivateLinkResource, + WebPubSubReplicaSharedPrivateLinkResourcesListNextOptionalParams, + WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams, + WebPubSubReplicaSharedPrivateLinkResourcesListResponse, + WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams, + WebPubSubReplicaSharedPrivateLinkResourcesGetResponse, + WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, + WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse, + WebPubSubReplicaSharedPrivateLinkResourcesListNextResponse, +} from "../models"; + +/// +/** Class containing WebPubSubReplicaSharedPrivateLinkResources operations. */ +export class WebPubSubReplicaSharedPrivateLinkResourcesImpl + implements WebPubSubReplicaSharedPrivateLinkResources +{ + private readonly client: WebPubSubManagementClient; + + /** + * Initialize a new instance of the class WebPubSubReplicaSharedPrivateLinkResources class. + * @param client Reference to the service client + */ + constructor(client: WebPubSubManagementClient) { + this.client = client; + } + + /** + * List shared private link resources + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + resourceName: string, + replicaName: string, + options?: WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + resourceName, + replicaName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + resourceName, + replicaName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + resourceName: string, + replicaName: string, + options?: WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WebPubSubReplicaSharedPrivateLinkResourcesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + resourceName, + replicaName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + resourceName, + replicaName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + resourceName: string, + replicaName: string, + options?: WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + resourceName, + replicaName, + options, + )) { + yield* page; + } + } + + /** + * List shared private link resources + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + resourceName: string, + replicaName: string, + options?: WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, replicaName, options }, + listOperationSpec, + ); + } + + /** + * Get the specified shared private link resource + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + resourceName: string, + replicaName: string, + sharedPrivateLinkResourceName: string, + options?: WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + options, + }, + getOperationSpec, + ); + } + + /** + * Create or update a shared private link resource + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link resource + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + resourceName: string, + replicaName: string, + sharedPrivateLinkResourceName: string, + parameters: SharedPrivateLinkResource, + options?: WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Create or update a shared private link resource + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link resource + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + resourceName: string, + replicaName: string, + sharedPrivateLinkResourceName: string, + parameters: SharedPrivateLinkResource, + options?: WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + resourceName, + replicaName, + sharedPrivateLinkResourceName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + resourceName: string, + replicaName: string, + nextLink: string, + options?: WebPubSubReplicaSharedPrivateLinkResourcesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, replicaName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/sharedPrivateLinkResources", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SharedPrivateLinkResourceList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.replicaName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SharedPrivateLinkResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.replicaName, + Parameters.sharedPrivateLinkResourceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SharedPrivateLinkResource, + }, + 201: { + bodyMapper: Mappers.SharedPrivateLinkResource, + }, + 202: { + bodyMapper: Mappers.SharedPrivateLinkResource, + }, + 204: { + bodyMapper: Mappers.SharedPrivateLinkResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.replicaName, + Parameters.sharedPrivateLinkResourceName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SharedPrivateLinkResourceList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.replicaName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubReplicas.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubReplicas.ts index 94888042b8e6..758427cb7b25 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubReplicas.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubReplicas.ts @@ -16,7 +16,7 @@ import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -33,7 +33,7 @@ import { WebPubSubReplicasUpdateResponse, WebPubSubReplicasRestartOptionalParams, WebPubSubReplicasRestartResponse, - WebPubSubReplicasListNextResponse + WebPubSubReplicasListNextResponse, } from "../models"; /// @@ -58,7 +58,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { public list( resourceGroupName: string, resourceName: string, - options?: WebPubSubReplicasListOptionalParams + options?: WebPubSubReplicasListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -76,9 +76,9 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceGroupName: string, resourceName: string, options?: WebPubSubReplicasListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubReplicasListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +114,12 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WebPubSubReplicasListOptionalParams + options?: WebPubSubReplicasListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { private _list( resourceGroupName: string, resourceName: string, - options?: WebPubSubReplicasListOptionalParams + options?: WebPubSubReplicasListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -153,11 +153,11 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubReplicasGetOptionalParams + options?: WebPubSubReplicasGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, replicaName, options }, - getOperationSpec + getOperationSpec, ); } @@ -174,7 +174,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceName: string, replicaName: string, parameters: Replica, - options?: WebPubSubReplicasCreateOrUpdateOptionalParams + options?: WebPubSubReplicasCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -183,21 +183,20 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -206,8 +205,8 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -215,8 +214,8 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -227,9 +226,9 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceName, replicaName, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< WebPubSubReplicasCreateOrUpdateResponse, @@ -237,7 +236,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -256,14 +255,14 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceName: string, replicaName: string, parameters: Replica, - options?: WebPubSubReplicasCreateOrUpdateOptionalParams + options?: WebPubSubReplicasCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, resourceName, replicaName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -279,11 +278,11 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubReplicasDeleteOptionalParams + options?: WebPubSubReplicasDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, replicaName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -300,7 +299,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceName: string, replicaName: string, parameters: Replica, - options?: WebPubSubReplicasUpdateOptionalParams + options?: WebPubSubReplicasUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -309,21 +308,20 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -332,8 +330,8 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -341,8 +339,8 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -353,9 +351,9 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceName, replicaName, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< WebPubSubReplicasUpdateResponse, @@ -363,7 +361,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -382,14 +380,14 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceName: string, replicaName: string, parameters: Replica, - options?: WebPubSubReplicasUpdateOptionalParams + options?: WebPubSubReplicasUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, resourceName, replicaName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -405,7 +403,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubReplicasRestartOptionalParams + options?: WebPubSubReplicasRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -414,21 +412,20 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -437,8 +434,8 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -446,15 +443,15 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, replicaName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller< WebPubSubReplicasRestartResponse, @@ -462,7 +459,7 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -479,13 +476,13 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubReplicasRestartOptionalParams + options?: WebPubSubReplicasRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, resourceName, replicaName, - options + options, ); return poller.pollUntilDone(); } @@ -501,11 +498,11 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { resourceGroupName: string, resourceName: string, nextLink: string, - options?: WebPubSubReplicasListNextOptionalParams + options?: WebPubSubReplicasListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -513,38 +510,36 @@ export class WebPubSubReplicasImpl implements WebPubSubReplicas { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicaList + bodyMapper: Mappers.ReplicaList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -552,31 +547,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.replicaName + Parameters.replicaName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 201: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 202: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 204: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], @@ -585,22 +579,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.replicaName + Parameters.replicaName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -608,31 +601,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.replicaName + Parameters.replicaName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 201: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 202: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 204: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], @@ -641,32 +633,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.replicaName + Parameters.replicaName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/restart", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.WebPubSubReplicasRestartHeaders + headersMapper: Mappers.WebPubSubReplicasRestartHeaders, }, 201: { - headersMapper: Mappers.WebPubSubReplicasRestartHeaders + headersMapper: Mappers.WebPubSubReplicasRestartHeaders, }, 202: { - headersMapper: Mappers.WebPubSubReplicasRestartHeaders + headersMapper: Mappers.WebPubSubReplicasRestartHeaders, }, 204: { - headersMapper: Mappers.WebPubSubReplicasRestartHeaders + headersMapper: Mappers.WebPubSubReplicasRestartHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -674,29 +665,29 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.replicaName + Parameters.replicaName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicaList + bodyMapper: Mappers.ReplicaList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubSharedPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubSharedPrivateLinkResources.ts index 5dd7ead43aa7..19b4525687ee 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubSharedPrivateLinkResources.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubSharedPrivateLinkResources.ts @@ -16,7 +16,7 @@ import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,13 +29,14 @@ import { WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, WebPubSubSharedPrivateLinkResourcesCreateOrUpdateResponse, WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams, - WebPubSubSharedPrivateLinkResourcesListNextResponse + WebPubSubSharedPrivateLinkResourcesListNextResponse, } from "../models"; /// /** Class containing WebPubSubSharedPrivateLinkResources operations. */ export class WebPubSubSharedPrivateLinkResourcesImpl - implements WebPubSubSharedPrivateLinkResources { + implements WebPubSubSharedPrivateLinkResources +{ private readonly client: WebPubSubManagementClient; /** @@ -55,7 +56,7 @@ export class WebPubSubSharedPrivateLinkResourcesImpl public list( resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -73,9 +74,9 @@ export class WebPubSubSharedPrivateLinkResourcesImpl resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +84,7 @@ export class WebPubSubSharedPrivateLinkResourcesImpl resourceGroupName: string, resourceName: string, options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebPubSubSharedPrivateLinkResourcesListResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +100,7 @@ export class WebPubSubSharedPrivateLinkResourcesImpl resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,12 +112,12 @@ export class WebPubSubSharedPrivateLinkResourcesImpl private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -131,17 +132,17 @@ export class WebPubSubSharedPrivateLinkResourcesImpl private _list( resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } /** * Get the specified shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param options The options parameters. @@ -150,22 +151,22 @@ export class WebPubSubSharedPrivateLinkResourcesImpl sharedPrivateLinkResourceName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesGetOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { sharedPrivateLinkResourceName, resourceGroupName, resourceName, - options + options, }, - getOperationSpec + getOperationSpec, ); } /** * Create or update a shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The shared private link resource @@ -176,7 +177,7 @@ export class WebPubSubSharedPrivateLinkResourcesImpl resourceGroupName: string, resourceName: string, parameters: SharedPrivateLinkResource, - options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -185,21 +186,20 @@ export class WebPubSubSharedPrivateLinkResourcesImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -208,8 +208,8 @@ export class WebPubSubSharedPrivateLinkResourcesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -217,8 +217,8 @@ export class WebPubSubSharedPrivateLinkResourcesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -229,9 +229,9 @@ export class WebPubSubSharedPrivateLinkResourcesImpl resourceGroupName, resourceName, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< WebPubSubSharedPrivateLinkResourcesCreateOrUpdateResponse, @@ -239,7 +239,7 @@ export class WebPubSubSharedPrivateLinkResourcesImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -247,7 +247,7 @@ export class WebPubSubSharedPrivateLinkResourcesImpl /** * Create or update a shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The shared private link resource @@ -258,21 +258,21 @@ export class WebPubSubSharedPrivateLinkResourcesImpl resourceGroupName: string, resourceName: string, parameters: SharedPrivateLinkResource, - options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } /** * Delete the specified shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param options The options parameters. @@ -281,25 +281,24 @@ export class WebPubSubSharedPrivateLinkResourcesImpl sharedPrivateLinkResourceName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -308,8 +307,8 @@ export class WebPubSubSharedPrivateLinkResourcesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -317,8 +316,8 @@ export class WebPubSubSharedPrivateLinkResourcesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -328,14 +327,14 @@ export class WebPubSubSharedPrivateLinkResourcesImpl sharedPrivateLinkResourceName, resourceGroupName, resourceName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -343,7 +342,7 @@ export class WebPubSubSharedPrivateLinkResourcesImpl /** * Delete the specified shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param options The options parameters. @@ -352,13 +351,13 @@ export class WebPubSubSharedPrivateLinkResourcesImpl sharedPrivateLinkResourceName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( sharedPrivateLinkResourceName, resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -374,11 +373,11 @@ export class WebPubSubSharedPrivateLinkResourcesImpl resourceGroupName: string, resourceName: string, nextLink: string, - options?: WebPubSubSharedPrivateLinkResourcesListNextOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -386,38 +385,36 @@ export class WebPubSubSharedPrivateLinkResourcesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResourceList + bodyMapper: Mappers.SharedPrivateLinkResourceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -425,31 +422,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 201: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 202: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 204: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -458,15 +454,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -474,8 +469,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -483,29 +478,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResourceList + bodyMapper: Mappers.SharedPrivateLinkResourceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/index.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/index.ts index 9ed9e9b6ad7f..f05d34e49c45 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/index.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/index.ts @@ -15,4 +15,5 @@ export * from "./webPubSubHubs"; export * from "./webPubSubPrivateEndpointConnections"; export * from "./webPubSubPrivateLinkResources"; export * from "./webPubSubReplicas"; +export * from "./webPubSubReplicaSharedPrivateLinkResources"; export * from "./webPubSubSharedPrivateLinkResources"; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/operations.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/operations.ts index df52586abc39..c5e2c17bfb93 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/operations.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/usages.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/usages.ts index e7c4264b6f2d..e10536727a18 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/usages.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/usages.ts @@ -19,6 +19,6 @@ export interface Usages { */ list( location: string, - options?: UsagesListOptionalParams + options?: UsagesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSub.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSub.ts index 09620b218ebc..a3e00dc9b6cc 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSub.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSub.ts @@ -32,7 +32,7 @@ import { WebPubSubRestartOptionalParams, WebPubSubRestartResponse, WebPubSubListSkusOptionalParams, - WebPubSubListSkusResponse + WebPubSubListSkusResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export interface WebPubSub { * @param options The options parameters. */ listBySubscription( - options?: WebPubSubListBySubscriptionOptionalParams + options?: WebPubSubListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Handles requests to list all resources in a resource group. @@ -52,7 +52,7 @@ export interface WebPubSub { */ listByResourceGroup( resourceGroupName: string, - options?: WebPubSubListByResourceGroupOptionalParams + options?: WebPubSubListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that the resource name is valid and is not already in use. @@ -63,7 +63,7 @@ export interface WebPubSub { checkNameAvailability( location: string, parameters: NameAvailabilityParameters, - options?: WebPubSubCheckNameAvailabilityOptionalParams + options?: WebPubSubCheckNameAvailabilityOptionalParams, ): Promise; /** * Get the resource and its properties. @@ -74,7 +74,7 @@ export interface WebPubSub { get( resourceGroupName: string, resourceName: string, - options?: WebPubSubGetOptionalParams + options?: WebPubSubGetOptionalParams, ): Promise; /** * Create or update a resource. @@ -87,7 +87,7 @@ export interface WebPubSub { resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, - options?: WebPubSubCreateOrUpdateOptionalParams + options?: WebPubSubCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -105,7 +105,7 @@ export interface WebPubSub { resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, - options?: WebPubSubCreateOrUpdateOptionalParams + options?: WebPubSubCreateOrUpdateOptionalParams, ): Promise; /** * Operation to delete a resource. @@ -116,7 +116,7 @@ export interface WebPubSub { beginDelete( resourceGroupName: string, resourceName: string, - options?: WebPubSubDeleteOptionalParams + options?: WebPubSubDeleteOptionalParams, ): Promise, void>>; /** * Operation to delete a resource. @@ -127,7 +127,7 @@ export interface WebPubSub { beginDeleteAndWait( resourceGroupName: string, resourceName: string, - options?: WebPubSubDeleteOptionalParams + options?: WebPubSubDeleteOptionalParams, ): Promise; /** * Operation to update an exiting resource. @@ -140,7 +140,7 @@ export interface WebPubSub { resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, - options?: WebPubSubUpdateOptionalParams + options?: WebPubSubUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -158,7 +158,7 @@ export interface WebPubSub { resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, - options?: WebPubSubUpdateOptionalParams + options?: WebPubSubUpdateOptionalParams, ): Promise; /** * Get the access keys of the resource. @@ -169,7 +169,7 @@ export interface WebPubSub { listKeys( resourceGroupName: string, resourceName: string, - options?: WebPubSubListKeysOptionalParams + options?: WebPubSubListKeysOptionalParams, ): Promise; /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the @@ -183,7 +183,7 @@ export interface WebPubSub { resourceGroupName: string, resourceName: string, parameters: RegenerateKeyParameters, - options?: WebPubSubRegenerateKeyOptionalParams + options?: WebPubSubRegenerateKeyOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -202,7 +202,7 @@ export interface WebPubSub { resourceGroupName: string, resourceName: string, parameters: RegenerateKeyParameters, - options?: WebPubSubRegenerateKeyOptionalParams + options?: WebPubSubRegenerateKeyOptionalParams, ): Promise; /** * List all available skus of the replica resource. @@ -215,7 +215,7 @@ export interface WebPubSub { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubListReplicaSkusOptionalParams + options?: WebPubSubListReplicaSkusOptionalParams, ): Promise; /** * Operation to restart a resource. @@ -226,7 +226,7 @@ export interface WebPubSub { beginRestart( resourceGroupName: string, resourceName: string, - options?: WebPubSubRestartOptionalParams + options?: WebPubSubRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -242,7 +242,7 @@ export interface WebPubSub { beginRestartAndWait( resourceGroupName: string, resourceName: string, - options?: WebPubSubRestartOptionalParams + options?: WebPubSubRestartOptionalParams, ): Promise; /** * List all available skus of the resource. @@ -253,6 +253,6 @@ export interface WebPubSub { listSkus( resourceGroupName: string, resourceName: string, - options?: WebPubSubListSkusOptionalParams + options?: WebPubSubListSkusOptionalParams, ): Promise; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubCustomCertificates.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubCustomCertificates.ts index a2f44e9d2fbb..a85b1765a4ee 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubCustomCertificates.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubCustomCertificates.ts @@ -15,7 +15,7 @@ import { WebPubSubCustomCertificatesGetResponse, WebPubSubCustomCertificatesCreateOrUpdateOptionalParams, WebPubSubCustomCertificatesCreateOrUpdateResponse, - WebPubSubCustomCertificatesDeleteOptionalParams + WebPubSubCustomCertificatesDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WebPubSubCustomCertificates { list( resourceGroupName: string, resourceName: string, - options?: WebPubSubCustomCertificatesListOptionalParams + options?: WebPubSubCustomCertificatesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a custom certificate. @@ -43,7 +43,7 @@ export interface WebPubSubCustomCertificates { resourceGroupName: string, resourceName: string, certificateName: string, - options?: WebPubSubCustomCertificatesGetOptionalParams + options?: WebPubSubCustomCertificatesGetOptionalParams, ): Promise; /** * Create or update a custom certificate. @@ -58,7 +58,7 @@ export interface WebPubSubCustomCertificates { resourceName: string, certificateName: string, parameters: CustomCertificate, - options?: WebPubSubCustomCertificatesCreateOrUpdateOptionalParams + options?: WebPubSubCustomCertificatesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface WebPubSubCustomCertificates { resourceName: string, certificateName: string, parameters: CustomCertificate, - options?: WebPubSubCustomCertificatesCreateOrUpdateOptionalParams + options?: WebPubSubCustomCertificatesCreateOrUpdateOptionalParams, ): Promise; /** * Delete a custom certificate. @@ -91,6 +91,6 @@ export interface WebPubSubCustomCertificates { resourceGroupName: string, resourceName: string, certificateName: string, - options?: WebPubSubCustomCertificatesDeleteOptionalParams + options?: WebPubSubCustomCertificatesDeleteOptionalParams, ): Promise; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubCustomDomains.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubCustomDomains.ts index 35ed68a92114..7216d482bc38 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubCustomDomains.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubCustomDomains.ts @@ -15,7 +15,7 @@ import { WebPubSubCustomDomainsGetResponse, WebPubSubCustomDomainsCreateOrUpdateOptionalParams, WebPubSubCustomDomainsCreateOrUpdateResponse, - WebPubSubCustomDomainsDeleteOptionalParams + WebPubSubCustomDomainsDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WebPubSubCustomDomains { list( resourceGroupName: string, resourceName: string, - options?: WebPubSubCustomDomainsListOptionalParams + options?: WebPubSubCustomDomainsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a custom domain. @@ -43,7 +43,7 @@ export interface WebPubSubCustomDomains { resourceGroupName: string, resourceName: string, name: string, - options?: WebPubSubCustomDomainsGetOptionalParams + options?: WebPubSubCustomDomainsGetOptionalParams, ): Promise; /** * Create or update a custom domain. @@ -58,7 +58,7 @@ export interface WebPubSubCustomDomains { resourceName: string, name: string, parameters: CustomDomain, - options?: WebPubSubCustomDomainsCreateOrUpdateOptionalParams + options?: WebPubSubCustomDomainsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface WebPubSubCustomDomains { resourceName: string, name: string, parameters: CustomDomain, - options?: WebPubSubCustomDomainsCreateOrUpdateOptionalParams + options?: WebPubSubCustomDomainsCreateOrUpdateOptionalParams, ): Promise; /** * Delete a custom domain. @@ -91,7 +91,7 @@ export interface WebPubSubCustomDomains { resourceGroupName: string, resourceName: string, name: string, - options?: WebPubSubCustomDomainsDeleteOptionalParams + options?: WebPubSubCustomDomainsDeleteOptionalParams, ): Promise, void>>; /** * Delete a custom domain. @@ -104,6 +104,6 @@ export interface WebPubSubCustomDomains { resourceGroupName: string, resourceName: string, name: string, - options?: WebPubSubCustomDomainsDeleteOptionalParams + options?: WebPubSubCustomDomainsDeleteOptionalParams, ): Promise; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubHubs.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubHubs.ts index ebaad087b76d..678a1928e6f2 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubHubs.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubHubs.ts @@ -15,7 +15,7 @@ import { WebPubSubHubsGetResponse, WebPubSubHubsCreateOrUpdateOptionalParams, WebPubSubHubsCreateOrUpdateResponse, - WebPubSubHubsDeleteOptionalParams + WebPubSubHubsDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WebPubSubHubs { list( resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsListOptionalParams + options?: WebPubSubHubsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a hub setting. @@ -43,7 +43,7 @@ export interface WebPubSubHubs { hubName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsGetOptionalParams + options?: WebPubSubHubsGetOptionalParams, ): Promise; /** * Create or update a hub setting. @@ -58,7 +58,7 @@ export interface WebPubSubHubs { resourceGroupName: string, resourceName: string, parameters: WebPubSubHub, - options?: WebPubSubHubsCreateOrUpdateOptionalParams + options?: WebPubSubHubsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface WebPubSubHubs { resourceGroupName: string, resourceName: string, parameters: WebPubSubHub, - options?: WebPubSubHubsCreateOrUpdateOptionalParams + options?: WebPubSubHubsCreateOrUpdateOptionalParams, ): Promise; /** * Delete a hub setting. @@ -91,7 +91,7 @@ export interface WebPubSubHubs { hubName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsDeleteOptionalParams + options?: WebPubSubHubsDeleteOptionalParams, ): Promise, void>>; /** * Delete a hub setting. @@ -104,6 +104,6 @@ export interface WebPubSubHubs { hubName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubHubsDeleteOptionalParams + options?: WebPubSubHubsDeleteOptionalParams, ): Promise; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts index 4e4fe34cc981..7e9408b5de8c 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts @@ -15,7 +15,7 @@ import { WebPubSubPrivateEndpointConnectionsGetResponse, WebPubSubPrivateEndpointConnectionsUpdateOptionalParams, WebPubSubPrivateEndpointConnectionsUpdateResponse, - WebPubSubPrivateEndpointConnectionsDeleteOptionalParams + WebPubSubPrivateEndpointConnectionsDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface WebPubSubPrivateEndpointConnections { list( resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsListOptionalParams + options?: WebPubSubPrivateEndpointConnectionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified private endpoint connection @@ -44,7 +44,7 @@ export interface WebPubSubPrivateEndpointConnections { privateEndpointConnectionName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsGetOptionalParams + options?: WebPubSubPrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Update the state of specified private endpoint connection @@ -60,7 +60,7 @@ export interface WebPubSubPrivateEndpointConnections { resourceGroupName: string, resourceName: string, parameters: PrivateEndpointConnection, - options?: WebPubSubPrivateEndpointConnectionsUpdateOptionalParams + options?: WebPubSubPrivateEndpointConnectionsUpdateOptionalParams, ): Promise; /** * Delete the specified private endpoint connection @@ -74,7 +74,7 @@ export interface WebPubSubPrivateEndpointConnections { privateEndpointConnectionName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsDeleteOptionalParams + options?: WebPubSubPrivateEndpointConnectionsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified private endpoint connection @@ -88,6 +88,6 @@ export interface WebPubSubPrivateEndpointConnections { privateEndpointConnectionName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateEndpointConnectionsDeleteOptionalParams + options?: WebPubSubPrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateLinkResources.ts index 3896be6ace18..c046608913eb 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateLinkResources.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateLinkResources.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateLinkResource, - WebPubSubPrivateLinkResourcesListOptionalParams + WebPubSubPrivateLinkResourcesListOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface WebPubSubPrivateLinkResources { list( resourceGroupName: string, resourceName: string, - options?: WebPubSubPrivateLinkResourcesListOptionalParams + options?: WebPubSubPrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubReplicaSharedPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubReplicaSharedPrivateLinkResources.ts new file mode 100644 index 000000000000..8054f63242b7 --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubReplicaSharedPrivateLinkResources.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + SharedPrivateLinkResource, + WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams, + WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams, + WebPubSubReplicaSharedPrivateLinkResourcesGetResponse, + WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, + WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse, +} from "../models"; + +/// +/** Interface representing a WebPubSubReplicaSharedPrivateLinkResources. */ +export interface WebPubSubReplicaSharedPrivateLinkResources { + /** + * List shared private link resources + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + resourceName: string, + replicaName: string, + options?: WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get the specified shared private link resource + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + resourceName: string, + replicaName: string, + sharedPrivateLinkResourceName: string, + options?: WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams, + ): Promise; + /** + * Create or update a shared private link resource + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link resource + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + resourceName: string, + replicaName: string, + sharedPrivateLinkResourceName: string, + parameters: SharedPrivateLinkResource, + options?: WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse + > + >; + /** + * Create or update a shared private link resource + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link resource + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + resourceName: string, + replicaName: string, + sharedPrivateLinkResourceName: string, + parameters: SharedPrivateLinkResource, + options?: WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubReplicas.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubReplicas.ts index c8aa7da1a792..c8fc2d6a18c1 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubReplicas.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubReplicas.ts @@ -19,7 +19,7 @@ import { WebPubSubReplicasUpdateOptionalParams, WebPubSubReplicasUpdateResponse, WebPubSubReplicasRestartOptionalParams, - WebPubSubReplicasRestartResponse + WebPubSubReplicasRestartResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface WebPubSubReplicas { list( resourceGroupName: string, resourceName: string, - options?: WebPubSubReplicasListOptionalParams + options?: WebPubSubReplicasListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the replica and its properties. @@ -47,7 +47,7 @@ export interface WebPubSubReplicas { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubReplicasGetOptionalParams + options?: WebPubSubReplicasGetOptionalParams, ): Promise; /** * Create or update a replica. @@ -62,7 +62,7 @@ export interface WebPubSubReplicas { resourceName: string, replicaName: string, parameters: Replica, - options?: WebPubSubReplicasCreateOrUpdateOptionalParams + options?: WebPubSubReplicasCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -82,7 +82,7 @@ export interface WebPubSubReplicas { resourceName: string, replicaName: string, parameters: Replica, - options?: WebPubSubReplicasCreateOrUpdateOptionalParams + options?: WebPubSubReplicasCreateOrUpdateOptionalParams, ): Promise; /** * Operation to delete a replica. @@ -95,7 +95,7 @@ export interface WebPubSubReplicas { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubReplicasDeleteOptionalParams + options?: WebPubSubReplicasDeleteOptionalParams, ): Promise; /** * Operation to update an exiting replica. @@ -110,7 +110,7 @@ export interface WebPubSubReplicas { resourceName: string, replicaName: string, parameters: Replica, - options?: WebPubSubReplicasUpdateOptionalParams + options?: WebPubSubReplicasUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -130,7 +130,7 @@ export interface WebPubSubReplicas { resourceName: string, replicaName: string, parameters: Replica, - options?: WebPubSubReplicasUpdateOptionalParams + options?: WebPubSubReplicasUpdateOptionalParams, ): Promise; /** * Operation to restart a replica. @@ -143,7 +143,7 @@ export interface WebPubSubReplicas { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubReplicasRestartOptionalParams + options?: WebPubSubReplicasRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -161,6 +161,6 @@ export interface WebPubSubReplicas { resourceGroupName: string, resourceName: string, replicaName: string, - options?: WebPubSubReplicasRestartOptionalParams + options?: WebPubSubReplicasRestartOptionalParams, ): Promise; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts index 8b4a5948a23f..0aea108288c4 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts @@ -15,7 +15,7 @@ import { WebPubSubSharedPrivateLinkResourcesGetResponse, WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, WebPubSubSharedPrivateLinkResourcesCreateOrUpdateResponse, - WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams + WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams, } from "../models"; /// @@ -30,11 +30,11 @@ export interface WebPubSubSharedPrivateLinkResources { list( resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param options The options parameters. @@ -43,11 +43,11 @@ export interface WebPubSubSharedPrivateLinkResources { sharedPrivateLinkResourceName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesGetOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesGetOptionalParams, ): Promise; /** * Create or update a shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The shared private link resource @@ -58,7 +58,7 @@ export interface WebPubSubSharedPrivateLinkResources { resourceGroupName: string, resourceName: string, parameters: SharedPrivateLinkResource, - options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -67,7 +67,7 @@ export interface WebPubSubSharedPrivateLinkResources { >; /** * Create or update a shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The shared private link resource @@ -78,11 +78,11 @@ export interface WebPubSubSharedPrivateLinkResources { resourceGroupName: string, resourceName: string, parameters: SharedPrivateLinkResource, - options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the specified shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param options The options parameters. @@ -91,11 +91,11 @@ export interface WebPubSubSharedPrivateLinkResources { sharedPrivateLinkResourceName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified shared private link resource - * @param sharedPrivateLinkResourceName The name of the shared private link resource + * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param options The options parameters. @@ -104,6 +104,6 @@ export interface WebPubSubSharedPrivateLinkResources { sharedPrivateLinkResourceName: string, resourceGroupName: string, resourceName: string, - options?: WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams + options?: WebPubSubSharedPrivateLinkResourcesDeleteOptionalParams, ): Promise; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/pagingHelper.ts b/sdk/web-pubsub/arm-webpubsub/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/pagingHelper.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts b/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts index ec5c7fa34228..3dbe1fcb954d 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -24,7 +24,8 @@ import { WebPubSubPrivateEndpointConnectionsImpl, WebPubSubPrivateLinkResourcesImpl, WebPubSubReplicasImpl, - WebPubSubSharedPrivateLinkResourcesImpl + WebPubSubReplicaSharedPrivateLinkResourcesImpl, + WebPubSubSharedPrivateLinkResourcesImpl, } from "./operations"; import { Operations, @@ -36,7 +37,8 @@ import { WebPubSubPrivateEndpointConnections, WebPubSubPrivateLinkResources, WebPubSubReplicas, - WebPubSubSharedPrivateLinkResources + WebPubSubReplicaSharedPrivateLinkResources, + WebPubSubSharedPrivateLinkResources, } from "./operationsInterfaces"; import { WebPubSubManagementClientOptionalParams } from "./models"; @@ -54,7 +56,7 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: WebPubSubManagementClientOptionalParams + options?: WebPubSubManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -69,10 +71,10 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { } const defaults: WebPubSubManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-webpubsub/2.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-webpubsub/2.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -82,20 +84,21 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -105,7 +108,7 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -115,9 +118,9 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -125,25 +128,25 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-08-01-preview"; + this.apiVersion = options.apiVersion || "2024-03-01"; this.operations = new OperationsImpl(this); this.webPubSub = new WebPubSubImpl(this); this.usages = new UsagesImpl(this); this.webPubSubCustomCertificates = new WebPubSubCustomCertificatesImpl( - this + this, ); this.webPubSubCustomDomains = new WebPubSubCustomDomainsImpl(this); this.webPubSubHubs = new WebPubSubHubsImpl(this); - this.webPubSubPrivateEndpointConnections = new WebPubSubPrivateEndpointConnectionsImpl( - this - ); + this.webPubSubPrivateEndpointConnections = + new WebPubSubPrivateEndpointConnectionsImpl(this); this.webPubSubPrivateLinkResources = new WebPubSubPrivateLinkResourcesImpl( - this + this, ); this.webPubSubReplicas = new WebPubSubReplicasImpl(this); - this.webPubSubSharedPrivateLinkResources = new WebPubSubSharedPrivateLinkResourcesImpl( - this - ); + this.webPubSubReplicaSharedPrivateLinkResources = + new WebPubSubReplicaSharedPrivateLinkResourcesImpl(this); + this.webPubSubSharedPrivateLinkResources = + new WebPubSubSharedPrivateLinkResourcesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -156,7 +159,7 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -170,7 +173,7 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -184,5 +187,6 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { webPubSubPrivateEndpointConnections: WebPubSubPrivateEndpointConnections; webPubSubPrivateLinkResources: WebPubSubPrivateLinkResources; webPubSubReplicas: WebPubSubReplicas; + webPubSubReplicaSharedPrivateLinkResources: WebPubSubReplicaSharedPrivateLinkResources; webPubSubSharedPrivateLinkResources: WebPubSubSharedPrivateLinkResources; } diff --git a/sdk/web-pubsub/arm-webpubsub/test/webpubsub_examples.spec.ts b/sdk/web-pubsub/arm-webpubsub/test/webpubsub_examples.spec.ts index 490bdee996ff..f1e3465689e1 100644 --- a/sdk/web-pubsub/arm-webpubsub/test/webpubsub_examples.spec.ts +++ b/sdk/web-pubsub/arm-webpubsub/test/webpubsub_examples.spec.ts @@ -81,10 +81,6 @@ describe("webPubSub test", () => { enabled: "false" }, location, - networkACLs: { - defaultAction: "Deny", - publicNetwork: { allow: ["ClientConnection"] } - }, publicNetworkAccess: "Enabled", sku: { name: "Free_F1", capacity: 1, tier: "Free" }, tags: { key1: "value1" }, From ce21b9710c9e1884020f522ba90b1f6f82ef156c Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:13:35 +0800 Subject: [PATCH 2/2] update --- sdk/web-pubsub/arm-webpubsub/CHANGELOG.md | 5 +- sdk/web-pubsub/arm-webpubsub/assets.json | 2 +- sdk/web-pubsub/arm-webpubsub/package.json | 4 +- .../samples/{v2 => v1}/javascript/README.md | 88 +++++++++---------- .../javascript/operationsListSample.js | 0 .../{v2 => v1}/javascript/package.json | 0 .../samples/{v2 => v1}/javascript/sample.env | 0 .../{v2 => v1}/javascript/usagesListSample.js | 0 .../webPubSubCheckNameAvailabilitySample.js | 0 .../webPubSubCreateOrUpdateSample.js | 0 ...bCustomCertificatesCreateOrUpdateSample.js | 0 ...webPubSubCustomCertificatesDeleteSample.js | 0 .../webPubSubCustomCertificatesGetSample.js | 0 .../webPubSubCustomCertificatesListSample.js | 0 ...PubSubCustomDomainsCreateOrUpdateSample.js | 0 .../webPubSubCustomDomainsDeleteSample.js | 0 .../webPubSubCustomDomainsGetSample.js | 0 .../webPubSubCustomDomainsListSample.js | 0 .../javascript/webPubSubDeleteSample.js | 0 .../javascript/webPubSubGetSample.js | 0 .../webPubSubHubsCreateOrUpdateSample.js | 0 .../javascript/webPubSubHubsDeleteSample.js | 0 .../javascript/webPubSubHubsGetSample.js | 0 .../javascript/webPubSubHubsListSample.js | 0 .../webPubSubListByResourceGroupSample.js | 0 .../webPubSubListBySubscriptionSample.js | 0 .../javascript/webPubSubListKeysSample.js | 0 .../webPubSubListReplicaSkusSample.js | 0 .../javascript/webPubSubListSkusSample.js | 0 ...bPrivateEndpointConnectionsDeleteSample.js | 0 ...bSubPrivateEndpointConnectionsGetSample.js | 0 ...SubPrivateEndpointConnectionsListSample.js | 0 ...bPrivateEndpointConnectionsUpdateSample.js | 0 ...webPubSubPrivateLinkResourcesListSample.js | 0 .../webPubSubRegenerateKeySample.js | 0 ...rivateLinkResourcesCreateOrUpdateSample.js | 0 ...licaSharedPrivateLinkResourcesGetSample.js | 0 ...icaSharedPrivateLinkResourcesListSample.js | 0 .../webPubSubReplicasCreateOrUpdateSample.js | 0 .../webPubSubReplicasDeleteSample.js | 0 .../javascript/webPubSubReplicasGetSample.js | 0 .../javascript/webPubSubReplicasListSample.js | 0 .../webPubSubReplicasRestartSample.js | 0 .../webPubSubReplicasUpdateSample.js | 0 .../javascript/webPubSubRestartSample.js | 0 ...rivateLinkResourcesCreateOrUpdateSample.js | 0 ...bSharedPrivateLinkResourcesDeleteSample.js | 0 ...bSubSharedPrivateLinkResourcesGetSample.js | 0 ...SubSharedPrivateLinkResourcesListSample.js | 0 .../javascript/webPubSubUpdateSample.js | 0 .../samples/{v2 => v1}/typescript/README.md | 88 +++++++++---------- .../{v2 => v1}/typescript/package.json | 0 .../samples/{v2 => v1}/typescript/sample.env | 0 .../typescript/src/operationsListSample.ts | 0 .../typescript/src/usagesListSample.ts | 0 .../webPubSubCheckNameAvailabilitySample.ts | 0 .../src/webPubSubCreateOrUpdateSample.ts | 0 ...bCustomCertificatesCreateOrUpdateSample.ts | 0 ...webPubSubCustomCertificatesDeleteSample.ts | 0 .../webPubSubCustomCertificatesGetSample.ts | 0 .../webPubSubCustomCertificatesListSample.ts | 0 ...PubSubCustomDomainsCreateOrUpdateSample.ts | 0 .../src/webPubSubCustomDomainsDeleteSample.ts | 0 .../src/webPubSubCustomDomainsGetSample.ts | 0 .../src/webPubSubCustomDomainsListSample.ts | 0 .../typescript/src/webPubSubDeleteSample.ts | 0 .../typescript/src/webPubSubGetSample.ts | 0 .../src/webPubSubHubsCreateOrUpdateSample.ts | 0 .../src/webPubSubHubsDeleteSample.ts | 0 .../typescript/src/webPubSubHubsGetSample.ts | 0 .../typescript/src/webPubSubHubsListSample.ts | 0 .../src/webPubSubListByResourceGroupSample.ts | 0 .../src/webPubSubListBySubscriptionSample.ts | 0 .../typescript/src/webPubSubListKeysSample.ts | 0 .../src/webPubSubListReplicaSkusSample.ts | 0 .../typescript/src/webPubSubListSkusSample.ts | 0 ...bPrivateEndpointConnectionsDeleteSample.ts | 0 ...bSubPrivateEndpointConnectionsGetSample.ts | 0 ...SubPrivateEndpointConnectionsListSample.ts | 0 ...bPrivateEndpointConnectionsUpdateSample.ts | 0 ...webPubSubPrivateLinkResourcesListSample.ts | 0 .../src/webPubSubRegenerateKeySample.ts | 0 ...rivateLinkResourcesCreateOrUpdateSample.ts | 0 ...licaSharedPrivateLinkResourcesGetSample.ts | 0 ...icaSharedPrivateLinkResourcesListSample.ts | 0 .../webPubSubReplicasCreateOrUpdateSample.ts | 0 .../src/webPubSubReplicasDeleteSample.ts | 0 .../src/webPubSubReplicasGetSample.ts | 0 .../src/webPubSubReplicasListSample.ts | 0 .../src/webPubSubReplicasRestartSample.ts | 0 .../src/webPubSubReplicasUpdateSample.ts | 0 .../typescript/src/webPubSubRestartSample.ts | 0 ...rivateLinkResourcesCreateOrUpdateSample.ts | 0 ...bSharedPrivateLinkResourcesDeleteSample.ts | 0 ...bSubSharedPrivateLinkResourcesGetSample.ts | 0 ...SubSharedPrivateLinkResourcesListSample.ts | 0 .../typescript/src/webPubSubUpdateSample.ts | 0 .../{v2 => v1}/typescript/tsconfig.json | 0 .../src/webPubSubManagementClient.ts | 2 +- 99 files changed, 93 insertions(+), 96 deletions(-) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/README.md (90%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/operationsListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/package.json (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/sample.env (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/usagesListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCheckNameAvailabilitySample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCreateOrUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCustomCertificatesDeleteSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCustomCertificatesGetSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCustomCertificatesListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCustomDomainsDeleteSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCustomDomainsGetSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubCustomDomainsListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubDeleteSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubGetSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubHubsCreateOrUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubHubsDeleteSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubHubsGetSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubHubsListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubListByResourceGroupSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubListBySubscriptionSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubListKeysSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubListReplicaSkusSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubListSkusSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubPrivateEndpointConnectionsGetSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubPrivateEndpointConnectionsListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubPrivateLinkResourcesListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubRegenerateKeySample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicasCreateOrUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicasDeleteSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicasGetSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicasListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicasRestartSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubReplicasUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubRestartSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubSharedPrivateLinkResourcesListSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/javascript/webPubSubUpdateSample.js (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/README.md (90%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/package.json (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/sample.env (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/operationsListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/usagesListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCheckNameAvailabilitySample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCreateOrUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCustomCertificatesDeleteSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCustomCertificatesGetSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCustomCertificatesListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCustomDomainsDeleteSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCustomDomainsGetSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubCustomDomainsListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubDeleteSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubGetSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubHubsCreateOrUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubHubsDeleteSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubHubsGetSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubHubsListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubListByResourceGroupSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubListBySubscriptionSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubListKeysSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubListReplicaSkusSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubListSkusSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubPrivateLinkResourcesListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubRegenerateKeySample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicasDeleteSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicasGetSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicasListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicasRestartSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubReplicasUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubRestartSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/src/webPubSubUpdateSample.ts (100%) rename sdk/web-pubsub/arm-webpubsub/samples/{v2 => v1}/typescript/tsconfig.json (100%) diff --git a/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md b/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md index c6ffec227ba6..08f025f6a9df 100644 --- a/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md +++ b/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 2.0.0 (2024-09-11) +## 1.2.0 (2024-09-11) ### Features Added @@ -49,9 +49,6 @@ - Interface WebPubSubResource has a new optional parameter resourceStopped - Interface WebPubSubResource has a new optional parameter socketIO - Added Enum KnownServiceKind - -### Breaking Changes - - Interface CustomCertificate no longer has parameter systemData - Interface CustomDomain no longer has parameter systemData - Interface PrivateEndpointConnection no longer has parameter systemData diff --git a/sdk/web-pubsub/arm-webpubsub/assets.json b/sdk/web-pubsub/arm-webpubsub/assets.json index 476538c32bd8..23265e124dff 100644 --- a/sdk/web-pubsub/arm-webpubsub/assets.json +++ b/sdk/web-pubsub/arm-webpubsub/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/web-pubsub/arm-webpubsub", - "Tag": "js/web-pubsub/arm-webpubsub_23ca31b031" + "Tag": "js/web-pubsub/arm-webpubsub_3a173487ab" } diff --git a/sdk/web-pubsub/arm-webpubsub/package.json b/sdk/web-pubsub/arm-webpubsub/package.json index 16a15d39fed7..06d0acd8629c 100644 --- a/sdk/web-pubsub/arm-webpubsub/package.json +++ b/sdk/web-pubsub/arm-webpubsub/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for WebPubSubManagementClient.", - "version": "2.0.0", + "version": "1.2.0", "engines": { "node": ">=18.0.0" }, @@ -115,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview" } -} \ No newline at end of file +} diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/README.md b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/README.md similarity index 90% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/README.md rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/README.md index 9829804e2f38..3ec2328a29ad 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/README.md +++ b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/README.md @@ -87,50 +87,50 @@ npx cross-env WEB-PUBSUB_SUBSCRIPTION_ID="" node ope Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/operationsListSample.js -[usageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/usagesListSample.js -[webpubsubchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCheckNameAvailabilitySample.js -[webpubsubcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCreateOrUpdateSample.js -[webpubsubcustomcertificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js -[webpubsubcustomcertificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesDeleteSample.js -[webpubsubcustomcertificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesGetSample.js -[webpubsubcustomcertificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesListSample.js -[webpubsubcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js -[webpubsubcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsDeleteSample.js -[webpubsubcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsGetSample.js -[webpubsubcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsListSample.js -[webpubsubdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubDeleteSample.js -[webpubsubgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubGetSample.js -[webpubsubhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsCreateOrUpdateSample.js -[webpubsubhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsDeleteSample.js -[webpubsubhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsGetSample.js -[webpubsubhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsListSample.js -[webpubsublistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListByResourceGroupSample.js -[webpubsublistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListBySubscriptionSample.js -[webpubsublistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListKeysSample.js -[webpubsublistreplicaskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListReplicaSkusSample.js -[webpubsublistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListSkusSample.js -[webpubsubprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js -[webpubsubprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsGetSample.js -[webpubsubprivateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsListSample.js -[webpubsubprivateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js -[webpubsubprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateLinkResourcesListSample.js -[webpubsubregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRegenerateKeySample.js -[webpubsubreplicasharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js -[webpubsubreplicasharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js -[webpubsubreplicasharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js -[webpubsubreplicascreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasCreateOrUpdateSample.js -[webpubsubreplicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasDeleteSample.js -[webpubsubreplicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasGetSample.js -[webpubsubreplicaslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasListSample.js -[webpubsubreplicasrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasRestartSample.js -[webpubsubreplicasupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasUpdateSample.js -[webpubsubrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRestartSample.js -[webpubsubsharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js -[webpubsubsharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js -[webpubsubsharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js -[webpubsubsharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesListSample.js -[webpubsubupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/operationsListSample.js +[usageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/usagesListSample.js +[webpubsubchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCheckNameAvailabilitySample.js +[webpubsubcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCreateOrUpdateSample.js +[webpubsubcustomcertificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js +[webpubsubcustomcertificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesDeleteSample.js +[webpubsubcustomcertificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesGetSample.js +[webpubsubcustomcertificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesListSample.js +[webpubsubcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js +[webpubsubcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsDeleteSample.js +[webpubsubcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsGetSample.js +[webpubsubcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsListSample.js +[webpubsubdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubDeleteSample.js +[webpubsubgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubGetSample.js +[webpubsubhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsCreateOrUpdateSample.js +[webpubsubhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsDeleteSample.js +[webpubsubhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsGetSample.js +[webpubsubhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsListSample.js +[webpubsublistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListByResourceGroupSample.js +[webpubsublistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListBySubscriptionSample.js +[webpubsublistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListKeysSample.js +[webpubsublistreplicaskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListReplicaSkusSample.js +[webpubsublistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListSkusSample.js +[webpubsubprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js +[webpubsubprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsGetSample.js +[webpubsubprivateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsListSample.js +[webpubsubprivateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js +[webpubsubprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateLinkResourcesListSample.js +[webpubsubregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubRegenerateKeySample.js +[webpubsubreplicasharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js +[webpubsubreplicasharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js +[webpubsubreplicasharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js +[webpubsubreplicascreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasCreateOrUpdateSample.js +[webpubsubreplicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasDeleteSample.js +[webpubsubreplicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasGetSample.js +[webpubsubreplicaslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasListSample.js +[webpubsubreplicasrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasRestartSample.js +[webpubsubreplicasupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasUpdateSample.js +[webpubsubrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubRestartSample.js +[webpubsubsharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js +[webpubsubsharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js +[webpubsubsharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js +[webpubsubsharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesListSample.js +[webpubsubupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubUpdateSample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub/README.md diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/operationsListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/operationsListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/operationsListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/operationsListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/package.json b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/package.json similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/package.json rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/package.json diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/sample.env b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/sample.env similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/sample.env rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/sample.env diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/usagesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/usagesListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/usagesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/usagesListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCheckNameAvailabilitySample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCheckNameAvailabilitySample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCheckNameAvailabilitySample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCheckNameAvailabilitySample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCreateOrUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCreateOrUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesCreateOrUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesDeleteSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesDeleteSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesGetSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesGetSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomCertificatesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomCertificatesListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsCreateOrUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsDeleteSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsDeleteSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsGetSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsGetSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubCustomDomainsListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubCustomDomainsListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubDeleteSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubDeleteSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubGetSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubGetSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsCreateOrUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsCreateOrUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsDeleteSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsDeleteSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsGetSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsGetSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubHubsListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubHubsListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListByResourceGroupSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListByResourceGroupSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListByResourceGroupSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListByResourceGroupSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListBySubscriptionSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListBySubscriptionSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListBySubscriptionSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListBySubscriptionSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListKeysSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListKeysSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListKeysSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListKeysSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListReplicaSkusSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListReplicaSkusSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListReplicaSkusSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListReplicaSkusSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListSkusSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListSkusSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubListSkusSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubListSkusSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsDeleteSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsGetSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsGetSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateEndpointConnectionsUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateLinkResourcesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateLinkResourcesListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubPrivateLinkResourcesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubPrivateLinkResourcesListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRegenerateKeySample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubRegenerateKeySample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRegenerateKeySample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubRegenerateKeySample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesGetSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicaSharedPrivateLinkResourcesListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasCreateOrUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasCreateOrUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasDeleteSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasDeleteSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasGetSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasGetSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasRestartSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasRestartSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasRestartSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasRestartSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubReplicasUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubReplicasUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRestartSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubRestartSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubRestartSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubRestartSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesDeleteSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesGetSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesListSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesListSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubSharedPrivateLinkResourcesListSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubSharedPrivateLinkResourcesListSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubUpdateSample.js b/sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubUpdateSample.js similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/javascript/webPubSubUpdateSample.js rename to sdk/web-pubsub/arm-webpubsub/samples/v1/javascript/webPubSubUpdateSample.js diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/README.md b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/README.md similarity index 90% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/README.md rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/README.md index fd50edb914a0..b7748e95b1f6 100644 --- a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/README.md +++ b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/README.md @@ -99,50 +99,50 @@ npx cross-env WEB-PUBSUB_SUBSCRIPTION_ID="" node dis Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/operationsListSample.ts -[usageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/usagesListSample.ts -[webpubsubchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCheckNameAvailabilitySample.ts -[webpubsubcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCreateOrUpdateSample.ts -[webpubsubcustomcertificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts -[webpubsubcustomcertificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesDeleteSample.ts -[webpubsubcustomcertificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesGetSample.ts -[webpubsubcustomcertificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesListSample.ts -[webpubsubcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts -[webpubsubcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsDeleteSample.ts -[webpubsubcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsGetSample.ts -[webpubsubcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsListSample.ts -[webpubsubdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubDeleteSample.ts -[webpubsubgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubGetSample.ts -[webpubsubhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsCreateOrUpdateSample.ts -[webpubsubhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsDeleteSample.ts -[webpubsubhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsGetSample.ts -[webpubsubhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsListSample.ts -[webpubsublistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListByResourceGroupSample.ts -[webpubsublistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListBySubscriptionSample.ts -[webpubsublistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListKeysSample.ts -[webpubsublistreplicaskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListReplicaSkusSample.ts -[webpubsublistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListSkusSample.ts -[webpubsubprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts -[webpubsubprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts -[webpubsubprivateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts -[webpubsubprivateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts -[webpubsubprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateLinkResourcesListSample.ts -[webpubsubregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRegenerateKeySample.ts -[webpubsubreplicasharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts -[webpubsubreplicasharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts -[webpubsubreplicasharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts -[webpubsubreplicascreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts -[webpubsubreplicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasDeleteSample.ts -[webpubsubreplicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasGetSample.ts -[webpubsubreplicaslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasListSample.ts -[webpubsubreplicasrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasRestartSample.ts -[webpubsubreplicasupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasUpdateSample.ts -[webpubsubrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRestartSample.ts -[webpubsubsharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts -[webpubsubsharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts -[webpubsubsharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts -[webpubsubsharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts -[webpubsubupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/operationsListSample.ts +[usageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/usagesListSample.ts +[webpubsubchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCheckNameAvailabilitySample.ts +[webpubsubcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCreateOrUpdateSample.ts +[webpubsubcustomcertificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts +[webpubsubcustomcertificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesDeleteSample.ts +[webpubsubcustomcertificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesGetSample.ts +[webpubsubcustomcertificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesListSample.ts +[webpubsubcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts +[webpubsubcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsDeleteSample.ts +[webpubsubcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsGetSample.ts +[webpubsubcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsListSample.ts +[webpubsubdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubDeleteSample.ts +[webpubsubgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubGetSample.ts +[webpubsubhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsCreateOrUpdateSample.ts +[webpubsubhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsDeleteSample.ts +[webpubsubhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsGetSample.ts +[webpubsubhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsListSample.ts +[webpubsublistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListByResourceGroupSample.ts +[webpubsublistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListBySubscriptionSample.ts +[webpubsublistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListKeysSample.ts +[webpubsublistreplicaskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListReplicaSkusSample.ts +[webpubsublistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListSkusSample.ts +[webpubsubprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts +[webpubsubprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts +[webpubsubprivateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts +[webpubsubprivateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts +[webpubsubprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateLinkResourcesListSample.ts +[webpubsubregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubRegenerateKeySample.ts +[webpubsubreplicasharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts +[webpubsubreplicasharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts +[webpubsubreplicasharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts +[webpubsubreplicascreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts +[webpubsubreplicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasDeleteSample.ts +[webpubsubreplicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasGetSample.ts +[webpubsubreplicaslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasListSample.ts +[webpubsubreplicasrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasRestartSample.ts +[webpubsubreplicasupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasUpdateSample.ts +[webpubsubrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubRestartSample.ts +[webpubsubsharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts +[webpubsubsharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts +[webpubsubsharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts +[webpubsubsharedprivatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts +[webpubsubupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubUpdateSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub/README.md diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/package.json b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/package.json similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/package.json rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/package.json diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/sample.env b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/sample.env similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/sample.env rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/sample.env diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/operationsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/operationsListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/operationsListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/operationsListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/usagesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/usagesListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/usagesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/usagesListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCheckNameAvailabilitySample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCheckNameAvailabilitySample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCheckNameAvailabilitySample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCheckNameAvailabilitySample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCreateOrUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCreateOrUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesCreateOrUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesDeleteSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesDeleteSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesGetSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesGetSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomCertificatesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomCertificatesListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsCreateOrUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsDeleteSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsDeleteSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsGetSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsGetSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubCustomDomainsListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubCustomDomainsListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubDeleteSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubDeleteSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubGetSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubGetSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsCreateOrUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsCreateOrUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsDeleteSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsDeleteSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsGetSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsGetSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubHubsListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubHubsListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListByResourceGroupSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListByResourceGroupSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListByResourceGroupSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListByResourceGroupSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListBySubscriptionSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListBySubscriptionSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListBySubscriptionSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListBySubscriptionSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListKeysSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListKeysSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListKeysSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListKeysSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListReplicaSkusSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListReplicaSkusSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListReplicaSkusSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListReplicaSkusSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListSkusSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListSkusSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubListSkusSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubListSkusSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsDeleteSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsGetSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateEndpointConnectionsUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateLinkResourcesListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubPrivateLinkResourcesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubPrivateLinkResourcesListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRegenerateKeySample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubRegenerateKeySample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRegenerateKeySample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubRegenerateKeySample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesGetSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicaSharedPrivateLinkResourcesListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasCreateOrUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasDeleteSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasDeleteSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasGetSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasGetSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasRestartSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasRestartSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasRestartSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasRestartSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubReplicasUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubReplicasUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRestartSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubRestartSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubRestartSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubRestartSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesDeleteSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesGetSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubSharedPrivateLinkResourcesListSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubUpdateSample.ts b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubUpdateSample.ts similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/src/webPubSubUpdateSample.ts rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/src/webPubSubUpdateSample.ts diff --git a/sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/tsconfig.json b/sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/tsconfig.json similarity index 100% rename from sdk/web-pubsub/arm-webpubsub/samples/v2/typescript/tsconfig.json rename to sdk/web-pubsub/arm-webpubsub/samples/v1/typescript/tsconfig.json diff --git a/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts b/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts index 3dbe1fcb954d..cd35759c948b 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts @@ -74,7 +74,7 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-webpubsub/2.0.0`; + const packageDetails = `azsdk-js-arm-webpubsub/1.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`